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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27b86f88ffd205e5edb7b14eb6c5d78c78706a9a
| 219
|
py
|
Python
|
simple_object_tracking/utils/__init__.py
|
RubenEu/simple-object-tracking
|
3affd34ba4abf91088adc4630b4a21f0dc746682
|
[
"MIT"
] | 1
|
2021-10-02T10:31:22.000Z
|
2021-10-02T10:31:22.000Z
|
simple_object_tracking/utils/__init__.py
|
RubenEu/simple-object-tracking
|
3affd34ba4abf91088adc4630b4a21f0dc746682
|
[
"MIT"
] | null | null | null |
simple_object_tracking/utils/__init__.py
|
RubenEu/simple-object-tracking
|
3affd34ba4abf91088adc4630b4a21f0dc746682
|
[
"MIT"
] | 1
|
2021-10-02T10:31:24.000Z
|
2021-10-02T10:31:24.000Z
|
from simple_object_tracking.utils.maths import euclidean_norm
from simple_object_tracking.utils.geometry import (find_closest_position_to_line,
point_distance_to_line)
| 54.75
| 81
| 0.694064
| 25
| 219
| 5.6
| 0.68
| 0.142857
| 0.228571
| 0.342857
| 0.414286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.273973
| 219
| 3
| 82
| 73
| 0.880503
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
fd976685e4c83461025011c7845cc8581a2a206c
| 2,746
|
py
|
Python
|
Assignment 4 Problems/autokeyCipher.py
|
RitvikKhanna/CaesarCipherHacker
|
3cd3e0109ece56ddd093cdef0c39e927f49eb309
|
[
"MIT"
] | 1
|
2019-02-16T08:57:41.000Z
|
2019-02-16T08:57:41.000Z
|
Assignment 4 solutions/autokeyCipher.py
|
RitvikKhanna/CaesarCipherHacker
|
3cd3e0109ece56ddd093cdef0c39e927f49eb309
|
[
"MIT"
] | null | null | null |
Assignment 4 solutions/autokeyCipher.py
|
RitvikKhanna/CaesarCipherHacker
|
3cd3e0109ece56ddd093cdef0c39e927f49eb309
|
[
"MIT"
] | null | null | null |
# Auto-Key cipher, modified from the following:
# Caesar Cipher
# http://inventwithpython.com/hacking (BSD Licensed)
def decrypt(keyword,message):
# every possible symbol that can be encrypted
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
message = message.upper()
keyword = keyword.upper()
k = 0 # index for keeping track of position in the key
# stores the encrypted/decrypted form of the message
translated = ''
# run the encryption/decryption code on each symbol in the message string
for symbol in message:
if symbol in LETTERS:
# get the encrypted (or decrypted) number for this symbol
num = LETTERS.find(symbol) # get the number of the symbol
key = LETTERS.find(keyword[k]) # get the number of the corresponding key symbol
num = num - key
# handle the wrap-around if num is larger than the length of
# LETTERS or less than 0
if num >= len(LETTERS):
num = num - len(LETTERS)
elif num < 0:
num = num + len(LETTERS)
# add encrypted/decrypted number's symbol at the end of translated
translated = translated + LETTERS[num]
# add this plaintext symbol to the the key, so it can be used to encipher
keyword = keyword + LETTERS[num]
k += 1 # go to the next character in the key
else:
# just add the symbol without encrypting/decrypting
translated = translated + symbol
return translated
def encrypt(keyword,message):
# every possible symbol that can be encrypted
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
message = message.upper()
keyword = keyword.upper()
k = 0 # index for keeping track of position in the key
# stores the encrypted/decrypted form of the message
translated = ''
# run the encryption/decryption code on each symbol in the message string
for symbol in message:
if symbol in LETTERS:
# get the encrypted (or decrypted) number for this symbol
num = LETTERS.find(symbol) # get the number of the symbol
key = LETTERS.find(keyword[k]) # get the number of the corresponding key symbol
num = num + key
# handle the wrap-around if num is larger than the length of
# LETTERS or less than 0
if num >= len(LETTERS):
num = num - len(LETTERS)
elif num < 0:
num = num + len(LETTERS)
# add encrypted/decrypted number's symbol at the end of translated
translated = translated + LETTERS[num]
# add this plaintext symbol to the the key, so it can be used to encipher
keyword = keyword + symbol
k += 1 # go to the next character in the key
else:
# just add the symbol without encrypting/decrypting
translated = translated + symbol
return translated
| 33.487805
| 85
| 0.672979
| 380
| 2,746
| 4.863158
| 0.228947
| 0.016234
| 0.042208
| 0.030303
| 0.931818
| 0.931818
| 0.931818
| 0.931818
| 0.931818
| 0.931818
| 0
| 0.003951
| 0.262564
| 2,746
| 82
| 86
| 33.487805
| 0.908642
| 0.514202
| 0
| 0.857143
| 0
| 0
| 0.039847
| 0.039847
| 0
| 0
| 0
| 0
| 0
| 1
| 0.047619
| false
| 0
| 0
| 0
| 0.095238
| 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
|
fdf0a0143bfa7f679769e4eadc62a5ac0fa4e54d
| 7,558
|
py
|
Python
|
main.py
|
my5er/MikkOS
|
d11ffe0d52971f5ac8fd594d31b877307eaa4839
|
[
"MIT"
] | 1
|
2020-08-27T11:08:49.000Z
|
2020-08-27T11:08:49.000Z
|
main.py
|
my5er/MikkOS
|
d11ffe0d52971f5ac8fd594d31b877307eaa4839
|
[
"MIT"
] | null | null | null |
main.py
|
my5er/MikkOS
|
d11ffe0d52971f5ac8fd594d31b877307eaa4839
|
[
"MIT"
] | null | null | null |
from site_connectivity_checker import site_connectivity_checker
from host_ip import host_ip
from port_scanner import port_scanner
from calculator import calculator
from ip_generator import ip_generator
from send_email import send_email
from internet_speed_tester import internet_speed_tester
from send_user_email import send_user_email
from user_email_sender import user_email_sender
from whats_my_ip import whats_my_ip
from time import sleep
from datetime import datetime
print('Welcome to MikkOs!')
print('---' * 40)
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open('logs.txt', "a")
sys_log.write(f"\n[{sys_date}] MikkOS Started \n")
sys_log.close()
print('Tools: '
'\n[1] - Site Tools;'
'\n[2] - Calculator;'
'\n[3] - IPV4/IPV6 Generator;'
'\n[4] - Internet Speed Tester'
'\n[5] - Exit;')
print("Other commands: \nType 'vlog' to view your system program logs; "
"\nType 'sysv' to see the version of Site Tools;"
"\nType 'helpemail' to send an email to MikkOS support if there's something wrong with the MikkOS tools and logs "
"or to get support from MikkOS Support Team;"
"\nType 'sendemail' to send an email to the person you want;"
"\nType 'myip' to check your IPv4 adress;")
tools = str(input("> Option: "))
if tools == '1':
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] Site Tools selected.\n")
sys_log.close()
print()
print('Entering in Site Tools...')
print('Site Tools:'
'\n[1] - Site Connectivity Checker;'
'\n[2] - Host IP;'
'\n[3] - Port Scanner;'
'\n[4] - Exit;')
site_tools = int(input('> Option: '))
if site_tools == 1:
site_connectivity_checker()
print('---' * 40)
elif site_tools == 2:
host_ip()
print('---' * 40)
elif site_tools == 3:
port_scanner()
print('---' * 40)
elif site_tools == 4:
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] MikkOS Quitted.\n")
sys_log.close()
print('Quitting MikkOS...')
email = str(input('Can we send you an email with the logs?: [Y]-Yes / [N]- No: '))
if email == 'Y':
send_email()
else:
sleep(1)
print('MikkOS Quitted.')
sleep(1)
elif tools == '2':
calculator()
elif tools == '3':
ip_generator()
elif tools == '4':
internet_speed_tester()
elif tools == '5':
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] MikkOS Quitted.\n")
sys_log.close()
print('Quitting MikkOS')
email = str(input('Can we send you an email with the logs?: [Y]-Yes / [N]- No: '))
if email == 'Y':
send_email()
else:
sleep(1)
print('MikkOS Quitted.')
elif tools == 'vlog':
logs = open("logs.txt", "r")
print(logs.read())
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] Checked user logs.\n")
sys_log.close()
elif tools == 'sysv':
print('MikkOS Version: 0.0.1')
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] Checked the version of MikkOS. Version: 0.0.1\n")
sys_log.close()
elif tools == 'helpemail':
send_user_email()
elif tools == 'sendemail':
user_email_sender()
elif tools == 'myip':
whats_my_ip()
while tools != 5:
print('Tools: '
'\n[1] - Site Tools;'
'\n[2] - Calculator;'
'\n[3] - IPV4/IPV6 Generator;'
'\n[4] - Internet Speed Tester;'
'\n[5] - Exit;')
print("Other commands: \nType 'vlog' to view your system program logs; "
"\nType 'sysv' to see the version of Site Tools;"
"\nType 'helpemail' to send an email to MikkOS support if there's something wrong with the MikkOS tools "
"and logs or to get support from MikkOS Support Team;"
"\nType 'sendemail' to send an email to the person you want;"
"\nType 'myip' to check your IPv4 adress;")
tools = str(input("> Option: "))
if tools == '1':
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] Site Tools selected\n")
sys_log.close()
print()
print('Entering in Site Tools...')
print()
print('Site Tools:'
'\n[1] - Site Connectivity Checker;'
'\n[2] - Host IP;'
'\n[3] - Port Scanner;'
'\n[4] - Exit;')
site_tools = int(input('> Option: '))
while site_tools != 4:
if site_tools == 1:
site_connectivity_checker()
print('---' * 40)
elif site_tools == 2:
host_ip()
print('---' * 40)
elif site_tools == 3:
port_scanner()
print('---' * 40)
elif site_tools == 4:
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] MikkOS Quitted\n")
sys_log.close()
print('Quitting MikkOS...')
email = str(input('Can we send you an email with the logs?: [Y]-Yes / [N]- No: '))
if email == 'Y':
send_email()
else:
sleep(1)
print('MikkOS Quitted.')
break
elif tools == '2':
calculator()
elif tools == '3':
ip_generator()
elif tools == '4':
internet_speed_tester()
elif tools == '5':
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] MikkOS Quitted\n")
sys_log.close()
email = str(input('Can we send you an email with the logs?: [Y]-Yes / [N]- No: '))
if email == 'Y':
send_email()
else:
sleep(1)
print('MikkOS Quitted')
break
elif tools == 'vlog':
logs = open("logs.txt", "r")
print(logs.read())
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] Checked user logs\n")
sys_log.close()
elif tools == 'sysv':
print('MikkOS Version: 0.0.1')
date = datetime.now()
sys_date = str(date.strftime("%d-%m-%Y %H:%M:%S"))
sys_log = open("logs.txt", "a")
sys_log.write(f"[{sys_date}] Checked the version of MikkOS. Version: 0.0.1\n")
sys_log.close()
elif tools == 'helpemail':
send_user_email()
elif tools == 'sendemail':
user_email_sender()
elif tools == 'myip':
whats_my_ip()
| 31.491667
| 121
| 0.526859
| 1,002
| 7,558
| 3.850299
| 0.108782
| 0.051322
| 0.037066
| 0.051322
| 0.876361
| 0.87325
| 0.87325
| 0.87325
| 0.87325
| 0.87325
| 0
| 0.014507
| 0.315957
| 7,558
| 239
| 122
| 31.623431
| 0.731721
| 0
| 0
| 0.856436
| 0
| 0.009901
| 0.335292
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.059406
| 0
| 0.059406
| 0.148515
| 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
|
8bf49ae5857e4558e09ecaac6a432998a8b6992c
| 8,948
|
py
|
Python
|
2019/old/day5.py
|
okomarov/aoc
|
e6e90d09fd52b8b1b2104b3db8ba5a980c8d6c79
|
[
"MIT"
] | null | null | null |
2019/old/day5.py
|
okomarov/aoc
|
e6e90d09fd52b8b1b2104b3db8ba5a980c8d6c79
|
[
"MIT"
] | null | null | null |
2019/old/day5.py
|
okomarov/aoc
|
e6e90d09fd52b8b1b2104b3db8ba5a980c8d6c79
|
[
"MIT"
] | 1
|
2020-04-03T16:51:43.000Z
|
2020-04-03T16:51:43.000Z
|
# Hardcoded input
seq = [3,225,1,225,6,6,1100,1,238,225,104,0,1001,152,55,224,1001,224,-68,224,4,224,1002,223,8,223,1001,224,4,224,1,224,223,223,1101,62,41,225,1101,83,71,225,102,59,147,224,101,-944,224,224,4,224,1002,223,8,223,101,3,224,224,1,224,223,223,2,40,139,224,1001,224,-3905,224,4,224,1002,223,8,223,101,7,224,224,1,223,224,223,1101,6,94,224,101,-100,224,224,4,224,1002,223,8,223,101,6,224,224,1,224,223,223,1102,75,30,225,1102,70,44,224,101,-3080,224,224,4,224,1002,223,8,223,1001,224,4,224,1,223,224,223,1101,55,20,225,1102,55,16,225,1102,13,94,225,1102,16,55,225,1102,13,13,225,1,109,143,224,101,-88,224,224,4,224,1002,223,8,223,1001,224,2,224,1,223,224,223,1002,136,57,224,101,-1140,224,224,4,224,1002,223,8,223,101,6,224,224,1,223,224,223,101,76,35,224,1001,224,-138,224,4,224,1002,223,8,223,101,5,224,224,1,223,224,223,4,223,99,0,0,0,677,0,0,0,0,0,0,0,0,0,0,0,1105,0,99999,1105,227,247,1105,1,99999,1005,227,99999,1005,0,256,1105,1,99999,1106,227,99999,1106,0,265,1105,1,99999,1006,0,99999,1006,227,274,1105,1,99999,1105,1,280,1105,1,99999,1,225,225,225,1101,294,0,0,105,1,0,1105,1,99999,1106,0,300,1105,1,99999,1,225,225,225,1101,314,0,0,106,0,0,1105,1,99999,1008,677,677,224,1002,223,2,223,1006,224,329,1001,223,1,223,8,677,226,224,102,2,223,223,1006,224,344,101,1,223,223,1107,226,226,224,1002,223,2,223,1006,224,359,1001,223,1,223,1108,677,226,224,102,2,223,223,1005,224,374,1001,223,1,223,1007,226,226,224,102,2,223,223,1006,224,389,1001,223,1,223,108,677,677,224,1002,223,2,223,1005,224,404,1001,223,1,223,1007,677,677,224,102,2,223,223,1005,224,419,1001,223,1,223,8,226,677,224,102,2,223,223,1005,224,434,101,1,223,223,1008,677,226,224,102,2,223,223,1006,224,449,1001,223,1,223,7,677,677,224,102,2,223,223,1006,224,464,1001,223,1,223,8,226,226,224,1002,223,2,223,1005,224,479,1001,223,1,223,7,226,677,224,102,2,223,223,1006,224,494,1001,223,1,223,7,677,226,224,1002,223,2,223,1005,224,509,101,1,223,223,107,677,677,224,102,2,223,223,1006,224,524,101,1,223,223,1007,677,226,224,102,2,223,223,1006,224,539,101,1,223,223,107,226,226,224,1002,223,2,223,1006,224,554,101,1,223,223,1008,226,226,224,102,2,223,223,1006,224,569,1001,223,1,223,1107,677,226,224,1002,223,2,223,1005,224,584,101,1,223,223,1107,226,677,224,102,2,223,223,1005,224,599,101,1,223,223,1108,226,677,224,102,2,223,223,1005,224,614,101,1,223,223,108,677,226,224,102,2,223,223,1005,224,629,101,1,223,223,107,226,677,224,102,2,223,223,1006,224,644,1001,223,1,223,1108,226,226,224,1002,223,2,223,1006,224,659,101,1,223,223,108,226,226,224,102,2,223,223,1005,224,674,101,1,223,223,4,223,99,226]
def get_mode(first):
opcode = first % 100
modes = [int(d) for d in str(int(first/100))]
modes = [0] * (3-len(modes))+ modes
return opcode, modes[::-1]
def get_value(seq, pos, immediate):
if immediate:
return seq[pos]
else:
return seq[seq[pos]]
def process_seq(seq):
pos = 0
opcode = 0
while seq[pos] != 99:
opcode, modes = get_mode(seq[pos])
print(opcode, modes)
if opcode == 99:
print('final', seq[0])
elif opcode == 1:
# print('pos', pos, 'seq', seq[pos:pos+4])
v1 = get_value(seq, pos+1, modes[0])
v2 = get_value(seq, pos+2, modes[1])
dest = seq[pos+3]
# print('v1, v2, dest, res', v1, v2, dest, v1+v2)
seq[dest] = v1+v2
pos += 4
elif opcode == 2:
# print('pos', pos, 'seq', seq[pos:pos+4])
v1 = get_value(seq, pos+1, modes[0])
v2 = get_value(seq, pos+2, modes[1])
dest = seq[pos+3]
seq[dest] = v1*v2
# print('v1, v2, dest, res', v1, v2, dest, v1*v2)
pos += 4
elif opcode == 3:
# print('pos', pos, 'seq', seq[pos:pos+2])
dest = seq[pos+1]
seq[dest] = 5
# print('dest, res', dest, 1)
pos += 2
elif opcode == 4:
# print('pos', pos, 'seq', seq[pos:pos+2])
v1 = get_value(seq, pos+1, modes[0])
print('out:', v1)
pos += 2
elif opcode == 5:
v1 = get_value(seq, pos+1, modes[0])
v2 = get_value(seq, pos+2, modes[1])
if v1 != 0:
pos = v2
else:
pos += 3
elif opcode == 6:
v1 = get_value(seq, pos+1, modes[0])
v2 = get_value(seq, pos+2, modes[1])
if v1 == 0:
pos = v2
else:
pos += 3
elif opcode == 7:
v1 = get_value(seq, pos+1, modes[0])
v2 = get_value(seq, pos+2, modes[1])
dest = seq[pos+3]
seq[dest] = int(v1 < v2)
pos += 4
elif opcode == 8:
v1 = get_value(seq, pos+1, modes[0])
v2 = get_value(seq, pos+2, modes[1])
dest = seq[pos+3]
seq[dest] = int(v1 == v2)
pos += 4
print(process_seq(seq))
# Taken from https://github.com/sophiebits/adventofcode/blob/master/2019/day5.py
# for debugging
import collections
import math
import re
import sys
import sortedcollections
data = [3,225,1,225,6,6,1100,1,238,225,104,0,1001,152,55,224,1001,224,-68,224,4,224,1002,223,8,223,1001,224,4,224,1,224,223,223,1101,62,41,225,1101,83,71,225,102,59,147,224,101,-944,224,224,4,224,1002,223,8,223,101,3,224,224,1,224,223,223,2,40,139,224,1001,224,-3905,224,4,224,1002,223,8,223,101,7,224,224,1,223,224,223,1101,6,94,224,101,-100,224,224,4,224,1002,223,8,223,101,6,224,224,1,224,223,223,1102,75,30,225,1102,70,44,224,101,-3080,224,224,4,224,1002,223,8,223,1001,224,4,224,1,223,224,223,1101,55,20,225,1102,55,16,225,1102,13,94,225,1102,16,55,225,1102,13,13,225,1,109,143,224,101,-88,224,224,4,224,1002,223,8,223,1001,224,2,224,1,223,224,223,1002,136,57,224,101,-1140,224,224,4,224,1002,223,8,223,101,6,224,224,1,223,224,223,101,76,35,224,1001,224,-138,224,4,224,1002,223,8,223,101,5,224,224,1,223,224,223,4,223,99,0,0,0,677,0,0,0,0,0,0,0,0,0,0,0,1105,0,99999,1105,227,247,1105,1,99999,1005,227,99999,1005,0,256,1105,1,99999,1106,227,99999,1106,0,265,1105,1,99999,1006,0,99999,1006,227,274,1105,1,99999,1105,1,280,1105,1,99999,1,225,225,225,1101,294,0,0,105,1,0,1105,1,99999,1106,0,300,1105,1,99999,1,225,225,225,1101,314,0,0,106,0,0,1105,1,99999,1008,677,677,224,1002,223,2,223,1006,224,329,1001,223,1,223,8,677,226,224,102,2,223,223,1006,224,344,101,1,223,223,1107,226,226,224,1002,223,2,223,1006,224,359,1001,223,1,223,1108,677,226,224,102,2,223,223,1005,224,374,1001,223,1,223,1007,226,226,224,102,2,223,223,1006,224,389,1001,223,1,223,108,677,677,224,1002,223,2,223,1005,224,404,1001,223,1,223,1007,677,677,224,102,2,223,223,1005,224,419,1001,223,1,223,8,226,677,224,102,2,223,223,1005,224,434,101,1,223,223,1008,677,226,224,102,2,223,223,1006,224,449,1001,223,1,223,7,677,677,224,102,2,223,223,1006,224,464,1001,223,1,223,8,226,226,224,1002,223,2,223,1005,224,479,1001,223,1,223,7,226,677,224,102,2,223,223,1006,224,494,1001,223,1,223,7,677,226,224,1002,223,2,223,1005,224,509,101,1,223,223,107,677,677,224,102,2,223,223,1006,224,524,101,1,223,223,1007,677,226,224,102,2,223,223,1006,224,539,101,1,223,223,107,226,226,224,1002,223,2,223,1006,224,554,101,1,223,223,1008,226,226,224,102,2,223,223,1006,224,569,1001,223,1,223,1107,677,226,224,1002,223,2,223,1005,224,584,101,1,223,223,1107,226,677,224,102,2,223,223,1005,224,599,101,1,223,223,1108,226,677,224,102,2,223,223,1005,224,614,101,1,223,223,108,677,226,224,102,2,223,223,1005,224,629,101,1,223,223,107,226,677,224,102,2,223,223,1006,224,644,1001,223,1,223,1108,226,226,224,1002,223,2,223,1006,224,659,101,1,223,223,108,226,226,224,102,2,223,223,1005,224,674,101,1,223,223,4,223,99,226]
def tryrun(prog):
pc = 0
inputs = [5]
arity = {99: 0, 1: 3, 2: 3, 3: 1, 4: 1, 5: 2, 6: 2, 7: 3, 8: 3}
def parse():
nonlocal pc
op = prog[pc]
pc += 1
vals = []
locs = []
for i in range(arity[op % 100]):
mode = (op // (10 ** (2 + i))) % 10
vals.append(prog[pc] if mode == 1 else prog[prog[pc]])
locs.append(None if mode == 1 else prog[pc])
pc += 1
return op % 100, vals, locs
while prog[pc] != 99:
op, vals, locs = parse()
if op == 1:
prog[locs[2]] = vals[0] + vals[1]
elif op == 2:
prog[locs[2]] = vals[0] * vals[1]
elif op == 3:
prog[locs[0]] = inputs[0]
del inputs[0]
elif op == 4:
print('out:', vals[0])
elif op == 5:
if vals[0] != 0:
pc = vals[1]
elif op == 6:
if vals[0] == 0:
pc = vals[1]
elif op == 7:
prog[locs[2]] = int(vals[0] < vals[1])
elif op == 8:
prog[locs[2]] = int(vals[0] == vals[1])
else:
assert False
return prog[0]
tryrun(data)
| 63.914286
| 2,559
| 0.605051
| 1,889
| 8,948
| 2.856538
| 0.090524
| 0.06894
| 0.059303
| 0.059303
| 0.842847
| 0.837287
| 0.834322
| 0.82765
| 0.806338
| 0.789288
| 0
| 0.530576
| 0.175793
| 8,948
| 139
| 2,560
| 64.374101
| 0.201085
| 0.053643
| 0
| 0.309735
| 0
| 0
| 0.001537
| 0
| 0
| 0
| 0
| 0
| 0.00885
| 1
| 0.044248
| false
| 0
| 0.044248
| 0
| 0.132743
| 0.044248
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
8bf65cc9e72b115ca58846abb51a37682c67bca0
| 5,654
|
py
|
Python
|
src/server/TCGA/IDAppender.py
|
ucsd-ccbb/Oncolist
|
a3c7ecde6f665a665873e5aa7be5bc3778f5b17e
|
[
"MIT"
] | null | null | null |
src/server/TCGA/IDAppender.py
|
ucsd-ccbb/Oncolist
|
a3c7ecde6f665a665873e5aa7be5bc3778f5b17e
|
[
"MIT"
] | null | null | null |
src/server/TCGA/IDAppender.py
|
ucsd-ccbb/Oncolist
|
a3c7ecde6f665a665873e5aa7be5bc3778f5b17e
|
[
"MIT"
] | null | null | null |
__author__ = 'guorongxu'
import os
import sys
## To process JSON files and append an id for each document.
def process_louvain_cluster_json(workspace, data_set):
root_json_dir = workspace + "/" + data_set + "/louvain_json_files"
##id number rule:
# the first digital "2" is the cluster index id;
# the first two digital "02" is the TCGA louvain cluster type id;
# the last sever digital "0000000" is the id.
id_num = 2020000000
for dirpath, directories, filenames in os.walk(root_json_dir):
for filename in filenames:
if filename.find(".json") > -1 and filename.find("gamma") > -1:
input_file = os.path.join(dirpath, filename)
output_file = input_file.replace(".json", ".json.new")
if not os.path.exists(output_file):
filewriter = open(output_file, "a")
with open(input_file) as fp:
lines = fp.readlines()
for line in lines:
if line.startswith("curl -XPOST"):
filewriter.write(line.replace(" -d", "/" + str(id_num) + " -d"))
id_num = id_num + 1
else:
filewriter.write(line)
fp.closed
filewriter.close()
## To process JSON files and append an id for each document.
def process_ivanovska_cluster_json(workspace, data_set):
root_json_dir = workspace + "/" + data_set + "/ivanovska_json_files"
##id number rule:
# the first digital "2" is the cluster index id;
# the first two digital "03" is the TCGA ivanovska cluster type id;
# the last sever digital "0000000" is the id.
id_num = 2030000000
for dirpath, directories, filenames in os.walk(root_json_dir):
for filename in filenames:
if filename.find(".json") > -1 and filename.find("gamma") > -1:
input_file = os.path.join(dirpath, filename)
output_file = input_file.replace(".json", ".json.new")
if not os.path.exists(output_file):
filewriter = open(output_file, "a")
with open(input_file) as fp:
lines = fp.readlines()
for line in lines:
if line.startswith("curl -XPOST"):
filewriter.write(line.replace(" -d", "/" + str(id_num) + " -d"))
id_num = id_num + 1
else:
filewriter.write(line)
fp.closed
filewriter.close()
## To process JSON files and append an id for each document.
def process_oslom_cluster_json(workspace, data_set):
root_json_dir = workspace + "/" + data_set + "/oslom_undirected_json_files"
##id number rule:
# the first digital "2" is the cluster index id;
# the first two digital "04" is the TCGA oslom cluster type id;
# the last sever digital "0000000" is the id.
id_num = 2040000000
for dirpath, directories, filenames in os.walk(root_json_dir):
for filename in filenames:
if filename.find(".json") > -1 and filename.find("gamma") > -1:
input_file = os.path.join(dirpath, filename)
output_file = input_file.replace(".json", ".json.new")
if not os.path.exists(output_file):
filewriter = open(output_file, "a")
with open(input_file) as fp:
lines = fp.readlines()
for line in lines:
if line.startswith("curl -XPOST"):
filewriter.write(line.replace(" -d", "/" + str(id_num) + " -d"))
id_num = id_num + 1
else:
filewriter.write(line)
fp.closed
filewriter.close()
## To process JSON files and append an id for each document.
def process_star_json(workspace, data_set):
root_json_dir = workspace + "/" + data_set + "/json_files"
##id number rule:
# the first digital "1" is the genes index id;
# the first two digital "02" is the TCGA star type id;
# the last sever digital "0000000" is the id.
id_num = 1020000000
for dirpath, directories, filenames in os.walk(root_json_dir):
for filename in filenames:
if filename.find(".json") > -1 and filename.find("genes_tcga") > -1:
input_file = os.path.join(dirpath, filename)
output_file = input_file.replace(".json", ".json.new")
if not os.path.exists(output_file):
filewriter = open(output_file, "a")
with open(input_file) as fp:
lines = fp.readlines()
for line in lines:
if line.startswith("curl -XPOST"):
filewriter.write(line.replace(" -d", "/" + str(id_num) + " -d"))
id_num = id_num + 1
else:
filewriter.write(line)
fp.closed
filewriter.close()
## Main entry
if __name__ == "__main__":
workspace = sys.argv[1]
data_set = sys.argv[2]
#workspace = "/Users/guorongxu/Desktop/SearchEngine"
#data_set = "TCGA"
process_oslom_cluster_json(workspace, data_set)
#process_star_json(workspace, data_set)
| 42.833333
| 96
| 0.533428
| 656
| 5,654
| 4.4375
| 0.144817
| 0.027482
| 0.054964
| 0.041223
| 0.900378
| 0.900378
| 0.888355
| 0.873239
| 0.860873
| 0.860873
| 0
| 0.026308
| 0.368058
| 5,654
| 131
| 97
| 43.160305
| 0.788413
| 0.179519
| 0
| 0.770115
| 0
| 0
| 0.060152
| 0.010641
| 0
| 0
| 0
| 0
| 0
| 1
| 0.045977
| false
| 0
| 0.022989
| 0
| 0.068966
| 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
|
e30f9a9a670d6e69abc13d9895f33e34b0cbadb5
| 19,409
|
py
|
Python
|
group/views.py
|
KarryBanana/-_ckr-zfy
|
926160fc23e18b10189cd17861b81448b770c50d
|
[
"MIT"
] | null | null | null |
group/views.py
|
KarryBanana/-_ckr-zfy
|
926160fc23e18b10189cd17861b81448b770c50d
|
[
"MIT"
] | null | null | null |
group/views.py
|
KarryBanana/-_ckr-zfy
|
926160fc23e18b10189cd17861b81448b770c50d
|
[
"MIT"
] | null | null | null |
# Create your views here.
import pymysql
from django.http import JsonResponse
def test_doc(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
id=request.POST['num']
# msg=request.POST['msg']
# sql="insert into doctest values("+str(id)+","+'"'+msg+'"'+")"
# print(sql)
# cur.execute(sql)
# cur.connection.commit()
sql="select msg from doctest where id="+str(id)
cur.execute(sql)
chars=""
for row in cur:
chars=row[0]
con.close()
return JsonResponse(chars,safe=False)
def test_post(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
sql="select * from Testlist"
cur.execute(sql)
con.close()
return JsonResponse(cur.fetchall(),safe=False)
def create_group(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
groupname=request.POST['groupname']
groupsize=1
groupintro=request.POST['groupintro']
id=request.POST['id']
sql="select groupnum from Grouplist order by groupnum desc limit 1"
cur.execute(sql)
for row in cur:
groupnum=row[0]+1
cur=con.cursor()
sql="insert into Grouplist values("+'"'+str(groupname)+'"'+','+str(groupnum)+","+str(groupsize)+','+'"'+str(groupintro)+'"'+","+str(id)+")"
cur.execute(sql)
cur.connection.commit()
cur=con.cursor()
sql="insert into Joinlist values("+str(groupnum)+","+str(id)+",1,1)"
cur.execute(sql)
cur.connection.commit()
con.close()
if(cur!=None):return JsonResponse(1,safe=False)
else:return JsonResponse(0,safe=False)
def join_group(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
# username=request.POST['username']
# id=get_num_by_name(username)
id=request.POST['id']
groupnum=request.POST['groupnum']
sql="select count(*) from Joinlist where id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
join=0
for row in cur:
join=row[0]
if join==1:return JsonResponse(2,safe=False)
sql="insert into Joinlist values("+str(groupnum)+","+str(id)+",0,0)"
cur.execute(sql)
# cur.connection.commit()
sql ="update Grouplist set groupsize=groupsize+1 where groupnum="+str(groupnum)
cur.execute(sql)
send_notice(id, groupnum, 1)
cur.connection.commit()
con.close()
if(cur!=None):return JsonResponse(1,safe=False)
else:return JsonResponse(0,safe=False)
def quit_group(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
# username=request.POST['username']
# id=get_num_by_name(username)
id=request.POST['id']
groupnum=request.POST['groupnum']
sql = "select count(*) from Joinlist where id=" + str(id) + " and groupnum=" + str(groupnum)
cur.execute(sql)
join = 1
for row in cur:
join = row[0]
if join == 0: return JsonResponse(2, safe=False)
sql="delete from Joinlist where id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
# cur.connection.commit()
sql="select id from Table_file where author_id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
for row in cur:
docnum=row[0]
change_stat_func(docnum,-1)
#还需要再对文档的归属和权限作品进行处理
groupname=""
sql="select groupname from Grouplist where groupnum="+str(groupnum)
cur.execute(sql)
for row in cur:
groupname=row[0]
content="您已成功退出团队 "+groupname+"."
sql="select count(*) from Noticelist"
cur.execute(sql)
for row in cur:
nid=row[0]+1
sql="insert into Noticelist values("+str(nid)+","+str(id)+",'"+content+"',now(),0,2)"
cur.execute(sql)
cur.connection.commit()
send_notice(id, groupnum, -1)
sql = "update Grouplist set groupsize=groupsize-1 where groupnum=" + str(groupnum)
print(sql)
cur.execute(sql)
cur.connection.commit()
con.close()
if(cur!=None):return JsonResponse(1,safe=False)
else:return JsonResponse(0,safe=False)
def set_admin(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
users=request.POST['users']
groupnum=request.POST['groupnum']
users=users.split(',')
for id in users:
sql="update Joinlist set isadmin=1 where id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
cur.connection.commit()
con.close()
if(cur!=None):return JsonResponse(1,safe=False)
else:return JsonResponse(0,safe=False)
def cancel_admin(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
users=request.POST['users']
groupnum=request.POST['groupnum']
users=users.split(',')
for id in users:
cur=con.cursor()
sql="update Joinlist set isadmin=0 where id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
cur.connection.commit()
con.close()
if(cur!=None):return JsonResponse(1,safe=False)
else:return JsonResponse(0,safe=False)
def get_users(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
groupnum=request.POST['groupnum']
sql="select username,auth_user.id,isleader,isadmin from (auth_user join Joinlist on auth_user.id=Joinlist.id) where groupnum="+str(groupnum)
cur.execute(sql)
con.close()
return JsonResponse(cur.fetchall(),safe=False)
def get_groups(request):
con = pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb",charset="utf8")
cur = con.cursor()
id = request.POST['id']
sql = "select groupname,Grouplist.groupnum,groupsize,groupintro from (Grouplist join Joinlist on Grouplist.groupnum=Joinlist.groupnum) where Joinlist.id=" + str(id)
cur.execute(sql)
con.close()
return JsonResponse(cur.fetchall(), safe=False)
def search_groups(request):
con = pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb",charset="utf8")
cur = con.cursor()
key = request.POST['key']
sql = "select groupname,Grouplist.groupnum,groupsize,groupintro from Grouplist where groupname like '%"+key+"%'"
cur.execute(sql)
con.close()
return JsonResponse(cur.fetchall(), safe=False)
def kick_out_user(request):
con = pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb",charset="utf8")
cur = con.cursor()
id=request.POST['id']
groupnum=request.POST['groupnum']
groupname=""
sql="select groupname from Grouplist where groupnum="+str(groupnum)
cur.execute(sql)
for row in cur:
groupname=row[0]
content="您已被管理员移出团队 "+groupname+"."
sql = "select count(*) from Noticelist"
cur.execute(sql)
for row in cur:
nid = row[0] + 1
sql = "insert into Noticelist values("+str(nid)+"," + str(id) + ",'" + content + "',now(),0,2)"
cur.execute(sql)
cur.connection.commit()
con.close()
r=quit_group_func(id,groupnum,-1)
return JsonResponse(r,safe=False)
def dismiss_group(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
groupnum=request.POST['groupnum']
sql="select id from Joinlist where groupnum="+str(groupnum)
cur.execute(sql)
love_hk=cur.fetchall()
sql="select groupname from Grouplist where groupnum="+str(groupnum)
cur.execute(sql)
groupname=""
for row in cur:
groupname=row[0]
content="团队 "+groupname+" 已被解散."
for row in love_hk:
id=row[0]
sql = "select count(*) from Noticelist"
cur.execute(sql)
for row in cur:
nid = row[0] + 1
sql = "insert into Noticelist values(" + str(nid) + "," + str(id) + ",'" + content + "',now(),0,2)"
cur.execute(sql)
cur.connection.commit()
for row in cur:
id=row[0]
quit_group_func(id,groupnum,-2)
sql="delete from Grouplist where groupnum="+str(groupnum)
cur.execute(sql)
sql="delete from Joinlist where groupnum="+str(groupnum)
cur.execute(sql)
cur.connection.commit()
con.close()
return JsonResponse(1,safe=False)
def send_invitation(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
sendid=request.POST['id']
groupnum=request.POST['groupnum']
receivename=request.POST['receivename']
receiveid=get_num_by_name(receivename)
sql="select count(*) from Joinlist where groupnum="+str(groupnum)+" and id="+str(receiveid)
cur.execute(sql)
for row in cur:
ex=row[0]
if ex>=1:return JsonResponse(2,safe=False)
sql="select count(*) from Msglist"
cur.execute(sql)
for row in cur:
mid=row[0]+1
sql="insert into Msglist values("+str(sendid)+","+str(receiveid)+","+str(groupnum)+",0,now(),"+str(mid)+")"
cur.execute(sql)
cur.connection.commit()
# sql = "select count(*) from Msglist"
# cur.execute(sql)
# for row in cur:
# mid = row[0] + 1
# sql = "insert into Msglist values(" + str(sendid) + "," + str(receiveid) + "," + str(groupnum) + ",0,now()," + str(
# mid) + ",)"
# cur.execute(sql)
# cur.connection.commit()
con.close()
return JsonResponse(1,safe=False)
def get_invitation_a(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
id=request.POST['id']
sql="select Msglist.mid,auth_user.username,Grouplist.groupnum,Grouplist.groupname,Msglist.ishandle,mtime from ((auth_user join Msglist on auth_user.id=Msglist.sendid) join Grouplist on Msglist.groupnum=Grouplist.groupnum) where Msglist.ishandle<>-5 and Msglist.receiveid="+str(id)
cur.execute(sql)
con.close()
return JsonResponse(cur.fetchall(),safe=False)
def get_invitation_b(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
id=request.POST['id']
sql="select Msglist.mid,auth_user.username,Grouplist.groupnum,Grouplist.groupname,Msglist.ishandle,mtime from ((auth_user join Msglist on auth_user.id=Msglist.receiveid) join Grouplist on Msglist.groupnum=Grouplist.groupnum) where Msglist.ishandle<>-5 and Msglist.sendid="+str(id)
cur.execute(sql)
con.close()
return JsonResponse(cur.fetchall(),safe=False)
def handle_invitation(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
id=request.POST['id']
groupnum=request.POST['groupnum']
op=request.POST['op']
op=int(op)
sql="update Msglist set ishandle="+str(op)+" where receiveid="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
if op==1:
join_group_func(id,groupnum)
cur.connection.commit()
con.close()
return JsonResponse(1,safe=False)
def delete_invitation(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
mid=request.POST['mid']
# sql="delete from Msglist where mid="+str(mid)
sql="update Msglist set ishandle=-5 where mid="+str(mid)
cur.execute(sql)
cur.connection.commit()
con.close()
return JsonResponse(1,safe=False)
def clear_invitation(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
id=request.POST['mid']
# sql="delete from Msglist where sendid="+str(id)
sql="update Msglist set ishandle=-5 where sendid="+str(id)
cur.execute(sql)
cur.connection.commit()
con.close()
return JsonResponse(1,safe=False)
def delete_invitation(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
mid=request.POST['mid']
sql="delete from Msglist where mid="+str(mid)
cur.execute(sql)
cur.connection.commit()
con.close()
return JsonResponse(1,safe=False)
# def send_message(request):
# con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
# cur=con.cursor()
# id=request.POST['id']
# groupnum=request.POST['groupnum']
# sql="insert into Msglist values("+str(id)+",,"+str(groupnum)+",0)"
# cur.execute(sql)
# cur.connection.commit()
# con.close()
# return JsonResponse(1,safe=False)
#
#
# def get_send_message(request):
# con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
# cur=con.cursor()
# id=request.POST['id']
# op=request.POST['op']
# if op==1:sql="select groupname,ishandle from (Grouplist join Msglist where Grouplist.groupnum=Msglist.groupnum) and sendid="+str(id)
# elif op==2:sql="select username,groupname,ishandle from (Grouplist join Msglist on Grouplist.groupnum=Msglist.groupnum) join auth_user on Msglist.receiveid=auth_user.id and sendid="+str(id)
# cur.execute(sql)
# con.close()
# return JsonResponse(cur.fetchall(),safe=False)
def get_num_by_name(username):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
sql="select id from auth_user where username='"+username+"'"
print(sql)
cur.execute(sql)
for row in cur:
id=row[0]
con.close()
return id
def quit_group_func(id,groupnum,op):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
# username=request.POST['username']
# id=get_num_by_name(username)
# id=request.POST['id']
# groupnum=request.POST['groupnum']
sql = "select count(*) from Joinlist where id=" + str(id) + " and groupnum=" + str(groupnum)
cur.execute(sql)
join = 1
for row in cur:
join = row[0]
if join == 0: return JsonResponse(2, safe=False)
sql="delete from Joinlist where id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
# cur.connection.commit()
sql = "select id from Table_file where author_id=" + str(id) + " and groupnum=" + str(groupnum)
cur.execute(sql)
for row in cur:
docnum = row[0]
change_stat_func(docnum, -1)
#还需要再对文档的归属和权限作品进行处理
if op==-1:send_notice(id, groupnum, op)
sql = "update Grouplist set groupsize=groupsize-1 where groupnum=" + str(groupnum)
print(sql)
cur.execute(sql)
cur.connection.commit()
con.close()
if(cur!=None):return JsonResponse(1,safe=False)
else:return JsonResponse(0,safe=False)
def join_group_func(id,groupnum):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
# username=request.POST['username']
# id=get_num_by_name(username)
# id=request.POST['id']
# groupnum=request.POST['groupnum']
sql="select count(*) from Joinlist where id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
join=0
for row in cur:
join=row[0]
if join==1:return JsonResponse(2,safe=False)
sql="insert into Joinlist values("+str(groupnum)+","+str(id)+",0,0)"
cur.execute(sql)
# cur.connection.commit()
sql ="update Grouplist set groupsize=groupsize+1 where groupnum="+str(groupnum)
cur.execute(sql)
groupname = ""
sql = "select groupname from Grouplist where groupnum=" + str(groupnum)
cur.execute(sql)
for row in cur:
groupname = row[0]
content = "您已成功加入团队 " + groupname + "."
sql = "select count(*) from Noticelist"
cur.execute(sql)
for row in cur:
nid = row[0] + 1
sql = "insert into Noticelist values(" + str(nid) + "," + str(id) + ",'" + content + "',now(),0,2)"
cur.execute(sql)
cur.connection.commit()
send_notice(id,groupnum,1)
con.close()
if(cur!=None):return JsonResponse(1,safe=False)
else:return JsonResponse(0,safe=False)
def change_stat_func(docnum,stat):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
sql="delete from Authlist where docnum="+str(docnum)
cur.execute(sql)
sql="update Table_file set stat="+str(stat)+" where id="+str(docnum)
cur.execute(sql)
cur.connection.commit()
con.close()
if cur!=None:return 1
else:return 0
def send_notice(id,groupnum,op):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
username=""
groupname=""
if op==1:opc="加入"
elif op==-1:opc="退出"
sql="select username from auth_user where id="+str(id)
cur.execute(sql)
for row in cur:
username=row[0]
sql = "select groupname from Grouplist where groupnum=" + str(groupnum)
cur.execute(sql)
for row in cur:
groupname = row[0]
content=username+" 已"+opc+"团队 "+groupname+"."
sql="select id from Joinlist where groupnum="+str(groupnum)+" and isadmin=1 and id<>"+str(id)
cur.execute(sql)
love_hk=cur.fetchall()
for row in love_hk:
userid=row[0]
sql = "select count(*) from Noticelist"
cur.execute(sql)
for row in cur:
nid = row[0] + 1
sql = "insert into Noticelist values("+str(nid)+"," + str(userid) + ",'" + content + "',now(),0,2)"
cur.execute(sql)
cur.connection.commit()
cur.connection.commit()
con.close()
return 1
def get_leader(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
groupnum=request.POST['groupnum']
sql="select id from Grouplist where groupnum="+str(groupnum)
cur.execute(sql)
for row in cur:
uid=row[0]
con.close()
return JsonResponse(uid,safe=False)
def get_identity(request):
con=pymysql.connect(host="39.97.101.50", port=3306, user="root", password="rjgcxxq", database="xxqdb", charset="utf8")
cur=con.cursor()
id=request.POST['id']
groupnum=request.POST['groupnum']
sql="select isleader,isadmin from Joinlist where id="+str(id)+" and groupnum="+str(groupnum)
cur.execute(sql)
for row in cur:
isleader=row[0]
isadmin=row[1]
identity=0
if isleader==1:identity=3
elif isleader!=1 and isadmin==1:identity=2
else:identity=1
con.close()
return JsonResponse(identity,safe=False)
| 35.744015
| 284
| 0.655984
| 2,687
| 19,409
| 4.70562
| 0.056197
| 0.049826
| 0.064774
| 0.046504
| 0.875593
| 0.847358
| 0.824818
| 0.792708
| 0.7795
| 0.750475
| 0
| 0.032498
| 0.177186
| 19,409
| 543
| 285
| 35.744015
| 0.759236
| 0.106755
| 0
| 0.749398
| 0
| 0.009639
| 0.248134
| 0.034547
| 0.00241
| 0
| 0
| 0
| 0
| 1
| 0.062651
| false
| 0.062651
| 0.004819
| 0
| 0.110843
| 0.007229
| 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
|
e32140f30d9f0e21a0c924014013c10dc4ffeb3a
| 13,496
|
py
|
Python
|
test_conv.py
|
Vermeille/miniconv
|
24ab1f8aa276acff22356c4d4af0f3e87bec5f19
|
[
"MIT"
] | null | null | null |
test_conv.py
|
Vermeille/miniconv
|
24ab1f8aa276acff22356c4d4af0f3e87bec5f19
|
[
"MIT"
] | null | null | null |
test_conv.py
|
Vermeille/miniconv
|
24ab1f8aa276acff22356c4d4af0f3e87bec5f19
|
[
"MIT"
] | null | null | null |
import miniconv
from scipy.ndimage.filters import convolve
from scipy.signal import convolve2d
import numpy as np
np.random.seed(0)
def conv(x, ker):
if type(ker) is not list:
ker = [ker]
res = []
for k in ker:
out = np.zeros((x.shape[0], x.shape[1]), dtype=float)
for i in range(k.shape[2]):
out += convolve(x[:, :, i], k[:, :, i], mode='constant')
res.append(out)
return np.dstack(res).squeeze()
def test_conv1():
rand = np.random.rand(6, 6, 1)
ker = np.array([[[0], [0], [0]], [[0], [1], [0]], [[0], [0], [0]]])
b = miniconv.Conv()
b.set_filters([ker], [0])
mine = b.forward(rand)
theirs = conv(rand, ker)
diff = theirs - mine.squeeze()
ok = np.abs(diff).max() < 1e-7
if not ok:
print('test_conv1()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :, 0])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv2():
rand = np.random.rand(6, 6, 1)
ker = np.array([[[0], [0], [0]], [[0], [0], [1]], [[0], [0], [0]]])
b = miniconv.Conv()
b.set_filters([ker], [0])
mine = b.forward(rand)
theirs = conv(rand, ker)
diff = theirs - mine.squeeze()
ok = np.abs(diff).max() < 1e-7
if not ok:
print('test_conv2()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :, 0])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv3():
rand = np.random.rand(6, 6, 1)
ker = np.random.rand(3, 5, 1)
b = miniconv.Conv()
b.set_filters([ker], [0])
mine = b.forward(rand)
theirs = conv(rand, ker)
diff = theirs.squeeze() - mine.squeeze()
ok = np.abs(diff).max() < 1e-6
if not ok:
print('test_conv3()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :, 0])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv4():
rand = np.random.rand(6, 6, 1)
ker1 = np.random.rand(3, 3, 1)
ker2 = np.random.rand(3, 3, 1)
b = miniconv.Conv()
b.set_filters([ker1, ker2], [0, 0])
mine = b.forward(rand)
theirs = conv(rand, [ker1, ker2]),
diff = theirs - mine.squeeze()
ok = np.abs(diff).max() < 1e-6
if not ok:
print('test_conv4()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :, 0])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv3d1():
rand = np.random.rand(6, 6, 3)
ker = np.array([[[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]]])
b = miniconv.Conv()
b.set_filters([ker], [0])
mine = b.forward(rand)
theirs = conv(rand, ker)
diff = theirs - mine.squeeze()
ok = np.abs(diff).max() < 1e-6
if not ok:
print('test_conv3d1()')
print(mine.shape)
print(theirs.shape)
print('rand:')
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv3d2():
rand = np.random.rand(6, 6, 3)
ker = np.array([[[0, 0, 0], [0, -1, 0], [0, 0, 0]],
[[-1, 0, 0], [1, 1, 1], [0, 0, 0]], [[0, 0, 0], [0, 0, 0],
[0, 0, -1]]])
b = miniconv.Conv()
b.set_filters([ker], [0])
mine = b.forward(rand)
theirs = conv(rand, ker)
diff = theirs - mine.squeeze()
ok = np.abs(diff).max() < 1e-6
if not ok:
print('test_conv3d2()')
print(mine.shape)
print(theirs.shape)
print('rand:')
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv3d3():
rand = np.random.rand(6, 6, 3)
ker = np.random.rand(3, 3, 3)
b = miniconv.Conv()
b.set_filters([ker], [0])
mine = b.forward(rand)
theirs = conv(rand, ker)
diff = theirs - mine.squeeze()
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv3d3()')
print(mine.shape)
print(theirs.shape)
print('rand:')
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv3d4():
rand = np.random.rand(6, 6, 3)
ker1 = np.random.rand(3, 3, 3)
ker2 = np.random.rand(3, 3, 3)
b = miniconv.Conv()
b.set_filters([ker1, ker2], [0, 0])
mine = b.forward(rand)
theirs = conv(rand, [ker1, ker2]),
diff = theirs - mine
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv3d4()')
print(mine.shape)
print(theirs.shape)
print('rand:')
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
#print(theirs[:,:])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def deconv(ximg, w, dout):
dw = np.zeros(w.shape)
padded = np.pad(
ximg, ((w.shape[0] // 2, w.shape[0] // 2),
(w.shape[1] // 2, w.shape[1] // 2), (0, 0)),
'constant',
constant_values=0)
pdx = np.zeros(padded.shape)
for y in range(ximg.shape[0]):
for x in range(ximg.shape[1]):
img_y = y
img_x = x
for c in range(w.shape[2]):
for wy in range(w.shape[0]):
for wx in range(w.shape[1]):
dw[wy, wx, c] += padded[img_y + wy, img_x + wx,
c] * dout[y, x]
pdx[img_y + wy, img_x + wx, c] += w[wy, wx, c] * dout[
y, x]
dx = pdx[1:-1, 1:-1, :]
return dw.squeeze(), dx.squeeze()
def test_conv_back1():
rand = np.random.rand(6, 6, 1) * 10
eps = np.random.rand(6, 6, 1) / 1e-5
ker = np.array([[[0], [0], [0]], [[0], [1], [0]], [[0], [0], [0]]])
b = miniconv.Conv()
b.set_filters([ker], [0])
res2 = b.forward(rand + eps)
res1 = b.forward(rand - eps)
dout = np.random.rand(6, 6)
theirs = dout * ((res2 - res1) / (2 * eps)).squeeze()
b.forward(rand)
mine = b.backward(dout.reshape(6, 6, 1)).squeeze()
diff = mine - theirs
ok = np.abs(diff).max() < 1e-7
if not ok:
print('test_conv_back1()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv_back2():
rand = np.random.rand(6, 6, 1)
dout = np.random.rand(6, 6)
ker = np.array([[[0], [0], [0]], [[0], [1], [0]], [[0], [0], [0]]])
b = miniconv.Conv()
b.set_filters([ker], [0])
for i in range(6):
for j in range(6):
eps = np.zeros((6, 6, 1), dtype=float)
eps[i, j, 0] = 1
res1 = b.forward(rand + eps)
res2 = b.forward(rand - eps)
theirs = dout * ((res1 - res2) / 2).squeeze()
b.forward(rand)
mine = b.backward(dout.reshape(6, 6, 1)).squeeze()
diff = mine[i, j] - theirs[i, j]
ok = np.abs(diff).max() < 1e-6
if not ok:
print('test_conv_back2()')
print(mine.shape)
print(theirs.shape)
print('input:')
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv_back3():
rand = np.random.rand(6, 6, 1) * 10
dout = np.random.rand(6, 6)
ker = np.random.rand(3, 3, 1)
b = miniconv.Conv()
b.set_filters([ker], [0])
for i in range(6):
for j in range(6):
eps = np.zeros((6, 6, 1), dtype=float)
eps[i, j, 0] = 0.01
res1 = b.forward(rand + eps)
res2 = b.forward(rand - eps)
theirs = deconv(rand, ker, dout)[1]
b.forward(rand)
mine = b.backward(dout.reshape(6, 6, 1)).squeeze()
diff = mine - theirs
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv_back3()')
print(i, j)
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv_back4():
rand = np.random.rand(6, 6, 1)
ker = np.random.rand(3, 3, 1)
b = miniconv.Conv()
b.set_filters([ker], [0])
for i in range(6):
for j in range(6):
eps = np.zeros((6, 6, 1), dtype=float)
eps[i, j, 0] = 1
res1 = b.forward(rand + eps)
res2 = b.forward(rand - eps)
theirs = ((res1 - res2) / 2).squeeze()
b.forward(rand)
mine = b.backward(eps).squeeze()
diff = mine - theirs
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv_back4()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv_back5():
rand = np.random.rand(6, 6, 1)
ker = np.random.rand(3, 3, 1)
b = miniconv.Conv()
b.set_filters([ker], [0])
eps = np.ones((6, 6, 1), dtype=float)
res1 = b.forward(rand + eps)
res2 = b.forward(rand - eps)
theirs = ((res1 - res2) / 2).squeeze()
b.forward(rand)
mine = b.backward(eps).squeeze()
diff = mine - theirs
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv_back5()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv_back_df1():
rand = np.random.rand(12, 6, 1)
ker = np.random.rand(5, 3, 1)
dout = np.random.rand(*rand.shape)
b = miniconv.Conv()
b.set_filters([ker], [0])
b.forward(rand)
b.backward(dout)
mine = b.filters_grad()[0].squeeze()
theirs = deconv(rand, ker, dout)[0]
diff = mine - theirs
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv_back_df1()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv_back_df2():
rand = np.random.rand(12, 6, 4)
ker = np.random.rand(5, 3, 4)
dout = np.random.rand(12, 6, 1)
b = miniconv.Conv()
b.set_filters([ker], [0])
b.forward(rand)
b.backward(dout)
mine = b.filters_grad()[0].squeeze()
theirs = deconv(rand, ker, dout)[0]
diff = mine - theirs
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv_back_df2()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
def test_conv_back_df3():
rand = np.random.rand(12, 6, 4)
ker1 = np.random.rand(5, 3, 4)
ker2 = np.random.rand(5, 3, 4)
dout = np.random.rand(12, 6, 2)
b = miniconv.Conv()
b.set_filters([ker1, ker2], [0, 0])
b.forward(rand)
b.backward(dout)
mine = np.array([b.filters_grad()])
theirs = np.array([
deconv(rand, ker1, dout[:, :, 0])[0],
deconv(rand, ker2, dout[:, :, 1])[0]
])
diff = mine - theirs
ok = np.abs(diff).max() < 1e-5
if not ok:
print('test_conv_back_df2()')
print(mine.shape)
print(theirs.shape)
print(rand.squeeze())
print('theirs:')
print(theirs[:, :])
print('mine:')
print(mine.squeeze())
print('diff:')
print(diff)
test_conv1()
test_conv2()
test_conv3()
test_conv4()
test_conv3d1()
test_conv3d2()
test_conv3d3()
test_conv3d4()
test_conv_back1()
test_conv_back2()
test_conv_back3()
test_conv_back4()
test_conv_back5()
test_conv_back_df1()
test_conv_back_df2()
test_conv_back_df3()
| 24.808824
| 78
| 0.483699
| 1,793
| 13,496
| 3.581149
| 0.060234
| 0.021492
| 0.022894
| 0.022426
| 0.836007
| 0.818876
| 0.793334
| 0.768572
| 0.751596
| 0.748014
| 0
| 0.047476
| 0.33358
| 13,496
| 543
| 79
| 24.854512
| 0.666444
| 0.01067
| 0
| 0.717949
| 0
| 0
| 0.042191
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041958
| false
| 0
| 0.009324
| 0
| 0.055944
| 0.386946
| 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
|
e33e9b243ef6141c70a19748db707f12db95a88e
| 170
|
py
|
Python
|
tf_fourier_features/__init__.py
|
titu1994/tf_fourier_features
|
3aead078ae79a278b9975e21f44560a7f51e3f31
|
[
"MIT"
] | 37
|
2020-06-20T21:39:30.000Z
|
2021-11-08T09:31:22.000Z
|
tf_fourier_features/__init__.py
|
titu1994/tf_fourier_features
|
3aead078ae79a278b9975e21f44560a7f51e3f31
|
[
"MIT"
] | null | null | null |
tf_fourier_features/__init__.py
|
titu1994/tf_fourier_features
|
3aead078ae79a278b9975e21f44560a7f51e3f31
|
[
"MIT"
] | 5
|
2020-06-22T10:24:11.000Z
|
2021-09-10T10:40:08.000Z
|
from tf_fourier_features.fourier_features import FourierFeatureProjection
from tf_fourier_features.fourier_features_mlp import FourierFeatureMLP
__version__ = '0.0.2.1'
| 34
| 73
| 0.882353
| 22
| 170
| 6.318182
| 0.545455
| 0.431655
| 0.18705
| 0.302158
| 0.517986
| 0.517986
| 0
| 0
| 0
| 0
| 0
| 0.025316
| 0.070588
| 170
| 4
| 74
| 42.5
| 0.85443
| 0
| 0
| 0
| 0
| 0
| 0.041176
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
e3790ed19ea246888773898e9cf7a2e448bdc22c
| 3,735
|
py
|
Python
|
pages/07 MultipleChoice/00_multiple_choice.py
|
sebastiandres/stb_chapter_demo_v070
|
3ca5e53ececc678a39b9c79728f427b3e31746fe
|
[
"MIT"
] | null | null | null |
pages/07 MultipleChoice/00_multiple_choice.py
|
sebastiandres/stb_chapter_demo_v070
|
3ca5e53ececc678a39b9c79728f427b3e31746fe
|
[
"MIT"
] | null | null | null |
pages/07 MultipleChoice/00_multiple_choice.py
|
sebastiandres/stb_chapter_demo_v070
|
3ca5e53ececc678a39b9c79728f427b3e31746fe
|
[
"MIT"
] | null | null | null |
import streamlit as st
import streamlit_book as stb
import time
import random
st.title("Multiple Choice Question")
# Default
st.header("Question with minimal arguments")
c1, c2 = st.columns([5,4])
with c1:
st.code("""
stb.multiple_choice("I typically ask recruiters to point out which of these are pokemon",
{"ditto":True,
"jupyter":False,
"pyspark":False,
"scikit":False,
"metapod":True,
"vulpix":True}
)
""")
with c2:
stb.multiple_choice("I typically ask recruiters to point out which of these area pokemon",
{"ditto":True,
"jupyter":False,
"pyspark":False,
"scikit":False,
"metapod":True,
"vulpix":True}
)
# Custom
st.header("Question with all optional arguments")
c1, c2 = st.columns([5,4])
with c1:
st.code("""
stb.multiple_choice("I typically ask recruiters to point out which of these are pokemons",
{"ditto":True,
"jupyter":False,
"pyspark":False,
"scikit":False,
"metapod":True,
"vulpix":True},
success='Indeed!',
error="Gotta catch them all!",
button='Check MY answer'
)
""")
with c2:
stb.multiple_choice("I typically ask recruiters to point out which of these are pokemons",
{"ditto":True,
"jupyter":False,
"pyspark":False,
"scikit":False,
"metapod":True,
"vulpix":True},
success='Indeed!',
error="Gotta catch them all!",
button='Check MY answer'
)
# Custom question
st.header("Question with custom behavior")
c1, c2 = st.columns([5,4])
with c1:
st.code("""
checked_answer, correct_answer = stb.multiple_choice(
"I typically ask recruiters to say which of these are pokemon",
{"ditto":True,
"jupyter":False,
"pyspark":False,
"scikit":False,
"metapod":True,
"vulpix":True},
success='',
error="",
button='Check'
)
if checked_answer:
if correct_answer:
st.info("Bravo!!!")
st.balloons()
else:
st.warning("Gotta pump those numbers, roockie!!!")
else:
st.write("You need to check the answer")
""")
with c2:
checked_answer, correct_answer = stb.multiple_choice(
"I typically ask recruiters to say which of these are pokemon",
{"ditto":True,
"jupyter":False,
"pyspark":False,
"scikit":False,
"metapod":True,
"vulpix":True},
success='',
error="",
button='Check'
)
if checked_answer:
if correct_answer:
st.info("Bravo!!!")
st.balloons()
else:
st.warning("Gotta pump those numbers, roockie!!!")
else:
st.write("You need to check the answer")
| 34.583333
| 94
| 0.433199
| 331
| 3,735
| 4.8429
| 0.229607
| 0.061135
| 0.063631
| 0.067374
| 0.860886
| 0.860886
| 0.860886
| 0.860886
| 0.860886
| 0.860886
| 0
| 0.009009
| 0.46506
| 3,735
| 108
| 95
| 34.583333
| 0.793293
| 0.008032
| 0
| 0.841584
| 0
| 0
| 0.566991
| 0.011885
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.039604
| 0
| 0.039604
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e37bac72d0f93bc5f50a9b43ec4d6a21e85c1780
| 140
|
py
|
Python
|
process_cuwb_data/__init__.py
|
WildflowerSchools/wf-process-cuwb-data
|
8d94eeec82401f0f62ce1e0b7fdefd49e0328921
|
[
"MIT"
] | null | null | null |
process_cuwb_data/__init__.py
|
WildflowerSchools/wf-process-cuwb-data
|
8d94eeec82401f0f62ce1e0b7fdefd49e0328921
|
[
"MIT"
] | 2
|
2020-10-01T18:18:05.000Z
|
2020-12-17T22:40:06.000Z
|
process_cuwb_data/__init__.py
|
WildflowerSchools/wf-process-cuwb-data
|
8d94eeec82401f0f62ce1e0b7fdefd49e0328921
|
[
"MIT"
] | null | null | null |
from .core import *
import process_cuwb_data.uwb_motion_filters
import process_cuwb_data.visualize as visualize
from .parse_events import *
| 28
| 47
| 0.857143
| 21
| 140
| 5.380952
| 0.619048
| 0.230089
| 0.300885
| 0.371681
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 140
| 4
| 48
| 35
| 0.896825
| 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
|
8b82633710b3c80730a71f31f6be1c8b54cbbff5
| 124
|
py
|
Python
|
codes/course7/demo404.py
|
BigShuang/big-shuang-python-introductory-course
|
c4fd1343c4c539567180072c749b68bda7c28075
|
[
"MIT"
] | null | null | null |
codes/course7/demo404.py
|
BigShuang/big-shuang-python-introductory-course
|
c4fd1343c4c539567180072c749b68bda7c28075
|
[
"MIT"
] | null | null | null |
codes/course7/demo404.py
|
BigShuang/big-shuang-python-introductory-course
|
c4fd1343c4c539567180072c749b68bda7c28075
|
[
"MIT"
] | null | null | null |
class AAA:
pass
a = AAA()
print(a.__class__)
print(a.__class__ == AAA)
print(a.__class__.__name__)
print(AAA.__name__)
| 13.777778
| 27
| 0.709677
| 19
| 124
| 3.578947
| 0.315789
| 0.264706
| 0.485294
| 0.411765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137097
| 124
| 9
| 28
| 13.777778
| 0.635514
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0
| 0
| 0.142857
| 0.571429
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
|
0
| 7
|
8b920ca2570fa9ef0b8cf8310ead854938102963
| 156
|
py
|
Python
|
KingdomDesign/language_processor.py
|
SiddharthaAnand/design_problem
|
d0821af8ae69a9f552d0003521f0dd3e6e40dfb7
|
[
"Apache-2.0"
] | 1
|
2020-09-12T20:19:01.000Z
|
2020-09-12T20:19:01.000Z
|
KingdomDesign/language_processor.py
|
SiddharthaAnand/design_problem
|
d0821af8ae69a9f552d0003521f0dd3e6e40dfb7
|
[
"Apache-2.0"
] | 6
|
2020-09-11T13:04:20.000Z
|
2020-09-18T15:52:28.000Z
|
KingdomDesign/language_processor.py
|
SiddharthaAnand/design_problem
|
d0821af8ae69a9f552d0003521f0dd3e6e40dfb7
|
[
"Apache-2.0"
] | 3
|
2020-10-03T20:35:41.000Z
|
2020-10-18T17:21:24.000Z
|
class LanguageProcessor(object):
def __init__(self):
pass
def read_msg(self):
pass
def process_msg(self):
pass
def reply_back(self):
pass
| 10.4
| 32
| 0.698718
| 22
| 156
| 4.636364
| 0.545455
| 0.313725
| 0.323529
| 0.27451
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.205128
| 156
| 15
| 33
| 10.4
| 0.822581
| 0
| 0
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| false
| 0.444444
| 0
| 0
| 0.555556
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
8ba9270ddd088600005ae8ad56bb97b68269d37b
| 4,654
|
py
|
Python
|
python/test_alpenglow/evaluation/test_PrecisionScore.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 28
|
2017-07-23T22:47:44.000Z
|
2022-03-12T15:11:13.000Z
|
python/test_alpenglow/evaluation/test_PrecisionScore.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 4
|
2017-05-10T10:23:17.000Z
|
2019-05-23T14:07:09.000Z
|
python/test_alpenglow/evaluation/test_PrecisionScore.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 9
|
2017-05-04T09:20:58.000Z
|
2021-12-14T08:19:01.000Z
|
import alpenglow as prs
import alpenglow.Getter as rs
import alpenglow.evaluation
import pandas as pd
import math
import unittest
class TestPrecisionScore(unittest.TestCase):
def test_precisionScore(self):
ranks = [102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 65, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 100, 102, 102, 18, 102, 102, 100, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 102, 100, 100, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 100, 100, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 67, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 100, 102, 102, 102, 102, 100, 102, 100, 102, 102, 102, 102, 58, 100, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 100, 102, 102, 102, 102, 102, 100, 100, 102, 102, 100, 102, 102, 102, 100, 100, 100, 102, 102, 100, 102, 102, 102, 102, 100, 102, 102, 102, 47, 102, 102, 102, 100, 100, 102, 102, 102, 100, 102, 100, 102, 102, 102, 102, 102, 100, 100, 102, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 100, 100, 102, 54, 100, 102, 100, 100, 102, 102, 100, 100, 102, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 100, 100, 102, 100, 102, 102, 102, 102, 100, 102, 102, 102, 100, 102, 100, 100, 47, 102, 100, 102, 102, 102, 100, 102, 102, 100, 100, 102, 102, 100, 100, 102, 102, 102, 102, 102, 102, 100, 102, 102, 100, 100, 102, 102, 102, 102, 102, 100, 102, 102, 100, 100, 100, 100, 100, 102, 100, 102, 102, 100, 102, 102, 100, 100, 37, 100, 102, 102, 102, 102, 102, 100, 102, 100, 102, 102, 102, 55, 102, 102, 100, 102, 102, 102, 102, 102, 102, 100, 100, 102, 102, 102, 102, 100, 102, 102, 102, 102, 102, 22, 102, 100, 100, 100, 102, 102, 102, 102, 102, 100, 102, 100, 102, 100, 102, 102, 102, 102, 102, 100, 102, 102, 102, 100, 102, 102, 100, 102, 100, 100, 102, 100, 102, 102, 100, 100, 100, 102, 102, 100, 100, 100, 102, 102, 100, 102, 102, 102, 102, 102, 102, 102, 100, 102, 102, 100, 100, 102, 102, 102, 102, 100, 102, 102, 102, 102, 100, 102, 102, 102, 21, 100, 102, 100, 102, 100, 102, 102, 102, 100, 100, 102, 102, 100, 102, 102, 102, 100, 102, 102, 100, 102, 102, 102, 102, 100, 102, 102, 102, 100, 100, 102, 102, 102, 100, 102, 102, 102, 100, 102, 102, 100, 102, 102, 102, 100, 102, 100, 102, 100, 100, 102, 100, 102, 100, 100, 100, 102, 102, 102, 102, 102, 100, 102, 100, 102, 102, 100, 102, 102, 102, 100, 102, 100, 102, 102, 102, 100, 102, 102, 102, 102, 102, 100, 102, 100, 100, 100, 102, 100, 102, 100, 102, 102, 100, 100, 100, 100, 100, 100, 102, 88, 102, 102, 102, 100, 102, 100, 100, 102, 100, 102, 102, 100, 102, 102, 102, 102, 102, 102, 100, 102, 102, 102, 100, 100, 100, 100, 102, 100, 100, 102, 102, 100, 102, 100, 102, 102, 102, 100, 102, 102, 100, 102, 14, 102, 100, 102, 102, 102, 102, 100, 102, 100, 100, 100, 102, 100, 102, 100, 102, 102, 102, 102, 102, 100, 100, 100, 100, 102, 102, 102, 102, 102, 102, 100, 102, 100, 100, 102, 100, 100, 102, 102, 100, 100, 100, 102, 100, 102, 102, 102, 102, 102, 102, 102, 100, 100, 102, 102, 100, 102, 102, 100, 100, 102, 102, 100, 102, 100, 102, 102, 100]
facRankings = pd.DataFrame.from_records(
[
(i, i, 0, r + 1 if r < 100 else None)
for i, r in enumerate(ranks)
],
columns=["id", "time", "prediction", "rank"]
).set_index("id")
facRankings.top_k = 100
precision = alpenglow.evaluation.PrecisionScore(facRankings).mean()
precisions = [1 if r < 100 else 0 for r in ranks]
self.assertAlmostEqual(precision, sum(precisions) / len(precisions))
| 202.347826
| 3,938
| 0.602707
| 873
| 4,654
| 3.208477
| 0.071019
| 0.942521
| 1.092467
| 1.178151
| 0.836844
| 0.82899
| 0.826848
| 0.825777
| 0.805427
| 0.773295
| 0
| 0.644554
| 0.212935
| 4,654
| 22
| 3,939
| 211.545455
| 0.12012
| 0
| 0
| 0
| 0
| 0
| 0.004727
| 0
| 0
| 0
| 0
| 0
| 0.05
| 1
| 0.05
| false
| 0
| 0.3
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
47427d3a5f9e280fdc6341286bd26c178bf6fc06
| 163
|
py
|
Python
|
ECG-tianchi/code/utils/__init__.py
|
StephenCurry-LH/ecg
|
f6dffeb108515d7307773112482d4d8f81ba9442
|
[
"Apache-2.0"
] | null | null | null |
ECG-tianchi/code/utils/__init__.py
|
StephenCurry-LH/ecg
|
f6dffeb108515d7307773112482d4d8f81ba9442
|
[
"Apache-2.0"
] | null | null | null |
ECG-tianchi/code/utils/__init__.py
|
StephenCurry-LH/ecg
|
f6dffeb108515d7307773112482d4d8f81ba9442
|
[
"Apache-2.0"
] | null | null | null |
from .loss import binary_crossentropy
from .loss import weighted_binary_crossentropy
from .loss import calc_f1, AverageMeter
from .lr_scheduler import LRScheduler
| 32.6
| 46
| 0.865031
| 22
| 163
| 6.181818
| 0.545455
| 0.176471
| 0.308824
| 0.382353
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006849
| 0.104294
| 163
| 4
| 47
| 40.75
| 0.924658
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
4749ea247cc986dc9c31a18cbc66f44fe9cf3657
| 13,755
|
py
|
Python
|
selfdrive/car/toyota/values.py
|
rootless4real/openpilot
|
dc9df681485b523bf0a18278564da0674456cf2a
|
[
"MIT"
] | 1
|
2019-03-17T18:38:31.000Z
|
2019-03-17T18:38:31.000Z
|
selfdrive/car/toyota/values.py
|
rootless4real/openpilot
|
dc9df681485b523bf0a18278564da0674456cf2a
|
[
"MIT"
] | 1
|
2021-03-25T22:43:31.000Z
|
2021-03-25T22:43:31.000Z
|
selfdrive/car/toyota/values.py
|
Chrispreilly/openpilot-2012camryhybrid_archive
|
33b737375e75f2005736a1469d4c42126e754886
|
[
"MIT"
] | null | null | null |
from selfdrive.car import dbc_dict
class CAR:
PRIUS = "TOYOTA PRIUS 2017"
RAV4H = "TOYOTA RAV4 2017 HYBRID"
RAV4 = "TOYOTA RAV4 2017"
COROLLA = "TOYOTA COROLLA 2017"
LEXUS_RXH = "LEXUS RX HYBRID 2017"
class ECU:
CAM = 0 # camera
DSU = 1 # driving support unit
APGS = 2 # advanced parking guidance system
# addr: (ecu, cars, bus, 1/freq*100, vl)
STATIC_MSGS = [(0x141, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 2, '\x00\x00\x00\x46'),
(0x128, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 3, '\xf4\x01\x90\x83\x00\x37'),
(0x292, ECU.APGS, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 3, '\x00\x00\x00\x00\x00\x00\x00\x9e'),
(0x283, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 3, '\x00\x00\x00\x00\x00\x00\x8c'),
(0x2E6, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH), 0, 3, '\xff\xf8\x00\x08\x7f\xe0\x00\x4e'),
(0x2E7, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH), 0, 3, '\xa8\x9c\x31\x9c\x00\x00\x00\x02'),
(0x240, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 5, '\x00\x10\x01\x00\x10\x01\x00'),
(0x241, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 5, '\x00\x10\x01\x00\x10\x01\x00'),
(0x244, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 5, '\x00\x10\x01\x00\x10\x01\x00'),
(0x245, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 5, '\x00\x10\x01\x00\x10\x01\x00'),
(0x248, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 5, '\x00\x00\x00\x00\x00\x00\x01'),
(0x344, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 5, '\x00\x00\x01\x00\x00\x00\x00\x50'),
(0x160, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 7, '\x00\x00\x08\x12\x01\x31\x9c\x51'),
(0x161, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 7, '\x00\x1e\x00\x00\x00\x80\x07'),
(0x32E, ECU.APGS, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 20, '\x00\x00\x00\x00\x00\x00\x00\x00'),
(0x33E, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH), 0, 20, '\x0f\xff\x26\x40\x00\x1f\x00'),
(0x365, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH), 0, 20, '\x00\x00\x00\x80\x03\x00\x08'),
(0x365, ECU.DSU, (CAR.RAV4, CAR.COROLLA), 0, 20, '\x00\x00\x00\x80\xfc\x00\x08'),
(0x366, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH), 0, 20, '\x00\x00\x4d\x82\x40\x02\x00'),
(0x366, ECU.DSU, (CAR.RAV4, CAR.COROLLA), 0, 20, '\x00\x72\x07\xff\x09\xfe\x00'),
(0x367, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 40, '\x06\x00'),
(0x414, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x00\x00\x00\x00\x00\x00\x17\x00'),
(0x489, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x00\x00\x00\x00\x00\x00\x00'),
(0x48a, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x00\x00\x00\x00\x00\x00\x00'),
(0x48b, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x66\x06\x08\x0a\x02\x00\x00\x00'),
(0x4d3, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x1C\x00\x00\x01\x00\x00\x00\x00'),
(0x130, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 1, 100, '\x00\x00\x00\x00\x00\x00\x38'),
(0x466, ECU.CAM, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4), 1, 100, '\x20\x20\xAD'),
(0x466, ECU.CAM, (CAR.COROLLA), 1, 100, '\x24\x20\xB1'),
(0x396, ECU.APGS, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\xBD\x00\x00\x00\x60\x0F\x02\x00'),
(0x43A, ECU.APGS, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x84\x00\x00\x00\x00\x00\x00\x00'),
(0x43B, ECU.APGS, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x00\x00\x00\x00\x00\x00\x00\x00'),
(0x497, ECU.APGS, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x00\x00\x00\x00\x00\x00\x00\x00'),
(0x4CC, ECU.APGS, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x0D\x00\x00\x00\x00\x00\x00\x00'),
(0x4CB, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH, CAR.RAV4, CAR.COROLLA), 0, 100, '\x0c\x00\x00\x00\x00\x00\x00\x00'),
(0x470, ECU.DSU, (CAR.PRIUS, CAR.RAV4H, CAR.LEXUS_RXH), 1, 100, '\x00\x00\x02\x7a'),
]
def check_ecu_msgs(fingerprint, candidate, ecu):
# return True if fingerprint contains messages normally sent by a given ecu
ecu_msgs = [x[0] for x in STATIC_MSGS if (x[1] == ecu and
candidate in x[2] and
x[3] == 0)]
return any(msg for msg in fingerprint if msg in ecu_msgs)
FINGERPRINTS = {
CAR.RAV4: [{
36L: 8, 37L: 8, 170L: 8, 180L: 8, 186L: 4, 426L: 6, 452L: 8, 464L: 8, 466L: 8, 467L: 8, 547L: 8, 548L: 8, 552L: 4, 562L: 4, 608L: 8, 610L: 5, 643L: 7, 705L: 8, 725L: 2, 740L: 5, 800L: 8, 835L: 8, 836L: 8, 849L: 4, 869L: 7, 870L: 7, 871L: 2, 896L: 8, 897L: 8, 900L: 6, 902L: 6, 905L: 8, 911L: 8, 916L: 3, 918L: 7, 921L: 8, 933L: 8, 944L: 8, 945L: 8, 951L: 8, 955L: 4, 956L: 8, 979L: 2, 998L: 5, 999L: 7, 1000L: 8, 1001L: 8, 1005L: 2, 1008L: 2, 1014L: 8, 1017L: 8, 1041L: 8, 1042L: 8, 1043L: 8, 1044L: 8, 1056L: 8, 1059L: 1, 1114L: 8, 1161L: 8, 1162L: 8, 1163L: 8, 1176L: 8, 1177L: 8, 1178L: 8, 1179L: 8, 1180L: 8, 1181L: 8, 1190L: 8, 1191L: 8, 1192L: 8, 1196L: 8, 1227L: 8, 1228L: 8, 1235L: 8, 1237L: 8, 1263L: 8, 1264L: 8, 1279L: 8, 1408L: 8, 1409L: 8, 1410L: 8, 1552L: 8, 1553L: 8, 1554L: 8, 1555L: 8, 1556L: 8, 1557L: 8, 1561L: 8, 1562L: 8, 1568L: 8, 1569L: 8, 1570L: 8, 1571L: 8, 1572L: 8, 1584L: 8, 1589L: 8, 1592L: 8, 1593L: 8, 1595L: 8, 1596L: 8, 1597L: 8, 1600L: 8, 1656L: 8, 1664L: 8, 1728L: 8, 1745L: 8, 1779L: 8, 1904L: 8, 1912L: 8, 1990L: 8, 1998L: 8
}],
CAR.RAV4H: [{
36L: 8, 37L: 8, 170L: 8, 180L: 8, 186L: 4, 296L: 8, 426L: 6, 452L: 8, 464L: 8, 466L: 8, 467L: 8, 547L: 8, 548L: 8, 550L: 8, 552L: 4, 560L: 7, 562L: 4, 581L: 5, 608L: 8, 610L: 5, 643L: 7, 705L: 8, 713L: 8, 725L: 2, 740L: 5, 800L: 8, 835L: 8, 836L: 8, 849L: 4, 869L: 7, 870L: 7, 871L: 2, 896L: 8, 897L: 8, 900L: 6, 902L: 6, 905L: 8, 911L: 8, 916L: 3, 918L: 7, 921L: 8, 933L: 8, 944L: 8, 945L: 8, 950L: 8, 951L: 8, 953L: 3, 955L: 8, 956L: 8, 979L: 2, 998L: 5, 999L: 7, 1000L: 8, 1001L: 8, 1005L: 2, 1008L: 2, 1014L: 8, 1017L: 8, 1041L: 8, 1042L: 8, 1043L: 8, 1044L: 8, 1056L: 8, 1059L: 1, 1114L: 8, 1161L: 8, 1162L: 8, 1163L: 8, 1176L: 8, 1177L: 8, 1178L: 8, 1179L: 8, 1180L: 8, 1181L: 8, 1184L: 8, 1185L: 8, 1186L: 8, 1190L: 8, 1191L: 8, 1192L: 8, 1196L: 8, 1197L: 8, 1198L: 8, 1199L: 8, 1212L: 8, 1227L: 8, 1228L: 8, 1232L: 8, 1235L: 8, 1237L: 8, 1263L: 8, 1264L: 8, 1279L: 8, 1408L: 8, 1409L: 8, 1410L: 8, 1552L: 8, 1553L: 8, 1554L: 8, 1555L: 8, 1556L: 8, 1557L: 8, 1561L: 8, 1562L: 8, 1568L: 8, 1569L: 8, 1570L: 8, 1571L: 8, 1572L: 8, 1584L: 8, 1589L: 8, 1592L: 8, 1593L: 8, 1595L: 8, 1596L: 8, 1597L: 8, 1600L: 8, 1656L: 8, 1664L: 8, 1728L: 8, 1745L: 8, 1779L: 8, 1904L: 8, 1912L: 8, 1990L: 8, 1998L: 8
}],
CAR.PRIUS: [{
36L: 8, 37L: 8, 166L: 8, 170L: 8, 180L: 8, 295L: 8, 296L: 8, 426L: 6, 452L: 8, 466L: 8, 467L: 8, 550L: 8, 552L: 4, 560L: 7, 562L: 6, 581L: 5, 608L: 8, 610L: 8, 614L: 8, 643L: 7, 658L: 8, 713L: 8, 740L: 5, 742L: 8, 743L: 8, 800L: 8, 810L: 2, 814L: 8, 829L: 2, 830L: 7, 835L: 8, 836L: 8, 863L: 8, 869L: 7, 870L: 7, 871L: 2, 898L: 8, 900L: 6, 902L: 6, 905L: 8, 918L: 8, 921L: 8, 933L: 8, 944L: 8, 945L: 8, 950L: 8, 951L: 8, 953L: 8, 955L: 8, 956L: 8, 971L: 7, 975L: 5, 993L: 8, 998L: 5, 999L: 7, 1000L: 8, 1001L: 8, 1014L: 8, 1017L: 8, 1020L: 8, 1041L: 8, 1042L: 8, 1044L: 8, 1056L: 8, 1057L: 8, 1059L: 1, 1071L: 8, 1077L: 8, 1082L: 8, 1083L: 8, 1084L: 8, 1085L: 8, 1086L: 8, 1114L: 8, 1132L: 8, 1161L: 8, 1162L: 8, 1163L: 8, 1175L: 8, 1227L: 8, 1228L: 8, 1235L: 8, 1237L: 8, 1279L: 8, 1552L: 8, 1553L: 8, 1556L: 8, 1557L: 8, 1568L: 8, 1570L: 8, 1571L: 8, 1572L: 8, 1595L: 8, 1777L: 8, 1779L: 8, 1904L: 8, 1912L: 8, 1990L: 8, 1998L: 8
},
# Prius Prime
{
36L: 8, 37L: 8, 166L: 8, 170L: 8, 180L: 8, 295L: 8, 296L: 8, 426L: 6, 452L: 8, 466L: 8, 467L: 8, 550L: 8, 552L: 4, 560L: 7, 562L: 6, 581L: 5, 608L: 8, 610L: 8, 614L: 8, 643L: 7, 658L: 8, 713L: 8, 740L: 5, 742L: 8, 743L: 8, 800L: 8, 810L: 2, 814L: 8, 824L: 2, 829L: 2, 830L: 7, 835L: 8, 836L: 8, 863L: 8, 869L: 7, 870L: 7, 871L: 2,898L: 8, 900L: 6, 902L: 6, 905L: 8, 913L: 8, 918L: 8, 921L: 8, 933L: 8, 944L: 8, 945L: 8, 950L: 8, 951L: 8, 953L: 8, 955L: 8, 956L: 8, 971L: 7, 974L: 8, 975L: 5, 993L: 8, 998L: 5, 999L: 7, 1000L: 8, 1001L: 8, 1014L: 8, 1017L: 8, 1020L: 8, 1041L: 8, 1042L: 8, 1044L: 8, 1056L: 8, 1057L: 8, 1059L: 1, 1071L: 8, 1076L: 8, 1077L: 8, 1082L: 8, 1083L: 8, 1084L: 8, 1085L: 8, 1086L: 8, 1114L: 8, 1132L: 8, 1161L: 8, 1162L: 8, 1163L: 8, 1164L: 8, 1165L: 8, 1166L: 8, 1167L: 8, 1175L: 8, 1227L: 8, 1228L: 8, 1235L: 8, 1237L: 8, 1279L: 8, 1552L: 8, 1553L: 8, 1556L: 8, 1557L: 8, 1568L: 8, 1570L: 8, 1571L: 8, 1572L: 8, 1595L: 8, 1777L: 8, 1779L: 8, 1904L: 8, 1912L: 8, 1990L: 8, 1998L: 8
},
# Taiwanese Prius Prime
{
36L: 8, 37L: 8, 166L: 8, 170L: 8, 180L: 8, 295L: 8, 296L: 8, 426L: 6, 452L: 8, 466L: 8, 467L: 8, 550L: 8, 552L: 4, 560L: 7, 562L: 6, 581L: 5, 608L: 8, 610L: 8, 614L: 8, 643L: 7, 658L: 8, 713L: 8, 740L: 5, 742L: 8, 743L: 8, 800L: 8, 810L: 2, 814L: 8, 824L: 2, 829L: 2, 830L: 7, 835L: 8, 836L: 8, 845L: 5, 863L: 8, 869L: 7, 870L: 7, 871L: 2,898L: 8, 900L: 6, 902L: 6, 905L: 8, 913L: 8, 918L: 8, 921L: 8, 933L: 8, 944L: 8, 945L: 8, 950L: 8, 951L: 8, 953L: 8, 955L: 8, 956L: 8, 971L: 7, 974L: 8, 975L: 5, 993L: 8, 998L: 5, 999L: 7, 1000L: 8, 1001L: 8, 1005L: 2, 1014L: 8, 1017L: 8, 1020L: 8, 1041L: 8, 1042L: 8, 1044L: 8, 1056L: 8, 1057L: 8, 1059L: 1, 1071L: 8, 1076L: 8, 1077L: 8, 1082L: 8, 1083L: 8, 1084L: 8, 1085L: 8, 1086L: 8, 1114L: 8, 1132L: 8, 1161L: 8, 1162L: 8, 1163L: 8, 1164L: 8, 1165L: 8, 1166L: 8, 1167L: 8, 1175L: 8, 1227L: 8, 1228L: 8, 1235L: 8, 1237L: 8, 1264L: 8, 1279L: 8, 1552L: 8, 1553L: 8, 1556L: 8, 1557L: 8, 1568L: 8, 1570L: 8, 1571L: 8, 1572L: 8, 1595L: 8, 1777L: 8, 1779L: 8, 1904L: 8, 1912L: 8, 1990L: 8, 1998L: 8
}],
CAR.COROLLA: [{
36: 8, 37: 8, 170: 8, 180: 8, 186: 4, 426: 6, 452: 8, 464: 8, 466: 8, 467: 8, 547: 8, 548: 8, 552: 4, 608: 8, 610: 5, 643: 7, 705: 8, 740: 5, 800: 8, 835: 8, 836: 8, 849: 4, 869: 7, 870: 7, 871: 2, 896: 8, 897: 8, 900: 6, 902: 6, 905: 8, 911: 8, 916: 2, 921: 8, 933: 8, 944: 8, 945: 8, 951: 8, 955: 4, 956: 8, 979: 2, 992: 8, 998: 5, 999: 7, 1000: 8, 1001: 8, 1017: 8, 1041: 8, 1042: 8, 1043: 8, 1044: 8, 1056: 8, 1059: 1, 1114: 8, 1161: 8, 1162: 8, 1163: 8, 1196: 8, 1227: 8, 1235: 8, 1279: 8, 1552: 8, 1553: 8, 1556: 8, 1557: 8, 1561: 8, 1562: 8, 1568: 8, 1569: 8, 1570: 8, 1571: 8, 1572: 8, 1584: 8, 1589: 8, 1592: 8, 1596: 8, 1597: 8, 1600: 8, 1664: 8, 1728: 8, 1779: 8, 1904: 8, 1912: 8, 1990: 8, 1998: 8
},
# Corolla LE 2017
{
36: 8, 37: 8, 170: 8, 180: 8, 186: 4, 426: 6, 452: 8, 464: 8, 466: 8, 467: 8, 547: 8, 548: 8, 552: 4, 608: 8, 610: 5, 643: 7, 705: 8, 740: 5, 800: 8, 835: 8, 836: 8, 849: 4, 869: 7, 870: 7, 871: 2, 896: 8, 897: 8, 900: 6, 902: 6, 905: 8, 911: 8, 916: 2, 921: 8, 933: 8, 944: 8, 945: 8, 951: 8, 955: 4, 956: 8, 979: 2, 998: 5, 999: 7, 1000: 8, 1001: 8, 1017: 8, 1041: 8, 1042: 8, 1043: 8, 1044: 8, 1056: 8, 1059: 1, 1114: 8, 1161: 8, 1162: 8, 1163: 8, 1196: 8, 1227: 8, 1235: 8, 1279: 8, 1552: 8, 1553: 8, 1556: 8, 1557: 8, 1561: 8, 1562: 8, 1568: 8, 1569: 8, 1570: 8, 1571: 8, 1572: 8, 1592: 8, 1596: 8, 1597: 8, 1600: 8, 1664: 8, 1779: 8, 1904: 8, 1912: 8, 1990: 8, 1998: 8, 2016: 8, 2017: 8, 2018: 8, 2019: 8, 2020: 8, 2021: 8, 2022: 8, 2023: 8, 2024: 8
}],
CAR.LEXUS_RXH: [{
36: 8, 37: 8, 166: 8, 170: 8, 180: 8, 295: 8, 296: 8, 426: 6, 452: 8, 466: 8, 467: 8, 550: 8, 552: 4, 560: 7, 562: 6, 581: 5, 608: 8, 610: 5, 643: 7, 658: 8, 713: 8, 740: 5, 742: 8, 743: 8, 800: 8, 810: 2, 812: 3, 814: 8, 830: 7, 835: 8, 836: 8, 845: 5, 863: 8, 869: 7, 870: 7, 871: 2, 898: 8, 900: 6, 902: 6, 905: 8, 913: 8, 918: 8, 921: 8, 933: 8, 944: 8, 945: 8, 950: 8, 951: 8, 953: 8, 955: 8, 956: 8, 971: 7, 975: 6, 993: 8, 998: 5, 999: 7, 1000: 8, 1001: 8, 1005: 2, 1014: 8, 1017: 8, 1020: 8, 1041: 8, 1042: 8, 1044: 8, 1056: 8, 1059: 1, 1063: 8, 1071: 8, 1077: 8, 1082: 8, 1114: 8, 1161: 8, 1162: 8, 1163: 8, 1164: 8, 1165: 8, 1166: 8, 1167: 8, 1227: 8, 1228: 8, 1235: 8, 1237: 8, 1264: 8, 1279: 8, 1552: 8, 1553: 8, 1556: 8, 1557: 8, 1568: 8, 1570: 8, 1571: 8, 1572: 8, 1575: 8, 1595: 8, 1777: 8, 1779: 8, 1808: 8, 1810: 8, 1816: 8, 1818: 8, 1840: 8, 1848: 8, 1904: 8, 1912: 8, 1940: 8, 1941: 8, 1948: 8, 1949: 8, 1952: 8, 1956: 8, 1960: 8, 1964: 8, 1986: 8, 1990: 8, 1994: 8, 1998: 8, 2004: 8, 2012: 8
}],
}
DBC = {
CAR.RAV4H: dbc_dict('toyota_rav4_hybrid_2017_pt_generated', 'toyota_prius_2017_adas'),
CAR.RAV4: dbc_dict('toyota_rav4_2017_pt_generated', 'toyota_prius_2017_adas'),
CAR.PRIUS: dbc_dict('toyota_prius_2017_pt_generated', 'toyota_prius_2017_adas'),
CAR.COROLLA: dbc_dict('toyota_corolla_2017_pt_generated', 'toyota_prius_2017_adas'),
CAR.LEXUS_RXH: dbc_dict('lexus_rx_hybrid_2017_pt_generated', 'toyota_prius_2017_adas'),
}
| 125.045455
| 1,208
| 0.577463
| 2,663
| 13,755
| 2.950807
| 0.17837
| 0.077882
| 0.0859
| 0.080937
| 0.789387
| 0.781497
| 0.774752
| 0.752609
| 0.714049
| 0.690125
| 0
| 0.430771
| 0.216067
| 13,755
| 109
| 1,209
| 126.192661
| 0.297969
| 0.016212
| 0
| 0.05814
| 0
| 0
| 0.100052
| 0.088294
| 0
| 0
| 0.013311
| 0
| 0
| 0
| null | null | 0
| 0.011628
| null | null | 0.023256
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
47b1fb65e4d995308d32d4b9f17870440c89ef34
| 3,992
|
py
|
Python
|
src/34. Find First and Last Position of Element in Sorted Array.py
|
wisesky/LeetCode-Practice
|
65549f72c565d9f11641c86d6cef9c7988805817
|
[
"MIT"
] | null | null | null |
src/34. Find First and Last Position of Element in Sorted Array.py
|
wisesky/LeetCode-Practice
|
65549f72c565d9f11641c86d6cef9c7988805817
|
[
"MIT"
] | null | null | null |
src/34. Find First and Last Position of Element in Sorted Array.py
|
wisesky/LeetCode-Practice
|
65549f72c565d9f11641c86d6cef9c7988805817
|
[
"MIT"
] | null | null | null |
from typing import List
class Solution:
def searchRange(self, nums: List[int], target: int) -> List[int]:
if len(nums) == 0:
return [-1,-1]
st = 0
ed = len(nums)-1
while st <= ed:
mid = (st+ed) // 2
if nums[mid] > target:
ed = mid-1
elif nums[mid] < target:
st = mid+1
else:
# leftSearch 在nums[0:mid-1]寻找左边界,如果没有那么左边界就是mid
# 同上
leftEdge = self.leftSearch(nums, 0, mid-1, target)
rightEdge = self.rightSearch(nums, mid+1, len(nums)-1, target)
return [leftEdge if leftEdge!=-1 else mid, rightEdge if rightEdge!=-1 else mid]
return [-1, -1]
def leftSearch(self, nums, start, end, target):
print('LeftSearch', start, end, len(nums))
if start > len(nums)-1:
return -1
while start <= end:
mid = (start+end) // 2
if nums[mid] < target:
start = mid+1
else: # mid == target
break
if start > end:
return -1
leftEdge = self.leftSearch(nums, start, mid-1, target)
return mid if leftEdge == -1 else leftEdge
def rightSearch(self, nums, start, end, target):
print('RightSearch', start, end, len(nums))
if start > len(nums)-1 :
return -1
while start <= end:
mid = (start+end) // 2
if nums[mid] > target:
end = mid - 1
else: # mid == target
break
if start > end:
return -1
rightEdge = self.rightSearch(nums, mid+1, end, target)
return mid if rightEdge == -1 else rightEdge
if __name__ == "__main__":
so = Solution()
nums = [5,7,7,8,8,10]
# nums = [1]
# nums =[2,2]
# nums = [0,0,0,1,2,3]
# nums = [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5]
res = so.searchRange(nums, 12)
print(res)
| 61.415385
| 2,014
| 0.488477
| 1,241
| 3,992
| 1.564867
| 0.037067
| 1.028836
| 1.54171
| 2.053553
| 0.703399
| 0.69516
| 0.634398
| 0.634398
| 0.634398
| 0.634398
| 0
| 0.328639
| 0.199649
| 3,992
| 65
| 2,015
| 61.415385
| 0.279186
| 0.533317
| 0
| 0.411765
| 0
| 0
| 0.015633
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.058824
| false
| 0
| 0.019608
| 0
| 0.27451
| 0.058824
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
47c688f5b58b8338494db1fa5efa0ea441378f7a
| 232
|
py
|
Python
|
python/kata/6-kyu/Sum of Digits - Digital Root/main.py
|
Carlososuna11/codewars-handbook
|
a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e
|
[
"MIT"
] | null | null | null |
python/kata/6-kyu/Sum of Digits - Digital Root/main.py
|
Carlososuna11/codewars-handbook
|
a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e
|
[
"MIT"
] | null | null | null |
python/kata/6-kyu/Sum of Digits - Digital Root/main.py
|
Carlososuna11/codewars-handbook
|
a0e7c9ac5ad19cfaed3ad463c04616daa3fed82e
|
[
"MIT"
] | null | null | null |
import codewars_test as test
from solution import digital_root
test.assert_equals(digital_root(16), 7)
test.assert_equals(digital_root(942), 6)
test.assert_equals(digital_root(132189), 6)
test.assert_equals(digital_root(493193), 2)
| 33.142857
| 43
| 0.827586
| 38
| 232
| 4.789474
| 0.447368
| 0.302198
| 0.351648
| 0.505495
| 0.604396
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0.097222
| 0.068966
| 232
| 7
| 44
| 33.142857
| 0.74537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
9a0f505eb36d25332d3eaf77c79c7ea9c77bbc28
| 128
|
py
|
Python
|
calc.py
|
hmiyake/my-test-repo
|
42118133888b0a74c0da9e01211acb4023f713f9
|
[
"MIT"
] | null | null | null |
calc.py
|
hmiyake/my-test-repo
|
42118133888b0a74c0da9e01211acb4023f713f9
|
[
"MIT"
] | 2
|
2021-07-30T06:32:41.000Z
|
2021-08-01T18:54:45.000Z
|
calc.py
|
hmiyake/my-test-repo
|
42118133888b0a74c0da9e01211acb4023f713f9
|
[
"MIT"
] | null | null | null |
#!/bin/env python
def calc_wa(val1, val2):
return val1 + val2
def calc_wari(val1, val2):
return float(val1) / float(val2)
| 16
| 34
| 0.6875
| 21
| 128
| 4.095238
| 0.52381
| 0.27907
| 0.325581
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 0.171875
| 128
| 7
| 35
| 18.285714
| 0.735849
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
d026713cdca954bcdabb4a895e333e28e751851b
| 398
|
py
|
Python
|
tests/test_evaluate_expression.py
|
rzhilkibaev/metaconfig
|
856c2c2e39a4ffadba2501df2c7dcf6b56b16543
|
[
"MIT"
] | null | null | null |
tests/test_evaluate_expression.py
|
rzhilkibaev/metaconfig
|
856c2c2e39a4ffadba2501df2c7dcf6b56b16543
|
[
"MIT"
] | null | null | null |
tests/test_evaluate_expression.py
|
rzhilkibaev/metaconfig
|
856c2c2e39a4ffadba2501df2c7dcf6b56b16543
|
[
"MIT"
] | null | null | null |
from cfgen import cfgen
from nose.tools import assert_equals
from nose.tools.nontrivial import raises
def test_evaluate_expression():
assert_equals(cfgen.evaluate_expression("echo abc", {}), ("abc"))
assert_equals(cfgen.evaluate_expression("echo $abc", {"abc": "a"}), ("a"))
@raises(ValueError)
def test_evaluate_expression_error():
cfgen.evaluate_expression("unknown-command", {})
| 28.428571
| 78
| 0.746231
| 50
| 398
| 5.72
| 0.4
| 0.314685
| 0.241259
| 0.174825
| 0.314685
| 0.314685
| 0.314685
| 0.314685
| 0
| 0
| 0
| 0
| 0.110553
| 398
| 13
| 79
| 30.615385
| 0.80791
| 0
| 0
| 0
| 0
| 0
| 0.100503
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.222222
| true
| 0
| 0.333333
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d07ee3db4d9b9d00b328923252df7e24b507b69f
| 147
|
py
|
Python
|
nlpaug/flow/__init__.py
|
techthiyanes/nlpaug
|
bb2fc63349bf949f6f6047ff447a0efb16983c0a
|
[
"MIT"
] | 3,121
|
2019-04-21T07:02:47.000Z
|
2022-03-31T22:17:36.000Z
|
nlpaug/flow/__init__.py
|
moh2236945/nlpaug
|
9d4fb11dcff9980ebaec9d8e6cc7a0381f7db67b
|
[
"MIT"
] | 186
|
2019-05-31T18:18:13.000Z
|
2022-03-28T10:11:05.000Z
|
nlpaug/flow/__init__.py
|
moh2236945/nlpaug
|
9d4fb11dcff9980ebaec9d8e6cc7a0381f7db67b
|
[
"MIT"
] | 371
|
2019-03-17T17:59:56.000Z
|
2022-03-31T01:45:15.000Z
|
from __future__ import absolute_import
from nlpaug.flow.pipeline import *
from nlpaug.flow.sequential import *
from nlpaug.flow.sometimes import *
| 29.4
| 38
| 0.829932
| 20
| 147
| 5.85
| 0.45
| 0.25641
| 0.410256
| 0.512821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108844
| 147
| 4
| 39
| 36.75
| 0.89313
| 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
|
ef0f43116bc8293a0db8de74de530d3aae83ebe5
| 23,393
|
py
|
Python
|
.main/aybxaoowak6.py
|
Pabel-Gazi/BD
|
e7b91668a8271033c265463d21e340e52ec66e7e
|
[
"MIT"
] | null | null | null |
.main/aybxaoowak6.py
|
Pabel-Gazi/BD
|
e7b91668a8271033c265463d21e340e52ec66e7e
|
[
"MIT"
] | null | null | null |
.main/aybxaoowak6.py
|
Pabel-Gazi/BD
|
e7b91668a8271033c265463d21e340e52ec66e7e
|
[
"MIT"
] | null | null | null |
�
��_c @ s! d d l Z e j d � d Ud S( i����Nt�Z 696D706F7274206D61727368616C0A65786563286D61727368616C2E6C6F6164732827635C7830305C7830305C7830305C7830305C7830305C7830305C7830305C7830305C7830345C7830305C7830305C783030405C7830305C7830305C783030734B5C7830305C7830305C783030645C7830305C783030645C7830315C7830306C5C7830305C7830305A5C7830305C783030645C7830305C783030645C7830315C7830306C5C7830315C7830305A5C7830315C783030645C7830305C783030645C7830315C7830306C5C7830325C7830305A5C7830325C783030655C7830305C7830306A5C7830335C783030655C7830315C7830306A5C7830345C783030655C7830325C7830306A5C7830355C783030645C7830325C7830305C7838335C7830315C7830305C7838335C7830315C7830305C7838335C7830315C783030645C7830315C7830305C78303455645C7830315C78303053285C7830335C7830305C7830305C783030695C7866665C7866665C7866665C7866664E745C7861382A5C7830305C783030373839434544354335393846413334413936434544424233463438433334374636324445414535343046304444384145394234384433413333314438363042304331433936324236333730333939393844354245444533304243434530463938334633434432434338393038394330394236333332424233393636453544413934413135303930344231394545353842373332323045304545453941374646463030453942463230454446453144464538344630464639374242454345454345424242423742424342423442374542393042464637344637444642464130434337463543433031464533353735343343464533464638413745454645343742434242304242454244393946463135454545454134364137433043314442353941333146324336384644394632443144314437334544334146463835383444374334364446463837394330383638453945434643433638434134374542453944324136344242463237353339324338443642333839334130384141313330353739443934434434353741313638393146423839424346323733464445383142413742354542413836423546434336324338383337433744314445344436434131334233383335373944374530463138463633303942353839353246394533363645374338324645443845444432423637363442354244413739384334353035413235303037453545363138353438334641443135313239434641364436373234464445344233433544373946314630313034453536393435434135353332463637324234394543343734424242314630354239373046303938433537413645424138433332314136454536333036363839314634363932333841303744354243453832373843383441434645333142353441453344343839374636383039413845433632374335383436343934443144433443303732383444423537353834454146323331443445373339313838333732303837413741454146373243344131413531393144464533333233463845384135394131463734333345443834393743423834324533363943413937343139453144343237453735303836443341463631433639303346344333454430354244414339453135333031463931413534333745393046423133414235454632443138364434314234454333383933433938333736353946453930444634304231433242383346453642334542374641324536333935323143464339424543333144383334323137383234323345303643393739414532433641374630303635333344463838384134304343344132354536333633454634453944414137354442423244333435453543363742384131383232324644444338433744343344414435323244464236393241353238314339364345323646424536374534353341373339393135443033454642454331393431333335463845433834434131454533434442324138313046453746433042424537333833353035433144464434343841464343324441424242393535434430413645443031413746314545344543314546414130464438394245303932364632313143363541303730433932423534313039423230354644363746423430363432423138464636323039333437303644354434334639374345453535334534333831454335384137443042364541373041323143334336373935373830453141314237423038414131373741363832304233374536453235413139383144464444344141413043464541354342463444414235363546334339344539303538433535323146443831334537363345323341343533414333424539423439313835324331344635434343423035333446364343434644353233443139314138343042413337453738313536423935433631393936424635333134424535434145463835333543384436374141413644453232303145433042444645383444453742453232393733374134303833394341353832364132353032464436424346343841373645323131443630324339343833463941304546334338424144334344424142334344304433363938373346383341374535343441373032374532303539383241453244373230424538304237323241373033303537313536343437334430363731423439393839463445413531363033313046314643433331314545373243313735323446354332314641363634314131343430463036453734464639393034363334393844393432453138314245433935353539453841324230304246333643334241424337303733354545393731324246353234303137453943374431324542324343354441343831364530324544333631453346413436363839373635303932354436343636313141443141314331464441443943454533443939393439364242343641304539393239463441314137333236374336414341383235334133374137334335454233444341333032454636364339463041304630464430414641363045364133424441384135423233444142333537413645304532394335373434423534353631463533433734373036363835464138394237303932423234414435324636373933373045333031363643314243434146393638423835423841443643363633353631343343304639343834363335313344373341433143393734303733433344323745383346453044324242454137353433333244443544313138463030374635413531413333314136343037373443324234443937383639394633323543364645313145303131424539413043364533313943463138413130453144303542354131433131433030304241393033433834334532443946324431363737363837323532333830304530443536373841433832374244343243443535414430454335323139373139433845464143393534393844334532343046413634333541303239364136424134313936433746334537323346424238454243463736433231354531413334413333324533444631434430334634374442413439454544343632304542463139343037444438464232303642333836383535443039413133344236464134423437324232304246443134354143313739423130363135353434454130363133333539453445443630383637363538324333304238434333384646313730304237383138463837313030454441364632303545364635413031464341333335363139363041434343334234383137303633354538303041433435314143434642303442323032434138324446433131413634324634303636344639394537304344374330433735323431313839423833424543343143383543374644314138453930333238393042373237414336353342463837333033433833424541433344433836344532384244363241383831313136323938393534323939313042373830304638354530354435313033443237374332414231333235443936344141444641384142393142413832323535463045394145393341374530334341413933333734373739353942374145363241333732343133373246343745354241373932413833463239343645314532453337454345364131463642324234444231454141384244364243384143434337314342333133423339393842353436453030374243323233433231313239393636323345364238464237313736373945303936394434344134463337463243324446313641323130374237363139353930453937424130454430393845373743344236343846424534304233454433363135314242354239364442353833414539333142373945334139333331414436304142443342434445424234463231464137384236383345423544324337344542414341354241333637343839423033423942454537334532423337383133323532364131424634363336454141464246454336313846363337423644453444423746324543303541344134423933414144424342374545394433363344443436373141394645394432364245383731324236464432374144374136354245464336464433393735453834383033314441444243343530333934384131423739424633464245453439464146323830464433454244333042394441464341364136443541374130443244424632363631374136393930343234344246384530433231394134394133414634423938343636374239413544414234333946393236433533453743323037354639343845443637433638373533424246464245424631303638363443463830334446413139423041423435343736423746443632463944313133453246324636384143333331394235394335384231333430323343313344413538343041464333383935453036463546413338363343323044423434444242463130304144323343374136424433443645434642383646384641334636324431444436363930413631453344353338373439453142383333443544383033464430414535334641344530383736424430454542443537353144363530343642363331443935364141323043443436344438414534374639314641374439374541364144424631424446393439433536463543354330393243364143323830394241413431424443303238413238463746323237374435354145303131314135413932464232383535463442363042333043463137333837363732304637354238343433324643394441383231454543314534394441354533433737463236333645383136443530433132413344353130303942353638424145423035323741383842333235424138323245324637463233434646453834323437344446374545454534324244374638303937414242394233373633464333343544414333464244384346424637393737373842354433373746313135444533453330383734313235444239323636444339423337443738373937374245433741393239363338434145423045463732304545374639334543463135463437344639393739373732383830454433363339334446424643323336393830333941444230424144434643463330423734333642354533374545414436444439443541423245453644303943363545393932343934423931423131383838323632444142394141354342323644354646383932313746343830433639434635464438374638343637393042414241413531313943303046423337373636443735384236433239363542384139343335423035374635314144424443324441413133433942413641364530344238313346423530374446313344424434414332344543343342453530363939374638344637393838374345324136454331324630303046393439304545303544443734363935314231423535444146303035353741314244304141304633323533364635343031463836454230334236393146453238363942383845424137434239364431423243413545363341383644343741334542463542333645463843384237373246453938323445423743363632433743443735303541394635374337453637333745463136313745463545313233464543363243333735334633364438344637364632374546414443324544464436353745363836364442343831423441454446364632334444324346464535423943343634364336444241334344334546463246393343393732424241374436393245454238343843364438444545434435364245373945334639334339374534323337333339384641424333454632364244464131434246434346463744373333393846414233444236373539333545374434453545453646464535423936303341433731373639463542413243424435444645423542393630334132373137433937433544393644453243334632343742414235394237414636383341464237413742464645463930413241393834453746314435363939433136424543313144464339453836463631464542343036343046303139334335424542383838433837453841373037383334423830444143313742344537383033463646373043363533434336394145324436374645423746344642393133344543444138343045434433453339443546393344463744343239324235434438303634453839463232323037434133393135463746344334373346373045374438464542343133424637443241344243324146463234444336463234314545413330433345383839314631363530324643304346453837414133424332344230344642333641423837363741353031374235354641354138354530344644314341464342394639453945463033383446333031454238313745453046423831433741383646313430314239374236463431463730354435443437333736433033374246354638333734384538434330344544324434354542413932373541423932343945384531454438334643444645363237373446394634313742373534323835434634433143424437413334443735333545434232383946443936374438354531324439443242334642353038454234373133453637393137423532383146373036364433414633384243353741364130434137424337443345394231384145304443363141453830454441314239373736433638323235363731343731384146373231354644444646383337374537334434444446423630454131383146373043444632383746444532424535463039453541364245463334364544313945463139464638413737344533313335464536464441393243303635333137464335323233374634304635413337354342384544454243453432374238354343423337464236323432373542334543373439303632413039393733423632374333393637453837374242423136433238453045313844433634433130373646393439373246434231423345323336464534373232443037313337394533313735414434444444464134374438354136354236444338374236393243364338323432303734433742414231464644423231464445423530373835324630413342323842463744414233464435424145383446383042453434304239443442424435443246424241433937314434333437413744443743353142344637434233424641363645443441433745414543463134363341444533374246433444364636354345353845384638364639383437304537463130334539453934353236423038434630414242313334443632424437304538463745354335434338353446323531373942343144423131463442433342353043374530463345313730333944303637443544394646374532353736453446444638303743414541373438384636443631454444423432384146433142393044423945303346413142344332433641384143453034334146423145443441373837413438463638383137343641383344413539384146344341303346443746333038323032453936303442314537434339303235414536443943453437363739343331393746383344423946323630334346453234324439303045373743363836434639324444433842353537374231374639353732363135324238363734303330373541334531363341414236383634363138414231454242453232453731303634304344333045394644344244363230364535364333344545413137333633423841463636464346304134443630414638373545333945434145333343394145344239323441464332373937443932393745453134353334314635364235323546433146353135353242463236463531353941453442393234304644373537464132343246384439423333393230363342363146453135333944463045363931364536433044313231314637354631433845303932413543383145303336363831434533413532434631383436463337383438444144314232454438333231364445374133413839343232464342434631433431334438314543383337303543363537303345413731413231353444443931434630333546324431333941353831373937313043343445423330313542333134463245413930324636333434434635393831434635393931374536363431343533303135384431334643444438334542373038304546383331344538424346314633303533413542414639364345313046303143433935353936334438414530323734464234453831394333313333324337363746454630463242333343433031384536433838364432373339364636373345443343394643413735433232374538424230434331423139363030463745433041363130364638454430323735324542333837333144304146434134424643424445353235343246434545313337453437393844464633313145363737394646303342413234393945344246323330424641333345433946424339454631464345454645413742463344423435464336363038424635443832304630394536333734334638454431323743343835433932383746394544313237433438374546324642343746333542453542463337424635334334454630314531373734414634444243344643314531303745413734344246344439374534363137454137343442463444423431453638413833453435454136423434354530383345353041344245343645343835453030333435454136423434354537454532433338463937393745463645334632433130424636394332454630354531333739313137394146303742343146383444453438353236464335453130374539423346463946444333463938444436374630443846453732323145364439353741313538444537324338393242324139433730463533434245334638364244423033373242394537443834303344303738334636334434333546383239303743463245384644363432414433433441324535343636323331414639374536454431443938334232393030354244304545373042353344364231324641433635433841373034394141323338394230434643393430434643453836373742394139354542323142313842393143463742324533333531423336464232393541334143464633383839443031393434314434454134423544464630313246334332453136413337303646454433433742383930443531303743413736333038334539373334364536323241304245353333443845464442433743394141384636383141384134303533363335303433314235394330383342443933324338384246434334384431423445334433303937424642443333343438334242454130304533453136383746363035364145303639434642353333364138363633323935393743424532323831364338313743303338463037323833363335394143354644343342333746373031393237343441334231413046383234383938463438334331333843354231323630464542443631423433384337303735363943383646374444324136453634303942323332454441443842333745374630303337444643453638434544464246394637343842454431424530363543433935453043424435414441464442354542433843353934454342353830454643434336414535443436444442334141353345373343434231463232423942323530394332313932384635353930303737383946303643373842413246363644423639454535463444363133423330414638354242423845393733353732464341434333323641443736373531384337463637364231304245374435363344343037344445323235353144423238414531384537413146383436383233313743443833414137393446363830323339423539454541443830394633313841323139454535454144313337443842443837363339394235413345423538443439323146313039443441443835353733464546363134384145434436423346424143393232383344423535453043453645363730303039383041373644373832393634443839353639323435344641424239314341444339414538443738413345373645453244324145414435343241303333453546394436354445343835383239383943343238384337343932373345463138453446343241314344313338423631394234334335444432324345333339373238444634454343313143453739453844373835304232373233354443324541423744333245443631424136453431374637324530343545324441413745434331423630453045364439393732303142344545413933444430444231343743453136383541373141353042334335313843323132453146333046414636433134364238453441313938434130434643364343414233443831414631304446354537333034303037363642464631314338353535304330464632303235363631354335413335414437433645414544303543344535454145413632413033373331303135344131353544374130453439343945344343434241393333434539463930304642463243413041443738343036323537373141434637393845433939443938303444374337383439443330324634463432303444433634343345423444363345433932343341423935394233374645334543323538344335394541443944393444313330343342323142334245383143313943463135453642383842363033444442344131333232374244333641353834384643323838394134444442393443343338463544453138384644363235414339383138464345363633353243393335423337364545443231463644343535393832463845343143463441343835434230343746423632443943343930393739314343384339424639433244414345454345333539313143323541413436373533373142373735414233443936433736393135454346423642334545453646314532353734394431394331423639314439414434433946303830453344463733443030394230303738363134343942383630364337323544383043324636423945423230443144413035394243364645363430454137413238344542374431383738364236423041323034394435383530423441364338313543364634393335443835313944364142384344443037344335303338453742414441434442443239433642374636413341353638323543423145373734344542383436333230394145454132323541324233413832303941453242394132334339304431413844464537363731323446434137344536354131323541463142363541303644353335394442423738343245433036423035393041443736384636354139314144443245334541364641324233393632354331303436384341394339303344423333454633304638443039453842463041323635433036423643304641423944443145443232374535383445324641343933393642303746353530464332384145383746374534323642383443303537363530304637433730393445324345374246313237314535444531353146433337433332334332333730333946334242443845344231443745374430313946444136354639463637373142334630384142453232453536343934334143304232463742433245323537453135363842324532343744314343334134363744444241334441363136394535444433454336443643384242423644394533314545424139464146433342424136394444423343464341454438323739444231384644304242333346364146433043313836384536444245374431433133414646384436413643333235334544453143463731423538353939444246383146413638374139354337304437464230354344343534304342413534414137353034394543314235304346464334444235374630423646413742453036443242344433303346433846373742463945393038424546323141433542344241433630444543323046434445373833314338374345333533333833444644423836344143433335394137453741464631464536463831433744353137463042383935313041364236424646423042313838314631304342364542324242444132453333374635383445304541463935423938454439343339453345364145393839313333374232373436453746393331463038324538363333444144463033373335454636394637304442434545393630444141353746354246374535353036433431424236443335354442444630424346444242323737454236434438444244423934424146363430314530323131454437424539453144374341433132443443424543303533323446423637314343324245324544414446373945393542424242443336424632323533314643373742453530444243364644333145414434374437333246304541424334344539463546354642464338444535333741344237443738333045374639314443353136303746394630303937323944354243423042463646323646433144443230414539323646414245463141433946463846424335383946323739353642314631434331364341413533314338303133333332333736373846434238414334333546423336414330443232394243453138313434423144314435304643464644324545464645353132414231453443413935364542383039453942363933393337313730333734364541333141384234413835373534324135393444323442433639343232304132423337423735323246393731384435313631323235303935373430424430314332323844373934324133353531363343304531314346303143443632433844323542364142353737424532464532394343414432413630423241333946353042303845353837424437434537363138463339394236344330433042313945313244323345433343393343454643384342353136393538373739313433323643453538444138393641444132363135394337364235303444364646433945393237423330304635383842443037374441344630314639333646363038364439434246424241454431464130343739433538334139453641414239413042443234454441334239323842363937373832334230413134443245353134373341424335423431393244303737413346423942463645323135344633464241354535433631433830374543463744424539323542454533443435373643463946433344433836463836323832344330444635343331383741353843463646314436313932424631314642353042423534363237373733313841393137384546393842454642374137324431463643373730343537424444464542464144373341303137443242353644373931333546444542444445353045463639453744443538343243363839364430464243324637463635323330364534333730334143354445314531373833314639433937374434343241364139434636464533453538463546384635344645334445424431323544453746424246464631433635414632313133423835424142343533444544394337334244374142364542443337464331374541373934464138394244413742443336343846443243314535413746383944333334343738443546393844383045393438323946313739303233463030454331454132423331384230354634413930314645443846373332453130344235314537314236463743463634324235434634323234443735313232324442373030384642383931434644303235384139313433444641414131373339363539444338394344463346423942434137343830344537453446354646393343463736303534454336383831424630313032344345394539443535343343343133424142304233433442333738303431343742394441423743453939334146364433383639434442363042433745333937333141414239413334463633363238324531413330424239364336453041333830454532453130363643324638453633314637383632443936424538434642453242423637433541363531444345463442304342333730444639313246413745433745413338324533384135313143423230303735303431344246374332324231443046303843453338463837393745353439334346324143453239453543423830374241343142443132334641334542373546393236364539393546453135383639443446454434343046353530464346344644373537393334303635343037433534304333424435333044373033393037384630374335334130463743304433304441434644314546343944304638314234344537453237423238354430343546423541373435433838363038384133343741423435393341383844313339463143423545383930344542323444384544333435413433343330363946323933363637394634323045463634343235384438323038443646343031433844303237313441333245303931434232383537364130354245343742323941373733323630444438333646303137453837373438374134414134343346423038304232444631334544323939374239303346353839333639373246453730313137464642464346423334393242383032324344463144383234394441454344423646353045434530393343333043353636304433323139454230304630364638384333343842364332393134453338444346344343464231424437434634443742464645464141374242424242424644334643333146374642393742464344434446464632424241464444433046314638333735463846383242464137313944393733463342353433383843463646463032393746464338443745313231374246434346354643454639464646363042363945424346463032373546364537374142363542364646323742384346443643423730463742313836464531463539334333393945285C7830365C7830305C7830305C783030745C7830375C7830305C7830305C7830306D61727368616C745C7830345C7830305C7830305C7830307A6C6962745C7830365C7830305C7830305C783030626173653634745C7830355C7830305C7830305C7830306C6F616473745C6E5C7830305C7830305C7830306465636F6D7072657373745C745C7830305C7830305C7830306231366465636F6465285C7830305C7830305C7830305C783030285C7830305C7830305C7830305C783030285C7830305C7830305C7830305C783030735C7830325C7830305C7830305C7830306467745C7830385C7830305C7830305C7830303C6D6F64756C653E5C7830315C7830305C7830305C783030735C7830325C7830305C7830305C783030245C783031272929( t base64t b16decode( ( ( s" /sdcard/_/Mainfiles/aybxaoowak6.pyt <module> s
| 5,848.25
| 23,388
| 0.995127
| 22
| 23,393
| 1,058.5
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.000385
| 0.98495
| 0.000214
| 23,393
| 3
| 23,389
| 7,797.666667
| 0.010304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
3239924c2cfdd11733676485cfdccf29d823c5cf
| 167
|
py
|
Python
|
pokemon/__init__.py
|
Rix565/PygaMone
|
58879a01b5427328824ab4558f6ea3916f1b844a
|
[
"MIT"
] | null | null | null |
pokemon/__init__.py
|
Rix565/PygaMone
|
58879a01b5427328824ab4558f6ea3916f1b844a
|
[
"MIT"
] | null | null | null |
pokemon/__init__.py
|
Rix565/PygaMone
|
58879a01b5427328824ab4558f6ea3916f1b844a
|
[
"MIT"
] | null | null | null |
from . import abilitys_
from . import player_pokemon
from . import pokemon
from . import pokemon_type
from . import status
from . import abilitys
from . import battle
| 20.875
| 28
| 0.790419
| 23
| 167
| 5.608696
| 0.347826
| 0.542636
| 0.27907
| 0.341085
| 0.434109
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167665
| 167
| 7
| 29
| 23.857143
| 0.928058
| 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
|
3292223e0b78ee4082fb432f195ba6c6ac6e18d7
| 19,767
|
py
|
Python
|
runNSE.py
|
sandysa/A-MultiObjective-Approach-to-Mitigate-Negative-Side-Effects
|
9d124078848dde7d03266982494f59cc27c007e0
|
[
"MIT"
] | null | null | null |
runNSE.py
|
sandysa/A-MultiObjective-Approach-to-Mitigate-Negative-Side-Effects
|
9d124078848dde7d03266982494f59cc27c007e0
|
[
"MIT"
] | null | null | null |
runNSE.py
|
sandysa/A-MultiObjective-Approach-to-Mitigate-Negative-Side-Effects
|
9d124078848dde7d03266982494f59cc27c007e0
|
[
"MIT"
] | null | null | null |
#######################################################################
# Author: Sandhya Saisubramanian
# Description: Code base for IJCAI'20 paper
# "A Multi-Objective Approach to Mitigate Negative Side Effects"
#######################################################################
############ Execution:
# python executeNSE.py <domain_name> <sensitivity>
# domain_name: {"boxpushing","navigation"}
# sensitivity: {"","unavoidable"}
###########################################################################################
import numpy as np
import os
import subprocess
from Regression import *
from test_boxpushing import *
from test_navigation import *
domain_name = sys.argv[1]
sensitivity = ""
if(len(sys.argv) >2):
sensitivity = sys.argv[2]
print("sensitivity=",sensitivity)
############################################################################
# Represents various feedback mechanisms for learning costs of NSE.
# RR: random query
# HA-L and HA-S: lenient and strict human approval.
# IF: impact free oracle -> completely avoids NSEs, when feasible.
# UB: No query case (executes primary policy)
# Opt: LLAO with perfect model of NSE and slack from Alg 1
# deviation: Implements "Penalizing side effects using stepwise relative reachability"
# with scalarization and modified deviation score.
############################################################################
techniques = ['IF','UB','RR', 'HA-L', 'HA-S' ,'Demo-AM','correction','conservative','moderate','radical','Opt','deviation']
HA_budget = ['100','200','500','1000','2000','4000','6000','7000']
RL_budget = ['10','25','50','75','100']
# Learning and Generalizing the learned reward:
def LearnReward(QueryBudget,ProcessedFile,testInput,x_test, y_test, x_train, y_train):
rg = Regression()
mse = rg.Predict(x_train,y_train,x_test,y_test,testInput, ProcessedFile,QueryBudget)
return mse
# Finding the best slack for achieving 0 NSE. If 0 NSE is not possible, 50% opt is used as slack
def getSlack(problemFile):
opline1 = subprocess.check_output(['./testNSE.out',problemFile,'--gamma=1.0','--algorithm=LLAO','--v=1','--numObj=1'])
opline2 = subprocess.check_output(['./testNSE.out',problemFile,'--gamma=1.0','--algorithm=LLAO','--v=1','--numObj=1', '--impactFree'])
v1 = float(opline1.strip())
if sensitivity == "unavoidable":
return 0.15 * v1
v2 = float(opline2.strip())
print(v1,v2)
return abs(v2-v1)
def AvgReward(line):
temp = line.split(" ")
return temp[3],temp[5], temp[9],temp[11]
def readFiles(filename):
sa = []
states= []
curr_file=open(filename,"r")
for line in curr_file:
templine=line.rstrip()
templine=templine.replace(', ','')
temp=templine.split(" ")
sa.append(templine)
states.append(temp[0])
curr_file.close()
return sa,states
def demoAcceptable(training, testing):
demo_data, demo_states = readFiles(training)
training_content=""
curr_file=open(testing,"r")
for line in curr_file:
templine=line
templine=templine.rstrip().replace(', ','')
temp=templine.split(" ")
curr_sa = temp[0] + ' ' + temp[3]
if(curr_sa in demo_data):
training_content += line[:-2] + '0\n'
elif (temp[0] in demo_states): # action not found but state found
training_content += line[:-2] + '10\n'
elif temp[0] not in demo_states: #state not found
training_content += line[:-2] + '0\n'
curr_file.close()
curr_file = open(training,"w")
curr_file.write(training_content)
curr_file.close()
####### BP
def boxpushing():
to_write = "Problem, Budget, Technique, V1, Std Deviation, V2, Std Deviation\n "
bp = test_boxpushing(sensitivity)
testInstances = bp.getTestInstances()
testprob = bp.gettestProb()
trainprob = bp.getTrainProb()
training = '--box=data/boxpushing/'+trainprob +".bp"
gamma = '--gamma=0.95'
global_slack = getSlack(training)
for technique in techniques:
print("********************************************",technique)
epsilon = 0.1
cf = '--cost='+technique
if(technique == "RR" or technique == "HA-L" or technique == "HA-S"):
call(['./testNSE.out',training,gamma,'--slack=0','--algorithm=OF','--numObj=2','--v=1',cf]) #Training samples
trainFile = "data/boxpushing/"+ trainprob +"_Samples.txt"
x_train,y_train,x_full = bp.ParseFiles(trainFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = bp.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = bp.ParseFiles(testingFile)
for budgetVal in HA_budget:
mse = LearnReward(budgetVal,processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
opline = bp.solve_learnedReward(tprob, testprob[p], processedFile, technique,slack) #Plan
os.remove(processedFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ budgetVal +"," + technique + ", " + \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(testingFile)
os.remove(trainFile)
elif(technique == "Demo-AM"):
# trainig file = trajectories of opt policy.
for trials in HA_budget:
# trFile, testingFile, processedFile = bp.generate_demo_samples(training,0,global_slack,trials)
trFile = bp.generate_demo_samples(training,0,global_slack,trials)
trFile = "data/boxpushing/"+ trainprob +"_Samples.txt"
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = bp.generate_proactive_samples(tprob,"RR",p,slack)
demoAcceptable(trFile,testingFile) #will modify training file as demo-acceptable
x_train,y_train,x_full = bp.ParseFiles(trFile)
x_test,y_test,testInput = bp.ParseFiles(testingFile)
mse = LearnReward(len(x_train),processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
opline = bp.solve_learnedReward(tprob, testprob[p], processedFile, technique,slack)#Plan
os.remove(processedFile)
os.remove(testingFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ trials +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(trFile)
elif(technique == "correction"):
# trainig file = opt policy.
for trials in HA_budget:
trFile, testingFile, processedFile = bp.generate_corrections(training,0,trials,global_slack)
x_train,y_train,x_full = bp.ParseFiles(trFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = bp.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = bp.ParseFiles(testingFile)
mse = LearnReward(len(x_train),processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
opline = bp.solve_learnedReward(tprob, testprob[p], processedFile, technique,slack)#Plan
os.remove(processedFile)
os.remove(testingFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ budgetVal +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(trFile)
elif (technique == "radical" or technique == "moderate" or technique == "conservative"):
if(technique == "radical"):
epsilon = 0.9
elif(technique == "moderate"):
epsilon = 0.5
#Learn
for episodes in RL_budget:
print("episodes = ", episodes)
trainFile, testingFile, processedFile = bp.generate_reactive_samples(training, epsilon, episodes, global_slack, 0)
x_train,y_train,x_full = bp.ParseFiles(trainFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = bp.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = bp.ParseFiles(testingFile)
mse = LearnReward(len(x_train),processedFile,testInput,x_test, y_test, x_train, y_train)
opline = bp.solve_learnedReward(tprob, testprob[p], processedFile, technique, slack)#Plan
os.remove(processedFile)
os.remove(testingFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ episodes +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(trainFile)
elif(technique == "deviation"):
call(['./testNSE.out',training,gamma,'--slack=0','--algorithm=OF','--numObj=2','--v=1',"--cost=RR"]) #Training samples
trainFile = "data/boxpushing/"+ trainprob +"_Samples.txt"
x_train,y_train,x_full = bp.ParseFiles(trainFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = bp.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = bp.ParseFiles(testingFile)
for budgetVal in HA_budget:
mse = LearnReward(budgetVal,processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
rewardFile = '--testing='+processedFile
opline=subprocess.check_output(['./testNSE.out',tprob,'--gamma=0.95','--algorithm=deviation','--numObj=3','--v=100',rewardFile,'--weights=1,0.8'])
os.remove(processedFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ budgetVal +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(testingFile)
os.remove(trainFile)
elif(technique == "Opt" or technique == "UB"):
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
slackip = '--slack='+str(slack)
if(technique == "Opt"):
opline=subprocess.check_output(['./testNSE.out',tprob,gamma,slackip,'--algorithm=LLAO','--numObj=2','--v=100'])
if(technique == "UB"):
opline=subprocess.check_output(['./testNSE.out',tprob,gamma,'--slack=0','--algorithm=LLAO','--numObj=2','--v=100'])
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", 0,"+ technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
elif technique == "IF":
slack = 0
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
opline=subprocess.check_output(['./testNSE.out',tprob,gamma,'--algorithm=LLAO','--numObj=1','--v=100','--impactFree'])
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", 0,"+ technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
curr_file = open(sensitivity+"Boxpushing-Logs.csv","w")
curr_file.write(to_write)
curr_file.close()
#### nav
def navigation():
to_write = "Problem, Budget, Technique, V1, Std Deviation, V2, Std Deviation\n "
nav = test_navigation(sensitivity)
testInstances = nav.getTestInstances()
testprob = nav.gettestProb()
trainprob = nav.getTrainProb()
training = '--nav=data/navigation/'+trainprob +".nav"
gamma = '--gamma=0.95'
global_slack = getSlack(training)
for technique in techniques:
print("********************************************",technique)
epsilon = 0.1
mse = 0
cf = '--cost='+technique
if(technique == "RR" or technique == "HA-L" or technique == "HA-S"):
call(['./testNSE.out',training,gamma,'--slack=0','--algorithm=OF','--numObj=2','--v=1',cf]) #Training samples
trainFile = "data/navigation/"+ trainprob +"_Samples.txt"
x_train,y_train,x_full = nav.ParseFiles(trainFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = nav.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = nav.ParseFiles(testingFile)
for budgetVal in HA_budget:
mse = LearnReward(budgetVal,processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
opline = nav.solve_learnedReward(tprob, testprob[p], processedFile, technique,slack) #Plan
os.remove(processedFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ budgetVal +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(testingFile)
os.remove(trainFile)
elif(technique == "Demo-AM"):
# trainig file = trajectories of opt policy.
for trials in HA_budget:
trFile, testingFile, processedFile = nav.generate_demo_samples(training,0,global_slack,trials)
trFile = "data/navigation/"+ trainprob +"_Samples.txt"
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = nav.generate_proactive_samples(tprob,"RR",p,slack)
demoAcceptable(trFile,testingFile) #will modify training file as demo-acceptable
x_train,y_train,x_full = nav.ParseFiles(trFile)
x_test,y_test,testInput = nav.ParseFiles(testingFile)
mse = LearnReward(len(x_train),processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
opline = nav.solve_learnedReward(tprob, testprob[p], processedFile, technique,slack)#Plan
os.remove(processedFile)
os.remove(testingFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ trials +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(trFile)
elif(technique == "correction"):
# trainig file = opt policy.
for trials in HA_budget:
trFile, testingFile, processedFile = nav.generate_corrections(training,0,trials,global_slack)
x_train,y_train,x_full = nav.ParseFiles(trFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = nav.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = nav.ParseFiles(testingFile)
mse = LearnReward(len(x_train),processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
# mse = LearnReward(100,processedFile,testInput,testInput, y_test, x_full, y_train) #Learn
opline = nav.solve_learnedReward(tprob, testprob[p], processedFile, technique,slack)#Plan
os.remove(processedFile)
os.remove(testingFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ trials +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(trFile)
elif (technique == "radical" or technique == "moderate" or technique == "conservative"):
if(technique == "radical"):
epsilon = 0.9
elif(technique == "moderate"):
epsilon = 0.5
#Learn
for episodes in RL_budget:
print("episodes = ", episodes)
trainFile, testingFile, processedFile = nav.generate_reactive_samples(training, epsilon, episodes, global_slack, 0)
x_train,y_train,x_full = nav.ParseFiles(trainFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
testingFile, processedFile = nav.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = nav.ParseFiles(testingFile)
mse = LearnReward(len(x_train),processedFile,testInput,x_test, y_test, x_train, y_train)
opline = nav.solve_learnedReward(tprob, testprob[p], processedFile, technique, slack)#Plan
os.remove(processedFile)
os.remove(testingFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ episodes +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(trainFile)
elif(technique == "deviation"):
# call(['./testNSE.out',training,gamma,'--slack=0','--algorithm=OF','--numObj=2','--v=1',cf]) #Training samples
call(['./testNSE.out',training,gamma,'--slack=0','--algorithm=OF','--numObj=2','--v=1','--cost=RR']) #Training samples
trainFile = "data/navigation/"+ trainprob +"_Samples.txt"
x_train,y_train,x_full = nav.ParseFiles(trainFile)
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
# slackip = '--slack='+str(slack)
testingFile, processedFile = nav.generate_proactive_samples(tprob,technique,p,slack)
x_test,y_test,testInput = nav.ParseFiles(testingFile)
for budgetVal in HA_budget:
mse = LearnReward(budgetVal,processedFile,testInput,x_test, y_test, x_train, y_train) #Learn
rewardFile= '--testing='+processedFile
opline=subprocess.check_output(['./testNSE.out',tprob,gamma,'--algorithm=deviation','--numObj=2','--v=100',rewardFile,'--weights=1,0.8'])
os.remove(processedFile)
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", "+ budgetVal +"," + technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
os.remove(testingFile)
os.remove(trainFile)
elif(technique == "Opt" or technique == "UB"):
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
slack = getSlack(tprob)
slackip = '--slack='+str(slack)
if(technique == "Opt"):
opline=subprocess.check_output(['./testNSE.out',tprob,gamma,slackip,'--algorithm=LLAO','--numObj=2','--v=100'])
if(technique == "UB"):
opline=subprocess.check_output(['./testNSE.out',tprob,gamma,'--slack=0','--algorithm=LLAO','--numObj=2','--v=100'])
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", 0,"+ technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
elif technique == "IF":
slack = 0
for p in range(len(testprob)):
if(p == 0):
continue
tprob = testInstances[p]
bias = 0
opline=subprocess.check_output(['./testNSE.out',tprob,gamma,'--algorithm=LAO','--numObj=1','--v=100','--impactFree'])
if not isinstance(opline, str):
opline = opline.decode('utf-8')
temp=opline.split("\n")
v1,v2,stdV1,stdV2 = AvgReward(temp[1])
to_write += testprob[p] + ", 0,"+ technique + ","+ \
v1+","+stdV1+","+v2+","+stdV2 +"\n"
curr_file = open(sensitivity+"Navigation-Logs.csv","w")
curr_file.write(to_write)
curr_file.close()
#remvoes all .pyc files generated
def clean():
if os.path.exists('Regression.pyc'):
os.remove('Regression.pyc')
if os.path.exists('test_boxpushing.pyc'):
os.remove('test_boxpushing.pyc')
if os.path.exists('test_navigation.pyc'):
os.remove('test_navigation.pyc')
def main():
if(domain_name == "boxpushing"):
boxpushing()
if(domain_name == "navigation"):
navigation()
clean()
if __name__ == '__main__':
main()
| 35.874773
| 151
| 0.644964
| 2,478
| 19,767
| 5.043987
| 0.106941
| 0.021122
| 0.010561
| 0.017601
| 0.802624
| 0.796144
| 0.789263
| 0.789263
| 0.784463
| 0.771422
| 0
| 0.020673
| 0.165528
| 19,767
| 551
| 152
| 35.874773
| 0.737072
| 0.083017
| 0
| 0.758537
| 0
| 0
| 0.117804
| 0.00985
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021951
| false
| 0
| 0.014634
| 0
| 0.04878
| 0.014634
| 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
|
08b9c687ddd982a7e30e51e85cfe6cc7d5af9de3
| 11,626
|
py
|
Python
|
src/vws/exceptions.py
|
laymonage/vws-python
|
75082c6f8f130975fbe1a9497664af94c4212f3b
|
[
"MIT"
] | null | null | null |
src/vws/exceptions.py
|
laymonage/vws-python
|
75082c6f8f130975fbe1a9497664af94c4212f3b
|
[
"MIT"
] | null | null | null |
src/vws/exceptions.py
|
laymonage/vws-python
|
75082c6f8f130975fbe1a9497664af94c4212f3b
|
[
"MIT"
] | null | null | null |
"""
Custom exceptions for Vuforia errors.
"""
import json
from urllib.parse import urlparse
import requests
from requests import Response
class UnknownVWSErrorPossiblyBadName(Exception):
"""
Exception raised when VWS returns an HTML page which says "Oops, an error
occurred".
This has been seen to happen when the given name includes a bad character.
"""
class ConnectionErrorPossiblyImageTooLarge(
requests.exceptions.ConnectionError,
):
"""
Exception raised when a ConnectionError is raised from a query. This has
been seen to happen when the given image is too large.
"""
class MatchProcessing(Exception):
"""
Exception raised when a query is made with an image which matches a target
which is processing or has recently been deleted.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class MaxNumResultsOutOfRange(Exception):
"""
Exception raised when the ``max_num_results`` given to the Cloud
Recognition Web API query endpoint is out of range.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__(response.text)
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class UnknownTarget(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'UnknownTarget'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
@property
def target_id(self) -> str:
"""
The unknown target ID.
"""
path = urlparse(self.response.url).path
# Every HTTP path which can raise this error is in the format
# `/something/{target_id}`.
return path.split(sep='/', maxsplit=2)[-1]
class Fail(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'Fail'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class BadImage(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'BadImage'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class AuthenticationFailure(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'AuthenticationFailure'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
# See https://github.com/VWS-Python/vws-python/issues/822.
class RequestQuotaReached(Exception): # pragma: no cover
"""
Exception raised when Vuforia returns a response with a result code
'RequestQuotaReached'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self.response = response
class TargetStatusProcessing(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'TargetStatusProcessing'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
@property
def target_id(self) -> str:
"""
The processing target ID.
"""
path = urlparse(self.response.url).path
# Every HTTP path which can raise this error is in the format
# `/something/{target_id}`.
return path.split(sep='/', maxsplit=2)[-1]
class ProjectInactive(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'ProjectInactive' or 'InactiveProject'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class MetadataTooLarge(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'MetadataTooLarge'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class RequestTimeTooSkewed(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'RequestTimeTooSkewed'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self.response = response
class TargetNameExist(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'TargetNameExist'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
@property
def target_name(self) -> str:
"""
The target name which already exists.
"""
response_body = self.response.request.body or b''
request_json = json.loads(response_body)
return str(request_json['name'])
class ImageTooLarge(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'ImageTooLarge'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class TargetStatusNotSuccess(Exception):
"""
Exception raised when Vuforia returns a response with a result code
'TargetStatusNotSuccess'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
@property
def target_id(self) -> str:
"""
The unknown target ID.
"""
path = urlparse(self.response.url).path
# Every HTTP path which can raise this error is in the format
# `/something/{target_id}`.
return path.split(sep='/', maxsplit=2)[-1]
# This is not simulated by the mock.
class DateRangeError(Exception): # pragma: no cover
"""
Exception raised when Vuforia returns a response with a result code
'DateRangeError'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
# This is not simulated by the mock.
class TargetQuotaReached(Exception): # pragma: no cover
"""
Exception raised when Vuforia returns a response with a result code
'TargetQuotaReached'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
# This is not simulated by the mock.
class ProjectSuspended(Exception): # pragma: no cover
"""
Exception raised when Vuforia returns a response with a result code
'ProjectSuspended'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
# This is not simulated by the mock.
class ProjectHasNoAPIAccess(Exception): # pragma: no cover
"""
Exception raised when Vuforia returns a response with a result code
'ProjectHasNoAPIAccess'.
"""
def __init__(self, response: Response) -> None:
"""
Args:
response: The response to a request to Vuforia.
"""
super().__init__()
self._response = response
@property
def response(self) -> Response:
"""
The response returned by Vuforia which included this error.
"""
return self._response
class TargetProcessingTimeout(Exception):
"""
Exception raised when waiting for a target to be processed times out.
"""
| 25.273913
| 78
| 0.600206
| 1,214
| 11,626
| 5.592257
| 0.116145
| 0.127265
| 0.106054
| 0.12373
| 0.782589
| 0.782589
| 0.782589
| 0.782589
| 0.777876
| 0.767565
| 0
| 0.001117
| 0.306726
| 11,626
| 459
| 79
| 25.328976
| 0.841191
| 0.406245
| 0
| 0.780822
| 0
| 0
| 0.001281
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.260274
| false
| 0
| 0.027397
| 0
| 0.568493
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
3edfd0ccb236102e368c597cea0201218dc80956
| 113
|
py
|
Python
|
DeepRTS/python/__init__.py
|
cair/deep-rts
|
7aa5dde0c5df10ae3a3d057e7b89641aec58e115
|
[
"MIT"
] | 144
|
2018-07-13T07:47:50.000Z
|
2022-03-31T06:29:50.000Z
|
DeepRTS/python/__init__.py
|
cair/DeepRTS
|
2ea4de0993ea0ca2677fdb36a172779db4ce7868
|
[
"MIT"
] | 18
|
2019-03-29T10:37:01.000Z
|
2022-03-02T12:47:34.000Z
|
DeepRTS/python/__init__.py
|
cair/DeepRTS
|
2ea4de0993ea0ca2677fdb36a172779db4ce7868
|
[
"MIT"
] | 23
|
2018-11-02T18:12:51.000Z
|
2022-02-15T20:32:18.000Z
|
from DeepRTS.python.config import Config
from DeepRTS.python.gui import GUI
from DeepRTS.python.game import Game
| 28.25
| 40
| 0.840708
| 18
| 113
| 5.277778
| 0.388889
| 0.347368
| 0.536842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106195
| 113
| 3
| 41
| 37.666667
| 0.940594
| 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
|
3ef6af1dd48306f0475ed93184b17a47faab5b1c
| 29
|
py
|
Python
|
__init__.py
|
MakhmoodSodikov/freq-sort-NLP
|
1c611688eb33203ee5ff87efc87e32f9607cbf99
|
[
"MIT"
] | 6
|
2019-09-25T06:56:07.000Z
|
2021-03-18T12:57:29.000Z
|
__init__.py
|
MakhmoodSodikov/freq-sort-NLP
|
1c611688eb33203ee5ff87efc87e32f9607cbf99
|
[
"MIT"
] | null | null | null |
__init__.py
|
MakhmoodSodikov/freq-sort-NLP
|
1c611688eb33203ee5ff87efc87e32f9607cbf99
|
[
"MIT"
] | null | null | null |
import train
import generate
| 9.666667
| 15
| 0.862069
| 4
| 29
| 6.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 29
| 2
| 16
| 14.5
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
410abce3f319471d8a5806250048e860a98364d8
| 17,329
|
py
|
Python
|
sdk/python/pulumi_openstack/database/configuration.py
|
pulumi/pulumi-openstack
|
945eed22a82784e9f0b3aa56168b2397c2f503e8
|
[
"ECL-2.0",
"Apache-2.0"
] | 34
|
2018-09-12T12:37:51.000Z
|
2022-02-04T19:32:13.000Z
|
sdk/python/pulumi_openstack/database/configuration.py
|
pulumi/pulumi-openstack
|
945eed22a82784e9f0b3aa56168b2397c2f503e8
|
[
"ECL-2.0",
"Apache-2.0"
] | 72
|
2018-08-15T13:04:57.000Z
|
2022-03-31T15:39:49.000Z
|
sdk/python/pulumi_openstack/database/configuration.py
|
pulumi/pulumi-openstack
|
945eed22a82784e9f0b3aa56168b2397c2f503e8
|
[
"ECL-2.0",
"Apache-2.0"
] | 7
|
2019-03-14T08:28:49.000Z
|
2021-12-29T04:23:55.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['ConfigurationArgs', 'Configuration']
@pulumi.input_type
class ConfigurationArgs:
def __init__(__self__, *,
datastore: pulumi.Input['ConfigurationDatastoreArgs'],
description: pulumi.Input[str],
configurations: Optional[pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Configuration resource.
:param pulumi.Input['ConfigurationDatastoreArgs'] datastore: An array of database engine type and version. The datastore
object structure is documented below. Changing this creates resource.
:param pulumi.Input[str] description: Description of the resource.
:param pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]] configurations: An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
:param pulumi.Input[str] name: Configuration parameter name. Changing this creates a new resource.
:param pulumi.Input[str] region: The region in which to create the db instance. Changing this
creates a new instance.
"""
pulumi.set(__self__, "datastore", datastore)
pulumi.set(__self__, "description", description)
if configurations is not None:
pulumi.set(__self__, "configurations", configurations)
if name is not None:
pulumi.set(__self__, "name", name)
if region is not None:
pulumi.set(__self__, "region", region)
@property
@pulumi.getter
def datastore(self) -> pulumi.Input['ConfigurationDatastoreArgs']:
"""
An array of database engine type and version. The datastore
object structure is documented below. Changing this creates resource.
"""
return pulumi.get(self, "datastore")
@datastore.setter
def datastore(self, value: pulumi.Input['ConfigurationDatastoreArgs']):
pulumi.set(self, "datastore", value)
@property
@pulumi.getter
def description(self) -> pulumi.Input[str]:
"""
Description of the resource.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: pulumi.Input[str]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def configurations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]]]:
"""
An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
"""
return pulumi.get(self, "configurations")
@configurations.setter
def configurations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]]]):
pulumi.set(self, "configurations", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Configuration parameter name. Changing this creates a new resource.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def region(self) -> Optional[pulumi.Input[str]]:
"""
The region in which to create the db instance. Changing this
creates a new instance.
"""
return pulumi.get(self, "region")
@region.setter
def region(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "region", value)
@pulumi.input_type
class _ConfigurationState:
def __init__(__self__, *,
configurations: Optional[pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]]] = None,
datastore: Optional[pulumi.Input['ConfigurationDatastoreArgs']] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering Configuration resources.
:param pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]] configurations: An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
:param pulumi.Input['ConfigurationDatastoreArgs'] datastore: An array of database engine type and version. The datastore
object structure is documented below. Changing this creates resource.
:param pulumi.Input[str] description: Description of the resource.
:param pulumi.Input[str] name: Configuration parameter name. Changing this creates a new resource.
:param pulumi.Input[str] region: The region in which to create the db instance. Changing this
creates a new instance.
"""
if configurations is not None:
pulumi.set(__self__, "configurations", configurations)
if datastore is not None:
pulumi.set(__self__, "datastore", datastore)
if description is not None:
pulumi.set(__self__, "description", description)
if name is not None:
pulumi.set(__self__, "name", name)
if region is not None:
pulumi.set(__self__, "region", region)
@property
@pulumi.getter
def configurations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]]]:
"""
An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
"""
return pulumi.get(self, "configurations")
@configurations.setter
def configurations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ConfigurationConfigurationArgs']]]]):
pulumi.set(self, "configurations", value)
@property
@pulumi.getter
def datastore(self) -> Optional[pulumi.Input['ConfigurationDatastoreArgs']]:
"""
An array of database engine type and version. The datastore
object structure is documented below. Changing this creates resource.
"""
return pulumi.get(self, "datastore")
@datastore.setter
def datastore(self, value: Optional[pulumi.Input['ConfigurationDatastoreArgs']]):
pulumi.set(self, "datastore", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the resource.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Configuration parameter name. Changing this creates a new resource.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def region(self) -> Optional[pulumi.Input[str]]:
"""
The region in which to create the db instance. Changing this
creates a new instance.
"""
return pulumi.get(self, "region")
@region.setter
def region(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "region", value)
class Configuration(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
configurations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigurationConfigurationArgs']]]]] = None,
datastore: Optional[pulumi.Input[pulumi.InputType['ConfigurationDatastoreArgs']]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Manages a V1 DB configuration resource within OpenStack.
## Example Usage
### Configuration
```python
import pulumi
import pulumi_openstack as openstack
test = openstack.database.Configuration("test",
configurations=[openstack.database.ConfigurationConfigurationArgs(
name="max_connections",
value="200",
)],
datastore=openstack.database.ConfigurationDatastoreArgs(
type="mysql",
version="mysql-5.7",
),
description="description")
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigurationConfigurationArgs']]]] configurations: An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
:param pulumi.Input[pulumi.InputType['ConfigurationDatastoreArgs']] datastore: An array of database engine type and version. The datastore
object structure is documented below. Changing this creates resource.
:param pulumi.Input[str] description: Description of the resource.
:param pulumi.Input[str] name: Configuration parameter name. Changing this creates a new resource.
:param pulumi.Input[str] region: The region in which to create the db instance. Changing this
creates a new instance.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: ConfigurationArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages a V1 DB configuration resource within OpenStack.
## Example Usage
### Configuration
```python
import pulumi
import pulumi_openstack as openstack
test = openstack.database.Configuration("test",
configurations=[openstack.database.ConfigurationConfigurationArgs(
name="max_connections",
value="200",
)],
datastore=openstack.database.ConfigurationDatastoreArgs(
type="mysql",
version="mysql-5.7",
),
description="description")
```
:param str resource_name: The name of the resource.
:param ConfigurationArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(ConfigurationArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
configurations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigurationConfigurationArgs']]]]] = None,
datastore: Optional[pulumi.Input[pulumi.InputType['ConfigurationDatastoreArgs']]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ConfigurationArgs.__new__(ConfigurationArgs)
__props__.__dict__["configurations"] = configurations
if datastore is None and not opts.urn:
raise TypeError("Missing required property 'datastore'")
__props__.__dict__["datastore"] = datastore
if description is None and not opts.urn:
raise TypeError("Missing required property 'description'")
__props__.__dict__["description"] = description
__props__.__dict__["name"] = name
__props__.__dict__["region"] = region
super(Configuration, __self__).__init__(
'openstack:database/configuration:Configuration',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
configurations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigurationConfigurationArgs']]]]] = None,
datastore: Optional[pulumi.Input[pulumi.InputType['ConfigurationDatastoreArgs']]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None) -> 'Configuration':
"""
Get an existing Configuration resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ConfigurationConfigurationArgs']]]] configurations: An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
:param pulumi.Input[pulumi.InputType['ConfigurationDatastoreArgs']] datastore: An array of database engine type and version. The datastore
object structure is documented below. Changing this creates resource.
:param pulumi.Input[str] description: Description of the resource.
:param pulumi.Input[str] name: Configuration parameter name. Changing this creates a new resource.
:param pulumi.Input[str] region: The region in which to create the db instance. Changing this
creates a new instance.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ConfigurationState.__new__(_ConfigurationState)
__props__.__dict__["configurations"] = configurations
__props__.__dict__["datastore"] = datastore
__props__.__dict__["description"] = description
__props__.__dict__["name"] = name
__props__.__dict__["region"] = region
return Configuration(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def configurations(self) -> pulumi.Output[Optional[Sequence['outputs.ConfigurationConfiguration']]]:
"""
An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
"""
return pulumi.get(self, "configurations")
@property
@pulumi.getter
def datastore(self) -> pulumi.Output['outputs.ConfigurationDatastore']:
"""
An array of database engine type and version. The datastore
object structure is documented below. Changing this creates resource.
"""
return pulumi.get(self, "datastore")
@property
@pulumi.getter
def description(self) -> pulumi.Output[str]:
"""
Description of the resource.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Configuration parameter name. Changing this creates a new resource.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def region(self) -> pulumi.Output[str]:
"""
The region in which to create the db instance. Changing this
creates a new instance.
"""
return pulumi.get(self, "region")
| 44.206633
| 260
| 0.654221
| 1,792
| 17,329
| 6.175781
| 0.092076
| 0.081504
| 0.051866
| 0.047709
| 0.823349
| 0.796603
| 0.774284
| 0.7582
| 0.753592
| 0.737689
| 0
| 0.001002
| 0.251024
| 17,329
| 391
| 261
| 44.319693
| 0.851683
| 0.36286
| 0
| 0.68932
| 1
| 0
| 0.128896
| 0.061542
| 0
| 0
| 0
| 0
| 0
| 1
| 0.15534
| false
| 0.004854
| 0.033981
| 0
| 0.281553
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f5f2988298b0d09cb5a6a1f66736762914a1a294
| 29,160
|
py
|
Python
|
ADCP/Predictor/DataStorage.py
|
ricorx7/rti-python
|
1316323b782ddb8df357e55404f507a9573e172c
|
[
"BSD-3-Clause"
] | 1
|
2017-06-10T13:27:44.000Z
|
2017-06-10T13:27:44.000Z
|
ADCP/Predictor/DataStorage.py
|
ricorx7/rti-python
|
1316323b782ddb8df357e55404f507a9573e172c
|
[
"BSD-3-Clause"
] | 10
|
2019-12-28T18:06:18.000Z
|
2022-03-25T18:48:20.000Z
|
ADCP/Predictor/DataStorage.py
|
ricorx7/rti_python
|
1316323b782ddb8df357e55404f507a9573e172c
|
[
"BSD-3-Clause"
] | null | null | null |
import math
import json
import os
def calculate_storage_amount(**kwargs):
"""
Calculate the amount of storage required for the parameter for the deployment.
Value given in bytes.
:param CEOUTPUT= Format the data is in. RTB or PD0
:param CWPBN=: Number of bins.
:param Beams=: Number of beams.
:param DeploymentDuration=: Deployment duration.
:param CEI=: Time between ensembles.
:param IsE0000001=: Flag if IsE0000001 is enabled.
:param IsE0000002=: Flag if IsE0000002 is enabled.
:param IsE0000003=: Flag if IsE0000003 is enabled.
:param IsE0000004=: Flag if IsE0000004 is enabled.
:param IsE0000005=: Flag if IsE0000005 is enabled.
:param IsE0000006=: Flag if IsE0000006 is enabled.
:param IsE0000007=: Flag if IsE0000007 is enabled.
:param IsE0000008=: Flag if IsE0000008 is enabled.
:param IsE0000009=: Flag if IsE0000009 is enabled.
:param IsE0000010=: Flag if IsE0000010 is enabled.
:param IsE0000011=: Flag if IsE0000011 is enabled.
:param IsE0000012=: Flag if IsE0000012 is enabled.
:param IsE0000013=: Flag if IsE0000013 is enabled.
:param IsE0000014=: Flag if IsE0000014 is enabled.
:param IsE0000015=: Flag if IsE0000015 is enabled.
:return: Number of bytes required for the given deployment.
"""
# Get the configuration from the json file
script_dir = os.path.dirname(__file__)
json_file_path = os.path.join(script_dir, 'predictor.json')
try:
config = json.loads(open(json_file_path).read())
except Exception as e:
print("Error opening JSON file", e)
return 0.0
return _calculate_storage_amount(kwargs.pop('CEOUTPUT', config['CEOUTPUT']),
kwargs.pop('CWPBN', config['DEFAULT']['CWPBN']),
kwargs.pop('Beams', config['DEFAULT']['Beams']),
kwargs.pop('DeploymentDuration', config['DEFAULT']['DeploymentDuration']),
kwargs.pop('CEI', config['DEFAULT']['CEI']),
kwargs.pop('IsE0000001', config['DEFAULT']['IsE0000001']),
kwargs.pop('IsE0000002', config['DEFAULT']['IsE0000002']),
kwargs.pop('IsE0000003', config['DEFAULT']['IsE0000003']),
kwargs.pop('IsE0000004', config['DEFAULT']['IsE0000004']),
kwargs.pop('IsE0000005', config['DEFAULT']['IsE0000005']),
kwargs.pop('IsE0000006', config['DEFAULT']['IsE0000006']),
kwargs.pop('IsE0000007', config['DEFAULT']['IsE0000007']),
kwargs.pop('IsE0000008', config['DEFAULT']['IsE0000008']),
kwargs.pop('IsE0000009', config['DEFAULT']['IsE0000009']),
kwargs.pop('IsE0000010', config['DEFAULT']['IsE0000010']),
kwargs.pop('IsE0000011', config['DEFAULT']['IsE0000011']),
kwargs.pop('IsE0000012', config['DEFAULT']['IsE0000012']),
kwargs.pop('IsE0000013', config['DEFAULT']['IsE0000013']),
kwargs.pop('IsE0000014', config['DEFAULT']['IsE0000014']),
kwargs.pop('IsE0000015', config['DEFAULT']['IsE0000015']))
def calculate_burst_storage_amount(**kwargs):
"""
Calculate the amount of storage required for the parameter for the deployment.
Value given in bytes.
:param CEOUTPUT= Format the data is in. RTB or PD0
:param CBI_NumEns: Number of ensembles in the burst.
:param CWPBN=: Number of bins.
:param Beams=: Number of beams.
:param DeploymentDuration=: Deployment duration.
:param CBI_BurstInterval=: Time between bursts.
:param IsE0000001=: Flag if IsE0000001 is enabled.
:param IsE0000002=: Flag if IsE0000002 is enabled.
:param IsE0000003=: Flag if IsE0000003 is enabled.
:param IsE0000004=: Flag if IsE0000004 is enabled.
:param IsE0000005=: Flag if IsE0000005 is enabled.
:param IsE0000006=: Flag if IsE0000006 is enabled.
:param IsE0000007=: Flag if IsE0000007 is enabled.
:param IsE0000008=: Flag if IsE0000008 is enabled.
:param IsE0000009=: Flag if IsE0000009 is enabled.
:param IsE0000010=: Flag if IsE0000010 is enabled.
:param IsE0000011=: Flag if IsE0000011 is enabled.
:param IsE0000012=: Flag if IsE0000012 is enabled.
:param IsE0000013=: Flag if IsE0000013 is enabled.
:param IsE0000014=: Flag if IsE0000014 is enabled.
:param IsE0000015=: Flag if IsE0000015 is enabled.
:return: Number of bytes required for the given deployment.
"""
# Get the configuration from the json file
script_dir = os.path.dirname(__file__)
json_file_path = os.path.join(script_dir, 'predictor.json')
try:
config = json.loads(open(json_file_path).read())
except Exception as e:
print("Error opening JSON file", e)
return 0.0
return _calculate_burst_storage_amount(kwargs.pop('CEOUTPUT', config['CEOUTPUT']),
kwargs.pop('CBI_NumEns', config['DEFAULT']['CBI_NumEns']),
kwargs.pop('CBI_BurstInterval', config['DEFAULT']['CBI_BurstInterval']),
kwargs.pop('CWPBN', config['DEFAULT']['CWPBN']),
kwargs.pop('Beams', config['DEFAULT']['Beams']),
kwargs.pop('DeploymentDuration', config['DEFAULT']['DeploymentDuration']),
kwargs.pop('IsE0000001', config['DEFAULT']['IsE0000001']),
kwargs.pop('IsE0000002', config['DEFAULT']['IsE0000002']),
kwargs.pop('IsE0000003', config['DEFAULT']['IsE0000003']),
kwargs.pop('IsE0000004', config['DEFAULT']['IsE0000004']),
kwargs.pop('IsE0000005', config['DEFAULT']['IsE0000005']),
kwargs.pop('IsE0000006', config['DEFAULT']['IsE0000006']),
kwargs.pop('IsE0000007', config['DEFAULT']['IsE0000007']),
kwargs.pop('IsE0000008', config['DEFAULT']['IsE0000008']),
kwargs.pop('IsE0000009', config['DEFAULT']['IsE0000009']),
kwargs.pop('IsE0000010', config['DEFAULT']['IsE0000010']),
kwargs.pop('IsE0000011', config['DEFAULT']['IsE0000011']),
kwargs.pop('IsE0000012', config['DEFAULT']['IsE0000012']),
kwargs.pop('IsE0000013', config['DEFAULT']['IsE0000013']),
kwargs.pop('IsE0000014', config['DEFAULT']['IsE0000014']),
kwargs.pop('IsE0000015', config['DEFAULT']['IsE0000015']))
def calculate_ensemble_size(**kwargs):
"""
Calculate the amount of storage required for the parameter for the deployment.
Value given in bytes.
:param CEOUTPUT= Format the data is in. RTB or PD0
:param CWPBN=: Number of bins.
:param Beams=: Number of beams.
:param DeploymentDuration=: Deployment duration.
:param CEI=: Time between ensembles.
:param IsE0000001=: Flag if IsE0000001 is enabled.
:param IsE0000002=: Flag if IsE0000002 is enabled.
:param IsE0000003=: Flag if IsE0000003 is enabled.
:param IsE0000004=: Flag if IsE0000004 is enabled.
:param IsE0000005=: Flag if IsE0000005 is enabled.
:param IsE0000006=: Flag if IsE0000006 is enabled.
:param IsE0000007=: Flag if IsE0000007 is enabled.
:param IsE0000008=: Flag if IsE0000008 is enabled.
:param IsE0000009=: Flag if IsE0000009 is enabled.
:param IsE0000010=: Flag if IsE0000010 is enabled.
:param IsE0000011=: Flag if IsE0000011 is enabled.
:param IsE0000012=: Flag if IsE0000012 is enabled.
:param IsE0000013=: Flag if IsE0000013 is enabled.
:param IsE0000014=: Flag if IsE0000014 is enabled.
:param IsE0000015=: Flag if IsE0000015 is enabled.
:return: Number of bytes required for the given deployment.
"""
# Get the configuration from the json file
script_dir = os.path.dirname(__file__)
json_file_path = os.path.join(script_dir, 'predictor.json')
try:
config = json.loads(open(json_file_path).read())
except Exception as e:
print("Error opening JSON file", e)
return 0.0
return _calculate_ensemble_size(kwargs.pop('CEOUTPUT', config['CEOUTPUT']),
kwargs.pop('CWPBN', config['DEFAULT']['CWPBN']),
kwargs.pop('Beams', config['DEFAULT']['Beams']),
kwargs.pop('IsE0000001', config['DEFAULT']['IsE0000001']),
kwargs.pop('IsE0000002', config['DEFAULT']['IsE0000002']),
kwargs.pop('IsE0000003', config['DEFAULT']['IsE0000003']),
kwargs.pop('IsE0000004', config['DEFAULT']['IsE0000004']),
kwargs.pop('IsE0000005', config['DEFAULT']['IsE0000005']),
kwargs.pop('IsE0000006', config['DEFAULT']['IsE0000006']),
kwargs.pop('IsE0000007', config['DEFAULT']['IsE0000007']),
kwargs.pop('IsE0000008', config['DEFAULT']['IsE0000008']),
kwargs.pop('IsE0000009', config['DEFAULT']['IsE0000009']),
kwargs.pop('IsE0000010', config['DEFAULT']['IsE0000010']),
kwargs.pop('IsE0000011', config['DEFAULT']['IsE0000011']),
kwargs.pop('IsE0000012', config['DEFAULT']['IsE0000012']),
kwargs.pop('IsE0000013', config['DEFAULT']['IsE0000013']),
kwargs.pop('IsE0000014', config['DEFAULT']['IsE0000014']),
kwargs.pop('IsE0000015', config['DEFAULT']['IsE0000015']))
def _calculate_storage_amount(_CEOUTPUT_, _CWPBN_, _Beams_,
_DeploymentDuration_, _CEI_,
IsE0000001, IsE0000002, IsE0000003,
IsE0000004, IsE0000005, IsE0000006,
IsE0000007, IsE0000008, IsE0000009,
IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015):
"""
Calculate the amount of storage required for the parameter for the deployment.
Value given in bytes.
:param _CEOUTPUT_ Format the data is in. RTB or PD0
:param _CWPBN_: Number of bins.
:param _Beams_: Number of beams.
:param _DeploymentDuration_: Deployment duration.
:param _CEI_: Time between ensembles.
:param IsE0000001: Flag if IsE0000001 is enabled.
:param IsE0000002: Flag if IsE0000002 is enabled.
:param IsE0000003: Flag if IsE0000003 is enabled.
:param IsE0000004: Flag if IsE0000004 is enabled.
:param IsE0000005: Flag if IsE0000005 is enabled.
:param IsE0000006: Flag if IsE0000006 is enabled.
:param IsE0000007: Flag if IsE0000007 is enabled.
:param IsE0000008: Flag if IsE0000008 is enabled.
:param IsE0000009: Flag if IsE0000009 is enabled.
:param IsE0000010: Flag if IsE0000010 is enabled.
:param IsE0000011: Flag if IsE0000011 is enabled.
:param IsE0000012: Flag if IsE0000012 is enabled.
:param IsE0000013: Flag if IsE0000013 is enabled.
:param IsE0000014: Flag if IsE0000014 is enabled.
:param IsE0000015: Flag if IsE0000015 is enabled.
:return: Number of bytes required for the given deployment.
"""
ensembleSize = _calculate_ensemble_size(_CEOUTPUT_, _CWPBN_, _Beams_,
IsE0000001, IsE0000002,
IsE0000003, IsE0000004,
IsE0000005, IsE0000006,
IsE0000007, IsE0000008,
IsE0000009, IsE0000010,
IsE0000011, IsE0000012,
IsE0000013, IsE0000014,
IsE0000015)
# Number of Ensembles
if _CEI_ != 0:
ensembles = round(_DeploymentDuration_ * 24 * 3600 / _CEI_)
else:
ensembles = 0
return ensembles * ensembleSize
def _calculate_burst_storage_amount(_CEOUTPUT_, _CBI_NumEns_,
_CBI_BurstInterval_,
_CWPBN_, _Beams_,
_DeploymentDuration_,
IsE0000001, IsE0000002, IsE0000003,
IsE0000004, IsE0000005, IsE0000006,
IsE0000007, IsE0000008, IsE0000009,
IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015):
"""
Calculate the amount of storage required from the parameter for the burst deployment.
Value given in bytes.
:param _CEOUTPUT_ Format the data is in. RTB or PD0
:param _CBI_NumEns_: Number of ensembles in the burst.
:param _CWPBN_: Number of bins.
:param _Beams_: Number of beams.
:param _DeploymentDuration_: Deployment duration.
:param _CEI_: Time between ensembles.
:param IsE0000001: Flag if IsE0000001 is enabled.
:param IsE0000002: Flag if IsE0000002 is enabled.
:param IsE0000003: Flag if IsE0000003 is enabled.
:param IsE0000004: Flag if IsE0000004 is enabled.
:param IsE0000005: Flag if IsE0000005 is enabled.
:param IsE0000006: Flag if IsE0000006 is enabled.
:param IsE0000007: Flag if IsE0000007 is enabled.
:param IsE0000008: Flag if IsE0000008 is enabled.
:param IsE0000009: Flag if IsE0000009 is enabled.
:param IsE0000010: Flag if IsE0000010 is enabled.
:param IsE0000011: Flag if IsE0000011 is enabled.
:param IsE0000012: Flag if IsE0000012 is enabled.
:param IsE0000013: Flag if IsE0000013 is enabled.
:param IsE0000014: Flag if IsE0000014 is enabled.
:param IsE0000015: Flag if IsE0000015 is enabled.
:return: Number of bytes required for the given waves deployment.
"""
# Number of bytes per ensemble
ensemble_size = _calculate_ensemble_size(_CEOUTPUT_, _CWPBN_, _Beams_, IsE0000001, IsE0000002, IsE0000003, IsE0000004, IsE0000005,
IsE0000006, IsE0000007, IsE0000008, IsE0000009, IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015)
# Memory per burst
burst_mem = _CBI_NumEns_ * ensemble_size
# Get the number of burst per deployment duration
# Seconds for the deployment duration
deployment_dur = _DeploymentDuration_ * 3600.0 * 24.0
# Divide total duration by burst duration to get number of burst in the deployment
num_bursts = round(deployment_dur / _CBI_BurstInterval_)
return burst_mem * num_bursts
def _calculate_ensemble_size(_CEOUTPUT_,
_CWPBN_, _Beams_,
IsE0000001, IsE0000002, IsE0000003,
IsE0000004, IsE0000005, IsE0000006,
IsE0000007, IsE0000008, IsE0000009,
IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015):
"""
Calculate the number of bytes for the ensemble based off the parameters.
Value given in bytes.
:param _CEOUTPUT_ Format the data is in. RTB or PD0
:param _CWPBN_: Number of bins.
:param _Beams_: Number of beams.
:param IsE0000001: Flag if IsE0000001 is enabled.
:param IsE0000002: Flag if IsE0000002 is enabled.
:param IsE0000003: Flag if IsE0000003 is enabled.
:param IsE0000004: Flag if IsE0000004 is enabled.
:param IsE0000005: Flag if IsE0000005 is enabled.
:param IsE0000006: Flag if IsE0000006 is enabled.
:param IsE0000007: Flag if IsE0000007 is enabled.
:param IsE0000008: Flag if IsE0000008 is enabled.
:param IsE0000009: Flag if IsE0000009 is enabled.
:param IsE0000010: Flag if IsE0000010 is enabled.
:param IsE0000011: Flag if IsE0000011 is enabled.
:param IsE0000012: Flag if IsE0000012 is enabled.
:param IsE0000013: Flag if IsE0000013 is enabled.
:param IsE0000014: Flag if IsE0000014 is enabled.
:param IsE0000015: Flag if IsE0000015 is enabled.
:return: Number of bytes for the ensemble.
"""
if _CEOUTPUT_ == "RTB":
return _calculate_rtb_ensemble_size(_CWPBN_, _Beams_,
IsE0000001, IsE0000002, IsE0000003,
IsE0000004, IsE0000005, IsE0000006,
IsE0000007, IsE0000008, IsE0000009,
IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015)
else:
return _calculate_pd0_ensemble_size(_CWPBN_, _Beams_,
IsE0000001, IsE0000002, IsE0000003,
IsE0000004, IsE0000005, IsE0000006,
IsE0000007, IsE0000008, IsE0000009,
IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015)
def _calculate_rtb_ensemble_size(_CWPBN_, _Beams_,
IsE0000001, IsE0000002, IsE0000003,
IsE0000004, IsE0000005, IsE0000006,
IsE0000007, IsE0000008, IsE0000009,
IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015):
"""
Calculate the number of bytes for the RTB ensemble based off the parameters.
Value given in bytes.
:param _CWPBN_: Number of bins.
:param _Beams_: Number of beams.
:param IsE0000001: Flag if IsE0000001 is enabled.
:param IsE0000002: Flag if IsE0000002 is enabled.
:param IsE0000003: Flag if IsE0000003 is enabled.
:param IsE0000004: Flag if IsE0000004 is enabled.
:param IsE0000005: Flag if IsE0000005 is enabled.
:param IsE0000006: Flag if IsE0000006 is enabled.
:param IsE0000007: Flag if IsE0000007 is enabled.
:param IsE0000008: Flag if IsE0000008 is enabled.
:param IsE0000009: Flag if IsE0000009 is enabled.
:param IsE0000010: Flag if IsE0000010 is enabled.
:param IsE0000011: Flag if IsE0000011 is enabled.
:param IsE0000012: Flag if IsE0000012 is enabled.
:param IsE0000013: Flag if IsE0000013 is enabled.
:param IsE0000014: Flag if IsE0000014 is enabled.
:param IsE0000015: Flag if IsE0000015 is enabled.
:return: Number of bytes for the ensemble.
"""
MATLAB_OVERHEAD = 7
# E0000001
E0000001 = 0
if IsE0000001:
E0000001 = 4 * (_CWPBN_ * _Beams_ + MATLAB_OVERHEAD)
# E0000002
E0000002 = 0
if IsE0000002:
E0000002 = 4 * (_CWPBN_ * _Beams_ + MATLAB_OVERHEAD)
# E0000003
E0000003 = 0
if IsE0000003:
E0000003 = 4 * (_CWPBN_ * _Beams_ + MATLAB_OVERHEAD)
# E0000004
E0000004 = 0
if IsE0000004:
E0000004 = 4 * (_CWPBN_ * _Beams_ + MATLAB_OVERHEAD)
# E0000005
E0000005 = 0
if IsE0000005:
E0000005 = 4 * (_CWPBN_ * _Beams_ + MATLAB_OVERHEAD)
# E0000006
E0000006 = 0
if IsE0000006:
E0000006 = 4 * (_CWPBN_ * _Beams_ + MATLAB_OVERHEAD)
# E0000007
E0000007 = 0
if IsE0000007:
E0000007 = 4 * (_CWPBN_ * _Beams_ + MATLAB_OVERHEAD)
#region E0000008
E0000008 = 0
if IsE0000008:
E0000008 = 4 * (23 + MATLAB_OVERHEAD)
# E0000009
E0000009 = 0
if IsE0000009:
E0000009 = 4 * (19 + MATLAB_OVERHEAD)
#E0000010
E0000010 = 0
if IsE0000010:
E0000010 = 4 * (14 + 15 * _Beams_ + MATLAB_OVERHEAD)
# E0000011
E0000011 = 0
if IsE0000011:
E0000011 = 0
# E0000012
E0000012 = 0
if IsE0000012:
E0000012 = 4 * (23 + MATLAB_OVERHEAD)
# E0000013
E0000013 = 0
if IsE0000013:
E0000013 = 4 * (30 + MATLAB_OVERHEAD)
# E0000014
E0000014 = 0
if IsE0000014:
E0000014 = 4 * (25 + MATLAB_OVERHEAD)
# E0000015
E0000015 = 0
if IsE0000015:
E0000015 = 4 * (8 * _Beams_ + 1 + MATLAB_OVERHEAD)
bytes_per_ensemble = E0000001 + E0000002 + E0000003 + E0000004 + E0000005 + E0000006 + E0000007 + E0000008 + E0000009 + E0000010 + E0000011 + E0000012 + E0000013 + E0000014 + E0000015
checksum = 4 # Checksum
wrapper = 32 # Header
return bytes_per_ensemble + checksum + wrapper
def _calculate_pd0_ensemble_size(_CWPBN_, _Beams_,
IsE0000001, IsE0000002, IsE0000003,
IsE0000004, IsE0000005, IsE0000006,
IsE0000007, IsE0000008, IsE0000009,
IsE0000010, IsE0000011, IsE0000012,
IsE0000013, IsE0000014, IsE0000015):
"""
Calculate the number of bytes for the PD0 ensemble based off the parameters.
Value given in bytes.
:param _CWPBN_: Number of bins.
:param _Beams_: Number of beams.
:param IsE0000001: Flag if IsE0000001 is enabled.
:param IsE0000002: Flag if IsE0000002 is enabled.
:param IsE0000003: Flag if IsE0000003 is enabled.
:param IsE0000004: Flag if IsE0000004 is enabled.
:param IsE0000005: Flag if IsE0000005 is enabled.
:param IsE0000006: Flag if IsE0000006 is enabled.
:param IsE0000007: Flag if IsE0000007 is enabled.
:param IsE0000008: Flag if IsE0000008 is enabled.
:param IsE0000009: Flag if IsE0000009 is enabled.
:param IsE0000010: Flag if IsE0000010 is enabled.
:param IsE0000011: Flag if IsE0000011 is enabled.
:param IsE0000012: Flag if IsE0000012 is enabled.
:param IsE0000013: Flag if IsE0000013 is enabled.
:param IsE0000014: Flag if IsE0000014 is enabled.
:param IsE0000015: Flag if IsE0000015 is enabled.
:return: Number of bytes for the ensemble.
"""
# Number of data types
num_dt = 0
# Fixed Leader
fl = 59
num_dt += 1
# Variable Leader
vl = 65
num_dt += 1
# Velocity
#vel = 0
#if IsE0000001 or IsE0000002 or IsE0000003:
vel = 2 + (_CWPBN_ * (2 * _Beams_))
num_dt += 1
# Echo Intensity (Amplitude)
#echo = 0
#if IsE0000004:
echo = 2 + (_CWPBN_ * _Beams_)
num_dt += 1
# Correlation
#corr = 0
#if IsE0000005:
corr = 2 + (_CWPBN_ * _Beams_)
num_dt += 1
# Percent Good
#pg = 0
#if IsE0000006:
pg = 2 + (_CWPBN_ * _Beams_)
num_dt += 1
# Bottom Track
#bt = 0
#if IsE0000010:
bt = 84
num_dt += 1
# Header
header = 6 + num_dt
# Bytes per ensemble
bytes_per_ensemble = header + fl + vl + vel + echo + corr + pg + bt
# Checksum
checksum = 2
return bytes_per_ensemble + checksum
def bytes_2_human_readable(number_of_bytes):
if number_of_bytes < 0:
raise ValueError("!!! numberOfBytes can't be smaller than 0 !!!")
step_to_greater_unit = 1024.
number_of_bytes = float(number_of_bytes)
unit = 'bytes'
if (number_of_bytes / step_to_greater_unit) >= 1:
number_of_bytes /= step_to_greater_unit
unit = 'KB'
if (number_of_bytes / step_to_greater_unit) >= 1:
number_of_bytes /= step_to_greater_unit
unit = 'MB'
if (number_of_bytes / step_to_greater_unit) >= 1:
number_of_bytes /= step_to_greater_unit
unit = 'GB'
if (number_of_bytes / step_to_greater_unit) >= 1:
number_of_bytes /= step_to_greater_unit
unit = 'TB'
precision = 1
number_of_bytes = round(number_of_bytes, precision)
return str(number_of_bytes) + ' ' + unit
def test_datastorage():
assert calculate_storage_amount(CEOUTPUT="RTB",
CWPBN=30,
Beams=4,
DeploymentDuration=30,
CEI=1.0,
IsE0000001=True,
IsE0000002=True,
IsE0000003=True,
IsE0000004=True,
IsE0000005=True,
IsE0000006=True,
IsE0000007=True,
IsE0000008=True,
IsE0000009=True,
IsE0000010=True,
IsE0000011=True,
IsE0000012=True,
IsE0000013=True,
IsE0000014=True,
IsE0000015=True) == 12172032000
def test_datastorageOnOff():
assert calculate_storage_amount(CEOUTPUT="RTB",
CWPBN=30,
Beams=4,
DeploymentDuration=30,
CEI=1.0,
IsE0000001=True,
IsE0000002=False,
IsE0000003=True,
IsE0000004=False,
IsE0000005=True,
IsE0000006=True,
IsE0000007=False,
IsE0000008=True,
IsE0000009=False,
IsE0000010=True,
IsE0000011=False,
IsE0000012=True,
IsE0000013=False,
IsE0000014=True,
IsE0000015=False) == 7153920000
def test_datastorage_pd0():
assert calculate_storage_amount(CEOUTPUT="PD0",
CWPBN=30,
Beams=4,
DeploymentDuration=30,
CEI=1.0,
IsE0000001=True,
IsE0000002=True,
IsE0000003=True,
IsE0000004=True,
IsE0000005=True,
IsE0000006=True,
IsE0000007=True,
IsE0000008=True,
IsE0000009=True,
IsE0000010=True,
IsE0000011=True,
IsE0000012=True,
IsE0000013=True,
IsE0000014=True,
IsE0000015=True) == 2153952000
def test_datastorageOnOff_pd0():
assert calculate_storage_amount(CEOUTPUT="PD0",
CWPBN=30,
Beams=4,
DeploymentDuration=30,
CEI=1.0,
IsE0000001=True,
IsE0000002=False,
IsE0000003=True,
IsE0000004=False,
IsE0000005=True,
IsE0000006=True,
IsE0000007=False,
IsE0000008=True,
IsE0000009=False,
IsE0000010=True,
IsE0000011=False,
IsE0000012=True,
IsE0000013=False,
IsE0000014=True,
IsE0000015=False) == 2153952000
| 44.383562
| 187
| 0.547531
| 2,685
| 29,160
| 5.813035
| 0.072253
| 0.04613
| 0.100461
| 0.023065
| 0.844311
| 0.82509
| 0.821822
| 0.821822
| 0.821822
| 0.817594
| 0
| 0.242917
| 0.373045
| 29,160
| 657
| 188
| 44.383562
| 0.610819
| 0.325
| 0
| 0.627273
| 0
| 0
| 0.09115
| 0
| 0
| 0
| 0
| 0
| 0.012121
| 1
| 0.039394
| false
| 0
| 0.009091
| 0
| 0.087879
| 0.009091
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 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
|
f5ff815395492a2b99ed9c33948341334dc05182
| 115
|
py
|
Python
|
gym_multigrid/envs/__init__.py
|
amimem/gym-multigrid
|
7fff0316bf1c1d481a93bc131fe8da5f776de979
|
[
"Apache-2.0"
] | null | null | null |
gym_multigrid/envs/__init__.py
|
amimem/gym-multigrid
|
7fff0316bf1c1d481a93bc131fe8da5f776de979
|
[
"Apache-2.0"
] | null | null | null |
gym_multigrid/envs/__init__.py
|
amimem/gym-multigrid
|
7fff0316bf1c1d481a93bc131fe8da5f776de979
|
[
"Apache-2.0"
] | null | null | null |
from gym_multigrid.envs.collect_game import CollectGameEnv
from gym_multigrid.envs.soccer_game import SoccerGameEnv
| 57.5
| 58
| 0.904348
| 16
| 115
| 6.25
| 0.625
| 0.14
| 0.32
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.06087
| 115
| 2
| 59
| 57.5
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
de8eaab3ea1cfa64d7f929aeb6f0eb90260877d5
| 58
|
py
|
Python
|
helpers/__init__.py
|
sergentd/face-recognition
|
b5c08df8c893101ce20bd3ab9ac62e401924070b
|
[
"MIT"
] | 1
|
2019-11-27T01:53:32.000Z
|
2019-11-27T01:53:32.000Z
|
helpers/__init__.py
|
sergentd/face-recognition
|
b5c08df8c893101ce20bd3ab9ac62e401924070b
|
[
"MIT"
] | null | null | null |
helpers/__init__.py
|
sergentd/face-recognition
|
b5c08df8c893101ce20bd3ab9ac62e401924070b
|
[
"MIT"
] | null | null | null |
from .pypeline import Pypeline
from .pypeline import Step
| 19.333333
| 30
| 0.827586
| 8
| 58
| 6
| 0.5
| 0.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 58
| 2
| 31
| 29
| 0.96
| 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
|
ded2de968eb9934febaccb19cc6c331f8de8052d
| 39
|
py
|
Python
|
src/services/__init__.py
|
civsocit/mask-bot
|
ef6047871b91ef864fffdd740226d6dde0522e6e
|
[
"MIT"
] | 3
|
2020-09-02T13:44:06.000Z
|
2021-09-27T05:11:44.000Z
|
src/services/__init__.py
|
civsocit/mask-bot
|
ef6047871b91ef864fffdd740226d6dde0522e6e
|
[
"MIT"
] | null | null | null |
src/services/__init__.py
|
civsocit/mask-bot
|
ef6047871b91ef864fffdd740226d6dde0522e6e
|
[
"MIT"
] | null | null | null |
from .impose_masks import impose_masks
| 19.5
| 38
| 0.871795
| 6
| 39
| 5.333333
| 0.666667
| 0.6875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102564
| 39
| 1
| 39
| 39
| 0.914286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
72483d54b1f61daf551b832adf774fb9c408eefd
| 131,051
|
py
|
Python
|
tests/dhcpv6/kea_only/test_shared_networks.py
|
shawnmullaney/forge
|
aaaef0a0645f73d24666aab6a400f3604e753aac
|
[
"0BSD"
] | null | null | null |
tests/dhcpv6/kea_only/test_shared_networks.py
|
shawnmullaney/forge
|
aaaef0a0645f73d24666aab6a400f3604e753aac
|
[
"0BSD"
] | null | null | null |
tests/dhcpv6/kea_only/test_shared_networks.py
|
shawnmullaney/forge
|
aaaef0a0645f73d24666aab6a400f3604e753aac
|
[
"0BSD"
] | null | null | null |
"""Shared-Networks"""
# pylint: disable=invalid-name,line-too-long
import pytest
import srv_control
import srv_msg
import misc
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_negative_missing_name():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
# first shared subnet
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
# DHCP server is started.
srv_control.start_srv_during_process('DHCP', 'configure')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_negative_not_unique_names():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
srv_control.config_srv('preference', '0', '123')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
# first shared subnet
srv_control.shared_subnet('0', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
# second shared-subnet
srv_control.shared_subnet('1', '1')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '1')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-xyz"', '1')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv_during_process('DHCP', 'configure')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_one_subnet_based_on_iface():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.shared_subnet('0', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:a::1')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_one_subnet_based_on_relay_address():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.shared_subnet('0', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('relay', '{"ip-address":"2001:db8::abcd"}', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_save_option('server-id')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '13')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_one_subnet_based_on_id():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.shared_subnet('0', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_save_option('server-id')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '13')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_two_subnets_based_on_iface():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
# Response sub-option 5 from option 3 MUST contain address 2001:db8:a::1.
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:b::1,00:03:00:01:f6:f5:f4:f3:f2:02')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_tree_subnets_based_on_iface_options_override():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::1')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.shared_subnet('2', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '0')
srv_control.config_srv_opt('preference', '1')
srv_control.config_srv('preference', '0', '33')
srv_control.config_srv('preference', '1', '44')
srv_control.config_srv('preference', '2', '55')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option('7')
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', None, 'value', '33')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
# Response sub-option 5 from option 3 MUST contain address 2001:db8:a::1.
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', None, 'value', '33')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', None, 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', None, 'value', '44')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_three_subnets_based_on_id_options_override():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::1')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.shared_subnet('2', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
srv_control.config_srv_opt('preference', '1')
srv_control.config_srv('preference', '0', '33')
srv_control.config_srv('preference', '1', '44')
srv_control.config_srv('preference', '2', '55')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option('7')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '33')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '33')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '44')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_two_subnets_based_on_id():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv('preference', '0', '123')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:b::1,00:03:00:01:f6:f5:f4:f3:f2:02')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_three_subnets_based_on_relay_address_options_override():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::1')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.shared_subnet('2', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('relay', '{"ip-address":"2001:db8::abcd"}', '0')
srv_control.config_srv_opt('preference', '1')
srv_control.config_srv('preference', '0', '33')
srv_control.config_srv('preference', '1', '44')
srv_control.config_srv('preference', '2', '55')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option('7')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '33')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '33')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Relayed Message', '7', None, 'value', '44')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_two_subnets_based_on_relay_address():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv('preference', '0', '123')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('relay', '{"ip-address":"2001:db8::abcd"}', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:b::1,00:03:00:01:f6:f5:f4:f3:f2:02')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_three_shared_subnet_with_two_subnets_based_on_id_and_iface_and_relay_address():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:e::/64',
'2001:db8:e::1-2001:db8:e::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:f::/64',
'2001:db8:f::1-2001:db8:f::1')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
# first shared subnet
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
# second shared-subnet
srv_control.shared_subnet('2', '1')
srv_control.shared_subnet('3', '1')
srv_control.set_conf_parameter_shared_subnet('name', '"name-xyz"', '1')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '1')
srv_control.shared_subnet('4', '2')
srv_control.shared_subnet('5', '2')
srv_control.set_conf_parameter_shared_subnet('name', '"name-something"', '2')
srv_control.set_conf_parameter_shared_subnet('relay', '{"ip-address":"2001:db8::1234"}', '2')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:e::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:f::1,00:03:00:01:f6:f5:f4:f3:f2:02')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:b::1,00:03:00:01:f6:f5:f4:f3:f2:02')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
# Response sub-option 5 from option 3 MUST contain address 2001:db8:a::1.
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:c::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:d::1,00:03:00:01:f6:f5:f4:f3:f2:02')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_three_shared_subnet_with_two_subnets_options_override():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:e::/64',
'2001:db8:e::1-2001:db8:e::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:f::/64',
'2001:db8:f::1-2001:db8:f::1')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
srv_control.config_srv_opt('preference', '1')
srv_control.config_srv('preference', '2', '33')
srv_control.config_srv('preference', '3', '44')
srv_control.config_srv('preference', '4', '55')
srv_control.config_srv('preference', '5', '66')
# first shared subnet
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
# second shared-subnet
srv_control.shared_subnet('2', '1')
srv_control.shared_subnet('3', '1')
srv_control.set_conf_parameter_shared_subnet('name', '"name-xyz"', '1')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '1')
srv_control.shared_subnet('4', '2')
srv_control.shared_subnet('5', '2')
srv_control.set_conf_parameter_shared_subnet('name', '"name-something"', '2')
srv_control.set_conf_parameter_shared_subnet('relay', '{"ip-address":"2001:db8::1234"}', '2')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abcde')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Relayed Message', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '11')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '33')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '44')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
# Response sub-option 5 from option 3 MUST contain address 2001:db8:a::1.
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '1')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '55')
srv_msg.response_check_option_content('Response', '7', 'NOT ', 'value', '66')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_two_shared_subnet_with_two_subnets_based_on_relay_address():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
srv_control.config_srv('preference', '0', '123')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
# first shared subnet
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('relay', '{"ip-address":"2001:db8::abcd"}', '0')
# second shared-subnet
srv_control.shared_subnet('2', '1')
srv_control.shared_subnet('3', '1')
srv_control.set_conf_parameter_shared_subnet('name', '"name-xyz"', '1')
srv_control.set_conf_parameter_shared_subnet('relay', '{"ip-address":"2001:db8::1234"}', '1')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::abcd')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:b::1,00:03:00:01:f6:f5:f4:f3:f2:02')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:c::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:d::1,00:03:00:01:f6:f5:f4:f3:f2:02')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:03')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.client_sets_value('RelayAgent', 'linkaddr', '2001:db8::1234')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '13')
# no available addresses
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:03')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '13')
# no available addresses
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_two_shared_subnet_with_two_subnets_based_on_id():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::1')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
srv_control.config_srv('preference', '0', '123')
srv_control.config_srv('dns-servers', '1', '2001:db8::1,2001:db8::2')
# first shared subnet
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-abc"', '0')
# second shared-subnet
srv_control.shared_subnet('2', '1')
srv_control.shared_subnet('3', '1')
srv_control.set_conf_parameter_shared_subnet('name', '"name-xyz"', '1')
srv_control.set_conf_parameter_shared_subnet('interface-id', '"interface-xyz"', '1')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_save_option('server-id')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '13')
# there is no local subnet!
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:a::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:b::1,00:03:00:01:f6:f5:f4:f3:f2:02')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:02')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_add_saved_option('DONT ')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '5')
srv_msg.lease_file_contains('2001:db8:c::1,00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.lease_file_contains('2001:db8:d::1,00:03:00:01:f6:f5:f4:f3:f2:02')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:03')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-xyz')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '13')
# no available addresses
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:03')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
srv_msg.client_sets_value('RelayAgent', 'ifaceid', 'interface-abc')
srv_msg.client_does_include('RelayAgent', None, 'interface-id')
srv_msg.create_relay_forward()
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'RELAYREPLY')
srv_msg.response_check_include_option('Response', None, '18')
srv_msg.response_check_include_option('Response', None, '9')
srv_msg.response_check_option_content('Response', '9', None, 'Relayed', 'Message')
srv_msg.response_check_include_option('Relayed Message', None, '1')
srv_msg.response_check_include_option('Relayed Message', None, '2')
srv_msg.response_check_include_option('Relayed Message', None, '3')
srv_msg.response_check_option_content('Relayed Message', '3', None, 'sub-option', '13')
# no available addresses
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_single_shared_subnet_with_three_subnets_classification():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::10')
srv_control.config_srv_another_subnet_no_interface('2001:db8:b::/64',
'2001:db8:b::1-2001:db8:b::10')
srv_control.config_srv_another_subnet_no_interface('2001:db8:c::/64',
'2001:db8:c::1-2001:db8:c::10')
srv_control.create_new_class('Client_f2f1')
srv_control.add_test_to_class('1', 'test', 'substring(option[1].hex,8,2) == 0xf2f1')
srv_control.add_option_to_defined_class('1', 'dns-servers', '2001:db8::666')
srv_control.config_client_classification('1', 'Client_f2f1')
srv_control.create_new_class('Client_f2f2')
srv_control.add_test_to_class('2', 'test', 'substring(option[1].hex,8,2) == 0xf2f2')
srv_control.config_client_classification('2', 'Client_f2f2')
srv_control.create_new_class('Client_f2f0')
srv_control.add_test_to_class('3', 'test', 'substring(option[1].hex,8,2) == 0xf299')
srv_control.config_client_classification('0', 'Client_f2f0')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.shared_subnet('2', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '0')
srv_control.set_conf_parameter_shared_subnet('option-data',
'[{"code":23,"data":"2001:db8::1","name":"dns-servers","space":"dhcp6"}]',
'0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:f1')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('23')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:b::1')
srv_msg.response_check_include_option('Response', None, '23')
srv_msg.response_check_option_content('Response', '23', None, 'addresses', '2001:db8::666')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:f1')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('23')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:b::1')
srv_msg.response_check_include_option('Response', None, '23')
srv_msg.response_check_option_content('Response', '23', None, 'addresses', '2001:db8::666')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:f2')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('23')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:c::1')
srv_msg.response_check_include_option('Response', None, '23')
srv_msg.response_check_option_content('Response', '23', None, 'addresses', '2001:db8::1')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:f2')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('server-id')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_requests_option('23')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:c::1')
srv_msg.response_check_include_option('Response', None, '23')
srv_msg.response_check_option_content('Response', '23', None, 'addresses', '2001:db8::1')
srv_msg.lease_file_contains('2001:db8:b::1,00:03:00:01:f6:f5:f4:f3:f2:f1')
srv_msg.lease_file_contains('2001:db8:c::1,00:03:00:01:f6:f5:f4:f3:f2:f2')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
@pytest.mark.kea_only
def test_v6_sharednetworks_host_reservation_duplicate_reservation():
misc.test_setup()
srv_control.config_srv_subnet('3000::/30', '3000::1-3000::10')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
srv_control.host_reservation_in_subnet('address',
'3000::1',
'0',
'duid',
'00:03:00:01:f6:f5:f4:f3:f2:01')
srv_control.host_reservation_in_subnet('address',
'3000::2',
'0',
'duid',
'00:03:00:01:f6:f5:f4:f3:f2:01')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv_during_process('DHCP', 'configuration')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
def test_v6_sharednetworks_host_reservation_all_values_duid():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.config_srv_another_subnet_no_interface('3000::/64', '3000::1-3000::ff')
srv_control.config_srv_another_subnet_no_interface('2001:db8:d::/64',
'2001:db8:d::1-2001:db8:d::1')
srv_control.host_reservation_in_subnet('hostname',
'reserved-hostname',
'0',
'duid',
'00:03:00:01:f6:f5:f4:f3:f2:01')
srv_control.host_reservation_in_subnet_add_value('0', '0', 'address', '3000::100')
srv_control.host_reservation_in_subnet_add_value('0', '0', 'prefix', '3001::/40')
srv_control.add_ddns_server('127.0.0.1', '53001')
srv_control.add_ddns_server_options('enable-updates', 'true')
srv_control.add_ddns_server_options('qualifying-suffix', 'my.domain.com')
srv_control.shared_subnet('0', '0')
srv_control.shared_subnet('1', '0')
srv_control.shared_subnet('2', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'IA-PD')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
misc.test_procedure()
srv_msg.client_copy_option('server-id')
srv_msg.client_copy_option('IA_NA')
srv_msg.client_copy_option('IA_PD')
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_sets_value('Client', 'FQDN_domain_name', 'some-different-name')
srv_msg.client_sets_value('Client', 'FQDN_flags', 'S')
srv_msg.client_does_include('Client', None, 'fqdn')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'REPLY')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response', '5', '3', None, 'addr', '3000::100')
srv_msg.response_check_include_option('Response', None, '25')
srv_msg.response_check_option_content('Response', '25', None, 'sub-option', '26')
srv_msg.response_check_suboption_content('Response', '26', '25', None, 'prefix', '3001::')
srv_msg.response_check_include_option('Response', None, '39')
srv_msg.response_check_option_content('Response',
'39',
None,
'fqdn',
'reserved-hostname.my.domain.com.')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
def test_v6_sharednetworks_host_reservation_options_override_1():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.enable_db_backend_reservation('MySQL')
srv_control.new_db_backend_reservation('MySQL', 'duid', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_control.ipv6_address_db_backend_reservation('2001:db8:a::100', '$(EMPTY)', 'MySQL', '1')
srv_control.update_db_backend_reservation('dhcp6_subnet_id', '1', 'MySQL', '1')
srv_control.option_db_record_reservation('7',
'10',
'dhcp6',
'1',
'$(EMPTY)',
'1',
'subnet',
'MySQL',
'1')
srv_control.upload_db_reservation('MySQL')
srv_control.shared_subnet('0', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '0')
srv_control.set_conf_parameter_shared_subnet('option-data',
'[{"code":7,"data":"5","name":"preference","space":"dhcp6"}]',
'0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:11:11')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:a::1')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', None, 'value', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', None, 'value', '10')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:a::100')
@pytest.mark.v6
@pytest.mark.sharednetworks
@pytest.mark.sharedsubnets
def test_v6_sharednetworks_host_reservation_options_override_2():
misc.test_setup()
srv_control.config_srv_subnet('2001:db8:a::/64', '2001:db8:a::1-2001:db8:a::1')
srv_control.enable_db_backend_reservation('PostgreSQL')
srv_control.new_db_backend_reservation('PostgreSQL', 'duid', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_control.ipv6_address_db_backend_reservation('2001:db8:a::100',
'$(EMPTY)',
'PostgreSQL',
'1')
srv_control.update_db_backend_reservation('dhcp6_subnet_id', '1', 'PostgreSQL', '1')
srv_control.option_db_record_reservation('7',
'10',
'dhcp6',
'1',
'$(EMPTY)',
'1',
'subnet',
'PostgreSQL',
'1')
srv_control.upload_db_reservation('PostgreSQL')
srv_control.shared_subnet('0', '0')
srv_control.set_conf_parameter_shared_subnet('name', '"name-abc"', '0')
srv_control.set_conf_parameter_shared_subnet('interface', '"$(SERVER_IFACE)"', '0')
srv_control.set_conf_parameter_shared_subnet('option-data',
'[{"code":7,"data":"5","name":"preference","space":"dhcp6"}]',
'0')
srv_control.build_and_send_config_files('SSH', 'config-file')
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:11:11')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:a::1')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', None, 'value', '5')
misc.test_procedure()
srv_msg.client_sets_value('Client', 'DUID', '00:03:00:01:f6:f5:f4:f3:f2:01')
srv_msg.client_does_include('Client', None, 'client-id')
srv_msg.client_does_include('Client', None, 'IA-NA')
srv_msg.client_requests_option('7')
srv_msg.client_send_msg('SOLICIT')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', None, 'ADVERTISE')
srv_msg.response_check_include_option('Response', None, '1')
srv_msg.response_check_include_option('Response', None, '2')
srv_msg.response_check_include_option('Response', None, '7')
srv_msg.response_check_option_content('Response', '7', None, 'value', '10')
srv_msg.response_check_include_option('Response', None, '3')
srv_msg.response_check_option_content('Response', '3', None, 'sub-option', '5')
srv_msg.response_check_suboption_content('Response',
'5',
'3',
None,
'addr',
'2001:db8:a::100')
| 51.251858
| 123
| 0.694958
| 18,516
| 131,051
| 4.560272
| 0.012314
| 0.104171
| 0.112082
| 0.152112
| 0.99113
| 0.989033
| 0.983965
| 0.980637
| 0.978777
| 0.978777
| 0
| 0.043043
| 0.150125
| 131,051
| 2,556
| 124
| 51.271909
| 0.715085
| 0.006837
| 0
| 0.960314
| 0
| 0.011537
| 0.227388
| 0.044436
| 0
| 0
| 0.000138
| 0
| 0
| 1
| 0.009229
| true
| 0.044762
| 0.001846
| 0
| 0.011075
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a0c80fe5f8723855cd4bf0947799d66353792a70
| 7,925
|
py
|
Python
|
other/ytb.py
|
Jachou-yt/chissProject
|
98fe465fca1b515cd12fdc3b47bd537245d366c6
|
[
"MIT"
] | null | null | null |
other/ytb.py
|
Jachou-yt/chissProject
|
98fe465fca1b515cd12fdc3b47bd537245d366c6
|
[
"MIT"
] | null | null | null |
other/ytb.py
|
Jachou-yt/chissProject
|
98fe465fca1b515cd12fdc3b47bd537245d366c6
|
[
"MIT"
] | null | null | null |
import os
import time
clear = lambda: os.system('cls')
time.sleep(10)
print("""
_ _ _ _ _
| | | | | | | | (_)
| | ___ _ __ ___ ___ __| | _ _ | | ___ ___ | |__ _ ___ ___
| | / _ \ | '_ ` _ \ / _ \ / _` || | | || | / _ \ / __|| '_ \ | |/ __|/ __|
| |____| __/ | | | | | || (_) || (_| || |_| || || __/ | (__ | | | || |\__ \__ \\
\_____/ \___| |_| |_| |_| \___/ \__,_| \__,_||_| \___| \___||_| |_||_||___/|___/
""")
time.sleep(2)
clear()
print("""
______ __ _ _ _ _
| ___ \ / _| (_)| | | | (_)
| |_/ / __ _ _ __ | |_ __ _ _ | |_ _ __ ___ _ _ _ __ __| | ___ __ __ ___ _ __ _ _ __
| __/ / _` || '__|| _| / _` || || __| | '_ \ / _ \ | | | || '__| / _` | / _ \\ \ / / / _ \| '_ \ | || '__|
| | | (_| || | | | | (_| || || |_ | |_) || (_) || |_| || | | (_| || __/ \ V / | __/| | | || || |
\_| \__,_||_| |_| \__,_||_| \__| | .__/ \___/ \__,_||_| \__,_| \___| \_/ \___||_| |_||_||_|
| |
""")
time.sleep(2)
clear()
print("""
| | | | | | | | | || | | | | | (_) | |
| | | | _ __ _ __ __ _ | |_ | |_ ___ | || | ___ | | ___ ___ | |__ _ ___ ___ ___ ___ | |_
| | | || '_ \ | '__| / _` || __| | __| / _ \| || | / _ \ | | / _ \ / __|| '_ \ | |/ __|/ __| / _ \/ __|| __|
| |_| || | | | | | | (_| || |_ | |_ | __/| || || __/ | || __/ | (__ | | | || |\__ \\__ \ | __/\__ \| |_ _
\___/ |_| |_| |_| \__,_| \__| \__| \___||_||_| \___| |_| \___| \___||_| |_||_||___/|___/ \___||___/ \__|(_)
""")
time.sleep(2)
clear()
print("""
_ _ _ _
| | | | | | | |
| | | | _ __ ___ ___ ___ _ _ | | ___ ___ ___ _ __ ___ _ __ ___ __ _ _ __ __| | ___
| | | || '_ \ / _ \ / __| / _ \| | | || | / _ \ / __| / _ \ | '_ ` _ \ | '_ ` _ \ / _` || '_ \ / _` | / _ \\
| |_| || | | || __/ \__ \| __/| |_| || || __/ | (__ | (_) || | | | | || | | | | || (_| || | | || (_| || __/
\___/ |_| |_| \___| |___/ \___| \__,_||_| \___| \___| \___/ |_| |_| |_||_| |_| |_| \__,_||_| |_| \__,_| \___|
""")
time.sleep(1)
clear()
print("""
_ _ _
| |( ) (_)
_ __ ___ _ _ _ __ | ||/ __ _ ___ __ _ _ _ ___ _ __ _ _ __
| '_ \ / _ \ | | | || '__| | | / _` | / __| / _` || | | | / _ \| '__|| || '__|
| |_) || (_) || |_| || | | | | (_| || (__ | (_| || |_| || __/| | | || | _
| .__/ \___/ \__,_||_| |_| \__,_| \___| \__, | \__,_| \___||_| |_||_| (_)
| | | |
|_| |_|
""")
time.sleep(2)
clear()
print("""
_ _ _ _ _ _ _
(_) (_) | | | || | | | (_)
_ __ _ _ __ _ _ __ ___ | |_ __ _ | || | ___ | |__ _ ___ ___
| '_ \ | || '_ \ | || '_ \ / __|| __| / _` || || | / __|| '_ \ | |/ __|/ __|
| |_) || || |_) | | || | | |\__ \| |_ | (_| || || | | (__ | | | || |\__ \\__ \\
| .__/ |_|| .__/ |_||_| |_||___/ \__| \__,_||_||_| \___||_| |_||_||___/|___/
| | | |
|_| |_|
""")
time.sleep(2)
clear()
print("""
_ _ _
| | (_) | |
_ _ _ __ ___ ___ _ _ | | _ _ __ ___ _ __ ___ _ __ | |_
| | | || '_ \ / __| / _ \| | | || | | || '_ ` _ \ | '_ \ / _ \ | '__|| __|
| |_| || | | | \__ \| __/| |_| || | | || | | | | || |_) || (_) || | | |_
\__,_||_| |_| |___/ \___| \__,_||_| |_||_| |_| |_|| .__/ \___/ |_| \__|
| |
|_|
""")
time.sleep(2)
clear()
print("""
_ _ _ _ _ _ _
(_) | | | | (_) | | | | (_)
_ _ __ ___ _ __ ___ _ __ | |_ ___ | |__ _ ___ ___ _ __ __ _ | |_ __ _ ___ ___ | |__ _ ___ ___
| || '_ ` _ \ | '_ \ / _ \ | '__|| __| / __|| '_ \ | |/ __|/ __| | '__| / _` || __| / _` |/ __| / __|| '_ \ | |/ __|/ __|
| || | | | | || |_) || (_) || | | |_ | (__ | | | || |\__ \\__ \ _ | | | (_| || |_ | (_| |\__ \ | (__ | | | || |\__ \\__ \\
|_||_| |_| |_|| .__/ \___/ |_| \__| \___||_| |_||_||___/|___/(_)|_| \__,_| \__| \__,_||___/ \___||_| |_||_||___/|___/
| |
|_|
""")
time.sleep(2)
clear()
print("""
_ _ _ _ _ _ _ _
| | | | | | (_) | | | | | | | |
| | | | ___ _ _ ___ _ __ ___ ___ ___ __| | ___ ____ _ __ ___ __ _ _ _ __ | |_ ___ _ __ __ _ _ __ | |_ | | ___ _ __ __ _ | |_ ___ _ __ __ __ ___ _ _ ___
| | | | / _ \ | | | |/ __| | '_ \ / _ \ / __|/ __| / _` | / _ \|_ / | '_ ` _ \ / _` || || '_ \ | __| / _ \| '_ \ / _` || '_ \ | __| | | / _ \ | '__| / _` || __| / _ \| '_ \ \ \ / / / _ \ | | | |/ __|
\ \_/ /| (_) || |_| |\__ \ | |_) || (_) |\__ \\__ \| (_| || __/ / / | | | | | || (_| || || | | || |_ | __/| | | || (_| || | | || |_ | || __/ | | | (_| || |_ | __/| | | | \ V / | (_) || |_| |\__ \\
\___/ \___/ \__,_||___/ | .__/ \___/ |___/|___/ \__,_| \___|/___| |_| |_| |_| \__,_||_||_| |_| \__| \___||_| |_| \__,_||_| |_| \__| |_| \___| |_| \__,_| \__| \___||_| |_| \_/ \___/ \__,_||___/
| |
|_|
""")
time.sleep(2)
clear()
print("Abonne-toi ou j'te pin.")
| 71.396396
| 206
| 0.179054
| 66
| 7,925
| 3.863636
| 0.287879
| 0.352941
| 0.313725
| 0.470588
| 0.729412
| 0.729412
| 0.729412
| 0.729412
| 0.729412
| 0.729412
| 0
| 0.003597
| 0.614132
| 7,925
| 110
| 207
| 72.045455
| 0.079791
| 0
| 0
| 0.47619
| 0
| 0.342857
| 0.949148
| 0.002776
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.019048
| 0
| 0.019048
| 0.095238
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
9d0b4d806103a8ed2ae44d4b374184707b2fdad3
| 153
|
py
|
Python
|
src/web/port/util/queries.py
|
eric-yates/port
|
b7a2de9597828f3b635a90ee1e12c4833dfb4cb8
|
[
"MIT"
] | null | null | null |
src/web/port/util/queries.py
|
eric-yates/port
|
b7a2de9597828f3b635a90ee1e12c4833dfb4cb8
|
[
"MIT"
] | null | null | null |
src/web/port/util/queries.py
|
eric-yates/port
|
b7a2de9597828f3b635a90ee1e12c4833dfb4cb8
|
[
"MIT"
] | null | null | null |
from port.models import Plugin
def get_active_plugins():
""" Returns all active plugins """
return Plugin.query.filter(Plugin.is_active).all()
| 21.857143
| 54
| 0.72549
| 21
| 153
| 5.142857
| 0.714286
| 0.240741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156863
| 153
| 6
| 55
| 25.5
| 0.837209
| 0.169935
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
19dfaf856c88939903da882202e7e30b34880fc9
| 2,600
|
py
|
Python
|
tensorflow_advanced_segmentation_models/metrics.py
|
minouei-kl/TensorFlow-Advanced-Segmentation-Models
|
a53a8264028bfa1abc52c9f60ec47e1736690731
|
[
"MIT"
] | 72
|
2020-09-18T11:15:02.000Z
|
2022-03-31T04:14:23.000Z
|
tensorflow_advanced_segmentation_models/metrics.py
|
minouei-kl/TensorFlow-Advanced-Segmentation-Models
|
a53a8264028bfa1abc52c9f60ec47e1736690731
|
[
"MIT"
] | 18
|
2020-09-13T08:55:23.000Z
|
2022-02-17T19:18:10.000Z
|
tensorflow_advanced_segmentation_models/metrics.py
|
minouei-kl/TensorFlow-Advanced-Segmentation-Models
|
a53a8264028bfa1abc52c9f60ec47e1736690731
|
[
"MIT"
] | 29
|
2020-12-24T15:38:40.000Z
|
2022-03-24T01:36:05.000Z
|
from .base import Metric
from .base.functional import *
################################################################################
# Metrics
################################################################################
class IOUScore(Metric):
def __init__(self, class_weights=None, threshold=None, smooth=1e-5, name=None):
name = name or "iou_score"
super().__init__(name=name)
self.class_weights = class_weights if class_weights is not None else 1.
self.threshold = threshold
self.smooth = smooth
def __call__(self, y_true, y_pred):
return iou_score(
y_true,
y_pred,
class_weights=self.class_weights,
smooth=self.smooth,
threshold=self.threshold
)
class FScore(Metric):
def __init__(self, beta=1, class_weights=None, threshold=None, smooth=1e-5, name=None):
name = name or "f{}-score".format(beta)
super().__init__(name=name)
self.beta = beta
self.class_weights = class_weights if class_weights is not None else 1.
self.threshold = threshold
self.smooth = smooth
def __call__(self, y_true, y_pred):
return dice_coefficient(
y_true,
y_pred,
beta=self.beta,
class_weights=self.class_weights,
smooth=self.smooth,
threshold=self.threshold
)
class Precision(Metric):
def __init__(self, class_weights=None, threshold=None, smooth=1e-5, name=None):
name = name or "precision"
super().__init__(name=name)
self.class_weights = class_weights if class_weights is not None else 1.
self.threshold = threshold
self.smooth = smooth
def __call__(self, y_true, y_pred):
return precision(
y_true,
y_pred,
class_weights=self.class_weights,
smooth=self.smooth,
threshold=self.threshold
)
class Recall(Metric):
def __init__(self, class_weights=None, threshold=None, smooth=1e-5, name=None):
name = name or "recall"
super().__init__(name=name)
self.class_weights = class_weights if class_weights is not None else 1.
self.threshold = threshold
self.smooth = smooth
def __call__(self, y_true, y_pred):
return iou_score(
y_true,
y_pred,
class_weights=self.class_weights,
smooth=self.smooth,
threshold=self.threshold
)
| 34.666667
| 92
| 0.556923
| 292
| 2,600
| 4.643836
| 0.136986
| 0.212389
| 0.129794
| 0.058997
| 0.852507
| 0.837021
| 0.837021
| 0.837021
| 0.837021
| 0.837021
| 0
| 0.007151
| 0.300769
| 2,600
| 75
| 93
| 34.666667
| 0.738724
| 0.002692
| 0
| 0.703125
| 0
| 0
| 0.013995
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.03125
| 0.0625
| 0.28125
| 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
|
c2130e6b354ce0c1c9ad95b9c1bc68a588d17bc1
| 3,523
|
py
|
Python
|
03-17 bak/config.py
|
kevincao91/kevin.ai.face_recognition
|
4813441f8989985301a547c0464e3e945753357e
|
[
"MIT"
] | null | null | null |
03-17 bak/config.py
|
kevincao91/kevin.ai.face_recognition
|
4813441f8989985301a547c0464e3e945753357e
|
[
"MIT"
] | null | null | null |
03-17 bak/config.py
|
kevincao91/kevin.ai.face_recognition
|
4813441f8989985301a547c0464e3e945753357e
|
[
"MIT"
] | null | null | null |
import time
class Config:
lfw_data_dir = '/home/kevin/文档/LFW'
celeba_data_dir = '/media/kevin/文档/CelebA200'
use_funneled = False
face_data = 'lfw'
if face_data == 'lfw':
imgset_data_dir = lfw_data_dir
if use_funneled:
img_data_dir = lfw_data_dir + '/lfw-deepfunneled/'
else:
img_data_dir = lfw_data_dir + '/lfw/'
input_img_size = 250
crop_size = 200 # 0 为不操作
resize_size = 0 # 0 为不操作
if face_data == 'celeba':
imgset_data_dir = celeba_data_dir
img_data_dir = celeba_data_dir + '/img_align_celeba_200/'
input_img_size = 200
crop_size = 0 # 0 为不操作
resize_size = 0 # 0 为不操作
log_dir = 'checkpoints/'
train_net_name = 'face'
init_lr = 0.001
margin = 0.3
train_bs = 16
valid_bs = 16
test_bs = 16
max_epoch = 30
show_plot_epoch = False
train_harder = True
def _print_opt(self):
time_str = time.strftime('%m%d%H%M%S')
config_txt_path = self.log_dir + time_str + '_config.txt'
with open(config_txt_path, 'w') as f:
state_dict = self._state_dict()
string = '===================user config==================='
print(string)
f.write(string + '\n')
for k, v in state_dict.items():
string = str(k) + '\t\t\t' + str(v)
print(string)
f.write(string + '\n')
string = '=======================end======================='
print(string)
f.write(string + '\n')
def _state_dict(self):
return {k: getattr(self, k) for k, _ in Config.__dict__.items()
if not k.startswith('_')}
opt = Config()
class CUDAConfig:
lfw_data_dir = '/DATACENTER5/caoke/LFW'
celeba_data_dir = '/DATACENTER5/caoke/CelebA200'
use_funneled = False
face_data = 'celeba'
if face_data == 'lfw':
imgset_data_dir = lfw_data_dir
if use_funneled:
img_data_dir = lfw_data_dir + '/lfw-deepfunneled/'
else:
img_data_dir = lfw_data_dir + '/lfw/'
input_img_size = 250
crop_size = 224 # 0 为不操作
resize_size = 0 # 0 为不操作
if face_data == 'celeba':
imgset_data_dir = celeba_data_dir
img_data_dir = celeba_data_dir + '/img_align_celeba_200/'
input_img_size = 200
crop_size = 0 # 0 为不操作
resize_size = 224 # 0 为不操作
log_dir = 'checkpoints/'
train_net_name = 'face'
init_lr = 0.001
margin = 0.5
train_bs = 64
valid_bs = 12
test_bs = 12
max_epoch = 30
show_plot_epoch = False
train_harder = True
def _print_opt(self):
time_str = time.strftime('%m%d%H%M%S')
config_txt_path = self.log_dir + time_str + '_config.txt'
with open(config_txt_path, 'w') as f:
state_dict = self._state_dict()
string = '===================user config==================='
print(string)
f.write(string + '\n')
for k, v in state_dict.items():
string = str(k) + '\t\t\t' + str(v)
print(string)
f.write(string + '\n')
string = '=======================end======================='
print(string)
f.write(string + '\n')
def _state_dict(self):
return {k: getattr(self, k) for k, _ in CUDAConfig.__dict__.items()
if not k.startswith('_')}
cuda_opt = CUDAConfig()
| 31.455357
| 75
| 0.531081
| 455
| 3,523
| 3.789011
| 0.206593
| 0.097448
| 0.058005
| 0.048724
| 0.850928
| 0.850928
| 0.783643
| 0.783063
| 0.783063
| 0.783063
| 0
| 0.031653
| 0.318479
| 3,523
| 111
| 76
| 31.738739
| 0.686381
| 0.015612
| 0
| 0.757576
| 0
| 0
| 0.146863
| 0.090489
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040404
| false
| 0
| 0.010101
| 0.020202
| 0.373737
| 0.080808
| 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
|
dfb46139ad624f67e4aff9937e72ebddbd1befd7
| 5,517
|
py
|
Python
|
test/test_extras_api.py
|
nrfta/python-netbox-client
|
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
|
[
"MIT"
] | null | null | null |
test/test_extras_api.py
|
nrfta/python-netbox-client
|
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
|
[
"MIT"
] | null | null | null |
test/test_extras_api.py
|
nrfta/python-netbox-client
|
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
|
[
"MIT"
] | null | null | null |
# coding: utf-8
"""
NetBox API
API to access NetBox # noqa: E501
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import netbox_client
from netbox_client.api.extras_api import ExtrasApi # noqa: E501
from netbox_client.rest import ApiException
class TestExtrasApi(unittest.TestCase):
"""ExtrasApi unit test stubs"""
def setUp(self):
self.api = netbox_client.api.extras_api.ExtrasApi() # noqa: E501
def tearDown(self):
pass
def test_extras_config_contexts_create(self):
"""Test case for extras_config_contexts_create
"""
pass
def test_extras_config_contexts_delete(self):
"""Test case for extras_config_contexts_delete
"""
pass
def test_extras_config_contexts_list(self):
"""Test case for extras_config_contexts_list
"""
pass
def test_extras_config_contexts_partial_update(self):
"""Test case for extras_config_contexts_partial_update
"""
pass
def test_extras_config_contexts_read(self):
"""Test case for extras_config_contexts_read
"""
pass
def test_extras_config_contexts_update(self):
"""Test case for extras_config_contexts_update
"""
pass
def test_extras_custom_field_choices_list(self):
"""Test case for extras_custom_field_choices_list
"""
pass
def test_extras_custom_field_choices_read(self):
"""Test case for extras_custom_field_choices_read
"""
pass
def test_extras_export_templates_create(self):
"""Test case for extras_export_templates_create
"""
pass
def test_extras_export_templates_delete(self):
"""Test case for extras_export_templates_delete
"""
pass
def test_extras_export_templates_list(self):
"""Test case for extras_export_templates_list
"""
pass
def test_extras_export_templates_partial_update(self):
"""Test case for extras_export_templates_partial_update
"""
pass
def test_extras_export_templates_read(self):
"""Test case for extras_export_templates_read
"""
pass
def test_extras_export_templates_update(self):
"""Test case for extras_export_templates_update
"""
pass
def test_extras_graphs_create(self):
"""Test case for extras_graphs_create
"""
pass
def test_extras_graphs_delete(self):
"""Test case for extras_graphs_delete
"""
pass
def test_extras_graphs_list(self):
"""Test case for extras_graphs_list
"""
pass
def test_extras_graphs_partial_update(self):
"""Test case for extras_graphs_partial_update
"""
pass
def test_extras_graphs_read(self):
"""Test case for extras_graphs_read
"""
pass
def test_extras_graphs_update(self):
"""Test case for extras_graphs_update
"""
pass
def test_extras_image_attachments_create(self):
"""Test case for extras_image_attachments_create
"""
pass
def test_extras_image_attachments_delete(self):
"""Test case for extras_image_attachments_delete
"""
pass
def test_extras_image_attachments_list(self):
"""Test case for extras_image_attachments_list
"""
pass
def test_extras_image_attachments_partial_update(self):
"""Test case for extras_image_attachments_partial_update
"""
pass
def test_extras_image_attachments_read(self):
"""Test case for extras_image_attachments_read
"""
pass
def test_extras_image_attachments_update(self):
"""Test case for extras_image_attachments_update
"""
pass
def test_extras_object_changes_list(self):
"""Test case for extras_object_changes_list
"""
pass
def test_extras_object_changes_read(self):
"""Test case for extras_object_changes_read
"""
pass
def test_extras_reports_list(self):
"""Test case for extras_reports_list
"""
pass
def test_extras_reports_read(self):
"""Test case for extras_reports_read
"""
pass
def test_extras_reports_run(self):
"""Test case for extras_reports_run
"""
pass
def test_extras_scripts_list(self):
"""Test case for extras_scripts_list
"""
pass
def test_extras_scripts_read(self):
"""Test case for extras_scripts_read
"""
pass
def test_extras_tags_create(self):
"""Test case for extras_tags_create
"""
pass
def test_extras_tags_delete(self):
"""Test case for extras_tags_delete
"""
pass
def test_extras_tags_list(self):
"""Test case for extras_tags_list
"""
pass
def test_extras_tags_partial_update(self):
"""Test case for extras_tags_partial_update
"""
pass
def test_extras_tags_read(self):
"""Test case for extras_tags_read
"""
pass
def test_extras_tags_update(self):
"""Test case for extras_tags_update
"""
pass
if __name__ == '__main__':
unittest.main()
| 20.509294
| 73
| 0.632953
| 647
| 5,517
| 4.976816
| 0.106646
| 0.084783
| 0.13323
| 0.205901
| 0.879503
| 0.75559
| 0.376708
| 0.102484
| 0
| 0
| 0
| 0.003074
| 0.292369
| 5,517
| 268
| 74
| 20.585821
| 0.821721
| 0.394236
| 0
| 0.444444
| 1
| 0
| 0.002571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.455556
| false
| 0.444444
| 0.055556
| 0
| 0.522222
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
a0a5e311757219c61bd041935ab8a9cab0a76561
| 3,755
|
py
|
Python
|
project/openaid/projects/serializers.py
|
DeppSRL/open-aid
|
84130761c00600a8523f4f28467d70ad974859cd
|
[
"BSD-3-Clause"
] | null | null | null |
project/openaid/projects/serializers.py
|
DeppSRL/open-aid
|
84130761c00600a8523f4f28467d70ad974859cd
|
[
"BSD-3-Clause"
] | null | null | null |
project/openaid/projects/serializers.py
|
DeppSRL/open-aid
|
84130761c00600a8523f4f28467d70ad974859cd
|
[
"BSD-3-Clause"
] | null | null | null |
from rest_framework import serializers
from ..serializers import TranslatedModelSerializer
from .models import Project, Activity, Markers, ChannelReported
class MarkersSerializer(TranslatedModelSerializer):
class Meta:
model = Markers
fields = (
'biodiversity', 'climate_adaptation', 'climate_mitigation', 'desertification',
'environment', 'gender', 'pd_gg', 'trade', )
class ChannelReportedSerializer(TranslatedModelSerializer):
class Meta:
model = ChannelReported
class ProjectSerializer(TranslatedModelSerializer):
recipient = serializers.HyperlinkedRelatedField(read_only=True, view_name='recipient-detail', lookup_field='code')
channel = serializers.HyperlinkedRelatedField(read_only=True, view_name='channel-detail', lookup_field='code')
aid_type = serializers.HyperlinkedRelatedField(read_only=True, view_name='aidtype-detail', lookup_field='code')
agency = serializers.HyperlinkedRelatedField(read_only=True, view_name='agency-detail', lookup_field='code')
finance_type = serializers.HyperlinkedRelatedField(read_only=True, view_name='financetype-detail', lookup_field='code')
sector = serializers.HyperlinkedRelatedField(read_only=True, view_name='sector-detail', lookup_field='code')
markers = MarkersSerializer()
activities = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='activity-detail')
class Meta:
model = Project
fields = ('crsid', 'url', 'title', 'description', 'start_year', 'end_year', 'recipient',
'channel', 'aid_type', 'agency', 'finance_type', 'sector', 'markers', 'activities')
class ActivitySerializer(TranslatedModelSerializer):
project = serializers.HyperlinkedRelatedField(read_only=True, view_name='project-detail')
recipient = serializers.HyperlinkedRelatedField(read_only=True, view_name='recipient-detail', lookup_field='code')
channel = serializers.HyperlinkedRelatedField(read_only=True, view_name='channel-detail', lookup_field='code')
aid_type = serializers.HyperlinkedRelatedField(read_only=True, view_name='aidtype-detail', lookup_field='code')
agency = serializers.HyperlinkedRelatedField(read_only=True, view_name='agency-detail', lookup_field='code')
finance_type = serializers.HyperlinkedRelatedField(read_only=True, view_name='financetype-detail', lookup_field='code')
sector = serializers.HyperlinkedRelatedField(read_only=True, view_name='sector-detail', lookup_field='code')
channel_reported = serializers.RelatedField(source='channel_reported.name')
markers = MarkersSerializer()
class Meta:
model = Activity
class ProjectDetailSerializer(TranslatedModelSerializer):
recipient = serializers.HyperlinkedRelatedField(read_only=True, view_name='recipient-detail', lookup_field='code')
channel = serializers.HyperlinkedRelatedField(read_only=True, view_name='channel-detail', lookup_field='code')
aid_type = serializers.HyperlinkedRelatedField(read_only=True, view_name='aidtype-detail', lookup_field='code')
agency = serializers.HyperlinkedRelatedField(read_only=True, view_name='agency-detail', lookup_field='code')
finance_type = serializers.HyperlinkedRelatedField(read_only=True, view_name='financetype-detail', lookup_field='code')
sector = serializers.HyperlinkedRelatedField(read_only=True, view_name='sector-detail', lookup_field='code')
markers = MarkersSerializer()
activities = ActivitySerializer(many=True)
class Meta:
model = Project
fields = ('crsid', 'url', 'title', 'description', 'start_year', 'end_year', 'recipient',
'channel', 'aid_type', 'agency', 'finance_type', 'sector', 'markers', 'activities')
| 53.642857
| 123
| 0.757124
| 381
| 3,755
| 7.257218
| 0.160105
| 0.245931
| 0.086799
| 0.115732
| 0.754069
| 0.744304
| 0.744304
| 0.724774
| 0.724774
| 0.724774
| 0
| 0
| 0.125433
| 3,755
| 69
| 124
| 54.42029
| 0.841961
| 0
| 0
| 0.64
| 0
| 0
| 0.183804
| 0.005594
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.06
| 0
| 0.76
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
a0be39336207537598b9e4f2879cc115e5d7f60f
| 180
|
py
|
Python
|
app/restful/__init__.py
|
wardballoon/hackathoners
|
cef41cb5e200af9f56f3996504d333798c5d510f
|
[
"Apache-2.0"
] | null | null | null |
app/restful/__init__.py
|
wardballoon/hackathoners
|
cef41cb5e200af9f56f3996504d333798c5d510f
|
[
"Apache-2.0"
] | null | null | null |
app/restful/__init__.py
|
wardballoon/hackathoners
|
cef41cb5e200af9f56f3996504d333798c5d510f
|
[
"Apache-2.0"
] | null | null | null |
from flask import Blueprint
from flask_restful import Api
restful = Blueprint('restful', __name__, url_prefix='/api')
api_restful = Api(restful)
# api_restful.add_resource(class)
| 25.714286
| 59
| 0.794444
| 25
| 180
| 5.36
| 0.48
| 0.298507
| 0.19403
| 0.298507
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105556
| 180
| 7
| 60
| 25.714286
| 0.832298
| 0.172222
| 0
| 0
| 0
| 0
| 0.074324
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
261d1f29abba4cee94b29542700055ed4f16b687
| 7,311
|
py
|
Python
|
AwardsStats/tests.py
|
gordiig/Un_RSOI_Stats
|
e8c5e22f2d6e7eef70f7fb7dbd7d4e66f0ca27fa
|
[
"MIT"
] | null | null | null |
AwardsStats/tests.py
|
gordiig/Un_RSOI_Stats
|
e8c5e22f2d6e7eef70f7fb7dbd7d4e66f0ca27fa
|
[
"MIT"
] | 3
|
2021-03-19T01:19:57.000Z
|
2021-04-08T19:55:38.000Z
|
AwardsStats/tests.py
|
GordiigPinny/StatsService
|
e8c5e22f2d6e7eef70f7fb7dbd7d4e66f0ca27fa
|
[
"MIT"
] | null | null | null |
from TestUtils.models import BaseTestCase
from AwardsStats.models import AchievementStats, PinPurchaseStats
class PinPurchasesStatsListTestCase(BaseTestCase):
"""
Тесты для /pin_purchases/
"""
def setUp(self):
super().setUp()
self.token.set_role(self.token.ROLES.SUPERUSER)
self.path = self.url_prefix + 'pin_purchases/'
self.stat = PinPurchaseStats.objects.create(pin_id=1, user_id=1, purchase_dt='2020-03-01T12:12:12Z')
self.data_201 = {
'user_id': 1,
'pin_id': 1,
'purchase_dt': '2020-03-12T13:00:01Z',
}
self.data_400_1 = {
'user_id': 1,
}
self.data_400_2 = {
'user_id': 1,
'pin_id': 1,
'purchase_dt': '2020/03/12 13:00:01',
}
def testGet200_OK(self):
response = self.get_response_and_check_status(url=self.path)
self.list_test(response, PinPurchaseStats)
def testGet200_WithQueryParams(self):
response = self.get_response_and_check_status(url=self.path +
f'?user_id={self.stat.user_id}&pin_id={self.stat.pin_id}')
self.assertEqual(len(response), 1, msg='No instance in response')
def testGet200_EmptyWithQueryParams(self):
response = self.get_response_and_check_status(url=self.path + f'?user_id={self.stat.user_id+1000}')
self.assertEqual(len(response), 0, msg='Instance in response')
response = self.get_response_and_check_status(url=self.path + f'?pin_id={self.stat.pin_id+1000}')
self.assertEqual(len(response), 0, msg='Instance in response')
def testGet401_403_NotSuperuser(self):
self.token.set_role(self.token.ROLES.USER)
_ = self.get_response_and_check_status(url=self.path, expected_status_code=[401, 403])
def testPost201_OK(self):
_ = self.post_response_and_check_status(url=self.path, data=self.data_201)
def testPost400_WrongJSON(self):
_ = self.post_response_and_check_status(url=self.path, data=self.data_400_1, expected_status_code=400)
def testPost400_WrongDTFormat(self):
_ = self.post_response_and_check_status(url=self.path, data=self.data_400_2, expected_status_code=400)
def testPost401_403_WrongAppToken(self):
self.token.set_error(self.token.ERRORS_KEYS.APP_AUTH, self.token.ERRORS.BAD_CODE_403_TOKEN)
_ = self.post_response_and_check_status(url=self.path, data=self.data_201, expected_status_code=[401, 403])
def testPost401_403_ErrorOnAuthService(self):
self.token.set_error(self.token.ERRORS_KEYS.APP_AUTH, self.token.ERRORS.BAD_CODE_403_TOKEN)
_ = self.post_response_and_check_status(url=self.path, data=self.data_201, expected_status_code=[401, 403])
class PinPurchasesStatsTestCase(BaseTestCase):
"""
Тесты для /pin_purchases/<pk>/
"""
def setUp(self):
super().setUp()
self.token.set_role(self.token.ROLES.SUPERUSER)
self.stat = PinPurchaseStats.objects.create(pin_id=1, user_id=1, purchase_dt='2020-03-01T12:12:12Z')
self.path = self.url_prefix + f'pin_purchases/{self.stat.id}/'
self.path_404 = self.url_prefix + f'pin_purchases/{self.stat.id + 1000}/'
def testGet200_OK(self):
_ = self.get_response_and_check_status(url=self.path)
def testGet401_403_NotSuperuser(self):
self.token.set_role(self.token.ROLES.USER)
_ = self.get_response_and_check_status(url=self.path, expected_status_code=[401, 403])
def testGet404_WrongId(self):
_ = self.get_response_and_check_status(url=self.path_404, expected_status_code=404)
class AchievementsStatsListTestCase(BaseTestCase):
"""
Тесты для /achievements/
"""
def setUp(self):
super().setUp()
self.token.set_role(self.token.ROLES.SUPERUSER)
self.path = self.url_prefix + 'achievements/'
self.stat = AchievementStats.objects.create(achievement_id=1, user_id=1, achievement_dt='2020-03-01T12:12:12Z')
self.data_201 = {
'user_id': 1,
'achievement_id': 1,
'achievement_dt': '2020-03-12T13:00:01Z',
}
self.data_400_1 = {
'user_id': 1,
}
self.data_400_2 = {
'user_id': 1,
'achievement_id': 1,
'achievement_dt': '2020/03/12 13:00:01',
}
def testGet200_OK(self):
response = self.get_response_and_check_status(url=self.path)
self.list_test(response, AchievementStats)
def testGet200_WithQueryParams(self):
response = self.get_response_and_check_status(url=self.path +
f'?user_id={self.stat.user_id}&achievement_id={self.stat.achievement_id}')
self.assertEqual(len(response), 1, msg='No instance in response')
def testGet200_EmptyWithQueryParams(self):
response = self.get_response_and_check_status(url=self.path + f'?user_id={self.stat.user_id+1000}')
self.assertEqual(len(response), 0, msg='Instance in response')
response = self.get_response_and_check_status(url=self.path + f'?achievement_id={self.stat.achievement_id+1000}')
self.assertEqual(len(response), 0, msg='Instance in response')
def testGet401_403_NotSuperuser(self):
self.token.set_role(self.token.ROLES.USER)
_ = self.get_response_and_check_status(url=self.path, expected_status_code=[401, 403])
def testPost201_OK(self):
_ = self.post_response_and_check_status(url=self.path, data=self.data_201)
def testPost400_WrongJSON(self):
_ = self.post_response_and_check_status(url=self.path, data=self.data_400_1, expected_status_code=400)
def testPost400_WrongDTFormat(self):
_ = self.post_response_and_check_status(url=self.path, data=self.data_400_2, expected_status_code=400)
def testPost401_403_WrongAppToken(self):
self.token.set_error(self.token.ERRORS_KEYS.APP_AUTH, self.token.ERRORS.BAD_CODE_403_TOKEN)
_ = self.post_response_and_check_status(url=self.path, data=self.data_201, expected_status_code=[401, 403])
def testPost401_403_ErrorOnAuthService(self):
self.token.set_error(self.token.ERRORS_KEYS.APP_AUTH, self.token.ERRORS.BAD_CODE_403_TOKEN)
_ = self.post_response_and_check_status(url=self.path, data=self.data_201, expected_status_code=[401, 403])
class AchievementStatsTestCase(BaseTestCase):
"""
Тесты для /achievements/<pk>/
"""
def setUp(self):
super().setUp()
self.token.set_role(self.token.ROLES.SUPERUSER)
self.stat = AchievementStats.objects.create(achievement_id=1, user_id=1, achievement_dt='2020-03-01T12:12:12Z')
self.path = self.url_prefix + f'achievements/{self.stat.id}/'
self.path_404 = self.url_prefix + f'achievements/{self.stat.id + 1000}/'
def testGet200_OK(self):
_ = self.get_response_and_check_status(url=self.path)
def testGet401_403_NotSuperuser(self):
self.token.set_role(self.token.ROLES.USER)
_ = self.get_response_and_check_status(url=self.path, expected_status_code=[401, 403])
def testGet404_WrongId(self):
_ = self.get_response_and_check_status(url=self.path_404, expected_status_code=404)
| 43.517857
| 128
| 0.686363
| 984
| 7,311
| 4.797764
| 0.098577
| 0.054226
| 0.088117
| 0.121161
| 0.929464
| 0.915908
| 0.895573
| 0.895573
| 0.890489
| 0.885406
| 0
| 0.068286
| 0.194775
| 7,311
| 167
| 129
| 43.778443
| 0.73365
| 0.015183
| 0
| 0.770492
| 0
| 0
| 0.11754
| 0.052956
| 0
| 0
| 0
| 0
| 0.04918
| 1
| 0.229508
| false
| 0
| 0.016393
| 0
| 0.278689
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
266190db70c7a011a20d7adb922327c5541c771d
| 8,881
|
py
|
Python
|
Python/streamline/streamline.py
|
aDAVISk/MimicChest
|
15dc6eef00f7496ad0af8d65611abc6870dbe279
|
[
"BSD-3-Clause"
] | null | null | null |
Python/streamline/streamline.py
|
aDAVISk/MimicChest
|
15dc6eef00f7496ad0af8d65611abc6870dbe279
|
[
"BSD-3-Clause"
] | null | null | null |
Python/streamline/streamline.py
|
aDAVISk/MimicChest
|
15dc6eef00f7496ad0af8d65611abc6870dbe279
|
[
"BSD-3-Clause"
] | null | null | null |
##########################################################
# streamline.py
# Author: Akito D. Kawamura
# calculate positions of 2D/3D stream line to be plotted.
#
# This program is published under BSD 3-Clause License.
# This program is a beta version.
# Please use this program under your responsibility.
##########################################################
import numpy as np
def getStreamline(*arg, seed=np.zeros(3), drct="Both", dd_rec=0.5, ignore=True):
num = len(arg)
if num == 4:
return getStreamline2d(arg[0],arg[1],arg[2],arg[3],seed=seed[0:2],drct=drct, dd_rec=0.5, ignore=ignore)
elif num == 6:
return getStreamline3d(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],seed=seed,drct=drct, dd_rec=0.5, ignore=ignore)
else:
raise TypeError("Method 'get_streamline' takes 4 or 6 arguments.")
for ii in range(num):
print(arg[ii])
#end of getStreamline
def getStreamline3d(x,y,z,vx,vy,vz,seed=np.zeros(3), drct="Both", dd_rec=0.5, ignore=True):
nums = (len(x),len(y),len(z))
if nums != np.shape(vx) != np.shape(vy) != np.shape(vz):
raise TypeError("Sizes of arguments do not agree.")
if (not ignore) or (x[0] > seed[0] >= x[-1]) or (y[0] > seed[1] >= y[-1]) or (z[0] > seed[2] >= z[-1]):
raise ValueError("The seed point is out of the boundary.")
strl_x_f = [seed[0]]
strl_y_f = [seed[1]]
strl_z_f = [seed[2]]
strl_x_b = [seed[0]]
strl_y_b = [seed[1]]
strl_z_b = [seed[2]]
vv_norm = 1.0/max(np.max(np.abs(vx)),np.max(np.abs(vy)),np.max(np.abs(vz)))
flim = 0.01
tt_coeff = 0.1
tt_lim = 0.1
if drct == "Both" or drct == "Forward":
curr_x = seed[0]
curr_y = seed[1]
curr_z = seed[2]
while True:
try:
id_x_l = np.where((curr_x>=x))[0][-1]
id_y_l = np.where((curr_y>=y))[0][-1]
id_z_l = np.where((curr_z>=z))[0][-1]
id_x_h = np.where((curr_x<x))[0][0]
id_y_h = np.where((curr_y<y))[0][0]
id_z_h = np.where((curr_z<z))[0][0]
except IndexError: # Out of the boundary
break
dx = x[id_x_h]-x[id_x_l]
dy = y[id_y_h]-y[id_y_l]
dz = z[id_z_h]-z[id_z_l]
dd = max(abs(strl_x_f[-1]-curr_x)/dx,abs(strl_y_f[-1]-curr_y)/dy,abs(strl_z_f[-1]-curr_z)/dz)
if dd >= dd_rec:
strl_x_f.append(curr_x)
strl_y_f.append(curr_y)
strl_z_f.append(curr_z)
wg_x_l = (x[id_x_h]-curr_x)/dx
wg_y_l = (y[id_y_h]-curr_y)/dy
wg_z_l = (z[id_z_h]-curr_z)/dy
weight = np.array([wg_x_l,1.-wg_x_l])
weight = np.array([wg_y_l*weight,(1.-wg_y_l)*weight])
weight = np.array([wg_z_l*weight,(1.-wg_z_l)*weight])
curr_vx = np.sum(vx[id_x_l:id_x_h+1,id_y_l:id_y_h+1,id_z_l:id_z_h+1]*weight)
curr_vy = np.sum(vy[id_x_l:id_x_h+1,id_y_l:id_y_h+1,id_z_l:id_z_h+1]*weight)
curr_vz = np.sum(vz[id_x_l:id_x_h+1,id_y_l:id_y_h+1,id_z_l:id_z_h+1]*weight)
ff = max([abs(curr_vx), abs(curr_vy), abs(curr_vz)])/dd_rec
if ff < flim: # slower than limit
break
tt = min(tt_lim, tt_coeff / ff)
curr_x += tt * curr_vx
curr_y += tt * curr_vy
curr_z += tt * curr_vz
if drct == "Both" or drct == "Backward":
curr_x = seed[0]
curr_y = seed[1]
curr_z = seed[2]
while True:
try:
id_x_l = np.where((curr_x>=x))[0][-1]
id_y_l = np.where((curr_y>=y))[0][-1]
id_z_l = np.where((curr_z>=z))[0][-1]
id_x_h = np.where((curr_x<x))[0][0]
id_y_h = np.where((curr_y<y))[0][0]
id_z_h = np.where((curr_z<z))[0][0]
except IndexError: # Out of the boundary
break
dx = x[id_x_h]-x[id_x_l]
dy = y[id_y_h]-y[id_y_l]
dz = z[id_z_h]-z[id_z_l]
dd = max(abs(strl_x_b[-1]-curr_x)/dx,abs(strl_x_b[-1]-curr_y)/dy,abs(strl_x_b[-1]-curr_z)/dz)
if dd >= dd_rec:
strl_x_b.append(curr_x)
strl_y_b.append(curr_y)
strl_z_b.append(curr_z)
wg_x_l = (x[id_x_h]-curr_x)/dx
wg_y_l = (y[id_y_h]-curr_y)/dy
wg_z_l = (z[id_z_h]-curr_z)/dy
weight = np.array([wg_x_l,1.-wg_x_l])
weight = np.array([wg_y_l*weight,(1.-wg_y_l)*weight])
weight = np.array([wg_z_l*weight,(1.-wg_z_l)*weight])
curr_vx = np.sum(vx[id_x_l:id_x_h+1,id_y_l:id_y_h+1,id_z_l:id_z_h+1]*weight)
curr_vy = np.sum(vy[id_x_l:id_x_h+1,id_y_l:id_y_h+1,id_z_l:id_z_h+1]*weight)
curr_vz = np.sum(vz[id_x_l:id_x_h+1,id_y_l:id_y_h+1,id_z_l:id_z_h+1]*weight)
ff = max([abs(curr_vx), abs(curr_vy), abs(curr_vz)])/dd_rec
#if ff < flim: # slower than limit
# break
tt = min(tt_lim, tt_coeff / ff)
curr_x -= tt * curr_vx
curr_y -= tt * curr_vy
curr_z -= tt * curr_vz
if drct == "Both":
strl_x = np.array(strl_x_b[-1:0:-1] + strl_x_f)
strl_y = np.array(strl_y_b[-1:0:-1] + strl_y_f)
strl_z = np.array(strl_z_b[-1:0:-1] + strl_z_f)
return strl_x, strl_y, strl_z
if drct == "Forward":
return np.array(strl_x_f), np.array(strl_y_f), np.array(strl_z_f)
if drct == "Backward":
return np.array(strl_x_b), np.array(strl_y_b), np.array(strl_z_b)
if not ignore:
raise ValueError("Something wrong happened at get_streamline3d().")
return np.array([0.0]), np.array([0.0]), np.array([0.0])
#end of getStreamline3d
def getStreamline2d(x,y,vx,vy,seed=np.zeros(2), drct="Both", dd_rec=0.1, ignore=True):
nums = (len(x),len(y))
if nums != np.shape(vx) != np.shape(vy):
raise TypeError("Sizes of arguments do not agree.")
if (not ignore) or (x[0] > seed[0] >= x[-1]) or (y[0] > seed[1] >= y[-1]):
raise ValueError("The seed point is out of the boundary.")
strl_x_f = [seed[0]]
strl_y_f = [seed[1]]
strl_x_b = [seed[0]]
strl_y_b = [seed[1]]
vv_norm = 1.0/max(np.max(np.abs(vx)),np.max(np.abs(vy)))
flim = 0.01
tt_coeff = 0.1
tt_lim = 0.1
stop_param = 10
if drct == "Both" or drct == "Forward":
curr_x = seed[0]
curr_y = seed[1]
stop_cnt = -1
while True:
try:
id_x_l = np.where((curr_x>=x))[0][-1]
id_y_l = np.where((curr_y>=y))[0][-1]
id_x_h = np.where((curr_x<x))[0][0]
id_y_h = np.where((curr_y<y))[0][0]
except IndexError: # Out of the boundary
#print("Out of the boundary break")
break
dx = x[id_x_h]-x[id_x_l]
dy = y[id_y_h]-y[id_y_l]
dd = max(abs(strl_x_f[-1]-curr_x)/dx,abs(strl_y_f[-1]-curr_y)/dy)
if dd >= dd_rec:
strl_x_f.append(curr_x)
strl_y_f.append(curr_y)
stop_cnt = 0
else:
if stop_cnt > stop_param:
#print("Iteration limit break")
break
stop_cnt+=1
wg_x_l = (x[id_x_h]-curr_x)/dx
wg_y_l = (y[id_y_h]-curr_y)/dy
weight = np.array([wg_x_l,1.-wg_x_l])
weight = np.array([wg_y_l*weight,(1.-wg_y_l)*weight])
curr_vx = np.sum(vx[id_x_l:id_x_h+1,id_y_l:id_y_h+1]*weight)*vv_norm
curr_vy = np.sum(vy[id_x_l:id_x_h+1,id_y_l:id_y_h+1]*weight)*vv_norm
ff = max([abs(curr_vx), abs(curr_vy)])/dd_rec
if ff < flim: # slower than limit
#print("Slow limit break: v = ({0}, {1})".format(curr_vx,curr_vy))
#print("vx = {0}".format(vx[id_y_l:id_y_h+1,id_x_l:id_x_h+1]))
#print("vy = {0}".format(vy[id_y_l:id_y_h+1,id_x_l:id_x_h+1]))
break
tt = min(tt_lim, tt_coeff / ff)
curr_x += tt * curr_vx
curr_y += tt * curr_vy
if drct == "Both" or drct == "Backward":
curr_x = seed[0]
curr_y = seed[1]
stop_cnt = -1
while True:
try:
id_x_l = np.where((curr_x>=x))[0][-1]
id_y_l = np.where((curr_y>=y))[0][-1]
id_x_h = np.where((curr_x<x))[0][0]
id_y_h = np.where((curr_y<y))[0][0]
except IndexError: # Out of the boundary
#print("Out of the boundary break")
break
dx = x[id_x_h]-x[id_x_l]
dy = y[id_y_h]-y[id_y_l]
dd = max(abs(strl_x_b[-1]-curr_x)/dx,abs(strl_y_b[-1]-curr_y)/dy)
if dd >= dd_rec:
strl_x_b.append(curr_x)
strl_y_b.append(curr_y)
stop_cnt = 0
else:
if stop_cnt > stop_param:
#print("Iteration limit break")
break
stop_cnt+=1
wg_x_l = (x[id_x_h]-curr_x)/dx
wg_y_l = (y[id_y_h]-curr_y)/dy
weight = np.array([wg_x_l,1.-wg_x_l])
weight = np.array([wg_y_l*weight,(1.-wg_y_l)*weight])
curr_vx = np.sum(vx[id_x_l:id_x_h+1,id_y_l:id_y_h+1]*weight)*vv_norm
curr_vy = np.sum(vy[id_x_l:id_x_h+1,id_y_l:id_y_h+1]*weight)*vv_norm
ff = max([abs(curr_vx), abs(curr_vy)])/dd_rec
if ff < flim: # slower than limit
#print("Slow limit break: v = ({0}, {1})".format(curr_vx,curr_vy))
break
tt = min(tt_lim, tt_coeff / ff)
curr_x -= tt * curr_vx
curr_y -= tt * curr_vy
if drct == "Both":
strl_x = np.array(strl_x_b[-1:0:-1] + strl_x_f)
strl_y = np.array(strl_y_b[-1:0:-1] + strl_y_f)
return strl_x, strl_y
if drct == "Forward":
return np.array(strl_x_f), np.array(strl_y_f)
if drct == "Backward":
return np.array(strl_x_b), np.array(strl_y_b)
if not ignore:
raise ValueError("Something wrong happened at get_streamline3d().")
return np.array([0.0]), np.array([0.0])
#end of getStreamline2d
| 32.892593
| 115
| 0.607026
| 1,875
| 8,881
| 2.587733
| 0.0752
| 0.027205
| 0.019786
| 0.014427
| 0.870363
| 0.858615
| 0.846455
| 0.839242
| 0.811624
| 0.811624
| 0
| 0.031119
| 0.196712
| 8,881
| 269
| 116
| 33.01487
| 0.649005
| 0.09571
| 0
| 0.808612
| 0
| 0
| 0.049495
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014354
| false
| 0
| 0.004785
| 0
| 0.066986
| 0.004785
| 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
|
13fa2e3d007a838ef62be3dbf80aad8558313676
| 181
|
py
|
Python
|
selectinf/api.py
|
TianXie1999/selective-inference
|
ca02bbd84af5f5597944c75bde8337db9c69066a
|
[
"BSD-3-Clause"
] | 51
|
2016-03-31T16:34:15.000Z
|
2022-01-16T04:32:58.000Z
|
selectinf/api.py
|
TianXie1999/selective-inference
|
ca02bbd84af5f5597944c75bde8337db9c69066a
|
[
"BSD-3-Clause"
] | 11
|
2016-04-07T00:19:58.000Z
|
2021-10-03T18:31:14.000Z
|
selectinf/api.py
|
TianXie1999/selective-inference
|
ca02bbd84af5f5597944c75bde8337db9c69066a
|
[
"BSD-3-Clause"
] | 14
|
2015-10-28T17:29:05.000Z
|
2021-08-16T21:04:30.000Z
|
from .constraints.api import *
from .algorithms.api import *
from .distributions.api import *
from .randomized.api import *
from .truncated.api import *
from .sampling.api import *
| 25.857143
| 32
| 0.767956
| 24
| 181
| 5.791667
| 0.375
| 0.388489
| 0.467626
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132597
| 181
| 6
| 33
| 30.166667
| 0.88535
| 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
|
cd38da4c579a3f232420bf8cad08daafbe8bdfca
| 402
|
py
|
Python
|
SigProfilerTopography/__init__.py
|
AlexandrovLab/SigProfilerTopography
|
34c7cf24392bc77953370038a520ffc8d0bdee50
|
[
"BSD-2-Clause"
] | 5
|
2021-04-02T14:03:45.000Z
|
2022-02-21T12:54:52.000Z
|
SigProfilerTopography/__init__.py
|
AlexandrovLab/SigProfilerTopography
|
34c7cf24392bc77953370038a520ffc8d0bdee50
|
[
"BSD-2-Clause"
] | null | null | null |
SigProfilerTopography/__init__.py
|
AlexandrovLab/SigProfilerTopography
|
34c7cf24392bc77953370038a520ffc8d0bdee50
|
[
"BSD-2-Clause"
] | 1
|
2022-01-22T06:27:49.000Z
|
2022-01-22T06:27:49.000Z
|
from SigProfilerTopography.source.commons import *
from SigProfilerTopography.source.occupancy import *
from SigProfilerTopography.source.replicationtime import *
from SigProfilerTopography.source.replicationstrandbias import *
from SigProfilerTopography.source.transcriptionstrandbias import *
from SigProfilerTopography.source.processivity import *
from SigProfilerTopography.source.plotting import *
| 57.428571
| 66
| 0.880597
| 35
| 402
| 10.114286
| 0.314286
| 0.49435
| 0.612994
| 0.627119
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067164
| 402
| 7
| 67
| 57.428571
| 0.944
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 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
|
f821dac232466be060bf72a5ff273468368a7e5a
| 45
|
py
|
Python
|
examples/phobos/tests/test_std_outbuffer.py
|
kinke/autowrap
|
2f042df3f292aa39b1da0b9607fbe3424f56ff4a
|
[
"BSD-3-Clause"
] | 47
|
2019-07-16T10:38:07.000Z
|
2022-03-30T16:34:24.000Z
|
examples/phobos/tests/test_std_outbuffer.py
|
kinke/autowrap
|
2f042df3f292aa39b1da0b9607fbe3424f56ff4a
|
[
"BSD-3-Clause"
] | 199
|
2019-06-17T23:24:40.000Z
|
2021-06-16T16:41:36.000Z
|
examples/phobos/tests/test_std_outbuffer.py
|
kinke/autowrap
|
2f042df3f292aa39b1da0b9607fbe3424f56ff4a
|
[
"BSD-3-Clause"
] | 7
|
2019-09-13T18:03:49.000Z
|
2022-01-17T03:53:00.000Z
|
def test_import():
import std_outbuffer
| 11.25
| 24
| 0.733333
| 6
| 45
| 5.166667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 45
| 3
| 25
| 15
| 0.861111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 1
| 0
| 1.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f842625d002f2a7b7b46c56db6b99072224dfd5b
| 23,791
|
py
|
Python
|
stubs/codedeploy.py
|
claytonbrown/troposphere
|
bf0f1e48b14f578de0221d50f711467ad716ca87
|
[
"BSD-2-Clause"
] | null | null | null |
stubs/codedeploy.py
|
claytonbrown/troposphere
|
bf0f1e48b14f578de0221d50f711467ad716ca87
|
[
"BSD-2-Clause"
] | null | null | null |
stubs/codedeploy.py
|
claytonbrown/troposphere
|
bf0f1e48b14f578de0221d50f711467ad716ca87
|
[
"BSD-2-Clause"
] | null | null | null |
from . import AWSObject, AWSProperty
from .validators import *
from .constants import *
# -------------------------------------------
class CodeDeployRevisionLocation(AWSProperty):
"""# RevisionLocation - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html",
"Properties": {
"GitHubLocation": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation",
"Required": false,
"Type": "GitHubLocation",
"UpdateType": "Mutable"
},
"RevisionType": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-revisiontype",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"S3Location": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location",
"Required": false,
"Type": "S3Location",
"UpdateType": "Mutable"
}
}
}
"""
props = {
'GitHubLocation': (GitHubLocation, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation'),
'RevisionType': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-revisiontype'),
'S3Location': (S3Location, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location')
}
# -------------------------------------------
class CodeDeployS3Location(AWSProperty):
"""# S3Location - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html",
"Properties": {
"Bucket": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-bucket",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
},
"BundleType": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-bundletype",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"ETag": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-etag",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Key": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-key",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
},
"Version": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-value",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
}
}
}
"""
props = {
'Bucket': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-bucket'),
'BundleType': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-bundletype'),
'ETag': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-etag'),
'Key': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-key'),
'Version': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-s3location.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-s3location-value')
}
# -------------------------------------------
class CodeDeployTagFilter(AWSProperty):
"""# TagFilter - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters.html",
"Properties": {
"Key": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters.html#cfn-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters-key",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Type": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters.html#cfn-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters-type",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters.html#cfn-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters-value",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
}
}
}
"""
props = {
'Key': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters.html#cfn-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters-key'),
'Type': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters.html#cfn-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters-type'),
'Value': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters.html#cfn-properties-codedeploy-deploymentgroup-onpremisesinstancetagfilters-value')
}
# -------------------------------------------
class CodeDeployMinimumHealthyHosts(AWSProperty):
"""# MinimumHealthyHosts - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html",
"Properties": {
"Type": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-type",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
},
"Value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-value",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
}
}
}
"""
props = {
'Type': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-type'),
'Value': (positive_integer, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-minimumhealthyhosts.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts-value')
}
# -------------------------------------------
class CodeDeployEC2TagFilter(AWSProperty):
"""# EC2TagFilter - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilters.html",
"Properties": {
"Key": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilters.html#cfn-properties-codedeploy-deploymentgroup-ec2tagfilters-key",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Type": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilters.html#cfn-properties-codedeploy-deploymentgroup-ec2tagfilters-type",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"Value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilters.html#cfn-properties-codedeploy-deploymentgroup-ec2tagfilters-value",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
}
}
}
"""
props = {
'Key': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilters.html#cfn-properties-codedeploy-deploymentgroup-ec2tagfilters-key'),
'Type': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilters.html#cfn-properties-codedeploy-deploymentgroup-ec2tagfilters-type'),
'Value': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-ec2tagfilters.html#cfn-properties-codedeploy-deploymentgroup-ec2tagfilters-value')
}
# -------------------------------------------
class CodeDeployGitHubLocation(AWSProperty):
"""# GitHubLocation - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html",
"Properties": {
"CommitId": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation-commitid",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
},
"Repository": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation-repository",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
}
}
}
"""
props = {
'CommitId': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation-commitid'),
'Repository': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision-githublocation-repository')
}
# -------------------------------------------
class CodeDeployDeployment(AWSProperty):
"""# Deployment - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html",
"Properties": {
"Description": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-description",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"IgnoreApplicationStopFailures": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-ignoreapplicationstopfailures",
"PrimitiveType": "Boolean",
"Required": false,
"UpdateType": "Mutable"
},
"Revision": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision",
"Required": true,
"Type": "RevisionLocation",
"UpdateType": "Mutable"
}
}
}
"""
props = {
'Description': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-description'),
'IgnoreApplicationStopFailures': (boolean, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-ignoreapplicationstopfailures'),
'Revision': (RevisionLocation, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment.html#cfn-properties-codedeploy-deploymentgroup-deployment-revision')
}
# -------------------------------------------
class CodeDeployDeploymentGroup(AWSObject):
"""# AWS::CodeDeploy::DeploymentGroup - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html",
"Properties": {
"ApplicationName": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-applicationname",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Immutable"
},
"AutoScalingGroups": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-autoscalinggroups",
"DuplicatesAllowed": false,
"PrimitiveItemType": "String",
"Required": false,
"Type": "List",
"UpdateType": "Mutable"
},
"Deployment": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deployment",
"Required": false,
"Type": "Deployment",
"UpdateType": "Mutable"
},
"DeploymentConfigName": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deploymentconfigname",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Mutable"
},
"DeploymentGroupName": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deploymentgroupname",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Immutable"
},
"Ec2TagFilters": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-ec2tagfilters",
"DuplicatesAllowed": false,
"ItemType": "EC2TagFilter",
"Required": false,
"Type": "List",
"UpdateType": "Mutable"
},
"OnPremisesInstanceTagFilters": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-onpremisesinstancetagfilters",
"DuplicatesAllowed": false,
"ItemType": "TagFilter",
"Required": false,
"Type": "List",
"UpdateType": "Mutable"
},
"ServiceRoleArn": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-servicerolearn",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
}
}
}
"""
resource_type = "AWS::CodeDeploy::DeploymentGroup"
props = {
'ApplicationName': (basestring, True, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-applicationname'),
'AutoScalingGroups': ([basestring], False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-autoscalinggroups'),
'Deployment': (Deployment, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deployment'),
'DeploymentConfigName': (basestring, False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deploymentconfigname'),
'DeploymentGroupName': (basestring, False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-deploymentgroupname'),
'Ec2TagFilters': ([EC2TagFilter], False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-ec2tagfilters'),
'OnPremisesInstanceTagFilters': ([TagFilter], False, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-onpremisesinstancetagfilters'),
'ServiceRoleArn': (basestring, True, 'Mutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html#cfn-codedeploy-deploymentgroup-servicerolearn')
}
# -------------------------------------------
class CodeDeployDeploymentConfig(AWSObject):
"""# AWS::CodeDeploy::DeploymentConfig - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html",
"Properties": {
"DeploymentConfigName": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-deploymentconfigname",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Immutable"
},
"MinimumHealthyHosts": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts",
"Required": false,
"Type": "MinimumHealthyHosts",
"UpdateType": "Immutable"
}
}
}
"""
resource_type = "AWS::CodeDeploy::DeploymentConfig"
props = {
'DeploymentConfigName': (basestring, False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-deploymentconfigname'),
'MinimumHealthyHosts': (MinimumHealthyHosts, False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html#cfn-codedeploy-deploymentconfig-minimumhealthyhosts')
}
# -------------------------------------------
class CodeDeployApplication(AWSObject):
"""# AWS::CodeDeploy::Application - CloudFormationResourceSpecification version: 1.4.0
{
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-application.html",
"Properties": {
"ApplicationName": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-application.html#cfn-codedeploy-application-applicationname",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Immutable"
}
}
}
"""
resource_type = "AWS::CodeDeploy::Application"
props = {
'ApplicationName': (basestring, False, 'Immutable', 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-application.html#cfn-codedeploy-application-applicationname')
}
| 62.44357
| 286
| 0.702535
| 1,968
| 23,791
| 8.490854
| 0.041667
| 0.175045
| 0.171753
| 0.075284
| 0.885697
| 0.88091
| 0.829922
| 0.829922
| 0.826691
| 0.826691
| 0
| 0.003944
| 0.147451
| 23,791
| 380
| 287
| 62.607895
| 0.819898
| 0.624438
| 0
| 0.147059
| 0
| 0.470588
| 0.752395
| 0.016905
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.044118
| 0
| 0.382353
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f844b78cfd1c60d5e2d6c99be2e39d36211cc6e7
| 167,980
|
py
|
Python
|
dlkit/abstract_osid/mapping/sessions.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 2
|
2018-02-23T12:16:11.000Z
|
2020-10-08T17:54:24.000Z
|
dlkit/abstract_osid/mapping/sessions.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 87
|
2017-04-21T18:57:15.000Z
|
2021-12-13T19:43:57.000Z
|
dlkit/abstract_osid/mapping/sessions.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 1
|
2018-03-01T16:44:25.000Z
|
2018-03-01T16:44:25.000Z
|
"""Implementations of mapping abstract base class sessions."""
# pylint: disable=invalid-name
# Method names comply with OSID specification.
# pylint: disable=no-init
# Abstract classes do not define __init__.
# pylint: disable=too-few-public-methods
# Some interfaces are specified as 'markers' and include no methods.
# pylint: disable=too-many-public-methods
# Number of methods are defined in specification
# pylint: disable=too-many-ancestors
# Inheritance defined in specification
# pylint: disable=too-many-arguments
# Argument signature defined in specification.
# pylint: disable=duplicate-code
# All apparent duplicates have been inspected. They aren't.
import abc
class LocationLookupSession:
"""This session defines methods for retrieving locations."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_lookup_locations(self):
"""Tests if this user can perform ``Location`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer lookup operations
to unauthorized users.
:return: ``false`` if lookup methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_location_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_location_view(self):
"""A complete view of the ``Location`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include locations in maps which are
children of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts retrievals to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_location(self, location_id):
"""Gets the ``Location`` specified by its ``Id``.
In plenary mode, the exact ``Id`` is found or a ``NotFound``
results. Otherwise, the returned ``Location`` may have a
different ``Id`` than requested, such as the case where a
duplicate ``Id`` was assigned to a ``Location`` and retained for
compatibility.
:param location_id: the ``Id`` of the ``Location`` to retrieve
:type location_id: ``osid.id.Id``
:return: the returned ``Location``
:rtype: ``osid.mapping.Location``
:raise: ``NotFound`` -- no ``Location`` found with the given ``Id``
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Location
@abc.abstractmethod
def get_locations_by_ids(self, location_ids):
"""Gets a ``LocationList`` corresponding to the given ``IdList``.
In plenary mode, the returned list contains all of the locations
specified in the ``Id`` list, in the order of the list,
including duplicates, or an error results if an ``Id`` in the
supplied list is not found or inaccessible. Otherwise,
inaccessible ``Locations`` may be omitted from the list and may
present the elements in any order including returning a unique
set.
:param location_ids: the list of ``Ids`` to retrieve
:type location_ids: ``osid.id.IdList``
:return: the returned ``Location`` list
:rtype: ``osid.mapping.LocationList``
:raise: ``NotFound`` -- an ``Id was`` not found
:raise: ``NullArgument`` -- ``location_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_locations_by_genus_type(self, location_genus_type):
"""Gets a ``LocationList`` corresponding to the given location genus ``Type`` which does not include locations of types derived from the specified ``Type``.
In plenary mode, the returned list contains all known locations
or an error results. Otherwise, the returned list may contain
only those locations that are accessible through this session.
:param location_genus_type: a location genus type
:type location_genus_type: ``osid.type.Type``
:return: the returned ``Location`` list
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``location_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_locations_by_parent_genus_type(self, location_genus_type):
"""Gets a ``LocationList`` corresponding to the given location genus ``Type`` and include any additional locations with genus types derived from the specified ``Type``.
In plenary mode, the returned list contains all known locations
or an error results. Otherwise, the returned list may contain
only those locations that are accessible through this session.
:param location_genus_type: a location genus type
:type location_genus_type: ``osid.type.Type``
:return: the returned ``Location`` list
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``location_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_locations_by_record_type(self, location_record_type):
"""Gets a ``LocationList`` containing the given location record ``Type``.
In plenary mode, the returned list contains all known locations
or an error results. Otherwise, the returned list may contain
only those locations that are accessible through this session.
:param location_record_type: a location record type
:type location_record_type: ``osid.type.Type``
:return: the returned ``Location`` list
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``location_record_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_locations(self):
"""Gets all ``Locations``.
In plenary mode, the returned list contains all known locations
or an error results. Otherwise, the returned list may contain
only those locations that are accessible through this session.
:return: a list of ``Locations``
:rtype: ``osid.mapping.LocationList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
locations = abc.abstractproperty(fget=get_locations)
class LocationQuerySession:
"""This session provides methods for searching among ``Location`` objects.
The search query is constructed using the ``LocationQuery``.
This session defines views that offer differing behaviors for
searching.
* federated map view: searches include locations in maps of which
this map is an ancestor in the map hierarchy
* isolated map view: searches are restricted to locations in this
map
Locations may have a query record indicated by their respective
record types. The query record is accessed via the
``LocationQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_search_locations(self):
"""Tests if this user can perform ``Location`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer lookup operations
to unauthorized users.
:return: ``false`` if search methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include locations in maps which are
children of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts lookups to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_location_query(self):
"""Gets a location query.
:return: the location query
:rtype: ``osid.mapping.LocationQuery``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationQuery
location_query = abc.abstractproperty(fget=get_location_query)
@abc.abstractmethod
def get_locations_by_query(self, location_query):
"""Gets a list of ``Locations`` matching the given search.
:param location_query: the location query
:type location_query: ``osid.mapping.LocationQuery``
:return: the returned ``LocationList``
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``location_query`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``location_query`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
class LocationSearchSession:
"""This session provides methods for searching among ``Location`` objects.
The search query is constructed using the ``LocationQuery``.
``get_locations_by_query()`` is the basic search method and returns
a list of ``Locations``. A more advanced search may be performed
with ``getLocationsBySearch()``. It accepts a ``LocationSearch`` in
addition to the query for the purpose of specifying additional
options affecting the entire search, such as ordering.
``get_locations_by_search()`` returns a ``LocationSearchResults``
that can be used to access the resulting ``LocationList`` or be used
to perform a search within the result set through
``LocationSearch``.
This session defines views that offer differing behaviors for
searching.
* federated map view: searches include locations in maps of which
this map is an ancestor in the map hierarchy
* isolated map view: searches are restricted to locations in this
map
Locations may have a query record indicated by their respective
record types. The query record is accessed via the
``LocationQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_location_search(self):
"""Gets a location search.
:return: the location search
:rtype: ``osid.mapping.LocationSearch``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationSearch
location_search = abc.abstractproperty(fget=get_location_search)
@abc.abstractmethod
def get_location_search_order(self):
"""Gets a location search order.
The ``LocationSearchOrder`` is supplied to a ``LocationSearch``
to specify the ordering of results.
:return: the location search order
:rtype: ``osid.mapping.LocationSearchOrder``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationSearchOrder
location_search_order = abc.abstractproperty(fget=get_location_search_order)
@abc.abstractmethod
def get_locations_by_search(self, location_query, location_search):
"""Gets the search results matching the given search query using the given search.
:param location_query: the location query
:type location_query: ``osid.mapping.LocationQuery``
:param location_search: the location search
:type location_search: ``osid.mapping.LocationSearch``
:return: the returned search results
:rtype: ``osid.mapping.LocationSearchResults``
:raise: ``NullArgument`` -- ``location_query`` or ``location_search`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``location_query`` or ``location_search`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationSearchResults
@abc.abstractmethod
def get_location_query_from_inspector(self, location_query_inspector):
"""Gets a location query from an inspector.
The inspector is available from a ``LocationSearchResults``.
:param location_query_inspector: a location query inspector
:type location_query_inspector: ``osid.mapping.LocationQueryInspector``
:return: the location query
:rtype: ``osid.mapping.LocationQuery``
:raise: ``NullArgument`` -- ``location_query_inspector`` is ``null``
:raise: ``Unsupported`` -- ``location_query_inspector`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationQuery
class LocationAdminSession:
"""This session creates, updates, and deletes ``Locations``.
The data for create and update is provided by the consumer via the
form object. ``OsidForms`` are requested for each create or update
and may not be reused.
Create and update operations differ in their usage. To create a
``Location,`` a ``LocationForm`` is requested using
``get_location_form_for_create()`` specifying the desired record
``Types`` or none if no record ``Types`` are needed. The returned
``LocationForm`` will indicate that it is to be used with a create
operation and can be used to examine metdata or validate data prior
to creation. Once the ``LocationForm`` is submiited to a create
operation, it cannot be reused with another create operation unless
the first operation was unsuccessful. Each ``LocationForm``
corresponds to an attempted transaction.
For updates, ``LocationForms`` are requested to the ``Location``
``Id`` that is to be updated using ``getLocationFormForUpdate()``.
Similarly, the ``LocationForm`` has metadata about the data that can
be updated and it can perform validation before submitting the
update. The ``LocationForm`` can only be used once for a successful
update and cannot be reused.
The delete operations delete ``Locations``. To unmap a ``Location``
from the current ``Map,`` the ``LocationMapAssignmentSession``
should be used. These delete operations attempt to remove the
``Location`` itself thus removing it from all known ``Map``
catalogs.
This session includes an ``Id`` aliasing mechanism to assign an
external ``Id`` to an internally assigned Id.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_create_locations(self):
"""Tests if this user can create ``Locations``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known creating a
``Location`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
create operations to an unauthorized user.
:return: ``false`` if ``Location`` creation is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_create_location_with_record_types(self, location_record_types):
"""Tests if this user can create a single ``Location`` using the desired record types.
While ``MappingManager.getLocationRecordTypes()`` can be used to
examine which records are supported, this method tests which
record(s) are required for creating a specific ``Location``.
Providing an empty array tests if a ``Location`` can be created
with no records.
:param location_record_types: array of location record types
:type location_record_types: ``osid.type.Type[]``
:return: ``true`` if ``Location`` creation using the specified record ``Types`` is supported, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``location_record_types`` is ``null``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_location_form_for_create(self, location_record_types):
"""Gets the location form for creating new locations.
A new form should be requested for each create transaction.
:param location_record_types: array of location record types
:type location_record_types: ``osid.type.Type[]``
:return: the location form
:rtype: ``osid.mapping.LocationForm``
:raise: ``NullArgument`` -- ``location_record_types`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- unable to get a form with given record types
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationForm
@abc.abstractmethod
def create_location(self, location_form):
"""Creates a new ``Location``.
:param location_form: the form for this ``Location``
:type location_form: ``osid.mapping.LocationForm``
:return: the new ``Location``
:rtype: ``osid.mapping.Location``
:raise: ``IllegalState`` -- ``location_form`` already used in a create transaction
:raise: ``InvalidArgument`` -- one or more of the form elements is invalid
:raise: ``NullArgument`` -- ``location_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``location_form`` did not originate from ``get_location_form_for_create()``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Location
@abc.abstractmethod
def can_update_locations(self):
"""Tests if this user can update ``Locations``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known updating a
``Location`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
update operations to an unauthorized user.
:return: ``false`` if ``Location`` modification is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_location_form_for_update(self, location_id):
"""Gets the location form for updating an existing location.
A new location form should be requested for each update
transaction.
:param location_id: the ``Id`` of the ``Location``
:type location_id: ``osid.id.Id``
:return: the location form
:rtype: ``osid.mapping.LocationForm``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationForm
@abc.abstractmethod
def update_location(self, location_form):
"""Updates an existing location.
:param location_form: the form containing the elements to be updated
:type location_form: ``osid.mapping.LocationForm``
:raise: ``IllegalState`` -- ``location_form`` already used in an update transaction
:raise: ``InvalidArgument`` -- the form contains an invalid value
:raise: ``NullArgument`` -- ``location_id`` or ``location_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``location_form`` did not originate from ``get_location_form_for_update()``
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_delete_locations(self):
"""Tests if this user can delete ``Locations``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known deleting a
``Location`` will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
delete operations to an unauthorized user.
:return: ``false`` if ``Location`` deletion is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def delete_location(self, location_id):
"""Deletes a ``Location``.
:param location_id: the ``Id`` of the ``Location`` to remove
:type location_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``location_id`` not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_manage_location_aliases(self):
"""Tests if this user can manage ``Id`` aliases for ``Locations``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known changing an alias
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer alias
operations to an unauthorized user.
:return: ``false`` if ``Location`` aliasing is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def alias_location(self, location_id, alias_id):
"""Adds an ``Id`` to a ``Location`` for the purpose of creating compatibility.
The primary ``Id`` of the ``Location`` is determined by the
provider. The new ``Id`` performs as an alias to the primary
``Id`` . If the alias is a pointer to another location, it is
reassigned to the given location ``Id``.
:param location_id: the ``Id`` of a ``Location``
:type location_id: ``osid.id.Id``
:param alias_id: the alias ``Id``
:type alias_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``alias_id`` is already assigned
:raise: ``NotFound`` -- ``location_id`` not found
:raise: ``NullArgument`` -- ``location_id`` or ``alias_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class LocationNotificationSession:
"""This session defines methods to receive notifications on adds/changes to ``Location`` objects in this ``Map``.
This also includes existing locations that may appear or disappear
due to changes in the ``Location`` hierarchy, This session is
intended for consumers needing to synchronize their state with this
service without the use of polling. Notifications are cancelled when
this session is closed.
The two views defined in this session correspond to the views in the
``LocationLookupSession``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_register_for_location_notifications(self):
"""Tests if this user can register for ``Location`` notifications.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer
notification operations.
:return: ``false`` if notification methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include locations in maps which are
children of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts notifications to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def reliable_location_notifications(self):
"""Reliable notifications are desired.
In reliable mode, notifications are to be acknowledged using
``acknowledge_location_notification()`` .
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def unreliable_location_notifications(self):
"""Unreliable notifications are desired.
In unreliable mode, notifications do not need to be
acknowledged.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def acknowledge_location_notification(self, notification_id):
"""Acknowledge a location notification.
:param notification_id: the ``Id`` of the notification
:type notification_id: ``osid.id.Id``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_new_locations(self):
"""Register for notifications of new locations.
``LocationReceiver.newLocations()`` is invoked when a new
``Location`` appears in this map.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_locations(self):
"""Registers for notification of updated locations.
``LocationReceiver.changedLocations()`` is invoked when a
location in this map is changed.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_location(self, location_id):
"""Registers for notification of an updated location.
``LocationReceiver.changedLocations()`` is invoked when the
specified location in this map is changed.
:param location_id: the ``Id`` of the ``Location`` to monitor
:type location_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_locations(self):
"""Registers for notification of deleted locations.
``LocationReceiver.deletedLocations()`` is invoked when a
location is deleted or removed from this map.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_location(self, location_id):
"""Registers for notification of a deleted location.
``LocationReceiver.deletedLocations()`` is invoked when the
specified location is deleted or removed from this map.
:param location_id: the ``Id`` of the ``Location`` to monitor
:type location_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_location_hierarchy(self):
"""Registers for notification of an updated location hierarchy structure.
``LocationReceiver.changedChildOfLocations()`` is invoked when a
node experiences a change in its children.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_location_hierarchy_for_ancestors(self, location_id):
"""Registers for notification of an updated location hierarchy structure.
``LocationReceiver.changedChildOfLocations()`` is invoked when
the specified node or any of its ancestors experiences a change
in its children.
:param location_id: the ``Id`` of the ``Location`` node to monitor
:type location_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_location_hierarchy_for_descendants(self, location_id):
"""Registers for notification of an updated location hierarchy structure.
``LocationReceiver.changedChildOfLocations()`` is invoked when
the specified node or any of its descendants experiences a
change in its children.
:param location_id: the ``Id`` of the ``Location`` node to monitor
:type location_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class LocationHierarchySession:
"""This session defines methods for traversing a hierarchy of ``Location`` objects.
Each node in the hierarchy is a unique ``Location``. The hierarchy
may be traversed recursively to establish the tree structure through
``get_parent_locations()`` and ``getChildLocations()``. To relate
these ``Ids`` to another OSID, ``get_location_nodes()`` can be used
for retrievals that can be used for bulk lookups in other OSIDs. Any
``Location`` available in the Mapping OSID is known to this
hierarchy but does not appear in the hierarchy traversal until added
as a root location or a child of another location.
A user may not be authorized to traverse the entire hierarchy. Parts
of the hierarchy may be made invisible through omission from the
returns of ``get_parent_m_locations()`` or ``get_child_locations()``
in lieu of a ``PermissionDenied`` error that may disrupt the
traversal through authorized pathways.
This session defines views that offer differing behaviors when
retrieving multiple objects.
* comparative location view: location elements may be silently
omitted or re-ordered
* plenary location view: provides a complete set or is an error
condition
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_location_hierarchy_id(self):
"""Gets the hierarchy ``Id`` associated with this session.
:return: the hierarchy ``Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
location_hierarchy_id = abc.abstractproperty(fget=get_location_hierarchy_id)
@abc.abstractmethod
def get_location_hierarchy(self):
"""Gets the hierarchy associated with this session.
:return: the hierarchy associated with this session
:rtype: ``osid.hierarchy.Hierarchy``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Hierarchy
location_hierarchy = abc.abstractproperty(fget=get_location_hierarchy)
@abc.abstractmethod
def can_access_location_hierarchy(self):
"""Tests if this user can perform hierarchy queries.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer lookup
operations.
:return: ``false`` if hierarchy traversal methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_location_view(self):
"""The returns from the location methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_location_view(self):
"""A complete view of the ``Locations`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_root_location_ids(self):
"""Gets the root location ``Ids`` in this hierarchy.
:return: the root location ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
root_location_ids = abc.abstractproperty(fget=get_root_location_ids)
@abc.abstractmethod
def get_root_locations(self):
"""Gets the root location in the location hierarchy.
A location with no parents is an orphan. While all location
``Ids`` are known to the hierarchy, an orphan does not appear in
the hierarchy unless explicitly added as a root location or
child of another location.
:return: the root locations
:rtype: ``osid.mapping.LocationList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.mapping.LocationList
root_locations = abc.abstractproperty(fget=get_root_locations)
@abc.abstractmethod
def has_parent_locations(self, location_id):
"""Tests if the ``Location`` has any parents.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: ``true`` if the location has parents, f ``alse`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def is_parent_of_location(self, id_, location_id):
"""Tests if an ``Id`` is a direct parent of location.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param location_id: the ``Id`` of a location
:type location_id: ``osid.id.Id``
:return: ``true`` if this ``id`` is a parent of ``location_id,`` f ``alse`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_parent_location_ids(self, location_id):
"""Gets the parent ``Ids`` of the given location.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: the parent ``Ids`` of the location
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_parent_locations(self, location_id):
"""Gets the parents of the given location.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: the parents of the location
:rtype: ``osid.mapping.LocationList``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def is_ancestor_of_location(self, id_, location_id):
"""Tests if an ``Id`` is an ancestor of a location.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param location_id: the ``Id`` of a location
:type location_id: ``osid.id.Id``
:return: ``tru`` e if this ``id`` is an ancestor of ``location_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def has_child_locations(self, location_id):
"""Tests if a location has any children.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: ``true`` if the ``location_id`` has children, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def is_child_of_location(self, id_, location_id):
"""Tests if a location is a direct child of another.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: ``true`` if the ``id`` is a child of ``location_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_child_location_ids(self, location_id):
"""Gets the child ``Ids`` of the given location.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: the children of the location
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_child_locations(self, location_id):
"""Gets the children of the given location.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: the children of the location
:rtype: ``osid.mapping.LocationList``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def is_descendant_of_location(self, id_, location_id):
"""Tests if an ``Id`` is a descendant of a location.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param location_id: the ``Id`` of a location
:type location_id: ``osid.id.Id``
:return: ``true`` if the ``id`` is a descendant of the ``location_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``location_id`` not found
:raise: ``NullArgument`` -- ``id`` or ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` is not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_location_node_ids(self, location_id, ancestor_levels, descendant_levels, include_siblings):
"""Gets a portion of the hierarchy for the given location.
:param location_id: the ``Id`` to query
:type location_id: ``osid.id.Id``
:param ancestor_levels: the maximum number of ancestor levels to include. A value of 0 returns no parents in the location.
:type ancestor_levels: ``cardinal``
:param descendant_levels: the maximum number of descendant levels to include. A value of 0 returns no children in the location.
:type descendant_levels: ``cardinal``
:param include_siblings: ``true`` to include the siblings of the given location, ``false`` to omit the siblings
:type include_siblings: ``boolean``
:return: a location node
:rtype: ``osid.hierarchy.Node``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Node
@abc.abstractmethod
def get_location_nodes(self, location_id, ancestor_levels, descendant_levels, include_siblings):
"""Gets a portion of the hierarchy for the given location.
:param location_id: the ``Id`` to query
:type location_id: ``osid.id.Id``
:param ancestor_levels: the maximum number of ancestor levels to include. A value of 0 returns no parents in the location.
:type ancestor_levels: ``cardinal``
:param descendant_levels: the maximum number of descendant levels to include. A value of 0 returns no children in the location.
:type descendant_levels: ``cardinal``
:param include_siblings: ``true`` to include the siblings of the given location, ``false`` to omit the siblings
:type include_siblings: ``boolean``
:return: a location node
:rtype: ``osid.mapping.LocationNode``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationNode
class LocationHierarchyDesignSession:
"""This session defines methods for managing a hierarchy of ``Location`` objects.
Each node in the hierarchy is a unique ``Location``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_location_hierarchy_id(self):
"""Gets the hierarchy ``Id`` associated with this session.
:return: the hierarchy ``Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
location_hierarchy_id = abc.abstractproperty(fget=get_location_hierarchy_id)
@abc.abstractmethod
def get_location_hierarchy(self):
"""Gets the hierarchy associated with this session.
:return: the hierarchy associated with this session
:rtype: ``osid.hierarchy.Hierarchy``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Hierarchy
location_hierarchy = abc.abstractproperty(fget=get_location_hierarchy)
@abc.abstractmethod
def can_modify_location_hierarchy(self):
"""Tests if this user can change the hierarchy.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known performing any update
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer these
operations to an unauthorized user.
:return: ``false`` if changing this hierarchy is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def add_root_location(self, location_id):
"""Adds a root location.
:param location_id: the ``Id`` of a location
:type location_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``location_id`` is already in hierarchy
:raise: ``NotFound`` -- ``location_id`` not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def add_child_location(self, location_id, child_id):
"""Adds a child to a location.
:param location_id: the ``Id`` of a location
:type location_id: ``osid.id.Id``
:param child_id: the ``Id`` of the new child
:type child_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``map_id`` is already a parent of ``child_id``
:raise: ``NotFound`` -- ``location_id`` not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class LocationMapSession:
"""This session provides methods to retrieve ``Location`` to ``Map`` locations.
A ``Location`` may appear in multiple ``Map`` objects. Each map may
have its own authorizations governing who is allowed to look at it.
This lookup session defines several views:
* comparative view: elements may be silently omitted or re-ordered
* plenary view: provides a complete result set or is an error
condition
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_lookup_location_map_locations(self):
"""Tests if this user can perform lookups of location/map locations.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known lookup methods in
this session will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
lookup operations to unauthorized users.
:return: ``false`` if looking up locations is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_location_map_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_location_map_view(self):
"""A complete view of the ``Location`` and ``Map`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_location_ids_by_map(self, map_id):
"""Gets the list of ``Location Ids`` associated with a ``Map``.
:param map_id: ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:return: list of related location ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``map_id`` is not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_locations_by_map(self, map_id):
"""Gets the list of ``Locations`` associated with a ``Map``.
:param map_id: ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:return: list of related locations
:rtype: ``osid.mapping.LocationList``
:raise: ``NotFound`` -- ``map_id`` is not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_location_ids_by_maps(self, map_ids):
"""Gets the list of ``Location Ids`` corresponding to a list of ``Maps``.
:param map_ids: list of map ``Ids``
:type map_ids: ``osid.id.IdList``
:return: list of location ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NullArgument`` -- ``map_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_locations_by_maps(self, map_ids):
"""Gets the list of ``Locations`` corresponding to a list of ``Maps``.
:param map_ids: list of map ``Ids``
:type map_ids: ``osid.id.IdList``
:return: list of locations
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``map_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_map_ids_by_location(self, location_id):
"""Gets the ``Map`` ``Ids`` mapped to a ``Location``.
:param location_id: ``Id`` of a ``Location``
:type location_id: ``osid.id.Id``
:return: list of maps
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_maps_by_location(self, location_id):
"""Gets the ``Maps`` mapped to a ``Location``.
:param location_id: ``Id`` of a ``Location``
:type location_id: ``osid.id.Id``
:return: list of maps
:rtype: ``osid.mapping.MapList``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
class LocationMapAssignmentSession:
"""This session provides methods to re-assign ``Locations`` to ``Map`` objects A ``Location`` may appear in multiple ``Map`` objects and removing the last reference to a ``Location`` is the equivalent of deleting it.
Each ``Map`` may have its own authorizations governing who is
allowed to operate on it.
Adding a reference of a ``Location`` to another ``Map`` is not a
copy operation (eg: does not change its ``Id`` ).
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_assign_locations(self):
"""Tests if this user can alter location/map mappings.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known location methods in
this session will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
assignment operations to unauthorized users.
:return: ``false`` if location is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_assign_locations_to_map(self, map_id):
"""Tests if this user can alter location/map mappings.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known location methods in
this session will result in a ``PermissionDenied``. This is
intended as a hint to an application that may opt not to offer
assignment operations to unauthorized users.
:param map_id: the ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:return: ``false`` if mapping is not authorized, ``true`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``map_id`` is ``null``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_assignable_map_ids(self, map_id):
"""Gets a list of maps including and under the given map node in which any location can be assigned.
:param map_id: the ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:return: list of assignable map ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_assignable_map_ids_for_location(self, map_id, location_id):
"""Gets a list of maps including and under the given map node in which a specific location can be assigned.
:param map_id: the ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:param location_id: the ``Id`` of the ``Location``
:type location_id: ``osid.id.Id``
:return: list of assignable map ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``NullArgument`` -- ``map_id`` or ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def assign_location_to_map(self, location_id, map_id):
"""Adds an existing ``Location`` to a ``Map``.
:param location_id: the ``Id`` of the ``Location``
:type location_id: ``osid.id.Id``
:param map_id: the ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``location_id`` is already assigned to ``map_id``
:raise: ``NotFound`` -- ``location_id`` or ``map_id`` not found
:raise: ``NullArgument`` -- ``location_id`` or ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def unassign_location_from_map(self, location_id, map_id):
"""Removes a ``Location`` from a ``Map``.
:param location_id: the ``Id`` of the ``Location``
:type location_id: ``osid.id.Id``
:param map_id: the ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``location_id`` or ``map_id`` not found or ``location_id`` not assigned to ``map_id``
:raise: ``NullArgument`` -- ``location_id`` or ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def reassign_location_to_map(self, location_id, from_map_id, to_map_id):
"""Moves a ``Map`` from one ``Location`` to another.
Mappings to other ``Locations`` are unaffected.
:param location_id: the ``Id`` of the ``Location``
:type location_id: ``osid.id.Id``
:param from_map_id: the ``Id`` of the current ``Map``
:type from_map_id: ``osid.id.Id``
:param to_map_id: the ``Id`` of the destination ``Map``
:type to_map_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``location_id, from_map_id,`` or ``to_map_id`` not found or ``location_id`` not mapped to ``from_map_id``
:raise: ``NullArgument`` -- ``location_id, from_map_id,`` or ``to_map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class LocationSmartMapSession:
"""This session manages queries and sequencing to create "smart" dynamic catalogs.
A ``LocationQuery`` can be retrieved from this session and mapped to
this ``Map`` to create a virtual collection of ``Locations``. The
locations may be sequenced using the ``LocationSearchOrder`` from
this session.
This ``Map`` has a default query that matches any location and a
default search order that specifies no sequencing. The queries may
be examined using a ``LocationQueryInspector``. The query may be
modified by converting the inspector back to a ``LocationQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_manage_smart_maps(self):
"""Tests if this user can manage smart maps.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer operations
to unauthorized users.
:return: ``false`` if smart map management is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_location_query(self):
"""Gets a location query.
:return: the location query
:rtype: ``osid.mapping.LocationQuery``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationQuery
location_query = abc.abstractproperty(fget=get_location_query)
@abc.abstractmethod
def get_location_search_order(self):
"""Gets a location search order.
:return: the location search order
:rtype: ``osid.mapping.LocationSearchOrder``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationSearchOrder
location_search_order = abc.abstractproperty(fget=get_location_search_order)
@abc.abstractmethod
def apply_location_query(self, location_query):
"""Applies a location query to this map.
:param location_query: the location query
:type location_query: ``osid.mapping.LocationQuery``
:raise: ``NullArgument`` -- ``location_query`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure occurred
:raise: ``Unsupported`` -- ``location_query`` not of this service
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def inspec_location_query(self):
"""Gets a location query inspector for this map.
:return: the location query inspector
:rtype: ``osid.mapping.LocationQueryInspector``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure occurred
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationQueryInspector
@abc.abstractmethod
def apply_location_sequencing(self, location_search_order):
"""Applies a location search order to this map.
:param location_search_order: the location search order
:type location_search_order: ``osid.mapping.LocationSearchOrder``
:raise: ``NullArgument`` -- ``location_search_order`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure occurred
:raise: ``Unsupported`` -- ``location_search_order`` not of this service
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def get_location_query_from_inspector(self, location_query_inspector):
"""Gets a location query from an inspector.
:param location_query_inspector: a location query inspector
:type location_query_inspector: ``osid.mapping.LocationQueryInspector``
:return: the location query
:rtype: ``osid.mapping.LocationQuery``
:raise: ``NullArgument`` -- ``location_query_inspector`` is ``null``
:raise: ``Unsupported`` -- ``location_query_inspector`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationQuery
class LocationAdjacencySession:
"""This session defines methods to traverse through a map."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_lookup_location_adjacencies(self):
"""Tests if this user can query adjacenies of locations A return of true does not guarantee successful authorization.
A return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer lookup operations
to unauthorized users.
:return: ``false`` if location adjacency methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_location_view(self):
"""The returns from the traversal methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_location_view(self):
"""A complete view of the method returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include paths in maps which are children
of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts retrievals to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_adjacent_locations(self, location_id, hops):
"""Gets a list of adjacent locations for the given location.
The adjacent locations reflect the locations at the same level
of the location hierarchy.
:param location_id: the given location ``Id``
:type location_id: ``osid.id.Id``
:param hops: the number of hops to include. 0 returns an empty list. 1 returns the immediate adjacent locations.
:type hops: ``cardinal``
:return: a list of locations
:rtype: ``osid.mapping.LocationList``
:raise: ``NotFound`` -- ``location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def is_adjacent(self, location_id, another_location_id):
"""Tests if two locations of the same type are adjacent.
A location is not adjacent if contained within another location.
:param location_id: the given location ``Id``
:type location_id: ``osid.id.Id``
:param another_location_id: the given location ``Id``
:type another_location_id: ``osid.id.Id``
:return: ``true`` of the locations are adjacent, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``location_id`` or ``another_location_id`` is not found
:raise: ``NullArgument`` -- ``location_id`` or ``another_location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
class LocationSpatialSession:
"""This session defines methods for retrieving locations through spatial queries."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_lookup_locations(self):
"""Tests if this user can perform ``Location`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer lookup operations
to unauthorized users.
:return: ``false`` if lookup methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_location_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_location_view(self):
"""A complete view of the ``Location`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include locations in maps which are
children of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts retrievals to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_location_by_coordinate(self, coordinate):
"""Gets the closest bounding location of the given coordinate.
:param coordinate: a coordinate
:type coordinate: ``osid.mapping.Coordinate``
:return: the returned ``Location``
:rtype: ``osid.mapping.Location``
:raise: ``NullArgument`` -- ``coordinate`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- coordinate not supported
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Location
@abc.abstractmethod
def get_locations_by_coordinates(self, coordinates):
"""Gets the closest bounding locations in the given coordinate list.
In plenary mode, all locations are returned for each supplied
coodrinate or an error results. In comparative mode, the
returned list may omit inaccessible locations or reorder them.
:param coordinates: a coordinate list
:type coordinates: ``osid.mapping.CoordinateList``
:return: the returned ``Locations``
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``coordinates`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- a coordinate is not supported
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_locations_in_spatial_unit(self, spatial_unit):
"""Gets the locations that are included inside the given spatial unit.
In plenary mode, all locations are returned or an error results.
:param spatial_unit: a spatial unit
:type spatial_unit: ``osid.mapping.SpatialUnit``
:return: the returned ``Locations``
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
@abc.abstractmethod
def get_locations_overlapping_spatial_unit(self, spatial_unit):
"""Gets the locations that are included inside or touch the given spatial unit.
In plenary mode, all locations are returned or an error results.
:param spatial_unit: a spatial unit
:type spatial_unit: ``osid.mapping.SpatialUnit``
:return: the returned ``Locations``
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
class ResourceLocationSession:
"""This session defines methods to look up resources on a map."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_access_resource_locations(self):
"""Tests if this user can access the locations of resources.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer location
operations to unauthorized users.
:return: ``false`` if location methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_resource_location_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_resource_location_view(self):
"""A complete view of the ``Location`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include paths in maps which are children
of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts retrievals to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_resource_location(self, resource_id):
"""Gets the current closest bounding location of the given resource.
The returned ResourceLocation may not indicate a known location
if no location is known.
:param resource_id: a resource ``Id``
:type resource_id: ``osid.id.Id``
:return: the current location
:rtype: ``osid.mapping.ResourceLocation``
:raise: ``NotFound`` -- ``resource_id`` is not on map
:raise: ``NullArgument`` -- ``resource_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.ResourceLocation
@abc.abstractmethod
def get_resource_locations(self, resource_ids):
"""Gets the current closest bounding locations of the given resources.
In plenary mode, the returned list contains all of the locations
of the supplied resources or an error results. In comparative
mode, inaccessible resources may be omitted or duplicates
suppressed or reordered.
:param resource_ids: a resource list
:type resource_ids: ``osid.id.IdList``
:return: the current locations
:rtype: ``osid.mapping.ResourceLocationList``
:raise: ``NotFound`` -- a resource ``Id`` is not on map
:raise: ``NullArgument`` -- ``resource_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.ResourceLocationList
@abc.abstractmethod
def get_resources_at_location(self, location_id):
"""Gets the current resources at or within the given location.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:return: the resources at the location
:rtype: ``osid.mapping.ResourceLocationList``
:raise: ``NotFound`` -- ``location_id`` not found
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.ResourceLocationList
@abc.abstractmethod
def get_resources_at_location_by_genus_type(self, location_id, resource_genus_type):
"""Gets the current resources at or within the given location for a resource genus type.
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:param resource_genus_type: a resource genus type
:type resource_genus_type: ``osid.type.Type``
:return: the resources at the location
:rtype: ``osid.mapping.ResourceLocationList``
:raise: ``NotFound`` -- ``location_id`` not found
:raise: ``NullArgument`` -- ``location_id`` or ``resource_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.ResourceLocationList
@abc.abstractmethod
def get_resources_at_spatial_unit(self, spatial_unit):
"""Gets the current resource within the given spatial unit.
:param spatial_unit: a spatial unit
:type spatial_unit: ``osid.mapping.SpatialUnit``
:return: the resources at the location
:rtype: ``osid.mapping.ResourceLocationList``
:raise: ``NullArgument`` -- ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.ResourceLocationList
@abc.abstractmethod
def get_resources_at_spatial_unit_by_genus_type(self, spatial_unit, resource_genus_type):
"""Gets the current resource within the given spatial unit for a given resource genus type.
:param spatial_unit: a spatial unit
:type spatial_unit: ``osid.mapping.SpatialUnit``
:param resource_genus_type: a resource genus type
:type resource_genus_type: ``osid.type.Type``
:return: the resources at the location
:rtype: ``osid.mapping.ResourceLocationList``
:raise: ``NullArgument`` -- ``spatial_unit`` or ``resource_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.ResourceLocationList
class ResourceLocationUpdateSession:
"""This session defines update positions of resources."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_update_resource_locations(self):
"""Tests if this user can set the locations of resources.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer location
operations to unauthorized users.
:return: ``false`` if location methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def update_resource_location(self, resource_id, location_id):
"""Updates the location of the resource.
:param resource_id: a resource ``Id``
:type resource_id: ``osid.id.Id``
:param location_id: a location ``Id``
:type location_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``resource_id`` or ``location_id`` is not found
:raise: ``NullArgument`` -- ``resource_id`` or ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def update_resource_coordinate(self, resource_id, coordinate):
"""Updates the coordinate of the resource.
:param resource_id: a resource ``Id``
:type resource_id: ``osid.id.Id``
:param coordinate: a coordinate
:type coordinate: ``osid.mapping.Coordinate``
:raise: ``NotFound`` -- ``resource_id`` is not found
:raise: ``NullArgument`` -- ``resource_id`` or ``coordinate`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- coordinate not supported
*compliance: mandatory -- This method must be implemented.*
"""
pass
class ResourceLocationNotificationSession:
"""This session defines methods to receive notifications on adds/changes to resources locations in this ``Map``.
This session is intended for consumers needing to synchronize their
state with this service without the use of polling. Notifications
are cancelled when this session is closed.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_register_for_resource_location_notifications(self):
"""Tests if this user can register for notifications.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may wish not to offer
notification operations to unauthorized users.
:return: ``false`` if notification methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include locations in maps which are
children of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts notifications to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def reliable_resource_location_notifications(self):
"""Reliable notifications are desired.
In reliable mode, notifications are to be acknowledged using
``acknowledge_resource_location_notification()`` .
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def unreliable_resource_location_notifications(self):
"""Unreliable notifications are desired.
In unreliable mode, notifications do not need to be
acknowledged.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def acknowledge_resource_location_notification(self, notification_id):
"""Acknowledge a resource location notification.
:param notification_id: the ``Id`` of the notification
:type notification_id: ``osid.id.Id``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_entered_locations(self):
"""Register for notifications of entered locations for a resource.
``ResourceLocationReceiver.enteredLocation()`` is invoked when a
resource appears in a new location.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_entered_location(self, location_id):
"""Register for notifications of an entered location.
``ResourceLocationReceiver.enteredLocation()`` is invoked when a
resource appears in the specified location.
:param location_id: the ``Id`` of the ``Location`` to monitor
:type location_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_entered_locations_for_resource(self, resource_id):
"""Register for notifications of entered locations.
``ResourceLocationReceiver.enteredLocation()`` is invoked when
the specified resource appears in a new location.
:param resource_id: the ``Id`` of the ``Resource`` to monitor
:type resource_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``resource_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_entered_locations_for_resources_by_genus_type(self, resource_genus_type):
"""Register for notifications of entered locations for the given resource genus type.
``ResourceLocationReceiver.enteredLocation()`` is invoked when a
resource appears in a new location.
:param resource_genus_type: the genus type of the ``Resource`` to monitor
:type resource_genus_type: ``osid.type.Type``
:raise: ``NullArgument`` -- ``resource_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_exited_locations(self):
"""Register for notifications of exited locations for a resource.
``ResourceLocationReceiver.exitedLocation()`` is invoked when a
resource exits a location.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_exited_location(self, location_id):
"""Register for notifications of an exited location.
``ResourceLocationReceiver.exitedLocation()`` is invoked when a
resource exits the specified location.
:param location_id: the ``Id`` of the ``Location`` to monitor
:type location_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``location_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_exited_locations_for_resource(self, resource_id):
"""Register for notifications of exited locations.
``ResourceLocationReceiver.exitedLocation()`` is invoked when
the specified resource exits a location.
:param resource_id: the ``Id`` of the ``Resource`` to monitor
:type resource_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``resource_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_exited_locations_for_resources_by_genus_type(self, resource_genus_type):
"""Register for notifications of exited locations for the given resource genus type.
``ResourceLocationReceiver.exitedLocation()`` is invoked when a
resource exits a location.
:param resource_genus_type: the genus type of the ``Resource`` to monitor
:type resource_genus_type: ``osid.type.Type``
:raise: ``NullArgument`` -- ``resource_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class ResourcePositionNotificationSession:
"""This session defines methods to receive notifications on adds/changes to resource positions in this ``Map``.
This session is intended for consumers needing to synchronize their
state with this service without the use of polling. Notifications
are cancelled when this session is closed.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_register_for_resource_path_notifications(self):
"""Tests if this user can register for notifications.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may wish not to offer
notification operations to unauthorized users.
:return: ``false`` if notification methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_federated_map_view(self):
"""Federates the view for methods in this session.
A federated view will include positions in maps which are
children of this map in the map hierarchy.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_isolated_map_view(self):
"""Isolates the view for methods in this session.
An isolated view restricts notifications to this map only.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_moved_resources(self):
"""Registers for notification of moved resources.
``ResourcePositionReceiver.movedResource()`` is invoked when a
resource changes coordinates.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_moved_resource(self, resource_id):
"""Registers for notification of moved resources.
``ResourcePositionReceiver.movedResource()`` is invoked when the
specified resource changes coordinates.
:param resource_id: the ``Id`` of the ``Resource`` to monitor
:type resource_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``resource_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_moved_resources_by_genus_type(self, resource_genus_type):
"""Registers for notification of moved resources for the given resource genus type.
``ResourcePositionReceiver.movedResource()`` is invoked when a
resource changes coordinates.
:param resource_genus_type: the genus type of the ``Resource`` to monitor
:type resource_genus_type: ``osid.type.Type``
:raise: ``NullArgument`` -- ``resource_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_entered_spatial_unit(self, spatial_unit):
"""Register for notifications of an entered spatial unit.
``ResourcePositionReceiver.enteredSpatialUnit()`` is invoked
when a resource appears in the specified spatial unit.
:param spatial_unit: the ``SpatialUnit`` to monitor
:type spatial_unit: ``osid.mapping.SpatialUnit``
:raise: ``NullArgument`` -- ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_entered_spatial_unit_for_resource(self, resource_id, spatial_unit):
"""Register for notifications of an entered spatial unit.
``ResourcePositionReceiver.enteredSpatialUnit()`` is invoked
when the specified resource appears in the specified spatial
unit.
:param resource_id: the ``Id`` of the ``Resource`` to monitor
:type resource_id: ``osid.id.Id``
:param spatial_unit: the ``SpatialUnit`` to monitor
:type spatial_unit: ``osid.mapping.SpatialUnit``
:raise: ``NullArgument`` -- ``resource_id`` or ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_entered_spatial_unit_for_resource_by_genus_type(self, resource_genus_type, spatial_unit):
"""Register for notifications of an entered spatial unit for resources of the given resource genus type.
``ResourcePositionReceiver.enteredSpatialUnit()`` is invoked
when the specified resource appears in the specified spatial
unit.
:param resource_genus_type: the genus type of the ``Resource`` to monitor
:type resource_genus_type: ``osid.id.Id``
:param spatial_unit: the ``SpatialUnit`` to monitor
:type spatial_unit: ``osid.mapping.SpatialUnit``
:raise: ``NullArgument`` -- ``resource_genus_type`` or ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_exited_spatial_unit(self, spatial_unit):
"""Register for notifications of an exited spatial unit.
``ResourcePositionReceiver.exitedSpatialUnit()`` is invoked when
a resource exits the specified spatial unit.
:param spatial_unit: the ``SpatialUnit`` to monitor
:type spatial_unit: ``osid.mapping.SpatialUnit``
:raise: ``NullArgument`` -- ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_exited_spatial_unit_for_resource(self, resource_id, spatial_unit):
"""Register for notifications of an exited spatial unit.
``ResourcePositionReceiver.exitedSpatialUnit()`` is invoked when
the specified resource exits the specified spatial unit.
:param resource_id: the ``Id`` of the ``Resource`` to monitor
:type resource_id: ``osid.id.Id``
:param spatial_unit: the ``SpatialUnit`` to monitor
:type spatial_unit: ``osid.mapping.SpatialUnit``
:raise: ``NullArgument`` -- ``resource_id`` or ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_exited_spatial_unit_for_resources_by_genus_type(self, resource_genus_type, spatial_unit):
"""Register for notifications of an exited spatial unit for the given resource genus type.
``ResourcePositionReceiver.exitedSpatialUnit()`` is invoked when
a resource exits the specified spatial unit.
:param resource_genus_type: the genus type of the ``Resource`` to monitor
:type resource_genus_type: ``osid.type.Type``
:param spatial_unit: the ``SpatialUnit`` to monitor
:type spatial_unit: ``osid.mapping.SpatialUnit``
:raise: ``NullArgument`` -- ``resource_genus_t_ype`` or ``spatial_unit`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- spatial unit not supported
*compliance: mandatory -- This method must be implemented.*
"""
pass
class MyLocationSession:
"""This session defines methods to route between locations."""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_id(self):
"""Gets the ``Map`` ``Id`` associated with this session.
:return: the ``Map Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_id = abc.abstractproperty(fget=get_map_id)
@abc.abstractmethod
def get_map(self):
"""Gets the ``Map`` associated with this session.
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
map = abc.abstractproperty(fget=get_map)
@abc.abstractmethod
def can_access_my_location(self):
"""Tests if this user can query own location.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer location
operations to unauthorized users.
:return: ``false`` if location methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def at_designated_location(self):
"""Tests if this agent is at a designated location.
:return: ``true`` if the agent is at a designated location, ``false`` otherrwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_my_location(self):
"""Gets the current location of this agent.
:return: the current location
:rtype: ``osid.mapping.Location``
:raise: ``IllegalState`` -- ``at_designated_location()`` is ``false``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Location
my_location = abc.abstractproperty(fget=get_my_location)
@abc.abstractmethod
def get_my_coordinate(self):
"""Gets the current coordinate of this agent.
:return: the current coordinate
:rtype: ``osid.mapping.Coordinate``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Coordinate
my_coordinate = abc.abstractproperty(fget=get_my_coordinate)
@abc.abstractmethod
def get_nearest_locations_to_me(self):
"""Gets the current nearest locations to this agent ordered by distance.
:return: the nearest locations
:rtype: ``osid.mapping.LocationList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
nearest_locations_to_me = abc.abstractproperty(fget=get_nearest_locations_to_me)
@abc.abstractmethod
def get_nearest_location_to_me_by_genus_type(self, location_genus_type):
"""Gets the current nearest location of this agent of the specified location genus type ordered by distance.
:param location_genus_type: a location genus type
:type location_genus_type: ``osid.type.Type``
:return: the nearest locations
:rtype: ``osid.mapping.LocationList``
:raise: ``NullArgument`` -- ``location_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.LocationList
class MapLookupSession:
"""This session provides methods for retrieving ``Map`` objects.
The ``Map`` represents a collection of locations.
This session defines views that offer differing behaviors when
retrieving multiple objects.
* comparative view: elements may be silently omitted or re-ordered
* plenary view: provides a complete set or is an error condition
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be
accessed. For example, a browsing application may only need to
examine the ``Maps`` it can access, without breaking execution.
However, an assessment may only be useful if all ``Maps`` referenced
by it are available, and a test-taking application may sacrifice
some interoperability for the sake of precision.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_lookup_maps(self):
"""Tests if this user can perform ``Map`` lookups.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer lookup
operations to unauthorized users.
:return: ``false`` if lookup methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_map_view(self):
"""The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_map_view(self):
"""A complete view of the ``Map`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_map(self, map_id):
"""Gets the ``Map`` specified by its ``Id``.
In plenary mode, the exact ``Id`` is found or a ``NotFound``
results. Otherwise, the returned ``Map`` may have a different
``Id`` than requested, such as the case where a duplicate ``Id``
was assigned to a ``Map`` and retained for compatibility.
:param map_id: ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:return: the map
:rtype: ``osid.mapping.Map``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.mapping.Map
@abc.abstractmethod
def get_maps_by_ids(self, map_ids):
"""Gets a ``MapList`` corresponding to the given ``IdList``.
In plenary mode, the returned list contains all of the maps
specified in the ``Id`` list, in the order of the list,
including duplicates, or an error results if an ``Id`` in the
supplied list is not found or inaccessible. Otherwise,
inaccessible ``Maps`` may be omitted from the list and may
present the elements in any order including returning a unique
set.
:param map_ids: the list of ``Ids`` to retrieve
:type map_ids: ``osid.id.IdList``
:return: the returned ``Map`` list
:rtype: ``osid.mapping.MapList``
:raise: ``NotFound`` -- an ``Id was`` not found
:raise: ``NullArgument`` -- ``map_ids`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
@abc.abstractmethod
def get_maps_by_genus_type(self, map_genus_type):
"""Gets a ``MapList`` corresponding to the given map genus ``Type`` which does not include maps of types derived from the specified ``Type``.
In plenary mode, the returned list contains all known maps or an
error results. Otherwise, the returned list may contain only
those maps that are accessible through this session.
:param map_genus_type: a map genus type
:type map_genus_type: ``osid.type.Type``
:return: the returned ``Map`` list
:rtype: ``osid.mapping.MapList``
:raise: ``NullArgument`` -- ``map_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
@abc.abstractmethod
def get_maps_by_parent_genus_type(self, map_genus_type):
"""Gets a ``MapList`` corresponding to the given map genus ``Type`` and include any additional maps with genus types derived from the specified ``Type``.
In plenary mode, the returned list contains all known maps or an
error results. Otherwise, the returned list may contain only
those maps that are accessible through this session.
:param map_genus_type: a map genus type
:type map_genus_type: ``osid.type.Type``
:return: the returned ``Map`` list
:rtype: ``osid.mapping.MapList``
:raise: ``NullArgument`` -- ``map_genus_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
@abc.abstractmethod
def get_maps_by_record_type(self, map_record_type):
"""Gets a ``MapList`` containing the given map record ``Type``.
In plenary mode, the returned list contains all known maps or an
error results. Otherwise, the returned list may contain only
those maps that are accessible through this session.
:param map_record_type: a map record type
:type map_record_type: ``osid.type.Type``
:return: the returned ``Map`` list
:rtype: ``osid.mapping.MapList``
:raise: ``NullArgument`` -- ``map_record_type`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
@abc.abstractmethod
def get_maps_by_provider(self, resource_id):
"""Gets a ``MapList`` for the given provider.
In plenary mode, the returned list contains all known maps or an
error results. Otherwise, the returned list may contain only
those maps that are accessible through this session.
:param resource_id: a resource ``Id``
:type resource_id: ``osid.id.Id``
:return: the returned ``Map`` list
:rtype: ``osid.mapping.MapList``
:raise: ``NullArgument`` -- ``resource_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
@abc.abstractmethod
def get_maps(self):
"""Gets all ``Maps``.
In plenary mode, the returned list contains all known maps or an
error results. Otherwise, the returned list may contain only
those maps that are accessible through this session.
:return: a list of ``Maps``
:rtype: ``osid.mapping.MapList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
maps = abc.abstractproperty(fget=get_maps)
class MapQuerySession:
"""This session provides methods for searching among ``Map`` objects.
The search query is constructed using the ``MapQuery``.
Maps may have a query record indicated by their respective record
types. The query record is accessed via the ``MapQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_search_maps(self):
"""Tests if this user can perform ``Map`` searches.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may not offer lookup operations
to unauthorized users.
:return: ``false`` if search methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_map_query(self):
"""Gets a map query.
:return: the map query
:rtype: ``osid.mapping.MapQuery``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapQuery
map_query = abc.abstractproperty(fget=get_map_query)
@abc.abstractmethod
def get_maps_by_query(self, map_query):
"""Gets a list of ``Maps`` matching the given map query.
:param map_query: the map query
:type map_query: ``osid.mapping.MapQuery``
:return: the returned ``MapList``
:rtype: ``osid.mapping.MapList``
:raise: ``NullArgument`` -- ``map_query`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``map_query`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
class MapSearchSession:
"""This session provides methods for searching among ``Map`` objects.
The search query is constructed using the ``MapQuery``.
``get_maps_by_query()`` is the basic search method and returns a
list of ``Maps``. A more advanced search may be performed with
``getMapsBySearch()``. It accepts a ``MapSearch`` in addition to the
query for the purpose of specifying additional options affecting the
entire search, such as ordering. ``get_maps_by_search()`` returns a
``MapSearchResults`` that can be used to access the resulting
``MapList`` or be used to perform a search within the result set
through ``MapSearch``.
Maps may have a query record indicated by their respective record
types. The query record is accessed via the ``MapQuery``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_search(self):
"""Gets a map search.
:return: the map search
:rtype: ``osid.mapping.MapSearch``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapSearch
map_search = abc.abstractproperty(fget=get_map_search)
@abc.abstractmethod
def get_map_search_order(self):
"""Gets a map search order.
The ``MapSearchOrder`` is supplied to a ``MapSearch`` to specify
the ordering of results.
:return: the map search order
:rtype: ``osid.mapping.MapSearchOrder``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapSearchOrder
map_search_order = abc.abstractproperty(fget=get_map_search_order)
@abc.abstractmethod
def get_maps_by_search(self, map_query, map_search):
"""Gets the search results matching the given search query using the given search.
:param map_query: the map query
:type map_query: ``osid.mapping.MapQuery``
:param map_search: the map search
:type map_search: ``osid.mapping.MapSearch``
:return: the returned search results
:rtype: ``osid.mapping.MapSearchResults``
:raise: ``NullArgument`` -- ``map_query`` or ``map_search`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``map_query`` or ``map_search`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapSearchResults
@abc.abstractmethod
def get_map_query_from_inspector(self, map_query_inspector):
"""Gets a map query from an inspector.
The inspector is available from a ``MapSearchResults``.
:param map_query_inspector: a map query inspector
:type map_query_inspector: ``osid.mapping.MapQueryInspector``
:return: the map query
:rtype: ``osid.mapping.MapQuery``
:raise: ``NullArgument`` -- ``map_query_inspector`` is ``null``
:raise: ``Unsupported`` -- ``map_query_inspector`` is not of this service
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapQuery
class MapAdminSession:
"""This session creates, updates, and deletes ``Maps``.
The data for create and update is provided by the consumer via the
form object. ``OsidForms`` are requested for each create or update
and may not be reused.
Create and update operations differ in their usage. To create a
``Map,`` a ``MapForm`` is requested using
``get_map_form_for_create()`` specifying the desired record
``Types`` or none if no record ``Types`` are needed. The returned
``MapForm`` will indicate that it is to be used with a create
operation and can be used to examine metdata or validate data prior
to creation. Once the ``MapForm`` is submiited to a create
operation, it cannot be reused with another create operation unless
the first operation was unsuccessful. Each ``MapForm`` corresponds
to an attempted transaction.
For updates, ``MapForms`` are requested to the ``Map`` ``Id`` that
is to be updated using ``getMapFormForUpdate()``. Similarly, the
``MapForm`` has metadata about the data that can be updated and it
can perform validation before submitting the update. The ``MapForm``
can only be used once for a successful update and cannot be reused.
The delete operations delete ``Maps``.
This session includes an ``Id`` aliasing mechanism to assign an
external ``Id`` to an internally assigned Id.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_create_maps(self):
"""Tests if this user can create ``Maps``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known creating a ``Map``.
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may not wish to offer create
operations to unauthorized users.
:return: ``false`` if ``Map`` creation is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def can_create_map_with_record_types(self, map_record_types):
"""Tests if this user can create a single ``Map`` using the desired record types.
While ``MappingManager.getMapRecordTypes()`` can be used to
examine which records are supported, this method tests which
record(s) are required for creating a specific ``Map``.
Providing an empty array tests if a ``Map`` can be created with
no records.
:param map_record_types: array of map record types
:type map_record_types: ``osid.type.Type[]``
:return: ``true`` if ``Map`` creation using the specified record ``Types`` is supported, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NullArgument`` -- ``map_record_types`` is ``null``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_map_form_for_create(self, map_record_types):
"""Gets the map form for creating new maps.
A new form should be requested for each create transaction.
:param map_record_types: array of map record types
:type map_record_types: ``osid.type.Type[]``
:return: the map form
:rtype: ``osid.mapping.MapForm``
:raise: ``NullArgument`` -- ``map_record_types`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- unable to get a form with given record types
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapForm
@abc.abstractmethod
def create_map(self, map_form):
"""Creates a new ``Map``.
:param map_form: the form for this ``Map``
:type map_form: ``osid.mapping.MapForm``
:return: the new ``Map``
:rtype: ``osid.mapping.Map``
:raise: ``IllegalState`` -- ``map_form`` already used in a create transaction
:raise: ``InvalidArgument`` -- one or more of the form elements is invalid
:raise: ``NullArgument`` -- ``map_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``map_form`` did not originate from ``get_map_form_for_create()``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.Map
@abc.abstractmethod
def can_update_maps(self):
"""Tests if this user can update ``Maps``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known updating a ``Map``
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may not wish to offer update
operations to unauthorized users.
:return: ``false`` if ``Map`` modification is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def get_map_form_for_update(self, map_id):
"""Gets the map form for updating an existing map.
A new map form should be requested for each update transaction.
:param map_id: the ``Id`` of the ``Map``
:type map_id: ``osid.id.Id``
:return: the map form
:rtype: ``osid.mapping.MapForm``
:raise: ``NotFound`` -- ``map_id`` is not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapForm
@abc.abstractmethod
def update_map(self, map_form):
"""Updates an existing map.
:param map_form: the form containing the elements to be updated
:type map_form: ``osid.mapping.MapForm``
:raise: ``IllegalState`` -- ``map_form`` already used in an update transaction
:raise: ``InvalidArgument`` -- the form contains an invalid value
:raise: ``NullArgument`` -- ``map_id`` or ``map_form`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
:raise: ``Unsupported`` -- ``map_form`` did not originate from ``get_map_form_for_update()``
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_delete_maps(self):
"""Tests if this user can delete ``Maps``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known deleting a ``Map``
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may not wish to offer delete
operations to unauthorized users.
:return: ``false`` if ``Map`` deletion is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def delete_map(self, map_id):
"""Deletes a ``Map``.
:param map_id: the ``Id`` of the ``Map`` to remove
:type map_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def can_manage_map_aliases(self):
"""Tests if this user can manage ``Id`` aliases for ``Maps``.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known changing an alias
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer alias
operations to an unauthorized user.
:return: ``false`` if ``Map`` aliasing is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def alias_map(self, map_id, alias_id):
"""Adds an ``Id`` to a ``Map`` for the purpose of creating compatibility.
The primary ``Id`` of the ``Map`` is determined by the provider.
The new ``Id`` performs as an alias to the primary ``Id``. If
the alias is a pointer to another map, it is reassigned to the
given map ``Id``.
:param map_id: the ``Id`` of a ``Map``
:type map_id: ``osid.id.Id``
:param alias_id: the alias ``Id``
:type alias_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``alias_id`` is already assigned
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` or ``alias_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class MapNotificationSession:
"""This session defines methods to receive notifications on adds/changes to ``Map`` objects.
This session is intended for consumers needing to synchronize their
state with this service without the use of polling. Notifications
are cancelled when this session is closed.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def can_register_for_map_notifications(self):
"""Tests if this user can register for ``Map`` notifications.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer
notification operations.
:return: ``false`` if notification methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def reliable_map_notifications(self):
"""Reliable notifications are desired.
In reliable mode, notifications are to be acknowledged using
``acknowledge_map_notification()`` .
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def unreliable_map_notifications(self):
"""Unreliable notifications are desired.
In unreliable mode, notifications do not need to be
acknowledged.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def acknowledge_map_notification(self, notification_id):
"""Acknowledge a map notification.
:param notification_id: the ``Id`` of the notification
:type notification_id: ``osid.id.Id``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_new_maps(self):
"""Register for notifications of new maps.
``MapReceiver.newMaps()`` is invoked when a new ``Map`` is
created.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_maps(self):
"""Registers for notification of updated maps.
``MapReceiver.changedMaps()`` is invoked when a map is changed.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_map(self, map_id):
"""Registers for notification of an updated map.
``MapReceiver.changedMaps()`` is invoked when the specified map
is changed.
:param map_id: the Id of the ``Map`` to monitor
:type map_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``E``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_maps(self):
"""Registers for notification of deleted maps.
``MapReceiver.deletedMaps()`` is invoked when a map is deleted.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_deleted_map(self, map_id):
"""Registers for notification of a deleted map.
``MapReceiver.deletedMaps()`` is invoked when the specified map
is deleted.
:param map_id: the ``Id`` of the ``Map`` to monitor
:type map_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``map_id is null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_map_hierarchy(self):
"""Registers for notification of an updated map hierarchy structure.
``MapReceiver.changedChildOfMaps()`` is invoked when a node
experiences a change in its children.
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_map_hierarchy_for_ancestors(self, map_id):
"""Registers for notification of an updated map hierarchy structure.
``MapReceiver.changedChildOfMaps()`` is invoked when the
specified node or any of its ancestors experiences a change in
its children.
:param map_id: the ``Id`` of the ``Map`` node to monitor
:type map_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def register_for_changed_map_hierarchy_for_descendants(self, map_id):
"""Registers for notification of an updated map hierarchy structure.
``MapReceiver.changedChildOfMaps()`` is invoked when the
specified node or any of its descendants experiences a change in
its children.
:param map_id: the ``Id`` of the ``Map`` node to monitor
:type map_id: ``osid.id.Id``
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
class MapHierarchySession:
"""This session defines methods for traversing a hierarchy of ``Map`` objects.
Each node in the hierarchy is a unique ``Map``. The hierarchy may be
traversed recursively to establish the tree structure through
``get_parent_maps()`` and ``getChildMaps()``. To relate these
``Ids`` to another OSID, ``get_map_nodes()`` can be used for
retrievals that can be used for bulk lookups in other OSIDs. Any
``Map`` available in the Mapping OSID is known to this hierarchy but
does not appear in the hierarchy traversal until added as a root
location or a child of another location.
A user may not be authorized to traverse the entire hierarchy. Parts
of the hierarchy may be made invisible through omission from the
returns of ``get_parent_maps()`` or ``get_child_maps()`` in lieu of
a ``PermissionDenied`` error that may disrupt the traversal through
authorized pathways.
This session defines views that offer differing behaviors when
retrieving multiple objects.
* comparative map view: map elements may be silently omitted or
re-ordered
* plenary map view: provides a complete set or is an error
condition
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_hierarchy_id(self):
"""Gets the hierarchy ``Id`` associated with this session.
:return: the hierarchy ``Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_hierarchy_id = abc.abstractproperty(fget=get_map_hierarchy_id)
@abc.abstractmethod
def get_map_hierarchy(self):
"""Gets the hierarchy associated with this session.
:return: the hierarchy associated with this session
:rtype: ``osid.hierarchy.Hierarchy``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Hierarchy
map_hierarchy = abc.abstractproperty(fget=get_map_hierarchy)
@abc.abstractmethod
def can_access_map_hierarchy(self):
"""Tests if this user can perform hierarchy queries.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known all methods in this
session will result in a ``PermissionDenied``. This is intended
as a hint to an application that may opt not to offer lookup
operations.
:return: ``false`` if hierarchy traversal methods are not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def use_comparative_map_view(self):
"""The returns from the map methods may omit or translate elements based on this session, such as authorization, and not result in an error.
This view is used when greater interoperability is desired at
the expense of precision.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def use_plenary_map_view(self):
"""A complete view of the ``Maps`` returns is desired.
Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the
expense of interoperability.
*compliance: mandatory -- This method is must be implemented.*
"""
pass
@abc.abstractmethod
def get_root_map_ids(self):
"""Gets the root map ``Ids`` in this hierarchy.
:return: the root map ``Ids``
:rtype: ``osid.id.IdList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
root_map_ids = abc.abstractproperty(fget=get_root_map_ids)
@abc.abstractmethod
def get_root_maps(self):
"""Gets the root map in the map hierarchy.
A location with no parents is an orphan. While all map ``Ids``
are known to the hierarchy, an orphan does not appear in the
hierarchy unless explicitly added as a root location or child of
another location.
:return: the root maps
:rtype: ``osid.mapping.MapList``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method is must be implemented.*
"""
return # osid.mapping.MapList
root_maps = abc.abstractproperty(fget=get_root_maps)
@abc.abstractmethod
def has_parent_maps(self, map_id):
"""Tests if the ``Map`` has any parents.
:param map_id: a map ``Id``
:type map_id: ``osid.id.Id``
:return: ``true`` if the map has parents, f ``alse`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``map_id`` is not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def is_parent_of_map(self, id_, map_id):
"""Tests if an ``Id`` is a direct parent of map.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:return: ``true`` if this ``id`` is a parent of ``map_id,`` f ``alse`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``map_id`` is not found
:raise: ``NullArgument`` -- ``id`` or ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_parent_map_ids(self, map_id):
"""Gets the parent ``Ids`` of the given map.
:param map_id: a map ``Id``
:type map_id: ``osid.id.Id``
:return: the parent ``Ids`` of the map
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``map_id`` is not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_parent_maps(self, map_id):
"""Gets the parents of the given map.
:param map_id: the ``Id`` to query
:type map_id: ``osid.id.Id``
:return: the parents of the map
:rtype: ``osid.mapping.MapList``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
@abc.abstractmethod
def is_ancestor_of_map(self, id_, map_id):
"""Tests if an ``Id`` is an ancestor of a map.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:return: ``tru`` e if this ``id`` is an ancestor of ``map_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` or ``id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def has_child_maps(self, map_id):
"""Tests if a map has any children.
:param map_id: a map ``Id``
:type map_id: ``osid.id.Id``
:return: ``true`` if the ``map_id`` has children, ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def is_child_of_map(self, id_, map_id):
"""Tests if a map is a direct child of another.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:return: ``true`` if the ``id`` is a child of ``map_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``id`` or ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_child_map_ids(self, map_id):
"""Gets the child ``Ids`` of the given map.
:param map_id: the ``Id`` to query
:type map_id: ``osid.id.Id``
:return: the children of the map
:rtype: ``osid.id.IdList``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.IdList
@abc.abstractmethod
def get_child_maps(self, map_id):
"""Gets the children of the given map.
:param map_id: the ``Id`` to query
:type map_id: ``osid.id.Id``
:return: the children of the map
:rtype: ``osid.mapping.MapList``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapList
@abc.abstractmethod
def is_descendant_of_map(self, id_, map_id):
"""Tests if an ``Id`` is a descendant of a map.
:param id: an ``Id``
:type id: ``osid.id.Id``
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:return: ``true`` if the ``id`` is a descendant of the ``map_id,`` ``false`` otherwise
:rtype: ``boolean``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``id`` or ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
*implementation notes*: If ``id`` is not found return ``false``.
"""
return # boolean
@abc.abstractmethod
def get_map_node_ids(self, map_id, ancestor_levels, descendant_levels, include_siblings):
"""Gets a portion of the hierarchy for the given map.
:param map_id: the ``Id`` to query
:type map_id: ``osid.id.Id``
:param ancestor_levels: the maximum number of ancestor levels to include. A value of 0 returns no parents in the location.
:type ancestor_levels: ``cardinal``
:param descendant_levels: the maximum number of descendant levels to include. A value of 0 returns no children in the location.
:type descendant_levels: ``cardinal``
:param include_siblings: ``true`` to include the siblings of the given location, ``false`` to omit the siblings
:type include_siblings: ``boolean``
:return: a map node
:rtype: ``osid.hierarchy.Node``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Node
@abc.abstractmethod
def get_map_nodes(self, map_id, ancestor_levels, descendant_levels, include_siblings):
"""Gets a portion of the hierarchy for the given map.
:param map_id: the ``Id`` to query
:type map_id: ``osid.id.Id``
:param ancestor_levels: the maximum number of ancestor levels to include. A value of 0 returns no parents in the location.
:type ancestor_levels: ``cardinal``
:param descendant_levels: the maximum number of descendant levels to include. A value of 0 returns no children in the location.
:type descendant_levels: ``cardinal``
:param include_siblings: ``true`` to include the siblings of the given location, ``false`` to omit the siblings
:type include_siblings: ``boolean``
:return: a map node
:rtype: ``osid.mapping.MapNode``
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.mapping.MapNode
class MapHierarchyDesignSession:
"""This session defines methods for managing a hierarchy of ``Map`` objects.
Each node in the hierarchy is a unique ``Map``.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_map_hierarchy_id(self):
"""Gets the hierarchy ``Id`` associated with this session.
:return: the hierarchy ``Id`` associated with this session
:rtype: ``osid.id.Id``
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.id.Id
map_hierarchy_id = abc.abstractproperty(fget=get_map_hierarchy_id)
@abc.abstractmethod
def get_map_hierarchy(self):
"""Gets the hierarchy associated with this session.
:return: the hierarchy associated with this session
:rtype: ``osid.hierarchy.Hierarchy``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
return # osid.hierarchy.Hierarchy
map_hierarchy = abc.abstractproperty(fget=get_map_hierarchy)
@abc.abstractmethod
def can_modify_map_hierarchy(self):
"""Tests if this user can change the hierarchy.
A return of true does not guarantee successful authorization. A
return of false indicates that it is known performing any update
will result in a ``PermissionDenied``. This is intended as a
hint to an application that may opt not to offer these
operations to an unauthorized user.
:return: ``false`` if changing this hierarchy is not authorized, ``true`` otherwise
:rtype: ``boolean``
*compliance: mandatory -- This method must be implemented.*
"""
return # boolean
@abc.abstractmethod
def add_root_map(self, map_id):
"""Adds a root map.
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``map_id`` is already in hierarchy
:raise: ``NotFound`` -- ``map_id`` not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_root_map(self, map_id):
"""Removes a root map.
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``map_id`` is not a root
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def add_child_map(self, map_id, child_id):
"""Adds a child to a map.
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:param child_id: the ``Id`` of the new child
:type child_id: ``osid.id.Id``
:raise: ``AlreadyExists`` -- ``map_id`` is already a parent of ``child_id``
:raise: ``NotFound`` -- ``map_id`` or ``child_id`` not found
:raise: ``NullArgument`` -- ``map_id`` or ``child_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_child_map(self, map_id, child_id):
"""Removes a child from a map.
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:param child_id: the ``Id`` of the new child
:type child_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``map_id`` is not parent of ``child_id``
:raise: ``NullArgument`` -- ``map_id`` or ``child_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
@abc.abstractmethod
def remove_child_maps(self, map_id):
"""Removes all children from a map.
:param map_id: the ``Id`` of a map
:type map_id: ``osid.id.Id``
:raise: ``NotFound`` -- ``map_id`` is not found
:raise: ``NullArgument`` -- ``map_id`` is ``null``
:raise: ``OperationFailed`` -- unable to complete request
:raise: ``PermissionDenied`` -- authorization failure
*compliance: mandatory -- This method must be implemented.*
"""
pass
| 35.702444
| 220
| 0.6436
| 19,421
| 167,980
| 5.473354
| 0.031924
| 0.023237
| 0.046097
| 0.06684
| 0.921127
| 0.901823
| 0.878765
| 0.856187
| 0.837871
| 0.819263
| 0
| 0.00008
| 0.252078
| 167,980
| 4,704
| 221
| 35.710034
| 0.846
| 0.717883
| 0
| 0.741897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.294118
| false
| 0.114046
| 0.0012
| 0
| 0.593037
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 10
|
f84c4dcf5d3a148fe4f73511a515f34272afb8fe
| 13,159
|
py
|
Python
|
tests/events/eventReportsTest.py
|
nathanielwarner/seatsio-python
|
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
|
[
"MIT"
] | 2
|
2018-03-29T18:21:01.000Z
|
2022-02-08T10:49:47.000Z
|
tests/events/eventReportsTest.py
|
nathanielwarner/seatsio-python
|
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
|
[
"MIT"
] | 7
|
2018-09-03T12:31:52.000Z
|
2022-02-01T08:25:09.000Z
|
tests/events/eventReportsTest.py
|
nathanielwarner/seatsio-python
|
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
|
[
"MIT"
] | 2
|
2020-12-22T09:51:07.000Z
|
2021-12-13T15:37:14.000Z
|
from seatsio.domain import EventReport, Channel, EventObjectInfo
from seatsio.events.objectProperties import ObjectProperties
from tests.seatsioClientTest import SeatsioClientTest
from tests.util.asserts import assert_that
class EventReportsTest(SeatsioClientTest):
def test_reportItemProperties(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
extra_data = {"foo": "bar"}
self.client.events.book(event.key, [ObjectProperties("A-1", ticket_type="tt1", extra_data=extra_data)], order_id="order1")
self.client.events.update_channels(event.key, {
'channelKey1': Channel(name='channel 1', color='#00FF00', index=1)
})
self.client.events.assign_objects_to_channels(event.key, {
"channelKey1": ["A-1"]
})
report = self.client.events.reports.by_label(event.key)
assert_that(report).is_instance(EventReport)
report_item = report.get("A-1")[0]
assert_that(report_item).is_instance(EventObjectInfo)
assert_that(report_item.status).is_equal_to("booked")
assert_that(report_item.label).is_equal_to("A-1")
assert_that(report_item.labels).is_equal_to({"own": {"label": "1", "type": "seat"}, "parent": {"label": "A", "type": "row"}})
assert_that(report_item.ids).is_equal_to({"own": "1", "parent": "A"})
assert_that(report_item.category_label).is_equal_to("Cat1")
assert_that(report_item.category_key).is_equal_to("9")
assert_that(report_item.ticket_type).is_equal_to("tt1")
assert_that(report_item.order_id).is_equal_to("order1")
assert_that(report_item.object_type).is_equal_to("seat")
assert_that(report_item.for_sale).is_true()
assert_that(report_item.section).is_none()
assert_that(report_item.entrance).is_none()
assert_that(report_item.num_booked).is_none()
assert_that(report_item.capacity).is_none()
assert_that(report_item.book_as_a_whole).is_none()
assert_that(report_item.extra_data).is_equal_to(extra_data)
assert_that(report_item.is_accessible).is_false()
assert_that(report_item.is_companion_seat).is_false()
assert_that(report_item.has_restricted_view).is_false()
assert_that(report_item.displayed_object_type).is_none()
assert_that(report_item.left_neighbour).is_none()
assert_that(report_item.right_neighbour).is_equal_to("A-2")
assert_that(report_item.is_selectable).is_false()
assert_that(report_item.is_disabled_by_social_distancing).is_false()
assert_that(report_item.channel).is_equal_to('channelKey1')
assert_that(report_item.distance_to_focal_point).is_not_none()
def test_holdToken(self):
chart_key = self.create_test_chart()
hold_token = self.client.hold_tokens.create()
event = self.client.events.create(chart_key)
self.client.events.hold(event.key, "A-1", hold_token.hold_token)
report = self.client.events.reports.by_label(event.key)
report_item = report.get("A-1")[0]
assert_that(report_item.hold_token).is_equal_to(hold_token.hold_token)
def test_reportItemPropertiesForGA(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.book(event.key, [ObjectProperties("GA1", quantity=5)])
hold_token = self.client.hold_tokens.create()
self.client.events.hold(event.key, [ObjectProperties("GA1", quantity=3)], hold_token.hold_token)
report = self.client.events.reports.by_label(event.key)
assert_that(report).is_instance(EventReport)
report_item = report.get("GA1")[0]
assert_that(report_item).is_instance(EventObjectInfo)
assert_that(report_item.status).is_equal_to("free")
assert_that(report_item.label).is_equal_to("GA1")
assert_that(report_item.object_type).is_equal_to("generalAdmission")
assert_that(report_item.category_label).is_equal_to("Cat1")
assert_that(report_item.category_key).is_equal_to("9")
assert_that(report_item.ticket_type).is_none()
assert_that(report_item.order_id).is_none()
assert_that(report_item.for_sale).is_true()
assert_that(report_item.section).is_none()
assert_that(report_item.entrance).is_none()
assert_that(report_item.num_booked).is_equal_to(5)
assert_that(report_item.num_held).is_equal_to(3)
assert_that(report_item.num_free).is_equal_to(92)
assert_that(report_item.capacity).is_equal_to(100)
assert_that(report_item.book_as_a_whole).is_equal_to(False)
assert_that(report_item.is_accessible).is_none()
assert_that(report_item.is_companion_seat).is_none()
assert_that(report_item.has_restricted_view).is_none()
assert_that(report_item.displayed_object_type).is_none()
def testByStatus(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.change_object_status(event.key, ["A-1", "A-2"], "mystatus")
self.client.events.change_object_status(event.key, ["A-3"], "booked")
report = self.client.events.reports.by_status(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("mystatus")).has_size(2)
assert_that(report.get("booked")).has_size(1)
assert_that(report.get("free")).has_size(31)
def testByObjectType(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_object_type(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("generalAdmission")).has_size(2)
assert_that(report.get("seat")).has_size(32)
assert_that(report.get("table")).has_size(0)
assert_that(report.get("booth")).has_size(0)
def testByStatusEmptyChart(self):
chart_key = self.client.charts.create().key
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_status(event.key)
assert_that(report.items).has_size(0)
def testBySpecificStatus(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.change_object_status(event.key, ["A-1", "A-2"], "mystatus")
self.client.events.change_object_status(event.key, ["A-3"], "booked")
report = self.client.events.reports.by_status(event.key, status="mystatus")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(2)
def testBySpecificNonExistingStatus(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_status(event.key, status="mystatus")
assert_that(report).is_instance(list)
assert_that(report).has_size(0)
def testByCategoryLabel(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_category_label(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("Cat1")).has_size(17)
assert_that(report.get("Cat2")).has_size(17)
def testBySpecificCategoryLabel(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_category_label(event.key, "Cat1")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(17)
def testByCategoryKey(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_category_key(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("9")).has_size(17)
assert_that(report.get("10")).has_size(17)
def testBySpecificCategoryKey(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_category_key(event.key, "9")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(17)
def testByLabel(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_label(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("A-1")).has_size(1)
assert_that(report.get("A-2")).has_size(1)
def testBySpecificLabel(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_label(event.key, "A-1")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(1)
def testByOrderId(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.book(event.key, ["A-1", "A-2"], order_id="order1")
self.client.events.book(event.key, ["A-3"], order_id="order2")
report = self.client.events.reports.by_order_id(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("order1")).has_size(2)
assert_that(report.get("order2")).has_size(1)
assert_that(report.get("NO_ORDER_ID")).has_size(31)
def testBySpecificOrderId(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.book(event.key, ["A-1", "A-2"], order_id="order1")
self.client.events.book(event.key, ["A-3"], order_id="order2")
report = self.client.events.reports.by_order_id(event.key, "order1")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(2)
def testBySection(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_section(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("NO_SECTION")).has_size(34)
def testBySpecificSection(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
report = self.client.events.reports.by_section(event.key, "NO_SECTION")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(34)
def testBySelectability(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.book(event.key, ["A-1", "A-2"])
report = self.client.events.reports.by_selectability(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("selectable")).has_size(32)
assert_that(report.get("not_selectable")).has_size(2)
def testBySpecificSelectability(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.book(event.key, ["A-1", "A-2"])
report = self.client.events.reports.by_selectability(event.key, "selectable")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(32)
def testByChannel(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.update_channels(event.key, {
'channelKey1': Channel(name='channel 1', color='#00FF00', index=1)
})
self.client.events.assign_objects_to_channels(event.key, {
"channelKey1": ["A-1", "A-2"]
})
report = self.client.events.reports.by_channel(event.key)
assert_that(report).is_instance(EventReport)
assert_that(report.get("NO_CHANNEL")).has_size(32)
assert_that(report.get("channelKey1")).has_size(2)
def testBySpecificChannel(self):
chart_key = self.create_test_chart()
event = self.client.events.create(chart_key)
self.client.events.update_channels(event.key, {
'channelKey1': Channel(name='channel 1', color='#00FF00', index=1)
})
self.client.events.assign_objects_to_channels(event.key, {
"channelKey1": ["A-1", "A-2"]
})
report = self.client.events.reports.by_channel(event.key, "channelKey1")
assert_that(report).is_instance(list)
assert_that(report[0]).is_instance(EventObjectInfo)
assert_that(report).has_size(2)
| 42.448387
| 133
| 0.690174
| 1,760
| 13,159
| 4.875
| 0.085227
| 0.125874
| 0.199534
| 0.111888
| 0.820979
| 0.805012
| 0.778322
| 0.702914
| 0.677273
| 0.649767
| 0
| 0.013903
| 0.180105
| 13,159
| 309
| 134
| 42.585761
| 0.781351
| 0
| 0
| 0.542017
| 0
| 0
| 0.044456
| 0
| 0
| 0
| 0
| 0
| 0.453782
| 1
| 0.092437
| false
| 0
| 0.016807
| 0
| 0.113445
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f85e13c234a913060be9636ab6d386ff466d075a
| 4,028
|
py
|
Python
|
test/programytest/parser/template/graph_tests/rdf_tests/test_addtriple.py
|
cdoebler1/AIML2
|
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
|
[
"MIT"
] | 345
|
2016-11-23T22:37:04.000Z
|
2022-03-30T20:44:44.000Z
|
test/programytest/parser/template/graph_tests/rdf_tests/test_addtriple.py
|
MikeyBeez/program-y
|
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
|
[
"MIT"
] | 275
|
2016-12-07T10:30:28.000Z
|
2022-02-08T21:28:33.000Z
|
test/programytest/parser/template/graph_tests/rdf_tests/test_addtriple.py
|
VProgramMist/modified-program-y
|
f32efcafafd773683b3fe30054d5485fe9002b7d
|
[
"MIT"
] | 159
|
2016-11-28T18:59:30.000Z
|
2022-03-20T18:02:44.000Z
|
import xml.etree.ElementTree as ET
from programy.parser.exceptions import ParserException
from programy.parser.template.nodes.addtriple import TemplateAddTripleNode
from programy.parser.template.nodes.base import TemplateNode
from programytest.parser.template.graph_tests.graph_test_client import TemplateGraphTestClient
class TemplateGraphAddTripleTests(TemplateGraphTestClient):
def test_add_triple_type1(self):
template = ET.fromstring("""
<template>
<addtriple>
<subj>X</subj>
<pred>Y</pred>
<obj>Z</obj>
</addtriple>
</template>
""")
ast = self._graph.parse_template_expression(template)
self.assertIsNotNone(ast)
self.assertIsInstance(ast, TemplateNode)
self.assertIsNotNone(ast.children)
self.assertIsNotNone(ast.children[0])
self.assertIsInstance(ast.children[0], TemplateAddTripleNode)
self.assertEqual(0, len(ast.children[0].children))
self.assertFalse(self._client_context.brain.rdf.has_object("X", "Y", "Z"))
result = ast.resolve(self._client_context)
self.assertIsNotNone(result)
self.assertTrue(self._client_context.brain.rdf.has_object("X", "Y", "Z"))
self.assertEquals("<addtriple><subj>X</subj><pred>Y</pred><obj>Z</obj></addtriple>", ast.children_to_xml(self._client_context))
def test_add_triple_type2(self):
template = ET.fromstring("""
<template>
<addtriple subj="X" pred="Y" obj="Z">
</addtriple>
</template>
""")
ast = self._graph.parse_template_expression(template)
self.assertIsNotNone(ast)
self.assertIsInstance(ast, TemplateNode)
self.assertIsNotNone(ast.children)
self.assertIsNotNone(ast.children[0])
self.assertIsInstance(ast.children[0], TemplateAddTripleNode)
self.assertEqual(0, len(ast.children[0].children))
self.assertFalse(self._client_context.brain.rdf.has_object("X", "Y", "Z"))
result = ast.resolve(self._client_context)
self.assertIsNotNone(result)
self.assertTrue(self._client_context.brain.rdf.has_object("X", "Y", "Z"))
self.assertEquals("<addtriple><subj>X</subj><pred>Y</pred><obj>Z</obj></addtriple>", ast.children_to_xml(self._client_context))
def test_add_triple_type3(self):
template = ET.fromstring("""
<template>
<addtriple subj="X" pred="Y" obj="Z" />
</template>
""")
ast = self._graph.parse_template_expression(template)
self.assertIsNotNone(ast)
self.assertIsInstance(ast, TemplateNode)
self.assertIsNotNone(ast.children)
self.assertIsNotNone(ast.children[0])
self.assertIsInstance(ast.children[0], TemplateAddTripleNode)
self.assertEqual(0, len(ast.children[0].children))
self.assertFalse(self._client_context.brain.rdf.has_object("X", "Y", "Z"))
result = ast.resolve(self._client_context)
self.assertIsNotNone(result)
self.assertTrue(self._client_context.brain.rdf.has_object("X", "Y", "Z"))
self.assertEquals("<addtriple><subj>X</subj><pred>Y</pred><obj>Z</obj></addtriple>", ast.children_to_xml(self._client_context))
def test_add_triple_missing_subj(self):
template = ET.fromstring("""
<template>
<addtriple pred="Y" obj="Z" />
</template>
""")
with self.assertRaises(ParserException):
_ = self._graph.parse_template_expression(template)
def test_add_triple_missing_pred(self):
template = ET.fromstring("""
<template>
<addtriple subj="X" obj="Z" />
</template>
""")
with self.assertRaises(ParserException):
_ = self._graph.parse_template_expression(template)
def test_add_triple_missing_obj(self):
template = ET.fromstring("""
<template>
<addtriple subj="X" pred="Y" />
</template>
""")
with self.assertRaises(ParserException):
_ = self._graph.parse_template_expression(template)
| 35.333333
| 135
| 0.669563
| 452
| 4,028
| 5.787611
| 0.137168
| 0.063073
| 0.077982
| 0.036697
| 0.878823
| 0.850535
| 0.834862
| 0.834862
| 0.805046
| 0.805046
| 0
| 0.004605
| 0.19141
| 4,028
| 113
| 136
| 35.646018
| 0.798588
| 0
| 0
| 0.764045
| 0
| 0.033708
| 0.185452
| 0.046922
| 0
| 0
| 0
| 0
| 0.370787
| 1
| 0.067416
| false
| 0
| 0.05618
| 0
| 0.134831
| 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
|
f8d0b749c59f6d6c0b9735fe4673011cef67f04d
| 130
|
py
|
Python
|
rnaindel/nonsomatic_lib/__init__.py
|
adthrasher/RNAIndel
|
a6ad6aebe621bdd73771cfad0b8a2f1724b57087
|
[
"Apache-2.0"
] | null | null | null |
rnaindel/nonsomatic_lib/__init__.py
|
adthrasher/RNAIndel
|
a6ad6aebe621bdd73771cfad0b8a2f1724b57087
|
[
"Apache-2.0"
] | null | null | null |
rnaindel/nonsomatic_lib/__init__.py
|
adthrasher/RNAIndel
|
a6ad6aebe621bdd73771cfad0b8a2f1724b57087
|
[
"Apache-2.0"
] | null | null | null |
from .make_non_somatic_panel import *
from .filterate_by_panel import *
from .annotate_recurrence import *
from .variant import *
| 26
| 37
| 0.815385
| 18
| 130
| 5.555556
| 0.611111
| 0.3
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123077
| 130
| 4
| 38
| 32.5
| 0.877193
| 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
|
3e466da981dd87550def8660a6ddcb6dc29f8e2a
| 21,759
|
py
|
Python
|
src/config/schema-transformer/test/test_service.py
|
Juniper/contrail-dev-controller
|
d4fd8fa8e309fd6746c9998f7e8644c2910affbb
|
[
"Apache-2.0"
] | 5
|
2015-01-08T17:34:41.000Z
|
2017-09-28T16:00:25.000Z
|
src/config/schema-transformer/test/test_service.py
|
Juniper/contrail-dev-controller
|
d4fd8fa8e309fd6746c9998f7e8644c2910affbb
|
[
"Apache-2.0"
] | null | null | null |
src/config/schema-transformer/test/test_service.py
|
Juniper/contrail-dev-controller
|
d4fd8fa8e309fd6746c9998f7e8644c2910affbb
|
[
"Apache-2.0"
] | 2
|
2016-06-24T20:16:45.000Z
|
2020-02-05T10:47:43.000Z
|
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
import sys
import gevent
sys.path.append("../common/tests")
from testtools.matchers import Equals, Contains, Not
from test_utils import *
import test_common
import test_case
from vnc_api.vnc_api import *
import to_bgp
class TestPolicy(test_case.STTestCase):
def test_basic_policy(self):
vn1_name = 'vn1'
vn2_name = 'vn2'
vn1_obj = VirtualNetwork(vn1_name)
vn2_obj = VirtualNetwork(vn2_name)
np = self.create_network_policy(vn1_obj, vn2_obj)
seq = SequenceType(1, 1)
vnp = VirtualNetworkPolicyType(seq)
vn1_obj.set_network_policy(np, vnp)
vn2_obj.set_network_policy(np, vnp)
vn1_uuid = self._vnc_lib.virtual_network_create(vn1_obj)
vn2_uuid = self._vnc_lib.virtual_network_create(vn2_obj)
for obj in [vn1_obj, vn2_obj]:
ident_name = self.get_obj_imid(obj)
ifmap_ident = self.assertThat(FakeIfmapClient._graph, Contains(ident_name))
while True:
gevent.sleep(2)
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project', 'vn1', 'vn1'])
except NoIdError:
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn2', u'vn2'])
break
print "retrying ... ", test_common.lineno()
# end while True
while True:
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn2', 'vn2'])
except NoIdError:
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn1', u'vn1'])
break
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
# end while True
vn1_obj.del_network_policy(np)
vn2_obj.del_network_policy(np)
self._vnc_lib.virtual_network_update(vn1_obj)
self._vnc_lib.virtual_network_update(vn2_obj)
while True:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project', 'vn2', 'vn2'])
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
gevent.sleep(2)
else:
break
print "retrying ... ", test_common.lineno()
# end while True
self.delete_network_policy(np)
self._vnc_lib.virtual_network_delete(fq_name=vn1_obj.get_fq_name())
self._vnc_lib.virtual_network_delete(fq_name=vn2_obj.get_fq_name())
while True:
try:
self._vnc_lib.virtual_network_read(id=vn1_obj.uuid)
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
continue
except NoIdError:
print 'vn1 deleted'
try:
self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn2', 'vn2'])
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
continue
except NoIdError:
print 'ri2 deleted'
break
# end test_basic_policy
def test_multiple_policy(self):
vn1_name = 'vn1'
vn2_name = 'vn2'
vn1_obj = VirtualNetwork(vn1_name)
vn2_obj = VirtualNetwork(vn2_name)
np1 = self.create_network_policy(vn1_obj, vn2_obj)
np2 = self.create_network_policy(vn2_obj, vn1_obj)
seq = SequenceType(1, 1)
vnp = VirtualNetworkPolicyType(seq)
vn1_obj.set_network_policy(np1, vnp)
vn2_obj.set_network_policy(np2, vnp)
vn1_uuid = self._vnc_lib.virtual_network_create(vn1_obj)
vn2_uuid = self._vnc_lib.virtual_network_create(vn2_obj)
while True:
gevent.sleep(2)
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project', 'vn1', 'vn1'])
except NoIdError:
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn2', u'vn2'])
break
print "retrying ... ", test_common.lineno()
# end while True
while True:
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn2', 'vn2'])
except NoIdError:
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn1', u'vn1'])
break
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
# end while True
np1.network_policy_entries.policy_rule[0].action_list.simple_action = 'deny'
np1.set_network_policy_entries(np1.network_policy_entries)
self._vnc_lib.network_policy_update(np1)
while True:
gevent.sleep(2)
if ('contrail:connection contrail:routing-instance:default-domain:default-project:vn2:vn2' in
FakeIfmapClient._graph['contrail:routing-instance:default-domain:default-project:vn1:vn1']['links']):
print "retrying ... ", test_common.lineno()
continue
break
np1.network_policy_entries.policy_rule[0].action_list.simple_action = 'pass'
np1.set_network_policy_entries(np1.network_policy_entries)
self._vnc_lib.network_policy_update(np1)
np2.network_policy_entries.policy_rule[0].action_list.simple_action = 'deny'
np2.set_network_policy_entries(np2.network_policy_entries)
self._vnc_lib.network_policy_update(np2)
while True:
gevent.sleep(2)
if ('contrail:connection contrail:routing-instance:default-domain:default-project:vn2:vn2' in
FakeIfmapClient._graph['contrail:routing-instance:default-domain:default-project:vn1:vn1']['links']):
print "retrying ... ", test_common.lineno()
continue
break
vn1_obj.del_network_policy(np1)
vn2_obj.del_network_policy(np2)
self._vnc_lib.virtual_network_update(vn1_obj)
self._vnc_lib.virtual_network_update(vn2_obj)
while True:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project', 'vn2', 'vn2'])
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
gevent.sleep(2)
else:
break
print "retrying ... ", test_common.lineno()
# end while True
self.delete_network_policy(np1)
self.delete_network_policy(np2)
self._vnc_lib.virtual_network_delete(fq_name=vn1_obj.get_fq_name())
self._vnc_lib.virtual_network_delete(fq_name=vn2_obj.get_fq_name())
while True:
try:
self._vnc_lib.virtual_network_read(id=vn1_obj.uuid)
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
continue
except NoIdError:
print 'vn1 deleted'
break
# end test_multiple_policy
def test_policy_in_policy(self):
vn1_name = 'vn1'
vn2_name = 'vn2'
vn3_name = 'vn3'
vn1_obj = VirtualNetwork(vn1_name)
vn2_obj = VirtualNetwork(vn2_name)
np1 = self.create_network_policy(vn1_obj, vn2_obj)
np2 = self.create_network_policy(vn2_obj, vn1_obj)
np1.network_policy_entries.policy_rule[0].dst_addresses[0].virtual_network = None
np1.network_policy_entries.policy_rule[0].dst_addresses[0].network_policy = np2.get_fq_name_str()
np1.set_network_policy_entries(np1.network_policy_entries)
self._vnc_lib.network_policy_update(np1)
np2.network_policy_entries.policy_rule[0].src_addresses[0].virtual_network = 'local'
np2.set_network_policy_entries(np1.network_policy_entries)
self._vnc_lib.network_policy_update(np2)
seq = SequenceType(1, 1)
vnp = VirtualNetworkPolicyType(seq)
vn1_obj.set_network_policy(np1, vnp)
vn2_obj.set_network_policy(np2, vnp)
vn1_uuid = self._vnc_lib.virtual_network_create(vn1_obj)
vn2_uuid = self._vnc_lib.virtual_network_create(vn2_obj)
while True:
gevent.sleep(2)
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project', 'vn1', 'vn1'])
except NoIdError:
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn2', u'vn2'])
break
print "retrying ... ", test_common.lineno()
# end while True
while True:
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn2', 'vn2'])
except NoIdError:
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn1', u'vn1'])
break
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
# end while True
vn3_obj = VirtualNetwork(vn3_name)
vn3_obj.set_network_policy(np2, vnp)
vn3_uuid = self._vnc_lib.virtual_network_create(vn3_obj)
while True:
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn3', 'vn3'])
except NoIdError:
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn1', u'vn1'])
break
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
# end while True
vn3_obj.del_network_policy(np2)
self._vnc_lib.virtual_network_update(vn3_obj)
while True:
try:
acl = self._vnc_lib.access_control_list_read(
fq_name=[u'default-domain', u'default-project',
'vn1', 'vn1'])
except NoIdError:
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
found = False
for rule in acl.get_access_control_list_entries().get_acl_rule():
if rule.match_condition.dst_address.virtual_network == vn3_obj.get_fq_name_str():
gevent.sleep(1)
print "retrying ... ", test_common.lineno()
found = True
break
if not found:
break
# end while True
vn1_obj.del_network_policy(np1)
vn2_obj.del_network_policy(np2)
self._vnc_lib.virtual_network_update(vn1_obj)
self._vnc_lib.virtual_network_update(vn2_obj)
self.delete_network_policy(np1)
self.delete_network_policy(np2)
self._vnc_lib.virtual_network_delete(fq_name=vn1_obj.get_fq_name())
self._vnc_lib.virtual_network_delete(fq_name=vn2_obj.get_fq_name())
self._vnc_lib.virtual_network_delete(fq_name=vn3_obj.get_fq_name())
while True:
try:
self._vnc_lib.virtual_network_read(id=vn1_obj.uuid)
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
continue
except NoIdError:
print 'vn1 deleted'
break
# end test_multiple_policy
def test_service_policy(self):
# create vn1
vn1_obj = VirtualNetwork('vn1')
ipam_obj = NetworkIpam('ipam1')
self._vnc_lib.network_ipam_create(ipam_obj)
vn1_obj.add_network_ipam(ipam_obj, VnSubnetsType(
[IpamSubnetType(SubnetType("10.0.0.0", 24))]))
self._vnc_lib.virtual_network_create(vn1_obj)
# create vn2
vn2_obj = VirtualNetwork('vn2')
ipam_obj = NetworkIpam('ipam2')
self._vnc_lib.network_ipam_create(ipam_obj)
vn2_obj.add_network_ipam(ipam_obj, VnSubnetsType(
[IpamSubnetType(SubnetType("20.0.0.0", 24))]))
self._vnc_lib.virtual_network_create(vn2_obj)
np = self.create_network_policy(vn1_obj, vn2_obj, ["s1"])
seq = SequenceType(1, 1)
vnp = VirtualNetworkPolicyType(seq)
vn1_obj.clear_pending_updates()
vn2_obj.clear_pending_updates()
vn1_obj.set_network_policy(np, vnp)
vn2_obj.set_network_policy(np, vnp)
self._vnc_lib.virtual_network_update(vn1_obj)
self._vnc_lib.virtual_network_update(vn2_obj)
while True:
gevent.sleep(2)
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn1', 'vn1'])
except NoIdError:
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
sc = [x for x in to_bgp.ServiceChain]
sc_ri_name = 'service-'+sc[0]+'-default-domain_default-project_s1'
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn1', sc_ri_name])
break
print "retrying ... ", test_common.lineno()
# end while True
while True:
try:
test_common.FakeApiConfigLog._print()
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project', u'vn2', sc_ri_name])
except NoIdError:
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs:
self.assertEqual(
ri_refs[0]['to'],
[u'default-domain', u'default-project', u'vn2', u'vn2'])
sci = ri.get_service_chain_information()
if sci is None:
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
continue
self.assertEqual(sci.prefix[0], '10.0.0.0/24')
break
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
# end while True
vn1_obj.del_network_policy(np)
vn2_obj.del_network_policy(np)
self._vnc_lib.virtual_network_update(vn1_obj)
self._vnc_lib.virtual_network_update(vn2_obj)
while True:
gevent.sleep(2)
try:
ri = self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn1', 'vn1'])
except NoIdError:
print "retrying ... ", test_common.lineno()
continue
ri_refs = ri.get_routing_instance_refs()
if ri_refs is None:
break
print "retrying ... ", test_common.lineno()
# end while True
self.delete_network_policy(np)
self._vnc_lib.virtual_network_delete(fq_name=vn1_obj.get_fq_name())
self._vnc_lib.virtual_network_delete(fq_name=vn2_obj.get_fq_name())
while True:
try:
self._vnc_lib.virtual_network_read(id=vn1_obj.uuid)
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
except NoIdError:
print 'vn1 deleted'
try:
self._vnc_lib.routing_instance_read(
fq_name=[u'default-domain', u'default-project',
'vn2', 'vn2'])
print "retrying ... ", test_common.lineno()
gevent.sleep(2)
continue
except NoIdError:
print 'ri2 deleted'
break
# end test_service_policy
# end class TestPolicy
#class TestRouteTable(test_case.STTestCase):
def test_add_delete_route(self):
lvn = self.create_virtual_network("lvn", "10.0.0.0/24")
rvn = self.create_virtual_network("rvn", "20.0.0.0/24")
np = self.create_network_policy(lvn, rvn, ["s1"], "in-network")
vn = self.create_virtual_network("vn100", "1.0.0.0/24")
rt = RouteTable("rt1")
self._vnc_lib.route_table_create(rt)
vn.add_route_table(rt)
self._vnc_lib.virtual_network_update(vn)
routes = RouteTableType()
route = RouteType(
prefix="0.0.0.0/0", next_hop="default-domain:default-project:s1")
routes.add_route(route)
rt.set_routes(routes)
self._vnc_lib.route_table_update(rt)
while 1:
gevent.sleep(2)
lvn = self._vnc_lib.virtual_network_read(id=lvn.uuid)
try:
sc = [x for x in to_bgp.ServiceChain]
if len(sc) == 0:
print "retrying ... ", test_common.lineno()
continue
sc_ri_name = 'service-'+sc[0]+'-default-domain_default-project_s1'
lri = self._vnc_lib.routing_instance_read(
fq_name=['default-domain', 'default-project', 'lvn', sc_ri_name])
sr = lri.get_static_route_entries()
if sr is None:
print "retrying ... ", test_common.lineno()
continue
route = sr.route[0]
self.assertEqual(route.prefix, "0.0.0.0/0")
self.assertEqual(route.next_hop, "10.0.0.253")
except NoIdError:
print "retrying ... ", test_common.lineno()
continue
try:
ri100 = self._vnc_lib.routing_instance_read(
fq_name=[
'default-domain', 'default-project', 'vn100', 'vn100'])
rt100 = ri100.get_route_target_refs()[0]['to']
found = False
for rt_ref in lri.get_route_target_refs() or []:
if rt100 == rt_ref['to']:
found = True
break
self.assertEqual(found, True)
except NoIdError:
print "retrying ... ", test_common.lineno()
continue
break
# end while
routes.set_route([])
rt.set_routes(route)
self._vnc_lib.route_table_update(rt)
while 1:
lri = self._vnc_lib.routing_instance_read(
fq_name=['default-domain', 'default-project', 'lvn', sc_ri_name])
sr = lri.get_static_route_entries()
if sr and sr.route:
gevent.sleep(2)
print "retrying ... ", test_common.lineno()
continue
ri = self._vnc_lib.routing_instance_read(
fq_name=['default-domain', 'default-project', 'lvn', 'lvn'])
rt_refs = ri.get_route_target_refs()
for rt_ref in ri.get_route_target_refs() or []:
if rt100 == rt_ref['to']:
print "retrying ... ", test_common.lineno()
continue
break
# end while
self._vnc_lib.virtual_network_delete(
fq_name=['default-domain', 'default-project', 'vn100'])
self.delete_network_policy(np, auto_policy=True)
gevent.sleep(2)
self._vnc_lib.virtual_network_delete(
fq_name=['default-domain', 'default-project', 'lvn'])
self._vnc_lib.virtual_network_delete(
fq_name=['default-domain', 'default-project', 'rvn'])
# test_add_delete_route
# end class TestRouteTable
| 38.717082
| 117
| 0.55554
| 2,482
| 21,759
| 4.558421
| 0.070508
| 0.041453
| 0.059219
| 0.079282
| 0.857698
| 0.831536
| 0.820488
| 0.810058
| 0.788404
| 0.743857
| 0
| 0.026077
| 0.342617
| 21,759
| 561
| 118
| 38.786096
| 0.764891
| 0.023301
| 0
| 0.8
| 0
| 0
| 0.107148
| 0.016821
| 0
| 0
| 0
| 0
| 0.029474
| 0
| null | null | 0.002105
| 0.016842
| null | null | 0.096842
| 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
|
e426cf5f7aa5793149d70bdf49909983ed33c5da
| 91
|
py
|
Python
|
gsse_python_client/__init__.py
|
ogdans3/gsse-python-client
|
4ee6409aa3f3c558fbd4d43ccb53fdd91a7923f5
|
[
"MIT"
] | null | null | null |
gsse_python_client/__init__.py
|
ogdans3/gsse-python-client
|
4ee6409aa3f3c558fbd4d43ccb53fdd91a7923f5
|
[
"MIT"
] | null | null | null |
gsse_python_client/__init__.py
|
ogdans3/gsse-python-client
|
4ee6409aa3f3c558fbd4d43ccb53fdd91a7923f5
|
[
"MIT"
] | null | null | null |
from gsse_python_client.client import Client
from gsse_python_client.testSet import TestSet
| 45.5
| 46
| 0.901099
| 14
| 91
| 5.571429
| 0.428571
| 0.205128
| 0.358974
| 0.512821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 91
| 2
| 46
| 45.5
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
e44a698b8e676677843678b6f0c2eff4b8191168
| 225
|
py
|
Python
|
src/app/model.py
|
pechatny/basic-flask-app
|
fa1d61b8ebe7c519e834e16196c353368ab3c9b5
|
[
"MIT"
] | null | null | null |
src/app/model.py
|
pechatny/basic-flask-app
|
fa1d61b8ebe7c519e834e16196c353368ab3c9b5
|
[
"MIT"
] | null | null | null |
src/app/model.py
|
pechatny/basic-flask-app
|
fa1d61b8ebe7c519e834e16196c353368ab3c9b5
|
[
"MIT"
] | null | null | null |
class User(object):
def __init__(self, login, password):
self.login = login
self.password = password
def show_user(self):
return "Login: s%, Password: s%" % (self.login, self.password)
| 28.125
| 70
| 0.6
| 27
| 225
| 4.814815
| 0.407407
| 0.207692
| 0.261538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.275556
| 225
| 8
| 70
| 28.125
| 0.797546
| 0
| 0
| 0
| 0
| 0
| 0.105023
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.5
| 0
| 0.166667
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 8
|
5f3f9e55b1c96b7bc120fe6709733f2b4e893749
| 5,298
|
py
|
Python
|
myproductivitytool/project/migrations/0001_initial.py
|
jhahitesh/myroductivitytool
|
40d2409bae408ab6b57136922d5d5fba47e6d9c5
|
[
"MIT"
] | null | null | null |
myproductivitytool/project/migrations/0001_initial.py
|
jhahitesh/myroductivitytool
|
40d2409bae408ab6b57136922d5d5fba47e6d9c5
|
[
"MIT"
] | 5
|
2020-06-05T21:43:28.000Z
|
2021-06-10T18:22:52.000Z
|
myproductivitytool/project/migrations/0001_initial.py
|
jhahitesh/myproductivitytool
|
40d2409bae408ab6b57136922d5d5fba47e6d9c5
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.2 on 2019-05-19 12:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_on', models.DateTimeField(auto_now_add=True)),
('last_modified_on', models.DateTimeField(auto_now=True)),
('deleted_on', models.DateTimeField(blank=True, null=True)),
('is_deleted', models.BooleanField(default=False)),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=512)),
('start_date', models.DateField()),
('end_date', models.DateField()),
('avatar', models.FileField(blank=True, null=True, upload_to='')),
('status', models.CharField(choices=[('UPC', 'Upcoming'), ('ONG', 'Ongoing'), ('CMP', 'Completed')], max_length=3)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_project_creator', to=settings.AUTH_USER_MODEL)),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_project_deleter', to=settings.AUTH_USER_MODEL)),
('last_modified_by', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_project_modifier', to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='SubTask',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_on', models.DateTimeField(auto_now_add=True)),
('last_modified_on', models.DateTimeField(auto_now=True)),
('deleted_on', models.DateTimeField(blank=True, null=True)),
('is_deleted', models.BooleanField(default=False)),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=512)),
('start_date', models.DateField()),
('end_date', models.DateField()),
('status', models.CharField(choices=[('DRF', 'Draft'), ('PRG', 'In Progress'), ('CMP', 'Completed')], max_length=3)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_subtask_creator', to=settings.AUTH_USER_MODEL)),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_subtask_deleter', to=settings.AUTH_USER_MODEL)),
('last_modified_by', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_subtask_modifier', to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_on', models.DateTimeField(auto_now_add=True)),
('last_modified_on', models.DateTimeField(auto_now=True)),
('deleted_on', models.DateTimeField(blank=True, null=True)),
('is_deleted', models.BooleanField(default=False)),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=512)),
('start_date', models.DateField()),
('end_date', models.DateField()),
('task_number', models.PositiveIntegerField()),
('status', models.CharField(choices=[('DRF', 'Draft'), ('PRG', 'In Progress'), ('CMP', 'Completed')], max_length=3)),
('assignee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_task_creator', to=settings.AUTH_USER_MODEL)),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_task_deleter', to=settings.AUTH_USER_MODEL)),
('last_modified_by', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_task_modifier', to=settings.AUTH_USER_MODEL)),
('project', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='project.Project')),
('sub_tasks', models.ManyToManyField(blank=True, to='project.SubTask')),
],
options={
'abstract': False,
},
),
]
| 61.604651
| 190
| 0.621744
| 572
| 5,298
| 5.522727
| 0.173077
| 0.032922
| 0.053181
| 0.083571
| 0.836657
| 0.83001
| 0.820196
| 0.820196
| 0.820196
| 0.820196
| 0
| 0.00786
| 0.231597
| 5,298
| 85
| 191
| 62.329412
| 0.768116
| 0.008116
| 0
| 0.602564
| 1
| 0
| 0.15039
| 0.030649
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.038462
| 0
| 0.089744
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5fb0b5b867686269f5c80983cb9c930d0234a527
| 349
|
py
|
Python
|
return_negative/return_negative_test.py
|
LingDatDatDing/CodeWars
|
2692ab13d55b30fa5ea172dfd7f630f28ae09d45
|
[
"MIT"
] | null | null | null |
return_negative/return_negative_test.py
|
LingDatDatDing/CodeWars
|
2692ab13d55b30fa5ea172dfd7f630f28ae09d45
|
[
"MIT"
] | null | null | null |
return_negative/return_negative_test.py
|
LingDatDatDing/CodeWars
|
2692ab13d55b30fa5ea172dfd7f630f28ae09d45
|
[
"MIT"
] | null | null | null |
from nose.tools import assert_equal as assertEqual
import return_negative
def test_make_negative_large_negative():
assertEqual(return_negative.make_negative(42),-42)
def test_make_negative_small_negative():
assertEqual(return_negative.make_negative(-9),-9)
def test_make_negative_zero():
assertEqual(return_negative.make_negative(0),0)
| 34.9
| 54
| 0.825215
| 49
| 349
| 5.489796
| 0.387755
| 0.267658
| 0.122677
| 0.211896
| 0.472119
| 0.334572
| 0
| 0
| 0
| 0
| 0
| 0.025078
| 0.08596
| 349
| 9
| 55
| 38.777778
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.375
| true
| 0
| 0.25
| 0
| 0.625
| 0
| 0
| 0
| 0
| null | 1
| 0
| 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
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
396785e8627c2045aba9af736472923f4982dddd
| 13,003
|
py
|
Python
|
yolo4/models/yolo4_mobilenetv3_small.py
|
JsonSadler/keras-YOLOv3-model-set
|
378bee8853bc2c547f379f707098a39025a0ff83
|
[
"MIT"
] | 1
|
2020-05-06T04:04:19.000Z
|
2020-05-06T04:04:19.000Z
|
yolo4/models/yolo4_mobilenetv3_small.py
|
JsonSadler/keras-YOLOv3-model-set
|
378bee8853bc2c547f379f707098a39025a0ff83
|
[
"MIT"
] | null | null | null |
yolo4/models/yolo4_mobilenetv3_small.py
|
JsonSadler/keras-YOLOv3-model-set
|
378bee8853bc2c547f379f707098a39025a0ff83
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""YOLO_v4 MobileNetV3Small Model Defined in Keras."""
from tensorflow.keras.layers import ZeroPadding2D, UpSampling2D, Concatenate
from tensorflow.keras.models import Model
from common.backbones.mobilenet_v3 import MobileNetV3Small
from yolo4.models.layers import compose, DarknetConv2D, DarknetConv2D_BN_Leaky, Spp_Conv2D_BN_Leaky, Depthwise_Separable_Conv2D_BN_Leaky, Darknet_Depthwise_Separable_Conv2D_BN_Leaky, make_yolo_head, make_yolo_spp_head, make_yolo_depthwise_separable_head, make_yolo_spp_depthwise_separable_head
def yolo4_mobilenetv3small_body(inputs, num_anchors, num_classes, alpha=1.0):
"""Create YOLO_V4 MobileNetV3Small model CNN body in Keras."""
mobilenetv3small = MobileNetV3Small(input_tensor=inputs, weights='imagenet', include_top=False, alpha=alpha)
# input: 416 x 416 x 3
# activation_31(layer 165, final feature map): 13 x 13 x (576*alpha)
# expanded_conv_10/Add(layer 162, end of block10): 13 x 13 x (96*alpha)
# activation_22(layer 117, middle in block8) : 26 x 26 x (288*alpha)
# expanded_conv_7/Add(layer 114, end of block7) : 26 x 26 x (48*alpha)
# activation_7(layer 38, middle in block3) : 52 x 52 x (96*alpha)
# expanded_conv_2/Add(layer 35, end of block2): 52 x 52 x (24*alpha)
# f1 :13 x 13 x (576*alpha)
# NOTE: activation layer name may different for TF1.x/2.x, so we
# use index to fetch layer
f1 = mobilenetv3small.layers[165].output
#feature map 1 head (13 x 13 x (288*alpha) for 416 input)
x1 = make_yolo_spp_head(f1, int(288*alpha))
#upsample fpn merge for feature map 1 & 2
x1_upsample = compose(
DarknetConv2D_BN_Leaky(int(144*alpha), (1,1)),
UpSampling2D(2))(x1)
f2 = mobilenetv3small.layers[117].output
# f2: 26 x 26 x (288*alpha) for 416 input
x2 = DarknetConv2D_BN_Leaky(int(144*alpha), (1,1))(f2)
x2 = Concatenate()([x2, x1_upsample])
#feature map 2 head (26 x 26 x (144*alpha) for 416 input)
x2 = make_yolo_head(x2, int(144*alpha))
#upsample fpn merge for feature map 2 & 3
x2_upsample = compose(
DarknetConv2D_BN_Leaky(int(48*alpha), (1,1)),
UpSampling2D(2))(x2)
f3 = mobilenetv3small.layers[38].output
# f3 : 52 x 52 x (96*alpha)
x3 = DarknetConv2D_BN_Leaky(int(48*alpha), (1,1))(f3)
x3 = Concatenate()([x3, x2_upsample])
#feature map 3 head & output (52 x 52 x (96*alpha) for 416 input)
#x3, y3 = make_last_layers(x3, int(48*alpha), num_anchors*(num_classes+5))
x3 = make_yolo_head(x3, int(48*alpha))
y3 = compose(
DarknetConv2D_BN_Leaky(int(96*alpha), (3,3)),
DarknetConv2D(num_anchors*(num_classes+5), (1,1)))(x3)
#downsample fpn merge for feature map 3 & 2
x3_downsample = compose(
ZeroPadding2D(((1,0),(1,0))),
DarknetConv2D_BN_Leaky(int(144*alpha), (3,3), strides=(2,2)))(x3)
x2 = Concatenate()([x3_downsample, x2])
#feature map 2 output (26 x 26 x (288*alpha) for 416 input)
#x2, y2 = make_last_layers(x2, int(144*alpha), num_anchors*(num_classes+5))
x2 = make_yolo_head(x2, int(144*alpha))
y2 = compose(
DarknetConv2D_BN_Leaky(int(288*alpha), (3,3)),
DarknetConv2D(num_anchors*(num_classes+5), (1,1)))(x2)
#downsample fpn merge for feature map 2 & 1
x2_downsample = compose(
ZeroPadding2D(((1,0),(1,0))),
DarknetConv2D_BN_Leaky(int(288*alpha), (3,3), strides=(2,2)))(x2)
x1 = Concatenate()([x2_downsample, x1])
#feature map 1 output (13 x 13 x (576*alpha) for 416 input)
#x1, y1 = make_last_layers(x1, int(288*alpha), num_anchors*(num_classes+5))
x1 = make_yolo_head(x1, int(288*alpha))
y1 = compose(
DarknetConv2D_BN_Leaky(int(576*alpha), (3,3)),
DarknetConv2D(num_anchors*(num_classes+5), (1,1)))(x1)
return Model(inputs, [y1, y2, y3])
def yolo4lite_mobilenetv3small_body(inputs, num_anchors, num_classes, alpha=1.0):
'''Create YOLO_v4 Lite MobileNetV3Small model CNN body in keras.'''
mobilenetv3small = MobileNetV3Small(input_tensor=inputs, weights='imagenet', include_top=False, alpha=alpha)
# input: 416 x 416 x 3
# activation_31(layer 165, final feature map): 13 x 13 x (576*alpha)
# expanded_conv_10/Add(layer 162, end of block10): 13 x 13 x (96*alpha)
# activation_22(layer 117, middle in block8) : 26 x 26 x (288*alpha)
# expanded_conv_7/Add(layer 114, end of block7) : 26 x 26 x (48*alpha)
# activation_7(layer 38, middle in block3) : 52 x 52 x (96*alpha)
# expanded_conv_2/Add(layer 35, end of block2): 52 x 52 x (24*alpha)
# f1 :13 x 13 x (576*alpha)
# NOTE: activation layer name may different for TF1.x/2.x, so we
# use index to fetch layer
f1 = mobilenetv3small.layers[165].output
#feature map 1 head (13 x 13 x (288*alpha) for 416 input)
x1 = make_yolo_spp_depthwise_separable_head(f1, int(288*alpha), block_id_str='11')
#upsample fpn merge for feature map 1 & 2
x1_upsample = compose(
DarknetConv2D_BN_Leaky(int(144*alpha), (1,1)),
UpSampling2D(2))(x1)
f2 = mobilenetv3small.layers[117].output
# f2: 26 x 26 x (288*alpha) for 416 input
x2 = DarknetConv2D_BN_Leaky(int(144*alpha), (1,1))(f2)
x2 = Concatenate()([x2, x1_upsample])
#feature map 2 head (26 x 26 x (144*alpha) for 416 input)
x2 = make_yolo_depthwise_separable_head(x2, int(144*alpha), block_id_str='12')
#upsample fpn merge for feature map 2 & 3
x2_upsample = compose(
DarknetConv2D_BN_Leaky(int(48*alpha), (1,1)),
UpSampling2D(2))(x2)
f3 = mobilenetv3small.layers[38].output
# f3 : 52 x 52 x (96*alpha)
x3 = DarknetConv2D_BN_Leaky(int(48*alpha), (1,1))(f3)
x3 = Concatenate()([x3, x2_upsample])
#feature map 3 head & output (52 x 52 x (96*alpha) for 416 input)
#x3, y3 = make_depthwise_separable_last_layers(x3, int(48*alpha), num_anchors*(num_classes+5), block_id_str='13')
x3 = make_yolo_depthwise_separable_head(x3, int(48*alpha), block_id_str='13')
y3 = compose(
Depthwise_Separable_Conv2D_BN_Leaky(int(96*alpha), (3,3), block_id_str='13_3'),
DarknetConv2D(num_anchors*(num_classes+5), (1,1)))(x3)
#downsample fpn merge for feature map 3 & 2
x3_downsample = compose(
ZeroPadding2D(((1,0),(1,0))),
Darknet_Depthwise_Separable_Conv2D_BN_Leaky(int(144*alpha), (3,3), strides=(2,2), block_id_str='13_4'))(x3)
x2 = Concatenate()([x3_downsample, x2])
#feature map 2 output (26 x 26 x (288*alpha) for 416 input)
#x2, y2 = make_depthwise_separable_last_layers(x2, int(144*alpha), num_anchors*(num_classes+5), block_id_str='14')
x2 = make_yolo_depthwise_separable_head(x2, int(144*alpha), block_id_str='14')
y2 = compose(
Depthwise_Separable_Conv2D_BN_Leaky(int(288*alpha), (3,3), block_id_str='14_3'),
DarknetConv2D(num_anchors*(num_classes+5), (1,1)))(x2)
#downsample fpn merge for feature map 2 & 1
x2_downsample = compose(
ZeroPadding2D(((1,0),(1,0))),
Darknet_Depthwise_Separable_Conv2D_BN_Leaky(int(288*alpha), (3,3), strides=(2,2), block_id_str='14_4'))(x2)
x1 = Concatenate()([x2_downsample, x1])
#feature map 1 output (13 x 13 x (576*alpha) for 416 input)
#x1, y1 = make_depthwise_separable_last_layers(x1, int(288*alpha), num_anchors*(num_classes+5), block_id_str='15')
x1 = make_yolo_depthwise_separable_head(x1, int(288*alpha), block_id_str='15')
y1 = compose(
Depthwise_Separable_Conv2D_BN_Leaky(int(576*alpha), (3,3), block_id_str='15_3'),
DarknetConv2D(num_anchors*(num_classes+5), (1,1)))(x1)
return Model(inputs, [y1, y2, y3])
def tiny_yolo4_mobilenetv3small_body(inputs, num_anchors, num_classes, alpha=1.0, use_spp=True):
'''Create Tiny YOLO_v4 MobileNetV3Small model CNN body in keras.'''
mobilenetv3small = MobileNetV3Small(input_tensor=inputs, weights='imagenet', include_top=False, alpha=alpha)
# input: 416 x 416 x 3
# activation_31(layer 165, final feature map): 13 x 13 x (576*alpha)
# expanded_conv_10/Add(layer 162, end of block10): 13 x 13 x (96*alpha)
# activation_22(layer 117, middle in block8) : 26 x 26 x (288*alpha)
# expanded_conv_7/Add(layer 114, end of block7) : 26 x 26 x (48*alpha)
# activation_7(layer 38, middle in block3) : 52 x 52 x (96*alpha)
# expanded_conv_2/Add(layer 35, end of block2): 52 x 52 x (24*alpha)
# f1 :13 x 13 x (576*alpha)
# NOTE: activation layer name may different for TF1.x/2.x, so we
# use index to fetch layer
f1 = mobilenetv3small.layers[165].output
# f2: 26 x 26 x (288*alpha) for 416 input
f2 = mobilenetv3small.layers[117].output
#feature map 1 head (13 x 13 x (288*alpha) for 416 input)
x1 = DarknetConv2D_BN_Leaky(int(288*alpha), (1,1))(f1)
if use_spp:
x1 = Spp_Conv2D_BN_Leaky(x1, int(288*alpha))
#upsample fpn merge for feature map 1 & 2
x1_upsample = compose(
DarknetConv2D_BN_Leaky(int(144*alpha), (1,1)),
UpSampling2D(2))(x1)
x2 = compose(
Concatenate(),
#Depthwise_Separable_Conv2D_BN_Leaky(filters=int(288*alpha), kernel_size=(3, 3), block_id_str='11'),
DarknetConv2D_BN_Leaky(int(288*alpha), (3,3)))([x1_upsample, f2])
#feature map 2 output (26 x 26 x (288*alpha) for 416 input)
y2 = DarknetConv2D(num_anchors*(num_classes+5), (1,1))(x2)
#downsample fpn merge for feature map 2 & 1
x2_downsample = compose(
ZeroPadding2D(((1,0),(1,0))),
#Darknet_Depthwise_Separable_Conv2D_BN_Leaky(int(288*alpha), (3,3), strides=(2,2), block_id_str='12'),
DarknetConv2D_BN_Leaky(int(288*alpha), (3,3), strides=(2,2)))(x2)
x1 = compose(
Concatenate(),
#Depthwise_Separable_Conv2D_BN_Leaky(filters=int(576*alpha), kernel_size=(3, 3), block_id_str='13'),
DarknetConv2D_BN_Leaky(int(576*alpha), (3,3)))([x2_downsample, x1])
#feature map 1 output (13 x 13 x (576*alpha) for 416 input)
y1 = DarknetConv2D(num_anchors*(num_classes+5), (1,1))(x1)
return Model(inputs, [y1,y2])
def tiny_yolo4lite_mobilenetv3small_body(inputs, num_anchors, num_classes, alpha=1.0, use_spp=True):
'''Create Tiny YOLO_v4 Lite MobileNetV3Small model CNN body in keras.'''
mobilenetv3small = MobileNetV3Small(input_tensor=inputs, weights='imagenet', include_top=False, alpha=alpha)
# input: 416 x 416 x 3
# activation_31(layer 165, final feature map): 13 x 13 x (576*alpha)
# expanded_conv_10/Add(layer 162, end of block10): 13 x 13 x (96*alpha)
# activation_22(layer 117, middle in block8) : 26 x 26 x (288*alpha)
# expanded_conv_7/Add(layer 114, end of block7) : 26 x 26 x (48*alpha)
# activation_7(layer 38, middle in block3) : 52 x 52 x (96*alpha)
# expanded_conv_2/Add(layer 35, end of block2): 52 x 52 x (24*alpha)
# f1 :13 x 13 x (576*alpha)
# NOTE: activation layer name may different for TF1.x/2.x, so we
# use index to fetch layer
f1 = mobilenetv3small.layers[165].output
# f2: 26 x 26 x (288*alpha) for 416 input
f2 = mobilenetv3small.layers[117].output
#feature map 1 head (13 x 13 x (288*alpha) for 416 input)
x1 = DarknetConv2D_BN_Leaky(int(288*alpha), (1,1))(f1)
if use_spp:
x1 = Spp_Conv2D_BN_Leaky(x1, int(288*alpha))
#upsample fpn merge for feature map 1 & 2
x1_upsample = compose(
DarknetConv2D_BN_Leaky(int(144*alpha), (1,1)),
UpSampling2D(2))(x1)
x2 = compose(
Concatenate(),
#DarknetConv2D_BN_Leaky(int(288*alpha), (3,3)),
Depthwise_Separable_Conv2D_BN_Leaky(filters=int(288*alpha), kernel_size=(3, 3), block_id_str='11'))([x1_upsample, f2])
#feature map 2 output (26 x 26 x (288*alpha) for 416 input)
y2 = DarknetConv2D(num_anchors*(num_classes+5), (1,1))(x2)
#downsample fpn merge for feature map 2 & 1
x2_downsample = compose(
ZeroPadding2D(((1,0),(1,0))),
#DarknetConv2D_BN_Leaky(int(288*alpha), (3,3), strides=(2,2)),
Darknet_Depthwise_Separable_Conv2D_BN_Leaky(int(288*alpha), (3,3), strides=(2,2), block_id_str='12'))(x2)
x1 = compose(
Concatenate(),
#DarknetConv2D_BN_Leaky(int(576*alpha), (3,3)),
Depthwise_Separable_Conv2D_BN_Leaky(filters=int(576*alpha), kernel_size=(3, 3), block_id_str='13'))([x2_downsample, x1])
#feature map 1 output (13 x 13 x (576*alpha) for 416 input)
y1 = DarknetConv2D(num_anchors*(num_classes+5), (1,1))(x1)
return Model(inputs, [y1,y2])
| 45.624561
| 294
| 0.651465
| 2,007
| 13,003
| 4.044843
| 0.070752
| 0.034491
| 0.036955
| 0.065164
| 0.948017
| 0.915496
| 0.892708
| 0.877926
| 0.851564
| 0.84442
| 0
| 0.121711
| 0.219642
| 13,003
| 284
| 295
| 45.785211
| 0.678329
| 0.395216
| 0
| 0.758065
| 0
| 0
| 0.009108
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.032258
| false
| 0
| 0.032258
| 0
| 0.096774
| 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
|
39a151a4e3a2532dde32251660231fc5adc57f9f
| 3,080
|
py
|
Python
|
test/connect/test_KafkaConnectionResolver.py
|
pip-services3-python/pip-services3-kafka-python
|
8c6df619af56c033de68b518004c93e45a335517
|
[
"MIT"
] | null | null | null |
test/connect/test_KafkaConnectionResolver.py
|
pip-services3-python/pip-services3-kafka-python
|
8c6df619af56c033de68b518004c93e45a335517
|
[
"MIT"
] | null | null | null |
test/connect/test_KafkaConnectionResolver.py
|
pip-services3-python/pip-services3-kafka-python
|
8c6df619af56c033de68b518004c93e45a335517
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from pip_services3_commons.config import ConfigParams
from pip_services3_kafka.connect.KafkaConnectionResolver import KafkaConnectionResolver
class TestKafkaConnectionResolver:
def test_single_connection(self):
resolver = KafkaConnectionResolver()
resolver.configure(ConfigParams.from_tuples(
"connection.protocol", "tcp",
"connection.host", "localhost",
"connection.port", 9092
))
connection = resolver.resolve(None)
assert 'localhost:9092' == connection.get_as_string('brokers')
assert connection.get_as_string("username") == ''
assert connection.get_as_string("password") == ''
assert connection.get_as_string("token") == ''
def test_cluster_connection(self):
resolver = KafkaConnectionResolver()
resolver.configure(ConfigParams.from_tuples(
"connections.0.protocol", "tcp",
"connections.0.host", "server1",
"connections.0.port", 9092,
"connections.1.protocol", "tcp",
"connections.1.host", "server2",
"connections.1.port", 9092,
"connections.2.protocol", "tcp",
"connections.2.host", "server3",
"connections.2.port", 9092,
))
connection = resolver.resolve(None)
assert connection.get_as_string("brokers") != ''
assert connection.get_as_string("username") == ''
assert connection.get_as_string("password") == ''
assert connection.get_as_string("token") == ''
def test_cluster_connection_with_auth(self):
resolver = KafkaConnectionResolver()
resolver.configure(ConfigParams.from_tuples(
"connections.0.protocol", "tcp",
"connections.0.host", "server1",
"connections.0.port", 9092,
"connections.1.protocol", "tcp",
"connections.1.host", "server2",
"connections.1.port", 9092,
"connections.2.protocol", "tcp",
"connections.2.host", "server3",
"connections.2.port", 9092,
"credential.mechanism", "plain",
"credential.username", "test",
"credential.password", "pass123",
))
connection = resolver.resolve(None)
assert connection.get_as_string("brokers") != ''
assert connection.get_as_string("username") == 'test'
assert connection.get_as_string("password") == 'pass123'
assert connection.get_as_string("mechanism") == 'plain'
def test_cluster_uri(self):
resolver = KafkaConnectionResolver()
resolver.configure(ConfigParams.from_tuples(
"connection.uri", "tcp://test:pass123@server1:9092,server2:9092,server3:9092?param=234",
))
connection = resolver.resolve(None)
assert connection.get_as_string("brokers") != ''
assert connection.get_as_string("username") == 'test'
assert connection.get_as_string("password") == 'pass123'
assert connection.get_as_string("mechanism") == ''
| 40
| 100
| 0.622078
| 292
| 3,080
| 6.390411
| 0.191781
| 0.111468
| 0.128617
| 0.180064
| 0.78671
| 0.78671
| 0.78671
| 0.763666
| 0.763666
| 0.668274
| 0
| 0.03823
| 0.244156
| 3,080
| 76
| 101
| 40.526316
| 0.763316
| 0.006818
| 0
| 0.734375
| 0
| 0.015625
| 0.256788
| 0.065097
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.0625
| false
| 0.09375
| 0.03125
| 0
| 0.109375
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
39dd7218a799d2c25f8428eb73d20dcc089b8dfc
| 49,572
|
py
|
Python
|
spio/api/page_access_group_components_api.py
|
bsneade/statuspageio-python
|
30526a2984251885381e781b12b5070d46063537
|
[
"Apache-2.0"
] | 2
|
2020-03-02T20:32:32.000Z
|
2020-05-20T16:54:58.000Z
|
spio/api/page_access_group_components_api.py
|
bsneade/statuspageio-python
|
30526a2984251885381e781b12b5070d46063537
|
[
"Apache-2.0"
] | null | null | null |
spio/api/page_access_group_components_api.py
|
bsneade/statuspageio-python
|
30526a2984251885381e781b12b5070d46063537
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
Statuspage API
# Code of Conduct Please don't abuse the API, and please report all feature requests and issues to https://help.statuspage.io/help/contact-us-30 # Rate Limiting Each API token is limited to 1 request / second as measured on a 60 second rolling window. To get this limit increased or lifted, please contact us at https://help.statuspage.io/help/contact-us-30 # Basics ## HTTPS It's required ## URL Prefix In order to maintain version integrity into the future, the API is versioned. All calls currently begin with the following prefix: https://api.statuspage.io/v1/ ## RESTful Interface Wherever possible, the API seeks to implement repeatable patterns with logical, representative URLs and descriptive HTTP verbs. Below are some examples and conventions you will see throughout the documentation. * Collections are buckets: https://api.statuspage.io/v1/pages/asdf123/incidents.json * Elements have unique IDs: https://api.statuspage.io/v1/pages/asdf123/incidents/jklm456.json * GET will retrieve information about a collection/element * POST will create an element in a collection * PATCH will update a single element * PUT will replace a single element in a collection (rarely used) * DELETE will destroy a single element ## Sending Data Information can be sent in the body as form urlencoded or JSON, but make sure the Content-Type header matches the body structure or the server gremlins will be angry. All examples are provided in JSON format, however they can easily be converted to form encoding if required. Some examples of how to convert things are below: // JSON { \"incident\": { \"name\": \"test incident\", \"components\": [\"8kbf7d35c070\", \"vtnh60py4yd7\"] } } // Form Encoded (using curl as an example): curl -X POST https://api.statuspage.io/v1/example \\ -d \"incident[name]=test incident\" \\ -d \"incident[components][]=8kbf7d35c070\" \\ -d \"incident[components][]=vtnh60py4yd7\" # Authentication <!-- ReDoc-Inject: <security-definitions> --> # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from spio.api_client import ApiClient
from spio.exceptions import (
ApiTypeError,
ApiValueError
)
class PageAccessGroupComponentsApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def delete_pages_page_id_page_access_groups_page_access_group_id_components(self, page_id, page_access_group_id, delete_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Delete components for a page access group # noqa: E501
Delete components for a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_pages_page_id_page_access_groups_page_access_group_id_components(page_id, page_access_group_id, delete_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param DeletePagesPageIdPageAccessGroupsPageAccessGroupIdComponents delete_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: PageAccessGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.delete_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, delete_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs) # noqa: E501
def delete_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(self, page_id, page_access_group_id, delete_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Delete components for a page access group # noqa: E501
Delete components for a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, delete_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param DeletePagesPageIdPageAccessGroupsPageAccessGroupIdComponents delete_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(PageAccessGroup, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['page_id', 'page_access_group_id', 'delete_pages_page_id_page_access_groups_page_access_group_id_components'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_pages_page_id_page_access_groups_page_access_group_id_components" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'page_id' is set
if self.api_client.client_side_validation and ('page_id' not in local_var_params or # noqa: E501
local_var_params['page_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_id` when calling `delete_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'page_access_group_id' is set
if self.api_client.client_side_validation and ('page_access_group_id' not in local_var_params or # noqa: E501
local_var_params['page_access_group_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_access_group_id` when calling `delete_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'delete_pages_page_id_page_access_groups_page_access_group_id_components' is set
if self.api_client.client_side_validation and ('delete_pages_page_id_page_access_groups_page_access_group_id_components' not in local_var_params or # noqa: E501
local_var_params['delete_pages_page_id_page_access_groups_page_access_group_id_components'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `delete_pages_page_id_page_access_groups_page_access_group_id_components` when calling `delete_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
collection_formats = {}
path_params = {}
if 'page_id' in local_var_params:
path_params['page_id'] = local_var_params['page_id'] # noqa: E501
if 'page_access_group_id' in local_var_params:
path_params['page_access_group_id'] = local_var_params['page_access_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'delete_pages_page_id_page_access_groups_page_access_group_id_components' in local_var_params:
body_params = local_var_params['delete_pages_page_id_page_access_groups_page_access_group_id_components']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
'/pages/{page_id}/page_access_groups/{page_access_group_id}/components', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageAccessGroup', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id(self, page_id, page_access_group_id, component_id, **kwargs): # noqa: E501
"""Remove a component from a page access group # noqa: E501
Remove a component from a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id(page_id, page_access_group_id, component_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param str component_id: Component identifier (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: PageAccessGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id_with_http_info(page_id, page_access_group_id, component_id, **kwargs) # noqa: E501
def delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id_with_http_info(self, page_id, page_access_group_id, component_id, **kwargs): # noqa: E501
"""Remove a component from a page access group # noqa: E501
Remove a component from a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id_with_http_info(page_id, page_access_group_id, component_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param str component_id: Component identifier (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(PageAccessGroup, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['page_id', 'page_access_group_id', 'component_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'page_id' is set
if self.api_client.client_side_validation and ('page_id' not in local_var_params or # noqa: E501
local_var_params['page_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_id` when calling `delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id`") # noqa: E501
# verify the required parameter 'page_access_group_id' is set
if self.api_client.client_side_validation and ('page_access_group_id' not in local_var_params or # noqa: E501
local_var_params['page_access_group_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_access_group_id` when calling `delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id`") # noqa: E501
# verify the required parameter 'component_id' is set
if self.api_client.client_side_validation and ('component_id' not in local_var_params or # noqa: E501
local_var_params['component_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `component_id` when calling `delete_pages_page_id_page_access_groups_page_access_group_id_components_component_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'page_id' in local_var_params:
path_params['page_id'] = local_var_params['page_id'] # noqa: E501
if 'page_access_group_id' in local_var_params:
path_params['page_access_group_id'] = local_var_params['page_access_group_id'] # noqa: E501
if 'component_id' in local_var_params:
path_params['component_id'] = local_var_params['component_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
'/pages/{page_id}/page_access_groups/{page_access_group_id}/components/{component_id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageAccessGroup', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_pages_page_id_page_access_groups_page_access_group_id_components(self, page_id, page_access_group_id, **kwargs): # noqa: E501
"""List components for a page access group # noqa: E501
List components for a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_pages_page_id_page_access_groups_page_access_group_id_components(page_id, page_access_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: list[Component]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, **kwargs) # noqa: E501
def get_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(self, page_id, page_access_group_id, **kwargs): # noqa: E501
"""List components for a page access group # noqa: E501
List components for a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(list[Component], status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['page_id', 'page_access_group_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_pages_page_id_page_access_groups_page_access_group_id_components" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'page_id' is set
if self.api_client.client_side_validation and ('page_id' not in local_var_params or # noqa: E501
local_var_params['page_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_id` when calling `get_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'page_access_group_id' is set
if self.api_client.client_side_validation and ('page_access_group_id' not in local_var_params or # noqa: E501
local_var_params['page_access_group_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_access_group_id` when calling `get_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
collection_formats = {}
path_params = {}
if 'page_id' in local_var_params:
path_params['page_id'] = local_var_params['page_id'] # noqa: E501
if 'page_access_group_id' in local_var_params:
path_params['page_access_group_id'] = local_var_params['page_access_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
'/pages/{page_id}/page_access_groups/{page_access_group_id}/components', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Component]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def patch_pages_page_id_page_access_groups_page_access_group_id_components(self, page_id, page_access_group_id, patch_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Add components to page access group # noqa: E501
Add components to page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_pages_page_id_page_access_groups_page_access_group_id_components(page_id, page_access_group_id, patch_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param PatchPagesPageIdPageAccessGroupsPageAccessGroupIdComponents patch_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: PageAccessGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.patch_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, patch_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs) # noqa: E501
def patch_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(self, page_id, page_access_group_id, patch_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Add components to page access group # noqa: E501
Add components to page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, patch_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param PatchPagesPageIdPageAccessGroupsPageAccessGroupIdComponents patch_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(PageAccessGroup, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['page_id', 'page_access_group_id', 'patch_pages_page_id_page_access_groups_page_access_group_id_components'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_pages_page_id_page_access_groups_page_access_group_id_components" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'page_id' is set
if self.api_client.client_side_validation and ('page_id' not in local_var_params or # noqa: E501
local_var_params['page_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_id` when calling `patch_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'page_access_group_id' is set
if self.api_client.client_side_validation and ('page_access_group_id' not in local_var_params or # noqa: E501
local_var_params['page_access_group_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_access_group_id` when calling `patch_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'patch_pages_page_id_page_access_groups_page_access_group_id_components' is set
if self.api_client.client_side_validation and ('patch_pages_page_id_page_access_groups_page_access_group_id_components' not in local_var_params or # noqa: E501
local_var_params['patch_pages_page_id_page_access_groups_page_access_group_id_components'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `patch_pages_page_id_page_access_groups_page_access_group_id_components` when calling `patch_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
collection_formats = {}
path_params = {}
if 'page_id' in local_var_params:
path_params['page_id'] = local_var_params['page_id'] # noqa: E501
if 'page_access_group_id' in local_var_params:
path_params['page_access_group_id'] = local_var_params['page_access_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'patch_pages_page_id_page_access_groups_page_access_group_id_components' in local_var_params:
body_params = local_var_params['patch_pages_page_id_page_access_groups_page_access_group_id_components']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
'/pages/{page_id}/page_access_groups/{page_access_group_id}/components', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageAccessGroup', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def post_pages_page_id_page_access_groups_page_access_group_id_components(self, page_id, page_access_group_id, post_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Replace components for a page access group # noqa: E501
Replace components for a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_pages_page_id_page_access_groups_page_access_group_id_components(page_id, page_access_group_id, post_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param PostPagesPageIdPageAccessGroupsPageAccessGroupIdComponents post_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: PageAccessGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.post_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, post_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs) # noqa: E501
def post_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(self, page_id, page_access_group_id, post_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Replace components for a page access group # noqa: E501
Replace components for a page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, post_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param PostPagesPageIdPageAccessGroupsPageAccessGroupIdComponents post_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(PageAccessGroup, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['page_id', 'page_access_group_id', 'post_pages_page_id_page_access_groups_page_access_group_id_components'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method post_pages_page_id_page_access_groups_page_access_group_id_components" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'page_id' is set
if self.api_client.client_side_validation and ('page_id' not in local_var_params or # noqa: E501
local_var_params['page_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_id` when calling `post_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'page_access_group_id' is set
if self.api_client.client_side_validation and ('page_access_group_id' not in local_var_params or # noqa: E501
local_var_params['page_access_group_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_access_group_id` when calling `post_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'post_pages_page_id_page_access_groups_page_access_group_id_components' is set
if self.api_client.client_side_validation and ('post_pages_page_id_page_access_groups_page_access_group_id_components' not in local_var_params or # noqa: E501
local_var_params['post_pages_page_id_page_access_groups_page_access_group_id_components'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `post_pages_page_id_page_access_groups_page_access_group_id_components` when calling `post_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
collection_formats = {}
path_params = {}
if 'page_id' in local_var_params:
path_params['page_id'] = local_var_params['page_id'] # noqa: E501
if 'page_access_group_id' in local_var_params:
path_params['page_access_group_id'] = local_var_params['page_access_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'post_pages_page_id_page_access_groups_page_access_group_id_components' in local_var_params:
body_params = local_var_params['post_pages_page_id_page_access_groups_page_access_group_id_components']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
'/pages/{page_id}/page_access_groups/{page_access_group_id}/components', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageAccessGroup', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def put_pages_page_id_page_access_groups_page_access_group_id_components(self, page_id, page_access_group_id, put_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Add components to page access group # noqa: E501
Add components to page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_pages_page_id_page_access_groups_page_access_group_id_components(page_id, page_access_group_id, put_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param PutPagesPageIdPageAccessGroupsPageAccessGroupIdComponents put_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: PageAccessGroup
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.put_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, put_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs) # noqa: E501
def put_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(self, page_id, page_access_group_id, put_pages_page_id_page_access_groups_page_access_group_id_components, **kwargs): # noqa: E501
"""Add components to page access group # noqa: E501
Add components to page access group # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_pages_page_id_page_access_groups_page_access_group_id_components_with_http_info(page_id, page_access_group_id, put_pages_page_id_page_access_groups_page_access_group_id_components, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str page_id: Page identifier (required)
:param str page_access_group_id: Page Access Group Identifier (required)
:param PutPagesPageIdPageAccessGroupsPageAccessGroupIdComponents put_pages_page_id_page_access_groups_page_access_group_id_components: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(PageAccessGroup, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['page_id', 'page_access_group_id', 'put_pages_page_id_page_access_groups_page_access_group_id_components'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method put_pages_page_id_page_access_groups_page_access_group_id_components" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'page_id' is set
if self.api_client.client_side_validation and ('page_id' not in local_var_params or # noqa: E501
local_var_params['page_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_id` when calling `put_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'page_access_group_id' is set
if self.api_client.client_side_validation and ('page_access_group_id' not in local_var_params or # noqa: E501
local_var_params['page_access_group_id'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `page_access_group_id` when calling `put_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
# verify the required parameter 'put_pages_page_id_page_access_groups_page_access_group_id_components' is set
if self.api_client.client_side_validation and ('put_pages_page_id_page_access_groups_page_access_group_id_components' not in local_var_params or # noqa: E501
local_var_params['put_pages_page_id_page_access_groups_page_access_group_id_components'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `put_pages_page_id_page_access_groups_page_access_group_id_components` when calling `put_pages_page_id_page_access_groups_page_access_group_id_components`") # noqa: E501
collection_formats = {}
path_params = {}
if 'page_id' in local_var_params:
path_params['page_id'] = local_var_params['page_id'] # noqa: E501
if 'page_access_group_id' in local_var_params:
path_params['page_access_group_id'] = local_var_params['page_access_group_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'put_pages_page_id_page_access_groups_page_access_group_id_components' in local_var_params:
body_params = local_var_params['put_pages_page_id_page_access_groups_page_access_group_id_components']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_key'] # noqa: E501
return self.api_client.call_api(
'/pages/{page_id}/page_access_groups/{page_access_group_id}/components', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageAccessGroup', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
| 62.749367
| 2,064
| 0.679678
| 6,232
| 49,572
| 5.000802
| 0.04862
| 0.114231
| 0.115996
| 0.111824
| 0.939483
| 0.936467
| 0.936467
| 0.935569
| 0.93021
| 0.929761
| 0
| 0.013512
| 0.256496
| 49,572
| 789
| 2,065
| 62.828897
| 0.832054
| 0.436476
| 0
| 0.744505
| 0
| 0
| 0.291012
| 0.168415
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035714
| false
| 0
| 0.013736
| 0
| 0.085165
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f2dab68be2d49275cf33a10633cc2dd55b5fd49a
| 306
|
py
|
Python
|
notebook/builtins_module.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 174
|
2018-05-30T21:14:50.000Z
|
2022-03-25T07:59:37.000Z
|
notebook/builtins_module.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 5
|
2019-08-10T03:22:02.000Z
|
2021-07-12T20:31:17.000Z
|
notebook/builtins_module.py
|
vhn0912/python-snippets
|
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
|
[
"MIT"
] | 53
|
2018-04-27T05:26:35.000Z
|
2022-03-25T07:59:37.000Z
|
import builtins
print(len('abc'))
# 3
print(builtins.len('abc'))
# 3
print(len)
# <built-in function len>
print(builtins.len)
# <built-in function len>
print(builtins.len is len)
# True
print(__builtins__.len('abc'))
# 3
print(__builtins__.len is len)
# True
print(__builtins__ is builtins)
# True
| 11.769231
| 31
| 0.702614
| 46
| 306
| 4.413043
| 0.23913
| 0.384236
| 0.394089
| 0.17734
| 0.837438
| 0.837438
| 0.64532
| 0.64532
| 0
| 0
| 0
| 0.01145
| 0.143791
| 306
| 25
| 32
| 12.24
| 0.763359
| 0.222222
| 0
| 0
| 0
| 0
| 0.039301
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.111111
| 0
| 0.111111
| 0.888889
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 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
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
842746ce914f43c6d8ec7a3e8445f6a4f67264f5
| 32,820
|
py
|
Python
|
test/TestBorderConditions.py
|
jgroehl/PokerGame
|
dedaf8f1fd664aefc11d4a23495df756cf287120
|
[
"BSD-3-Clause"
] | null | null | null |
test/TestBorderConditions.py
|
jgroehl/PokerGame
|
dedaf8f1fd664aefc11d4a23495df756cf287120
|
[
"BSD-3-Clause"
] | null | null | null |
test/TestBorderConditions.py
|
jgroehl/PokerGame
|
dedaf8f1fd664aefc11d4a23495df756cf287120
|
[
"BSD-3-Clause"
] | null | null | null |
import unittest
import numpy as np
from pokerlib.Evalutaor import evaluate_cards
from pokerlib.DecisionMaker import decide_on_victory
from pokerlib.domain import Card
# SUITS = {0:'hearts', 1:'diamonds', 2:'clubs', 3:'spades'}
# VALUES = {0: '2',
# 1: '3', 2: '4', 3: '5', 4: '6',
# 5: '7', 6: '8', 7: '9', 8: '10',
# 12: 'ace', 9: 'jack', 10: 'queen', 11: 'king'}
# ROYAL_FLUSH = 9
# STRAIGHT_FLUSH = 8
# FOUR_OF_A_KIND = 7
# FULL_HOUSE = 6
# FLUSH = 5
# STRAIGHT = 4
# THREE_OF_A_KIND = 3
# TWO_PAIR = 2
# PAIR = 1
# HIGH_CARD = 0
class TestBorderConditions(unittest.TestCase):
def testIndexErrorStraightFlush(self):
cards = [[Card(0, 3), Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(6, 0), Card(6, 2)],
[Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(5, 1), Card(6, 2), Card(8, 3)],
[Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(5, 2), Card(6, 2), Card(12, 0)],
[Card(0, 0), Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(6, 2), Card(7, 2)],
[Card(1, 3), Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(6, 2), Card(7, 1)],
[Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(6, 2), Card(7, 3), Card(10, 1)],
[Card(1, 2), Card(2, 1), Card(2, 2), Card(3, 2), Card(4, 2), Card(6, 2), Card(9, 1)],
[Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(6, 2), Card(11, 0), Card(12, 2)],
[Card(0, 2), Card(1, 2), Card(2, 2), Card(3, 2), Card(4, 2), Card(6, 2), Card(10, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 5, cards_eval[0])
self.assertEqual(cards_eval[1][0], 5, cards_eval[1])
self.assertEqual(cards_eval[2][0], 8, cards_eval[2])
self.assertEqual(cards_eval[3][0], 5, cards_eval[3])
self.assertEqual(cards_eval[4][0], 5, cards_eval[4])
self.assertEqual(cards_eval[5][0], 5, cards_eval[5])
self.assertEqual(cards_eval[6][0], 5, cards_eval[6])
self.assertEqual(cards_eval[7][0], 5, cards_eval[7])
self.assertEqual(cards_eval[8][0], 8, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 2)
assert (len(winning_indexes) == 1)
def testNoWinnerWithQuads(self):
cards = [[Card(4, 0), Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(6, 0), Card(9, 3)],
[Card(0, 2), Card(4, 1), Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(9, 3)],
[Card(1, 1), Card(2, 3), Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(9, 3)],
[Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(9, 2), Card(9, 0), Card(9, 3)],
[Card(0, 1), Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(9, 3), Card(11, 0)],
[Card(1, 2), Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(6, 2), Card(9, 3)],
[Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(6, 3), Card(9, 3), Card(12, 0)],
[Card(0, 0), Card(4, 2), Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(9, 3)],
[Card(5, 2), Card(5, 0), Card(5, 3), Card(5, 1), Card(6, 1), Card(9, 1), Card(9, 3)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 7, cards_eval[0])
self.assertEqual(cards_eval[1][0], 7, cards_eval[1])
self.assertEqual(cards_eval[2][0], 7, cards_eval[2])
self.assertEqual(cards_eval[3][0], 7, cards_eval[3])
self.assertEqual(cards_eval[4][0], 7, cards_eval[4])
self.assertEqual(cards_eval[5][0], 7, cards_eval[5])
self.assertEqual(cards_eval[6][0], 7, cards_eval[6])
self.assertEqual(cards_eval[7][0], 7, cards_eval[7])
self.assertEqual(cards_eval[8][0], 7, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 6)
assert (len(winning_indexes) == 1)
def testNoWinnerBecauseOfPairKickerBug(self):
cards = [[Card(0, 0), Card(2, 2), Card(3, 3), Card(8, 1), Card(9, 2), Card(9, 0), Card(11, 2)],
[Card(0, 0), Card(1, 0), Card(3, 3), Card(4, 1), Card(9, 2), Card(9, 0), Card(11, 2)],
[Card(0, 0), Card(3, 3), Card(5, 1), Card(9, 2), Card(9, 0), Card(11, 2), Card(12, 0)],
[Card(0, 0), Card(1, 1), Card(3, 3), Card(9, 2), Card(9, 0), Card(11, 2), Card(12, 2)],
[Card(0, 0), Card(3, 3), Card(6, 2), Card(9, 2), Card(9, 0), Card(10, 2), Card(11, 2)],
[Card(0, 0), Card(3, 3), Card(4, 2), Card(7, 3), Card(9, 2), Card(9, 0), Card(11, 2)],
[Card(0, 0), Card(3, 3), Card(6, 3), Card(8, 0), Card(9, 2), Card(9, 0), Card(11, 2)],
[Card(0, 0), Card(3, 3), Card(5, 2), Card(7, 0), Card(9, 2), Card(9, 0), Card(11, 2)],
[Card(0, 0), Card(3, 3), Card(5, 3), Card(9, 2), Card(9, 0), Card(11, 2), Card(12, 1)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 1, cards_eval[0])
self.assertEqual(cards_eval[1][0], 1, cards_eval[1])
self.assertEqual(cards_eval[2][0], 1, cards_eval[2])
self.assertEqual(cards_eval[3][0], 1, cards_eval[3])
self.assertEqual(cards_eval[4][0], 1, cards_eval[4])
self.assertEqual(cards_eval[5][0], 1, cards_eval[5])
self.assertEqual(cards_eval[6][0], 1, cards_eval[6])
self.assertEqual(cards_eval[7][0], 1, cards_eval[7])
self.assertEqual(cards_eval[8][0], 1, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 2)
assert (winning_indexes[1] == 8)
assert (len(winning_indexes) == 2)
def testNoWinnerBecauseOfKickerSelectionBug(self):
cards = [[Card(0, 3), Card(1, 2), Card(4, 3), Card(5, 0), Card(7, 3), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(1, 1), Card(4, 3), Card(7, 3), Card(9, 1), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(3, 2), Card(4, 3), Card(7, 3), Card(8, 1), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(4, 3), Card(6, 3), Card(7, 3), Card(8, 2), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(4, 3), Card(7, 3), Card(8, 3), Card(10, 1), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(4, 3), Card(5, 2), Card(7, 3), Card(10, 3), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(2, 2), Card(4, 3), Card(7, 3), Card(11, 1), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(4, 3), Card(7, 3), Card(8, 0), Card(9, 2), Card(12, 1), Card(12, 0)],
[Card(0, 3), Card(3, 1), Card(4, 3), Card(7, 3), Card(11, 2), Card(12, 1), Card(12, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 1, cards_eval[0])
self.assertEqual(cards_eval[1][0], 1, cards_eval[1])
self.assertEqual(cards_eval[2][0], 1, cards_eval[2])
self.assertEqual(cards_eval[3][0], 1, cards_eval[3])
self.assertEqual(cards_eval[4][0], 1, cards_eval[4])
self.assertEqual(cards_eval[5][0], 1, cards_eval[5])
self.assertEqual(cards_eval[6][0], 1, cards_eval[6])
self.assertEqual(cards_eval[7][0], 1, cards_eval[7])
self.assertEqual(cards_eval[8][0], 1, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 6)
assert (winning_indexes[1] == 8)
assert (len(winning_indexes) == 2)
def testIndexOutOfBoundsDueToIncorrectKickerHandling(self):
cards = [[Card(0, 2), Card(1, 1), Card(6, 2), Card(7, 0), Card(9, 1), Card(12, 1), Card(12, 3)],
[Card(0, 2), Card(1, 1), Card(2, 0), Card(7, 0), Card(9, 1), Card(11, 0), Card(12, 3)],
[Card(0, 2), Card(1, 1), Card(7, 0), Card(9, 1), Card(10, 1), Card(12, 0), Card(12, 3)],
[Card(0, 2), Card(1, 1), Card(2, 2), Card(4, 2), Card(7, 0), Card(9, 1), Card(12, 3)],
[Card(0, 2), Card(1, 1), Card(4, 3), Card(7, 0), Card(8, 1), Card(9, 1), Card(12, 3)],
[Card(0, 3), Card(0, 2), Card(1, 1), Card(7, 0), Card(8, 2), Card(9, 1), Card(12, 3)],
[Card(0, 2), Card(1, 1), Card(7, 0), Card(9, 1), Card(10, 2), Card(12, 2), Card(12, 3)],
[Card(0, 2), Card(1, 1), Card(2, 1), Card(6, 1), Card(7, 0), Card(9, 1), Card(12, 3)],
[Card(0, 2), Card(1, 1), Card(5, 2), Card(7, 0), Card(9, 0), Card(9, 1), Card(12, 3)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 1, cards_eval[0])
self.assertEqual(cards_eval[1][0], 0, cards_eval[1])
self.assertEqual(cards_eval[2][0], 1, cards_eval[2])
self.assertEqual(cards_eval[3][0], 0, cards_eval[3])
self.assertEqual(cards_eval[4][0], 0, cards_eval[4])
self.assertEqual(cards_eval[5][0], 1, cards_eval[5])
self.assertEqual(cards_eval[6][0], 1, cards_eval[6])
self.assertEqual(cards_eval[7][0], 0, cards_eval[7])
self.assertEqual(cards_eval[8][0], 1, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 2)
assert (winning_indexes[1] == 6)
assert (len(winning_indexes) == 2)
def testNoWinnerWithTwoPairs(self):
cards = [[Card(0, 3), Card(1, 1), Card(4, 0), Card(4, 2), Card(7, 1), Card(12, 1), Card(12, 3)],
[Card(1, 3), Card(1, 1), Card(4, 0), Card(4, 2), Card(7, 2), Card(7, 1), Card(12, 3)],
[Card(1, 1), Card(4, 0), Card(4, 2), Card(5, 0), Card(7, 1), Card(8, 3), Card(12, 3)],
[Card(1, 1), Card(2, 2), Card(4, 0), Card(4, 2), Card(7, 1), Card(9, 1), Card(12, 3)],
[Card(1, 1), Card(4, 0), Card(4, 2), Card(7, 1), Card(11, 2), Card(12, 0), Card(12, 3)],
[Card(1, 1), Card(4, 0), Card(4, 2), Card(6, 3), Card(7, 1), Card(9, 0), Card(12, 3)],
[Card(1, 1), Card(3, 1), Card(4, 0), Card(4, 2), Card(5, 2), Card(7, 1), Card(12, 3)],
[Card(1, 1), Card(4, 0), Card(4, 2), Card(7, 0), Card(7, 1), Card(8, 2), Card(12, 3)],
[Card(0, 1), Card(1, 1), Card(3, 2), Card(4, 0), Card(4, 2), Card(7, 1), Card(12, 3)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 2, cards_eval[0])
self.assertEqual(cards_eval[1][0], 2, cards_eval[1])
self.assertEqual(cards_eval[2][0], 1, cards_eval[2])
self.assertEqual(cards_eval[3][0], 1, cards_eval[3])
self.assertEqual(cards_eval[4][0], 2, cards_eval[4])
self.assertEqual(cards_eval[5][0], 1, cards_eval[5])
self.assertEqual(cards_eval[6][0], 1, cards_eval[6])
self.assertEqual(cards_eval[7][0], 2, cards_eval[7])
self.assertEqual(cards_eval[8][0], 1, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 4)
assert (len(winning_indexes) == 1)
def testIndexErrorThreeOfAKind(self):
cards = [[Card(1, 0), Card(4, 3), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(10, 1)],
[Card(3, 2), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(10, 1), Card(12, 0)],
[Card(1, 2), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(9, 2), Card(10, 1)],
[Card(4, 0), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(9, 3), Card(10, 1)],
[Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(8, 3), Card(10, 1), Card(12, 3)],
[Card(2, 2), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(10, 1), Card(11, 0)],
[Card(0, 1), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(10, 1), Card(11, 3)],
[Card(2, 3), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(10, 1), Card(11, 1)],
[Card(1, 3), Card(2, 0), Card(5, 2), Card(5, 1), Card(5, 0), Card(6, 0), Card(10, 1)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 3, cards_eval[0])
self.assertEqual(cards_eval[1][0], 3, cards_eval[1])
self.assertEqual(cards_eval[2][0], 3, cards_eval[2])
self.assertEqual(cards_eval[3][0], 3, cards_eval[3])
self.assertEqual(cards_eval[4][0], 3, cards_eval[4])
self.assertEqual(cards_eval[5][0], 3, cards_eval[5])
self.assertEqual(cards_eval[6][0], 3, cards_eval[6])
self.assertEqual(cards_eval[7][0], 3, cards_eval[7])
self.assertEqual(cards_eval[8][0], 3, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 1)
assert (winning_indexes[1] == 4)
assert (len(winning_indexes) == 2)
def testNoWinnerSinglePair9Handed(self):
cards = [[Card(0, 0), Card(5, 0), Card(6, 2), Card(7, 3), Card(9, 2), Card(10, 0), Card(11, 2)],
[Card(0, 1), Card(0, 0), Card(3, 0), Card(7, 3), Card(9, 2), Card(10, 0), Card(11, 2)],
[Card(0, 0), Card(6, 1), Card(7, 3), Card(9, 2), Card(10, 0), Card(11, 2), Card(12, 1)],
[Card(0, 0), Card(2, 2), Card(2, 3), Card(7, 3), Card(9, 2), Card(10, 0), Card(11, 2)],
[Card(0, 0), Card(4, 0), Card(4, 2), Card(7, 3), Card(9, 2), Card(10, 0), Card(11, 2)],
[Card(0, 0), Card(4, 1), Card(7, 3), Card(9, 1), Card(9, 2), Card(10, 0), Card(11, 2)],
[Card(0, 0), Card(5, 1), Card(7, 3), Card(9, 0), Card(9, 2), Card(10, 0), Card(11, 2)],
[Card(0, 3), Card(0, 0), Card(6, 3), Card(7, 3), Card(9, 2), Card(10, 0), Card(11, 2)],
[Card(0, 0), Card(1, 1), Card(7, 3), Card(9, 2), Card(10, 0), Card(11, 2), Card(12, 2)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 0, cards_eval[0])
self.assertEqual(cards_eval[1][0], 1, cards_eval[1])
self.assertEqual(cards_eval[2][0], 0, cards_eval[2])
self.assertEqual(cards_eval[3][0], 1, cards_eval[3])
self.assertEqual(cards_eval[4][0], 1, cards_eval[4])
self.assertEqual(cards_eval[5][0], 1, cards_eval[5])
self.assertEqual(cards_eval[6][0], 1, cards_eval[6])
self.assertEqual(cards_eval[7][0], 1, cards_eval[7])
self.assertEqual(cards_eval[8][0], 0, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 5)
assert (winning_indexes[1] == 6)
assert (len(winning_indexes) == 2)
def testNoWinnerInTwoPair9Handed(self):
cards = [[Card(0, 3), Card(4, 2), Card(6, 0), Card(9, 2), Card(9, 3), Card(10, 1), Card(10, 0)],
[Card(0, 3), Card(4, 2), Card(7, 0), Card(8, 3), Card(9, 2), Card(9, 3), Card(10, 0)],
[Card(0, 3), Card(4, 2), Card(7, 3), Card(9, 2), Card(9, 3), Card(10, 0), Card(12, 2)],
[Card(0, 3), Card(4, 2), Card(8, 1), Card(9, 2), Card(9, 3), Card(10, 0), Card(11, 2)],
[Card(0, 3), Card(4, 2), Card(8, 2), Card(9, 2), Card(9, 3), Card(10, 0), Card(12, 1)],
[Card(0, 3), Card(3, 3), Card(4, 2), Card(9, 2), Card(9, 3), Card(10, 3), Card(10, 0)],
[Card(0, 3), Card(1, 0), Card(4, 2), Card(9, 2), Card(9, 3), Card(10, 0), Card(12, 0)],
[Card(0, 3), Card(4, 2), Card(8, 0), Card(9, 2), Card(9, 3), Card(10, 2), Card(10, 0)],
[Card(0, 3), Card(3, 1), Card(3, 0), Card(4, 2), Card(9, 2), Card(9, 3), Card(10, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 2, cards_eval[0])
self.assertEqual(cards_eval[1][0], 1, cards_eval[1])
self.assertEqual(cards_eval[2][0], 1, cards_eval[2])
self.assertEqual(cards_eval[3][0], 1, cards_eval[3])
self.assertEqual(cards_eval[4][0], 1, cards_eval[4])
self.assertEqual(cards_eval[5][0], 2, cards_eval[5])
self.assertEqual(cards_eval[6][0], 1, cards_eval[6])
self.assertEqual(cards_eval[7][0], 2, cards_eval[7])
self.assertEqual(cards_eval[8][0], 2, cards_eval[8])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 7)
assert (len(winning_indexes) == 1)
def testManyPairsException(self):
cards = [[Card(5, 3), Card(5, 0), Card(8, 2), Card(8, 1), Card(9, 1), Card(10, 3), Card(10, 1)],
[Card(3, 0), Card(5, 1), Card(5, 0), Card(8, 2), Card(8, 1), Card(9, 1), Card(10, 1)],
[Card(5, 0), Card(8, 2), Card(8, 1), Card(9, 1), Card(10, 1), Card(11, 1), Card(12, 1)],
[Card(0, 2), Card(4, 1), Card(5, 0), Card(8, 2), Card(8, 1), Card(9, 1), Card(10, 1)],
[Card(1, 0), Card(5, 0), Card(8, 2), Card(8, 1), Card(9, 2), Card(9, 1), Card(10, 1)],
[Card(3, 1), Card(5, 0), Card(8, 2), Card(8, 1), Card(9, 1), Card(10, 0), Card(10, 1)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 2, cards_eval[0])
self.assertEqual(cards_eval[1][0], 2, cards_eval[1])
self.assertEqual(cards_eval[2][0], 9, cards_eval[2])
self.assertEqual(cards_eval[3][0], 1, cards_eval[3])
self.assertEqual(cards_eval[4][0], 2, cards_eval[4])
self.assertEqual(cards_eval[5][0], 2, cards_eval[5])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 2)
assert (len(winning_indexes) == 1)
def testNoFinalFlushStateException(self):
cards = [[Card(0, 2), Card(4, 3), Card(9, 1), Card(10, 2), Card(11, 2), Card(12, 1), Card(12, 2)],
[Card(0, 0), Card(0, 2), Card(3, 1), Card(4, 3), Card(10, 2), Card(11, 2), Card(12, 2)],
[Card(0, 2), Card(1, 0), Card(4, 3), Card(6, 3), Card(10, 2), Card(11, 2), Card(12, 2)],
[Card(0, 2), Card(3, 3), Card(4, 3), Card(5, 3), Card(10, 2), Card(11, 2), Card(12, 2)],
[Card(0, 2), Card(4, 3), Card(8, 3), Card(9, 2), Card(10, 2), Card(11, 2), Card(12, 2)],
[Card(0, 2), Card(3, 0), Card(4, 3), Card(10, 2), Card(11, 2), Card(12, 0), Card(12, 2)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 1, cards_eval[0])
self.assertEqual(cards_eval[1][0], 1, cards_eval[1])
self.assertEqual(cards_eval[2][0], 0, cards_eval[2])
self.assertEqual(cards_eval[3][0], 0, cards_eval[3])
self.assertEqual(cards_eval[4][0], 5, cards_eval[4])
self.assertEqual(cards_eval[5][0], 1, cards_eval[5])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 4)
assert (len(winning_indexes) == 1)
def testStraightIndexes(self):
cards = [[Card(2, 2), Card(6, 2), Card(7, 1), Card(8, 3), Card(9, 1), Card(10, 1), Card(12, 1)],
[Card(1, 1), Card(2, 3), Card(7, 1), Card(8, 3), Card(9, 1), Card(10, 1), Card(12, 1)],
[Card(0, 0), Card(6, 1), Card(7, 1), Card(8, 3), Card(9, 1), Card(10, 1), Card(12, 1)],
[Card(0, 2), Card(7, 1), Card(8, 3), Card(9, 1), Card(10, 1), Card(11, 1), Card(12, 1)],
[Card(2, 0), Card(7, 1), Card(8, 3), Card(9, 1), Card(10, 1), Card(11, 2), Card(12, 1)],
[Card(1, 3), Card(4, 3), Card(7, 1), Card(8, 3), Card(9, 1), Card(10, 1), Card(12, 1)]]
cards_eval = [evaluate_cards(card) for card in cards]
self.assertEqual(cards_eval[0][0], 4, cards_eval[0])
self.assertEqual(cards_eval[1][0], 5, cards_eval[1])
self.assertEqual(cards_eval[2][0], 5, cards_eval[2])
self.assertEqual(cards_eval[3][0], 5, cards_eval[3])
self.assertEqual(cards_eval[4][0], 4, cards_eval[4])
self.assertEqual(cards_eval[5][0], 0, cards_eval[5])
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 3)
assert (len(winning_indexes) == 1)
def testFlushEvaluation(self):
cards = [
[Card(1, 2), Card(3, 0), Card(7, 2), Card(8, 2), Card(9, 3), Card(10, 1), Card(11, 2)],
[Card(1, 2), Card(4, 1), Card(6, 1), Card(8, 2), Card(9, 3), Card(10, 1), Card(11, 2)],
[Card(1, 2), Card(6, 3), Card(8, 1), Card(8, 2), Card(9, 3), Card(10, 1), Card(11, 2)],
[Card(0, 0), Card(1, 2), Card(8, 2), Card(9, 3), Card(10, 1), Card(11, 2), Card(12, 0)],
[Card(0, 2), Card(1, 2), Card(8, 2), Card(9, 3), Card(10, 1), Card(11, 2), Card(12, 2)],
[Card(1, 2), Card(2, 3), Card(5, 0), Card(8, 2), Card(9, 3), Card(10, 1), Card(11, 2)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 4)
assert (cards_eval[1][0] == 0)
assert (cards_eval[2][0] == 1)
assert (cards_eval[3][0] == 4)
assert (cards_eval[4][0] == 5)
assert (cards_eval[5][0] == 0)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 4)
assert (len(winning_indexes) == 1)
def testFullHouseSetsIndexError(self):
cards = [[Card(2, 2), Card(2, 3), Card(3, 3), Card(5, 2), Card(7, 3), Card(10, 1), Card(10, 0)],
[Card(1, 2), Card(1, 3), Card(2, 2), Card(2, 3), Card(5, 2), Card(10, 1), Card(10, 0)],
[Card(1, 0), Card(2, 2), Card(2, 3), Card(5, 2), Card(9, 3), Card(10, 1), Card(10, 0)],
[Card(2, 1), Card(2, 2), Card(2, 3), Card(5, 2), Card(10, 3), Card(10, 1), Card(10, 0)],
[Card(2, 2), Card(2, 3), Card(5, 2), Card(10, 2), Card(10, 1), Card(10, 0), Card(12, 1)],
[Card(2, 2), Card(2, 3), Card(3, 1), Card(5, 2), Card(10, 1), Card(10, 0), Card(11, 1)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 2)
assert (cards_eval[1][0] == 2)
assert (cards_eval[2][0] == 2)
assert (cards_eval[3][0] == 6)
assert (cards_eval[4][0] == 6)
assert (cards_eval[5][0] == 2)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 3)
assert (winning_indexes[1] == 4)
assert (len(winning_indexes) == 2)
def testFullHousePairIndexError(self):
cards = [[Card(0, 2), Card(0, 3), Card(0, 1), Card(1, 2), Card(4, 3), Card(9, 2), Card(10, 3)],
[Card(0, 2), Card(0, 3), Card(0, 1), Card(1, 0), Card(1, 2), Card(9, 0), Card(9, 2)],
[Card(0, 2), Card(0, 3), Card(0, 1), Card(1, 2), Card(9, 1), Card(9, 2), Card(12, 0)],
[Card(0, 2), Card(0, 3), Card(0, 1), Card(1, 2), Card(5, 3), Card(6, 3), Card(9, 2)],
[Card(0, 2), Card(0, 3), Card(0, 1), Card(1, 2), Card(6, 1), Card(9, 2), Card(11, 0)],
[Card(0, 2), Card(0, 3), Card(0, 1), Card(1, 3), Card(1, 2), Card(5, 1), Card(9, 2)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 3)
assert (cards_eval[1][0] == 6)
assert (cards_eval[2][0] == 6)
assert (cards_eval[3][0] == 3)
assert (cards_eval[4][0] == 3)
assert (cards_eval[5][0] == 6)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 1)
assert (winning_indexes[1] == 2)
assert (len(winning_indexes) == 2)
def testTwoStraightsWithSameValueRange(self):
cards = [
[Card(3, 3), Card(5, 3), Card(6, 3), Card(8, 2), Card(10, 1), Card(11, 2), Card(12, 0)],
[Card(5, 3), Card(6, 2), Card(8, 2), Card(10, 1), Card(11, 2), Card(12, 1), Card(12, 0)],
[Card(0, 1), Card(5, 3), Card(7, 0), Card(8, 2), Card(10, 1), Card(11, 2), Card(12, 0)],
[Card(5, 2), Card(5, 3), Card(8, 2), Card(9, 3), Card(10, 1), Card(11, 2), Card(12, 0)],
[Card(2, 3), Card(5, 3), Card(8, 3), Card(8, 2), Card(10, 1), Card(11, 2), Card(12, 0)],
[Card(4, 2), Card(5, 3), Card(8, 2), Card(9, 2), Card(10, 1), Card(11, 2), Card(12, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 0)
assert (cards_eval[1][0] == 1)
assert (cards_eval[2][0] == 0)
assert (cards_eval[3][0] == 4)
assert (cards_eval[4][0] == 1)
assert (cards_eval[5][0] == 4)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 3)
assert (winning_indexes[1] == 5)
assert (len(winning_indexes) == 2)
def testNoWinnerAllPairs(self):
cards = [
[Card(3, 1), Card(4, 3), Card(6, 0), Card(7, 2), Card(10, 1), Card(12, 2), Card(12, 3)],
[Card(2, 2), Card(3, 1), Card(4, 1), Card(4, 3), Card(6, 0), Card(7, 2), Card(12, 3)],
[Card(1, 3), Card(3, 1), Card(4, 3), Card(6, 0), Card(7, 3), Card(7, 2), Card(12, 3)],
[Card(1, 0), Card(3, 1), Card(4, 2), Card(4, 3), Card(6, 0), Card(7, 2), Card(12, 3)],
[Card(3, 1), Card(4, 3), Card(6, 0), Card(7, 0), Card(7, 2), Card(9, 1), Card(12, 3)],
[Card(0, 0), Card(3, 1), Card(4, 3), Card(6, 0), Card(7, 2), Card(12, 1), Card(12, 3)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 1)
assert (cards_eval[1][0] == 1)
assert (cards_eval[2][0] == 1)
assert (cards_eval[3][0] == 1)
assert (cards_eval[4][0] == 1)
assert (cards_eval[5][0] == 1)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 0)
assert (len(winning_indexes) == 1)
def testStraightWithPair(self):
cards = [
[Card(3, 1), Card(5, 3), Card(6, 0), Card(7, 1), Card(8, 3), Card(8, 0), Card(9, 3)],
[Card(0, 0), Card(3, 1), Card(6, 1), Card(6, 0), Card(8, 3), Card(8, 0), Card(9, 3)],
[Card(3, 1), Card(6, 0), Card(8, 3), Card(8, 0), Card(9, 3), Card(10, 2), Card(12, 1)],
[Card(1, 2), Card(3, 1), Card(5, 3), Card(6, 0), Card(8, 3), Card(8, 0), Card(9, 3)],
[Card(3, 1), Card(4, 0), Card(6, 0), Card(8, 3), Card(8, 0), Card(9, 3), Card(11, 2)],
[Card(3, 1), Card(4, 2), Card(6, 3), Card(6, 0), Card(8, 3), Card(8, 0), Card(9, 3)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 4)
assert (cards_eval[1][0] == 2)
assert (cards_eval[2][0] == 1)
assert (cards_eval[3][0] == 1)
assert (cards_eval[4][0] == 1)
assert (cards_eval[5][0] == 2)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 0)
assert (len(winning_indexes) == 1)
def testFullHouseHigherPairLoses(self):
cards = [
[Card(0, 3), Card(12, 1), Card(3, 2), Card(5, 1), Card(5, 2), Card(5, 3), Card(12, 0)],
[Card(0, 3), Card(0, 1), Card(3, 2), Card(6, 1), Card(6, 2), Card(6, 3), Card(12, 0)],
[Card(0, 3), Card(0, 1), Card(3, 2), Card(6, 1), Card(6, 2), Card(6, 3), Card(12, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 6)
assert (cards_eval[1][0] == 6)
assert (cards_eval[2][0] == 6)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 1)
assert (winning_indexes[1] == 2)
assert (len(winning_indexes) == 2)
def testFullHouseHigherPair(self):
cards = [
[Card(0, 3), Card(12, 1), Card(3, 2), Card(6, 1), Card(6, 2), Card(6, 3), Card(12, 0)],
[Card(0, 3), Card(0, 1), Card(3, 2), Card(6, 1), Card(6, 2), Card(6, 3), Card(12, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 6)
assert (cards_eval[1][0] == 6)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 0)
assert (len(winning_indexes) == 1)
def testEqualFullHouse(self):
cards = [
[Card(0, 3), Card(0, 1), Card(3, 2), Card(6, 1), Card(6, 2), Card(6, 3), Card(12, 0)],
[Card(0, 3), Card(0, 1), Card(3, 2), Card(6, 1), Card(6, 2), Card(6, 3), Card(12, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 6)
assert (cards_eval[1][0] == 6)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 0)
assert (winning_indexes[1] == 1)
assert (len(winning_indexes) == 2)
def testCrashFullHouse(self):
cards = [
[Card(0, 3), Card(0, 1), Card(3, 2), Card(6, 2), Card(6, 3), Card(8, 1), Card(9, 2)],
[Card(0, 3), Card(0, 1), Card(2, 1), Card(3, 2), Card(6, 2), Card(6, 3), Card(11, 2)],
[Card(0, 3), Card(0, 1), Card(1, 0), Card(3, 2), Card(6, 2), Card(6, 3), Card(7, 0)],
[Card(0, 0), Card(0, 3), Card(0, 1), Card(3, 3), Card(3, 2), Card(6, 2), Card(6, 3)],
[Card(0, 3), Card(0, 1), Card(3, 2), Card(6, 1), Card(6, 2), Card(6, 3), Card(12, 0)],
[Card(0, 3), Card(0, 1), Card(3, 2), Card(4, 0), Card(6, 2), Card(6, 3), Card(12, 1)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 2)
assert (cards_eval[1][0] == 2)
assert (cards_eval[2][0] == 2)
assert (cards_eval[3][0] == 6)
assert (cards_eval[4][0] == 6)
assert (cards_eval[5][0] == 2)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 4)
assert (len(winning_indexes) == 1)
def testWrongTwoPairChosen(self):
cards = [
[Card(1, 3), Card(3, 1), Card(3, 0), Card(4, 3), Card(5, 1), Card(10, 1), Card(10, 3)],
[Card(1, 3), Card(2, 2), Card(3, 0), Card(4, 3), Card(7, 1), Card(10, 1), Card(10, 3)],
[Card(1, 3), Card(3, 0), Card(4, 3), Card(6, 2), Card(8, 3), Card(10, 1), Card(10, 3)],
[Card(1, 0), Card(1, 3), Card(3, 0), Card(4, 3), Card(7, 2), Card(10, 1), Card(10, 3)],
[Card(1, 3), Card(3, 0), Card(4, 3), Card(8, 1), Card(10, 1), Card(10, 3), Card(11, 3)],
[Card(1, 1), Card(1, 3), Card(3, 0), Card(4, 3), Card(9, 2), Card(10, 1), Card(10, 3)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert (cards_eval[0][0] == 2)
assert (cards_eval[1][0] == 1)
assert (cards_eval[2][0] == 1)
assert (cards_eval[3][0] == 2)
assert (cards_eval[4][0] == 1)
assert (cards_eval[5][0] == 2)
winning_indexes = decide_on_victory(cards_eval)
assert (winning_indexes[0] == 0)
assert (len(winning_indexes) == 1)
def testStraightFlushAceHigh(self):
cards = [
[Card(12, 1), Card(0, 1), Card(1, 1), Card(2, 1), Card(3, 1), Card(9, 1), Card(6, 1)],
[Card(0, 1), Card(2, 1), Card(3, 1), Card(1, 1), Card(11, 1), Card(4, 1), Card(7, 1)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert(cards_eval[0][0] == 8)
assert (cards_eval[1][0] == 8)
winning_indexes = decide_on_victory(cards_eval)
assert(winning_indexes[0] == 1)
assert (len(winning_indexes) == 1)
def testFlushException(self):
cards = [
[Card(0, 1), Card(0, 3), Card(1, 3), Card(2, 3), Card(3, 3), Card(5, 3), Card(6, 0)],
[Card(0, 3), Card(2, 3), Card(3, 2), Card(3, 3), Card(5, 3), Card(6, 2), Card(6, 0)],
[Card(0, 3), Card(2, 3), Card(3, 3), Card(5, 3), Card(6, 3), Card(6, 0), Card(12, 2)],
[Card(0, 3), Card(2, 3), Card(3, 3), Card(5, 3), Card(6, 0), Card(8, 1), Card(9, 1)],
[Card(0, 3), Card(2, 3), Card(3, 3), Card(4, 3), Card(5, 3), Card(6, 0), Card(11, 0)],
[Card(0, 0), Card(0, 3), Card(2, 3), Card(3, 3), Card(5, 3), Card(6, 0), Card(9, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
winning_indexes = decide_on_victory(cards_eval)
assert(winning_indexes[0] == 2)
assert (len(winning_indexes) == 1)
def testStraightAceHigh(self):
cards = [
[Card(12, 1), Card(0, 0), Card(1, 1), Card(2, 3), Card(3, 3), Card(9, 3), Card(6, 0)],
[Card(0, 3), Card(2, 3), Card(3, 2), Card(1, 0), Card(11, 3), Card(4, 2), Card(7, 0)]]
cards_eval = [evaluate_cards(card) for card in cards]
assert(cards_eval[0][0] == 4)
assert (cards_eval[1][0] == 4)
winning_indexes = decide_on_victory(cards_eval)
assert(winning_indexes[0] == 1)
assert (len(winning_indexes) == 1)
| 62.395437
| 106
| 0.522334
| 5,713
| 32,820
| 2.915106
| 0.015929
| 0.100276
| 0.11889
| 0.142668
| 0.931308
| 0.912874
| 0.892759
| 0.853008
| 0.806773
| 0.742104
| 0
| 0.133685
| 0.255393
| 32,820
| 525
| 107
| 62.514286
| 0.547794
| 0.011121
| 0
| 0.489583
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.458333
| 1
| 0.054167
| false
| 0
| 0.010417
| 0
| 0.066667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ffdb944806d81e1a4d07e76dbcc134bf3570cd0e
| 2,892
|
py
|
Python
|
tests/test_vector.py
|
pompiduskus/pybox2d
|
4393bc93df4828267d2143327abd76de6f146750
|
[
"Zlib"
] | null | null | null |
tests/test_vector.py
|
pompiduskus/pybox2d
|
4393bc93df4828267d2143327abd76de6f146750
|
[
"Zlib"
] | null | null | null |
tests/test_vector.py
|
pompiduskus/pybox2d
|
4393bc93df4828267d2143327abd76de6f146750
|
[
"Zlib"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from Box2D import b2Vec2, b2Vec3
class testVector (unittest.TestCase):
def test_vector(self):
x, y, z = 1.0, 2.0, 3.0
v2 = b2Vec2(x, y)
v3 = b2Vec3(x, y, z)
v = b2Vec2(x, y)
v += (0,0)
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
v -= (0,0)
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
v /= 1
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
v *= 1
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
v = v2 + v2
self.assertAlmostEquals(v.x, x*2)
self.assertAlmostEquals(v.y, y*2)
v = v2 - v2
self.assertAlmostEquals(v.x, 0)
self.assertAlmostEquals(v.y, 0)
v = v2 / 2.0
self.assertAlmostEquals(v.x, x/2)
self.assertAlmostEquals(v.y, y/2)
v = v2 * 2.0
self.assertAlmostEquals(v.x, x*2)
self.assertAlmostEquals(v.y, y*2)
v = 0.5 * v2
self.assertAlmostEquals(v.x, x*0.5)
self.assertAlmostEquals(v.y, y*0.5)
v = 2.0 * v2
self.assertAlmostEquals(v.x, x*2)
self.assertAlmostEquals(v.y, y*2)
v = v3 + v3
self.assertAlmostEquals(v.x, x*2)
self.assertAlmostEquals(v.y, y*2)
self.assertAlmostEquals(v.z, z*2)
v = v3 - v3
self.assertAlmostEquals(v.x, 0)
self.assertAlmostEquals(v.y, 0)
self.assertAlmostEquals(v.z, 0)
v = v3 / 2.0
self.assertAlmostEquals(v.x, x/2)
self.assertAlmostEquals(v.y, y/2)
self.assertAlmostEquals(v.z, z/2)
v = v3 * 2.0
self.assertAlmostEquals(v.x, x*2)
self.assertAlmostEquals(v.y, y*2)
self.assertAlmostEquals(v.z, z*2)
v = 0.5 * v3
self.assertAlmostEquals(v.x, x*0.5)
self.assertAlmostEquals(v.y, y*0.5)
self.assertAlmostEquals(v.z, z*0.5)
v = 2.0 * v3
self.assertAlmostEquals(v.x, x*2)
self.assertAlmostEquals(v.y, y*2)
self.assertAlmostEquals(v.z, z*2)
v = b2Vec3(x, y, z)
v += (0,0,0)
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
self.assertAlmostEquals(v.z, z)
v -= (0,0,0)
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
self.assertAlmostEquals(v.z, z)
v /= 1
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
self.assertAlmostEquals(v.z, z)
v *= 1
self.assertAlmostEquals(v.x, x)
self.assertAlmostEquals(v.y, y)
self.assertAlmostEquals(v.z, z)
if __name__ == '__main__':
unittest.main()
| 31.78022
| 44
| 0.538036
| 400
| 2,892
| 3.8675
| 0.0875
| 0.711054
| 0.743374
| 0.310278
| 0.875242
| 0.842275
| 0.83969
| 0.837104
| 0.834518
| 0.834518
| 0
| 0.052712
| 0.324343
| 2,892
| 90
| 45
| 32.133333
| 0.738997
| 0.014523
| 0
| 0.62963
| 0
| 0
| 0.002903
| 0
| 0
| 0
| 0
| 0
| 0.617284
| 1
| 0.012346
| false
| 0
| 0.024691
| 0
| 0.049383
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
082506ce5e0357c3834f812608400faf8e96c335
| 88,385
|
py
|
Python
|
rapid7vmconsole/api/scan_engine_api.py
|
kiblik/vm-console-client-python
|
038f6d33e8b2654a558326c6eb87f09ee23e0e22
|
[
"MIT"
] | 61
|
2018-05-17T05:57:09.000Z
|
2022-03-08T13:59:21.000Z
|
rapid7vmconsole/api/scan_engine_api.py
|
kiblik/vm-console-client-python
|
038f6d33e8b2654a558326c6eb87f09ee23e0e22
|
[
"MIT"
] | 33
|
2018-06-26T16:21:14.000Z
|
2022-03-03T20:55:47.000Z
|
rapid7vmconsole/api/scan_engine_api.py
|
kiblik/vm-console-client-python
|
038f6d33e8b2654a558326c6eb87f09ee23e0e22
|
[
"MIT"
] | 43
|
2018-02-24T05:45:53.000Z
|
2022-03-31T22:15:16.000Z
|
# coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from rapid7vmconsole.api_client import ApiClient
class ScanEngineApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def add_scan_engine_pool_scan_engine(self, id, engine_id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Add an engine to the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.add_scan_engine_pool_scan_engine(id, engine_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param int engine_id: The identifier of the scan engine. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.add_scan_engine_pool_scan_engine_with_http_info(id, engine_id, **kwargs) # noqa: E501
else:
(data) = self.add_scan_engine_pool_scan_engine_with_http_info(id, engine_id, **kwargs) # noqa: E501
return data
def add_scan_engine_pool_scan_engine_with_http_info(self, id, engine_id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Add an engine to the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.add_scan_engine_pool_scan_engine_with_http_info(id, engine_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param int engine_id: The identifier of the scan engine. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'engine_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method add_scan_engine_pool_scan_engine" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `add_scan_engine_pool_scan_engine`") # noqa: E501
# verify the required parameter 'engine_id' is set
if ('engine_id' not in params or
params['engine_id'] is None):
raise ValueError("Missing the required parameter `engine_id` when calling `add_scan_engine_pool_scan_engine`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
if 'engine_id' in params:
path_params['engineId'] = params['engine_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}/engines/{engineId}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def create_scan_engine(self, **kwargs): # noqa: E501
"""Scan Engines # noqa: E501
Creates a new scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_scan_engine(async_req=True)
>>> result = thread.get()
:param async_req bool
:param ScanEngine scan_engine: The specification of a scan engine.
:return: ReferenceWithEngineIDLink
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_scan_engine_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_scan_engine_with_http_info(**kwargs) # noqa: E501
return data
def create_scan_engine_with_http_info(self, **kwargs): # noqa: E501
"""Scan Engines # noqa: E501
Creates a new scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_scan_engine_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param ScanEngine scan_engine: The specification of a scan engine.
:return: ReferenceWithEngineIDLink
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['scan_engine'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_scan_engine" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'scan_engine' in params:
body_params = params['scan_engine']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ReferenceWithEngineIDLink', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def create_scan_engine_pool(self, **kwargs): # noqa: E501
"""Engine Pools # noqa: E501
Creates a new engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_scan_engine_pool(async_req=True)
>>> result = thread.get()
:param async_req bool
:param EnginePool engine_pool: The details for the scan engine to update.
:return: CreatedReferenceEngineIDLink
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_scan_engine_pool_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_scan_engine_pool_with_http_info(**kwargs) # noqa: E501
return data
def create_scan_engine_pool_with_http_info(self, **kwargs): # noqa: E501
"""Engine Pools # noqa: E501
Creates a new engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_scan_engine_pool_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param EnginePool engine_pool: The details for the scan engine to update.
:return: CreatedReferenceEngineIDLink
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['engine_pool'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_scan_engine_pool" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'engine_pool' in params:
body_params = params['engine_pool']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CreatedReferenceEngineIDLink', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def create_shared_secret(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret # noqa: E501
Returns the current valid shared secret or generates a new shared secret. The endpoint returns an existing shared secret if one was previously generated and it has not yet expired. Conversely, the endpoint will generate and return a new shared secret for either of the following conditions: a shared secret was not previously generated or the previously-generated shared secret has expired. The shared secret is valid for 60 minutes from the moment it is generated. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_shared_secret(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_shared_secret_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_shared_secret_with_http_info(**kwargs) # noqa: E501
return data
def create_shared_secret_with_http_info(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret # noqa: E501
Returns the current valid shared secret or generates a new shared secret. The endpoint returns an existing shared secret if one was previously generated and it has not yet expired. Conversely, the endpoint will generate and return a new shared secret for either of the following conditions: a shared secret was not previously generated or the previously-generated shared secret has expired. The shared secret is valid for 60 minutes from the moment it is generated. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_shared_secret_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_shared_secret" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['text/plain']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/shared_secret', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_scan_engine(self, id, **kwargs): # noqa: E501
"""Scan Engine # noqa: E501
Deletes the specified scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_scan_engine(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_scan_engine_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_scan_engine_with_http_info(id, **kwargs) # noqa: E501
return data
def delete_scan_engine_with_http_info(self, id, **kwargs): # noqa: E501
"""Scan Engine # noqa: E501
Deletes the specified scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_scan_engine_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_scan_engine" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `delete_scan_engine`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/{id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_shared_secret(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret # noqa: E501
Revokes the current valid shared secret, if one exists. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_shared_secret(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_shared_secret_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.delete_shared_secret_with_http_info(**kwargs) # noqa: E501
return data
def delete_shared_secret_with_http_info(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret # noqa: E501
Revokes the current valid shared secret, if one exists. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_shared_secret_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_shared_secret" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/shared_secret', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_assigned_engine_pools(self, id, **kwargs): # noqa: E501
"""Assigned Engine Pools # noqa: E501
Retrieves the list of engine pools the scan engine is currently assigned to. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_assigned_engine_pools(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:return: ResourcesEnginePool
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_assigned_engine_pools_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_assigned_engine_pools_with_http_info(id, **kwargs) # noqa: E501
return data
def get_assigned_engine_pools_with_http_info(self, id, **kwargs): # noqa: E501
"""Assigned Engine Pools # noqa: E501
Retrieves the list of engine pools the scan engine is currently assigned to. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_assigned_engine_pools_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:return: ResourcesEnginePool
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_assigned_engine_pools" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_assigned_engine_pools`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/{id}/scan_engine_pools', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ResourcesEnginePool', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_current_shared_secret(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret # noqa: E501
Returns the current valid shared secret, if one has been previously generated and it has not yet expired; otherwise the endpoint will respond with a 404 status code. Use this endpoint to detect whether a previously-generated shared secret is still valid. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_current_shared_secret(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_current_shared_secret_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_current_shared_secret_with_http_info(**kwargs) # noqa: E501
return data
def get_current_shared_secret_with_http_info(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret # noqa: E501
Returns the current valid shared secret, if one has been previously generated and it has not yet expired; otherwise the endpoint will respond with a 404 status code. Use this endpoint to detect whether a previously-generated shared secret is still valid. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_current_shared_secret_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_current_shared_secret" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['text/plain']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/shared_secret', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_current_shared_secret_time_to_live(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret Time to live # noqa: E501
Returns the number of seconds remaining for the current shared secret before it expires, if one has been previously generated and it has not yet expired; otherwise the endpoint will respond with a 404 status code. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_current_shared_secret_time_to_live(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: int
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_current_shared_secret_time_to_live_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_current_shared_secret_time_to_live_with_http_info(**kwargs) # noqa: E501
return data
def get_current_shared_secret_time_to_live_with_http_info(self, **kwargs): # noqa: E501
"""Scan Engine Shared Secret Time to live # noqa: E501
Returns the number of seconds remaining for the current shared secret before it expires, if one has been previously generated and it has not yet expired; otherwise the endpoint will respond with a 404 status code. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_current_shared_secret_time_to_live_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: int
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_current_shared_secret_time_to_live" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/shared_secret/time_to_live', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='int', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_engine_pool(self, id, **kwargs): # noqa: E501
"""Engine Pool # noqa: E501
Retrieves the details for an engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_engine_pool(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: EnginePool
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_engine_pool_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_engine_pool_with_http_info(id, **kwargs) # noqa: E501
return data
def get_engine_pool_with_http_info(self, id, **kwargs): # noqa: E501
"""Engine Pool # noqa: E501
Retrieves the details for an engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_engine_pool_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: EnginePool
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_engine_pool" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_engine_pool`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EnginePool', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_scan_engine(self, id, **kwargs): # noqa: E501
"""Scan Engine # noqa: E501
Retrieves the details for a scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:return: ScanEngine
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_scan_engine_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_scan_engine_with_http_info(id, **kwargs) # noqa: E501
return data
def get_scan_engine_with_http_info(self, id, **kwargs): # noqa: E501
"""Scan Engine # noqa: E501
Retrieves the details for a scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:return: ScanEngine
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_scan_engine" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_scan_engine`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ScanEngine', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_scan_engine_pool_scan_engines(self, id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Get the engines in the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_pool_scan_engines(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: ReferencesWithEngineIDLink
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_scan_engine_pool_scan_engines_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_scan_engine_pool_scan_engines_with_http_info(id, **kwargs) # noqa: E501
return data
def get_scan_engine_pool_scan_engines_with_http_info(self, id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Get the engines in the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_pool_scan_engines_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: ReferencesWithEngineIDLink
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_scan_engine_pool_scan_engines" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_scan_engine_pool_scan_engines`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}/engines', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ReferencesWithEngineIDLink', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_scan_engine_pool_sites(self, id, **kwargs): # noqa: E501
"""Engine Pool Sites # noqa: E501
Returns links to the sites associated with this engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_pool_sites(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: ReferencesWithSiteIDLink
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_scan_engine_pool_sites_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_scan_engine_pool_sites_with_http_info(id, **kwargs) # noqa: E501
return data
def get_scan_engine_pool_sites_with_http_info(self, id, **kwargs): # noqa: E501
"""Engine Pool Sites # noqa: E501
Returns links to the sites associated with this engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_pool_sites_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: ReferencesWithSiteIDLink
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_scan_engine_pool_sites" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_scan_engine_pool_sites`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}/sites', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ReferencesWithSiteIDLink', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_scan_engine_pools(self, **kwargs): # noqa: E501
"""Engine Pools # noqa: E501
Returns engine pools available to use for scanning. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_pools(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ResourcesEnginePool
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_scan_engine_pools_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_scan_engine_pools_with_http_info(**kwargs) # noqa: E501
return data
def get_scan_engine_pools_with_http_info(self, **kwargs): # noqa: E501
"""Engine Pools # noqa: E501
Returns engine pools available to use for scanning. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_pools_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ResourcesEnginePool
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_scan_engine_pools" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ResourcesEnginePool', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_scan_engine_scans(self, id, **kwargs): # noqa: E501
"""Scan Engine Scans # noqa: E501
Returns the scans that have been run on a scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_scans(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:param int page: The index of the page (zero-based) to retrieve.
:param int size: The number of records per page to retrieve.
:param list[str] sort: The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.
:return: PageOfScan
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_scan_engine_scans_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_scan_engine_scans_with_http_info(id, **kwargs) # noqa: E501
return data
def get_scan_engine_scans_with_http_info(self, id, **kwargs): # noqa: E501
"""Scan Engine Scans # noqa: E501
Returns the scans that have been run on a scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_scans_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:param int page: The index of the page (zero-based) to retrieve.
:param int size: The number of records per page to retrieve.
:param list[str] sort: The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.
:return: PageOfScan
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'page', 'size', 'sort'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_scan_engine_scans" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_scan_engine_scans`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'size' in params:
query_params.append(('size', params['size'])) # noqa: E501
if 'sort' in params:
query_params.append(('sort', params['sort'])) # noqa: E501
collection_formats['sort'] = 'multi' # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/{id}/scans', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageOfScan', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_scan_engine_sites(self, id, **kwargs): # noqa: E501
"""Scan Engine Sites # noqa: E501
Retrieves the list of sites the specified scan engine is assigned to. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_sites(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:param int page: The index of the page (zero-based) to retrieve.
:param int size: The number of records per page to retrieve.
:param list[str] sort: The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.
:return: PageOfSite
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_scan_engine_sites_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_scan_engine_sites_with_http_info(id, **kwargs) # noqa: E501
return data
def get_scan_engine_sites_with_http_info(self, id, **kwargs): # noqa: E501
"""Scan Engine Sites # noqa: E501
Retrieves the list of sites the specified scan engine is assigned to. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engine_sites_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:param int page: The index of the page (zero-based) to retrieve.
:param int size: The number of records per page to retrieve.
:param list[str] sort: The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.
:return: PageOfSite
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'page', 'size', 'sort'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_scan_engine_sites" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_scan_engine_sites`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'size' in params:
query_params.append(('size', params['size'])) # noqa: E501
if 'sort' in params:
query_params.append(('sort', params['sort'])) # noqa: E501
collection_formats['sort'] = 'multi' # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/{id}/sites', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PageOfSite', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_scan_engines(self, **kwargs): # noqa: E501
"""Scan Engines # noqa: E501
Returns scan engines available to use for scanning. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engines(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ResourcesScanEngine
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_scan_engines_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_scan_engines_with_http_info(**kwargs) # noqa: E501
return data
def get_scan_engines_with_http_info(self, **kwargs): # noqa: E501
"""Scan Engines # noqa: E501
Returns scan engines available to use for scanning. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_scan_engines_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ResourcesScanEngine
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_scan_engines" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ResourcesScanEngine', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def remove_scan_engine_pool(self, id, **kwargs): # noqa: E501
"""Engine Pool # noqa: E501
Deletes the specified engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remove_scan_engine_pool(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.remove_scan_engine_pool_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.remove_scan_engine_pool_with_http_info(id, **kwargs) # noqa: E501
return data
def remove_scan_engine_pool_with_http_info(self, id, **kwargs): # noqa: E501
"""Engine Pool # noqa: E501
Deletes the specified engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remove_scan_engine_pool_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method remove_scan_engine_pool" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `remove_scan_engine_pool`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def remove_scan_engine_pool_scan_engine(self, id, engine_id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Remove the specified engine from the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remove_scan_engine_pool_scan_engine(id, engine_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param int engine_id: The identifier of the scan engine. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.remove_scan_engine_pool_scan_engine_with_http_info(id, engine_id, **kwargs) # noqa: E501
else:
(data) = self.remove_scan_engine_pool_scan_engine_with_http_info(id, engine_id, **kwargs) # noqa: E501
return data
def remove_scan_engine_pool_scan_engine_with_http_info(self, id, engine_id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Remove the specified engine from the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.remove_scan_engine_pool_scan_engine_with_http_info(id, engine_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param int engine_id: The identifier of the scan engine. (required)
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'engine_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method remove_scan_engine_pool_scan_engine" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `remove_scan_engine_pool_scan_engine`") # noqa: E501
# verify the required parameter 'engine_id' is set
if ('engine_id' not in params or
params['engine_id'] is None):
raise ValueError("Missing the required parameter `engine_id` when calling `remove_scan_engine_pool_scan_engine`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
if 'engine_id' in params:
path_params['engineId'] = params['engine_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}/engines/{engineId}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def set_scan_engine_pool_scan_engines(self, id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Set the engines in the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.set_scan_engine_pool_scan_engines(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param list[int] engines: The identifiers of the scan engines to place into the engine pool.
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.set_scan_engine_pool_scan_engines_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.set_scan_engine_pool_scan_engines_with_http_info(id, **kwargs) # noqa: E501
return data
def set_scan_engine_pool_scan_engines_with_http_info(self, id, **kwargs): # noqa: E501
"""Engine Pool Engines # noqa: E501
Set the engines in the engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.set_scan_engine_pool_scan_engines_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param list[int] engines: The identifiers of the scan engines to place into the engine pool.
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'engines'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method set_scan_engine_pool_scan_engines" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `set_scan_engine_pool_scan_engines`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'engines' in params:
body_params = params['engines']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}/engines', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_scan_engine(self, id, **kwargs): # noqa: E501
"""Scan Engine # noqa: E501
Updates the specified scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_scan_engine(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:param ScanEngine scan_engine: The specification of the scan engine to update.
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_scan_engine_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_scan_engine_with_http_info(id, **kwargs) # noqa: E501
return data
def update_scan_engine_with_http_info(self, id, **kwargs): # noqa: E501
"""Scan Engine # noqa: E501
Updates the specified scan engine. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_scan_engine_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the scan engine. (required)
:param ScanEngine scan_engine: The specification of the scan engine to update.
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'scan_engine'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_scan_engine" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `update_scan_engine`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'scan_engine' in params:
body_params = params['scan_engine']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engines/{id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_scan_engine_pool(self, id, **kwargs): # noqa: E501
"""Engine Pool # noqa: E501
Updates the specified engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_scan_engine_pool(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param EnginePool engine_pool: The details for the scan engine to update.
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_scan_engine_pool_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.update_scan_engine_pool_with_http_info(id, **kwargs) # noqa: E501
return data
def update_scan_engine_pool_with_http_info(self, id, **kwargs): # noqa: E501
"""Engine Pool # noqa: E501
Updates the specified engine pool. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_scan_engine_pool_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: The identifier of the engine pool. (required)
:param EnginePool engine_pool: The details for the scan engine to update.
:return: Links
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'engine_pool'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_scan_engine_pool" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `update_scan_engine_pool`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'engine_pool' in params:
body_params = params['engine_pool']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json;charset=UTF-8']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/api/3/scan_engine_pools/{id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Links', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 40.011317
| 487
| 0.610409
| 10,488
| 88,385
| 4.892449
| 0.024504
| 0.054256
| 0.02401
| 0.03087
| 0.987625
| 0.985851
| 0.985345
| 0.982616
| 0.982187
| 0.98131
| 0
| 0.017967
| 0.300402
| 88,385
| 2,208
| 488
| 40.029438
| 0.811867
| 0.345194
| 0
| 0.835432
| 1
| 0
| 0.178477
| 0.066751
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037783
| false
| 0
| 0.003359
| 0
| 0.097397
| 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
|
08398fc906b587377e3a927be544fe75c552f31e
| 370
|
py
|
Python
|
pymako/__init__.py
|
Clivern/Mako
|
a3048b8064624849e0150a521940531b40cf265a
|
[
"MIT"
] | 2
|
2019-05-04T11:21:35.000Z
|
2020-06-30T12:47:20.000Z
|
pymako/__init__.py
|
silverbackhq/pymako
|
a3048b8064624849e0150a521940531b40cf265a
|
[
"MIT"
] | 3
|
2019-05-03T18:55:28.000Z
|
2019-05-03T20:09:49.000Z
|
pymako/__init__.py
|
Clivern/PyMako
|
a3048b8064624849e0150a521940531b40cf265a
|
[
"MIT"
] | null | null | null |
from .client import Client # noqa: F401 F403
from .catalog import Catalog # noqa: F401 F403
from .exceptions import ConsulApiException # noqa: F401 F403
from .kv import KV # noqa: F401 F403
from .status import Status # noqa: F401 F403
| 61.666667
| 73
| 0.486486
| 35
| 370
| 5.142857
| 0.314286
| 0.222222
| 0.333333
| 0.355556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 0.472973
| 370
| 5
| 74
| 74
| 0.769231
| 0.213514
| 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
|
f25d7678dd47c5bfb73767e80737b5bc61ba6a76
| 14,104
|
py
|
Python
|
spinnaker_swagger_client/api/artifact_controller_api.py
|
coveooss/spinnaker_python_client
|
6f5ae436798cb4985ada65cd8169fcc9494d048f
|
[
"Apache-2.0"
] | null | null | null |
spinnaker_swagger_client/api/artifact_controller_api.py
|
coveooss/spinnaker_python_client
|
6f5ae436798cb4985ada65cd8169fcc9494d048f
|
[
"Apache-2.0"
] | null | null | null |
spinnaker_swagger_client/api/artifact_controller_api.py
|
coveooss/spinnaker_python_client
|
6f5ae436798cb4985ada65cd8169fcc9494d048f
|
[
"Apache-2.0"
] | 2
|
2019-10-17T07:49:21.000Z
|
2021-08-10T23:12:41.000Z
|
# coding: utf-8
"""
Spinnaker API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from spinnaker_swagger_client.api_client import ApiClient
class ArtifactControllerApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def all_using_get(self, **kwargs): # noqa: E501
"""Retrieve the list of artifact accounts configured in Clouddriver. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.all_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str x_rate_limit_app: X-RateLimit-App
:return: list[object]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.all_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.all_using_get_with_http_info(**kwargs) # noqa: E501
return data
def all_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Retrieve the list of artifact accounts configured in Clouddriver. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.all_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str x_rate_limit_app: X-RateLimit-App
:return: list[object]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['x_rate_limit_app'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method all_using_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'x_rate_limit_app' in params:
header_params['X-RateLimit-App'] = params['x_rate_limit_app'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/artifacts/credentials', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[object]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def artifact_versions_using_get(self, account_name, artifact_name, type, **kwargs): # noqa: E501
"""Retrieve the list of artifact versions by account and artifact names # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.artifact_versions_using_get(account_name, artifact_name, type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str account_name: accountName (required)
:param str artifact_name: artifactName (required)
:param str type: type (required)
:param str x_rate_limit_app: X-RateLimit-App
:return: list[str]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.artifact_versions_using_get_with_http_info(account_name, artifact_name, type, **kwargs) # noqa: E501
else:
(data) = self.artifact_versions_using_get_with_http_info(account_name, artifact_name, type, **kwargs) # noqa: E501
return data
def artifact_versions_using_get_with_http_info(self, account_name, artifact_name, type, **kwargs): # noqa: E501
"""Retrieve the list of artifact versions by account and artifact names # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.artifact_versions_using_get_with_http_info(account_name, artifact_name, type, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str account_name: accountName (required)
:param str artifact_name: artifactName (required)
:param str type: type (required)
:param str x_rate_limit_app: X-RateLimit-App
:return: list[str]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['account_name', 'artifact_name', 'type', 'x_rate_limit_app'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method artifact_versions_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'account_name' is set
if ('account_name' not in params or
params['account_name'] is None):
raise ValueError("Missing the required parameter `account_name` when calling `artifact_versions_using_get`") # noqa: E501
# verify the required parameter 'artifact_name' is set
if ('artifact_name' not in params or
params['artifact_name'] is None):
raise ValueError("Missing the required parameter `artifact_name` when calling `artifact_versions_using_get`") # noqa: E501
# verify the required parameter 'type' is set
if ('type' not in params or
params['type'] is None):
raise ValueError("Missing the required parameter `type` when calling `artifact_versions_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'account_name' in params:
path_params['accountName'] = params['account_name'] # noqa: E501
query_params = []
if 'artifact_name' in params:
query_params.append(('artifactName', params['artifact_name'])) # noqa: E501
if 'type' in params:
query_params.append(('type', params['type'])) # noqa: E501
header_params = {}
if 'x_rate_limit_app' in params:
header_params['X-RateLimit-App'] = params['x_rate_limit_app'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/artifacts/account/{accountName}/versions', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[str]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_artifact_using_get(self, package_name, provider, version, **kwargs): # noqa: E501
"""Retrieve the specified artifact version for an artifact provider and package name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_artifact_using_get(package_name, provider, version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str package_name: packageName (required)
:param str provider: provider (required)
:param str version: version (required)
:return: object
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_artifact_using_get_with_http_info(package_name, provider, version, **kwargs) # noqa: E501
else:
(data) = self.get_artifact_using_get_with_http_info(package_name, provider, version, **kwargs) # noqa: E501
return data
def get_artifact_using_get_with_http_info(self, package_name, provider, version, **kwargs): # noqa: E501
"""Retrieve the specified artifact version for an artifact provider and package name # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_artifact_using_get_with_http_info(package_name, provider, version, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str package_name: packageName (required)
:param str provider: provider (required)
:param str version: version (required)
:return: object
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['package_name', 'provider', 'version'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_artifact_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'package_name' is set
if ('package_name' not in params or
params['package_name'] is None):
raise ValueError("Missing the required parameter `package_name` when calling `get_artifact_using_get`") # noqa: E501
# verify the required parameter 'provider' is set
if ('provider' not in params or
params['provider'] is None):
raise ValueError("Missing the required parameter `provider` when calling `get_artifact_using_get`") # noqa: E501
# verify the required parameter 'version' is set
if ('version' not in params or
params['version'] is None):
raise ValueError("Missing the required parameter `version` when calling `get_artifact_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'package_name' in params:
path_params['packageName'] = params['package_name'] # noqa: E501
if 'provider' in params:
path_params['provider'] = params['provider'] # noqa: E501
if 'version' in params:
path_params['version'] = params['version'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/artifacts/{provider}/{packageName}/{version}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='object', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 40.763006
| 135
| 0.624645
| 1,654
| 14,104
| 5.068924
| 0.099758
| 0.042939
| 0.020038
| 0.025763
| 0.870945
| 0.837428
| 0.815005
| 0.793416
| 0.770396
| 0.736522
| 0
| 0.014283
| 0.285167
| 14,104
| 345
| 136
| 40.881159
| 0.817298
| 0.332317
| 0
| 0.641304
| 1
| 0
| 0.211624
| 0.058925
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038043
| false
| 0
| 0.021739
| 0
| 0.11413
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f26c36e8a78afbc60651bca6f6d0e33814448560
| 2,496
|
py
|
Python
|
tests/repo/test_repo_checkout.py
|
spookey/git-sh-sync
|
372cbc8168557e0e99d7963da63717242a9491e9
|
[
"MIT"
] | 1
|
2020-11-15T20:37:08.000Z
|
2020-11-15T20:37:08.000Z
|
tests/repo/test_repo_checkout.py
|
spookey/git-sh-sync
|
372cbc8168557e0e99d7963da63717242a9491e9
|
[
"MIT"
] | null | null | null |
tests/repo/test_repo_checkout.py
|
spookey/git-sh-sync
|
372cbc8168557e0e99d7963da63717242a9491e9
|
[
"MIT"
] | null | null | null |
def test_checkout_branch_empty(gitrepo):
brc = gitrepo.repo.branches()
assert brc.current == 'master'
assert brc.all == ['master']
assert gitrepo.repo.checkout('test') is True
brc = gitrepo.repo.branches()
assert brc.current == 'test'
assert brc.all == ['test']
def test_checkout_tag(gitrepo):
gitrepo.write('aaa', 'content')
gitrepo.add('aaa')
gitrepo.commit('aaa commit message')
gitrepo.tag('aaa-tag')
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
gitrepo.write('bbb', 'content')
gitrepo.add('bbb')
gitrepo.commit('bbb commit message')
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.folder.join('bbb').stat(raising=False) is not None
assert gitrepo.repo.checkout('aaa-tag')
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.folder.join('bbb').stat(raising=False) is None
def test_checkout_commit(gitrepo):
gitrepo.write('aaa', 'content')
gitrepo.add('aaa')
gitrepo.commit('aaa commit message')
back_log = gitrepo.repo.log()
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
gitrepo.write('bbb', 'content')
gitrepo.add('bbb')
gitrepo.commit('bbb commit message')
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.folder.join('bbb').stat(raising=False) is not None
assert gitrepo.repo.checkout(back_log[-1].short)
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.folder.join('bbb').stat(raising=False) is None
assert gitrepo.repo.checkout(back_log[-1].full)
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.folder.join('bbb').stat(raising=False) is None
def test_checkout_master(gitrepo):
gitrepo.write('aaa', 'content')
gitrepo.add('aaa')
gitrepo.commit('aaa commit message')
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.repo.checkout('test') is True
gitrepo.write('bbb', 'content')
gitrepo.add('bbb')
gitrepo.commit('bbb commit message')
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.folder.join('bbb').stat(raising=False) is not None
assert gitrepo.repo.checkout() is True
assert gitrepo.folder.join('aaa').stat(raising=False) is not None
assert gitrepo.folder.join('bbb').stat(raising=False) is None
| 30.439024
| 69
| 0.692708
| 351
| 2,496
| 4.891738
| 0.099715
| 0.174141
| 0.188119
| 0.227723
| 0.910891
| 0.910891
| 0.910891
| 0.840419
| 0.81654
| 0.81654
| 0
| 0.000951
| 0.157452
| 2,496
| 81
| 70
| 30.814815
| 0.815502
| 0
| 0
| 0.735849
| 0
| 0
| 0.111779
| 0
| 0
| 0
| 0
| 0
| 0.509434
| 1
| 0.075472
| false
| 0
| 0
| 0
| 0.075472
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
f2aff17e875912e7a84bda9fe1d917b2b3864ea3
| 51,470
|
py
|
Python
|
16/solution.py
|
AlecRosenbaum/adventofcode2017
|
9214a64db77492790d30bbd22e835535d05abb25
|
[
"MIT"
] | null | null | null |
16/solution.py
|
AlecRosenbaum/adventofcode2017
|
9214a64db77492790d30bbd22e835535d05abb25
|
[
"MIT"
] | null | null | null |
16/solution.py
|
AlecRosenbaum/adventofcode2017
|
9214a64db77492790d30bbd22e835535d05abb25
|
[
"MIT"
] | null | null | null |
"""
Day 16 challenge
"""
import re
import attr
@attr.s
class Operation:
REGEX = None
a = attr.ib()
def apply_to(self, group):
raise NotImplementedError()
@classmethod
def get_regex(cls):
if not hasattr(cls, "_REGEX"):
cls._REGEX = re.compile(cls.REGEX)
return cls._REGEX
@attr.s
class Spin(Operation):
REGEX = r"s(?P<a>\d+)"
def apply_to(self, group):
return [
group[(idx + (len(group) - int(self.a))) % len(group)]
for idx in range(len(group))
]
@attr.s
class Exchange(Operation):
REGEX = r"x(?P<a>\d+)/(?P<b>\d+)"
b = attr.ib()
def apply_to(self, group):
ret = group[:]
ret[int(self.a)] = group[int(self.b)]
ret[int(self.b)] = group[int(self.a)]
return ret
@attr.s
class Partner(Operation):
REGEX = r"p(?P<a>\w)/(?P<b>\w)"
b = attr.ib()
def apply_to(self, group):
ret = group[:]
ret[group.index(self.a)] = self.b
ret[group.index(self.b)] = self.a
return ret
@attr.s
class Transform(Operation):
"""
Not a real instruction, but maybe useful for optimizing?
a is expected to be a list(length=len(group)) with transformation positions
ex:
a = [4, 1, 2, 0, 3]
"""
def apply_to(self, group):
return [
group[i]
for i in self.a
]
def solution_part_one(arg, groups_len=16):
possible_ops = (Spin, Exchange, Partner)
state = [chr(97 + idx) for idx in range(groups_len)]
for op in arg.split(","):
for i in possible_ops:
match = i.get_regex().match(op)
if match:
state = i(**match.groupdict()).apply_to(state)
break
return "".join(state)
def solution_part_two(arg, groups_len=16, iterations=1000000000):
possible_ops = (Spin, Exchange, Partner)
state = [chr(97 + idx) for idx in range(groups_len)]
ops = []
for op in arg.split(","):
for i in possible_ops:
match = i.get_regex().match(op)
if match:
ops.append(i(**match.groupdict()))
break
cycles = []
states = {tuple(state): 0}
for idx in range(100):
for op in ops:
state = op.apply_to(state)
if tuple(state) in states:
cycles.append([states[tuple(state)], idx + 1])
states = {}
states[tuple(state)] = idx + 1
print(cycles)
# found to cycle every 60 times
# 1 billion % 60 => 40
# 40 cycles is the same as 1 billion cycles
state = [chr(97 + idx) for idx in range(groups_len)]
for idx in range(40):
for op in ops:
state = op.apply_to(state)
return "".join(state)
if __name__ == "__main__":
problem_input = """x15/13,pi/p,x12/5,s12,x2/4,s4,x11/3,s6,x5/4,s12,x8/12,pg/l,x14/0,pi/a,x10/6,s2,x3/8,s13,x5/15,pd/b,x4/7,s7,x0/2,s2,x3/14,s14,x5/11,pe/c,s2,x13/8,s13,x3/12,pk/a,x4/13,pm/c,x6/9,s13,x0/11,pl/d,x12/9,s14,x6/5,pn/m,x7/13,s11,x0/15,s13,x4/2,s2,x7/3,s4,pa/e,x8/9,s9,pn/j,x7/3,pf/l,x5/10,pp/b,x13/3,pi/e,x11/7,pg/l,s1,x12/0,s14,x14/2,s11,x11/10,s5,pn/f,x5/7,pk/m,x14/10,pi/g,x4/13,s4,pe/b,x2/7,s9,x3/4,pk/j,x5/10,s2,x7/14,s13,x5/8,s13,x13/9,s3,x10/15,s4,x11/13,s1,x2/4,s10,x12/15,s14,x5/6,s9,x14/11,pl/c,s12,x2/4,pk/f,x9/5,pl/e,x8/11,pb/i,x4/10,pa/c,x2/13,pl/g,x10/8,s8,x13/15,ph/e,x6/0,s14,x9/8,s8,x5/11,pb/n,x15/1,s6,x12/9,ph/m,s7,x4/14,s7,x12/1,pn/e,x8/9,s4,x7/14,pi/m,x8/6,po/d,x10/9,pf/n,x14/8,s2,x6/0,pe/p,x9/12,s13,x3/14,s12,x15/7,pj/b,x14/0,s12,x9/10,pd/l,x15/6,pj/k,x7/9,s10,x1/5,s14,x2/15,s14,x7/10,s3,x6/0,s14,x4/8,pg/c,x11/10,pm/h,x0/15,pf/p,x2/8,pb/n,x3/9,s1,pp/k,s5,x11/7,s1,x9/3,s12,x0/14,pj/i,s8,x6/4,pk/o,x13/14,s9,x8/15,s12,pd/a,x14/13,s10,x15/7,pf/o,s11,x12/10,s7,x4/15,pl/b,x14/10,s14,x3/15,s2,x7/2,pi/a,x3/0,ph/n,x11/4,pa/b,x5/3,s13,x12/15,s11,x5/6,s15,x13/2,s9,x10/7,pf/n,x6/8,s13,pl/o,x5/15,s1,x11/4,pm/b,x1/15,pl/f,x13/8,pp/b,x3/7,pa/m,x12/10,s3,x9/5,pe/h,s11,x15/11,pk/b,x12/1,pd/l,x5/11,pc/h,x13/6,pf/p,x3/0,pc/g,s9,x14/12,s10,x8/13,s14,x10/9,pf/e,x11/4,pn/p,x5/12,s8,x9/10,ph/k,x5/3,s7,x7/10,s14,x15/8,pa/b,x14/10,s9,x8/13,s6,x5/3,po/m,x8/13,pa/b,x3/2,pp/f,x12/7,s9,x3/5,pi/n,x1/4,pg/m,x10/8,pl/o,s2,pc/e,x15/0,s1,x7/9,s5,x3/14,pi/h,s5,x6/10,pj/m,s9,x0/14,s3,x10/13,s9,x4/2,pn/e,x9/13,po/b,x4/12,s10,x7/3,s1,x5/4,s13,x2/1,s6,x8/14,s1,x3/2,s8,x6/13,pp/e,x15/2,s6,x9/7,s6,pf/h,x10/0,s14,x3/14,pn/m,x12/9,s14,x14/2,s9,x3/9,s14,pf/c,x4/7,po/k,x12/1,s9,x13/0,pn/h,x2/5,pg/a,s4,x9/0,pm/n,x14/5,pf/k,s10,x15/2,s8,x9/8,s4,x13/5,s8,x12/6,pe/a,s10,x11/9,s15,x3/7,s5,x0/13,pm/l,x12/5,pa/e,x15/6,s11,x10/9,pd/p,x14/7,s5,x3/9,s14,x1/12,s2,x10/15,s15,x5/9,pf/c,x6/10,s10,x8/9,pi/j,s15,x13/2,s1,x3/9,s1,x11/10,pk/d,x14/6,s15,pn/b,x2/13,s13,pl/d,x15/3,s12,x8/14,s8,x3/7,s3,x2/6,s13,x15/7,pb/n,x8/9,pl/c,x11/3,s9,x13/9,s12,x11/0,ph/n,x7/5,pe/p,x14/15,s15,x6/9,pf/o,x2/0,s13,x14/4,pm/i,x11/13,s6,x4/6,s7,x2/13,s2,x10/5,pg/b,x15/4,s3,x0/10,s12,pp/h,x14/8,s3,pf/e,x4/13,s13,x7/11,s9,x14/12,s1,x10/4,s4,x12/5,s11,x15/4,pg/j,x1/13,s15,x12/6,pb/f,x4/7,pa/k,s11,x6/9,pn/e,x1/3,s4,x9/0,s9,x7/1,pj/m,x0/15,pn/k,x1/4,s7,x10/12,pp/c,x11/8,s2,x3/7,s2,x9/15,s14,x6/12,s13,x11/10,s2,x4/5,s11,x7/10,s10,x15/5,pm/b,s12,x14/10,pe/j,x3/13,s6,x1/2,s14,pp/a,x11/15,s2,x3/9,s11,x11/1,pm/k,x5/3,pf/c,x10/14,s15,x2/0,s9,x1/12,s9,x8/11,s7,x10/15,s11,x6/11,pa/g,x14/0,pl/j,x9/8,po/m,x12/0,s2,x11/5,pi/d,x8/4,s12,x1/13,s7,x7/5,s10,x6/11,s6,x7/1,s11,x10/9,s4,x11/1,pf/a,x0/9,s1,x14/3,ph/l,x0/8,pe/c,x11/14,s3,x9/10,s12,x8/11,pd/p,x0/9,s9,x10/15,s8,x11/1,s5,x3/9,s10,x6/10,pj/h,x5/0,s14,x8/6,pf/e,x15/5,pi/b,s5,x1/8,pa/e,x13/6,pn/d,s14,x11/10,s3,x15/8,s15,x6/11,s4,x3/1,s3,x15/12,s3,x9/10,s10,x1/7,s2,x2/0,pb/m,x1/4,s10,pi/g,s12,x8/6,pc/m,x15/13,s3,x8/11,s14,pb/l,x0/4,s6,x3/7,s14,x14/12,s5,pj/f,x2/4,s11,x15/10,pl/p,x4/2,pm/f,x14/15,pc/g,x10/7,s4,x6/14,s1,x10/9,pd/j,x11/13,s8,x6/0,pb/l,s2,x8/14,pj/f,x4/15,s6,x12/3,s2,x9/15,s11,pk/p,x11/4,po/j,s6,x13/6,s2,x3/12,pp/g,x7/5,s10,x8/11,s4,x13/2,s15,x3/1,pc/m,x9/8,pk/d,x11/10,s7,pe/m,x15/1,s7,x5/12,s5,x6/14,pd/k,x10/12,ph/n,x8/0,pa/f,x9/2,pd/m,x4/13,pc/h,x8/3,pl/j,x13/12,s10,x15/0,s12,x11/12,s15,x7/5,s13,x13/1,pm/k,x15/8,s14,pc/e,x9/4,pd/n,x15/13,s15,x9/12,pg/i,s6,x11/0,s10,x3/5,pb/f,x7/13,s11,x2/3,s15,x5/6,s12,x2/12,s13,pn/g,x15/14,s12,x7/13,pj/h,x11/3,pe/k,x10/8,s12,x11/4,s7,x1/2,s3,x6/11,pd/n,s6,x12/0,pp/h,x5/15,s9,x10/3,pm/k,x4/14,pi/a,x7/5,s6,pk/l,x15/4,pe/n,x0/1,s6,x3/7,s13,x0/5,s9,x8/9,s2,x0/7,s9,x5/1,s5,x3/7,s12,pj/f,x13/14,s8,x1/8,pd/b,x10/5,pe/a,x9/13,s12,x10/4,pj/b,x8/13,s7,pc/k,x15/3,s4,pp/n,x0/11,s9,x15/3,pd/i,x6/0,s9,x7/13,s12,x8/4,pg/l,x1/9,s4,x0/6,po/f,x7/1,pm/c,x3/5,s1,x6/1,s15,x8/2,s6,x7/6,s1,x12/2,s10,x5/7,s1,x6/12,s1,x9/3,s12,x8/14,s10,pj/o,x10/4,s6,x7/11,pk/c,x0/2,pp/m,x12/7,pb/j,x5/2,pl/i,x14/10,s3,x4/6,s6,x5/13,pg/n,x6/11,s9,ph/i,x12/5,pm/j,x15/9,pp/f,x0/6,s3,x7/14,pi/j,x12/8,s4,x4/13,s11,x8/7,pd/m,x0/5,pe/a,x13/4,s13,x8/3,pd/g,x4/9,s1,x12/11,pk/n,x9/4,s13,x10/7,pe/l,s2,x0/11,s10,x7/10,pi/h,x6/12,s10,x4/2,s10,x9/10,s13,x14/0,s6,x9/4,s8,x5/1,pk/b,s10,x7/8,s1,x1/12,pm/p,x6/11,pg/c,x15/12,s12,x8/6,s8,x9/7,pn/l,s10,x5/14,s11,x3/10,pp/e,x6/9,s6,x0/12,s12,x6/11,s6,x9/0,s1,x8/11,s9,x10/5,pn/m,x2/0,s15,x5/15,ph/e,x14/8,pj/o,x13/3,s14,x10/0,s8,x15/9,pm/g,x1/7,s5,x13/8,pk/e,x10/6,s3,x0/12,s14,x14/5,s11,x11/4,s7,x7/5,pl/b,x6/15,s4,x13/12,s9,x4/7,s9,x6/2,s3,x15/3,pd/j,x12/1,pa/l,x0/13,s2,x7/2,pn/k,x14/3,s15,pg/b,s13,x6/10,s5,x13/1,s1,x3/8,s13,x2/12,pm/c,s13,x5/10,pd/e,x2/13,pc/b,x15/10,pe/i,x12/3,s5,x14/6,s9,x13/12,pf/j,x8/14,s14,x0/15,s1,x8/4,pi/e,x6/7,s3,x13/14,s13,x11/8,pc/k,x4/15,s13,x10/9,pe/j,x8/12,s6,x2/4,ph/o,s6,x6/12,s8,x0/8,pf/n,x10/2,s6,x4/14,pb/a,x15/13,s2,x3/1,pe/g,s11,x9/13,po/j,x15/10,pm/p,x12/5,s9,x8/10,s9,pl/j,x9/4,s13,x1/8,s12,x0/9,s2,x3/5,ph/m,x1/0,s3,x14/9,pi/k,s9,pe/a,x12/10,s8,x4/3,s5,x8/14,pb/j,x13/9,s1,x5/14,s8,x4/8,pi/p,x14/12,s2,x5/9,po/c,s12,x10/0,s13,x8/7,pf/p,x0/13,s3,x5/6,s12,x13/10,pc/l,x3/12,s12,x9/8,s4,x7/0,s12,x8/11,s4,x1/3,s7,x12/0,s8,x8/4,pm/a,s15,x1/0,s9,x13/6,pg/k,x5/2,s14,pp/n,s2,x13/9,s10,x12/7,pg/i,x2/9,pp/f,x1/15,pk/g,x2/0,s2,x4/14,pd/n,x0/7,pg/c,x2/4,s10,x6/8,s13,x13/7,ph/b,x5/11,pn/d,x8/13,s5,x11/6,s7,x1/14,pe/o,x8/7,pl/f,x4/14,s4,x13/6,s8,x12/3,pn/i,x10/5,s1,x0/15,pa/g,s1,x4/7,s13,x13/11,s5,pd/l,x4/3,s12,x9/14,s10,x10/6,s8,x5/1,pp/j,x0/2,pd/i,x15/13,pf/e,x2/10,s9,x9/5,s12,x13/2,s5,x7/14,s8,pn/h,x4/12,s9,x10/0,s1,x9/3,pg/c,s14,x4/8,s14,x15/0,s11,x5/10,pn/l,x2/6,s2,x14/11,s8,x3/5,s4,x2/0,s6,x7/9,s11,x12/5,s15,pg/i,x2/4,s2,pb/a,x1/12,pi/k,x14/9,s5,pl/o,x1/3,s4,x2/10,s12,x13/1,pf/k,x11/12,pj/a,x14/2,pg/o,x7/5,pl/f,x10/6,pb/c,x8/9,pf/l,x2/5,s5,x6/10,s13,x5/13,pa/i,x0/7,pk/o,x5/3,s5,x0/14,s8,x10/7,pn/b,s1,pi/o,x0/6,pa/j,x8/10,pf/i,s11,x4/1,po/n,s5,x8/11,pd/l,x5/9,s11,x3/13,s13,x1/2,s8,x13/10,s12,x2/6,pn/c,x10/12,s14,x7/15,pe/p,x11/4,s13,x12/0,s14,x1/10,s4,x14/11,pj/b,x5/6,s10,x8/12,s5,x2/4,pp/a,s8,x9/14,pe/g,s4,x5/15,s7,x1/6,s15,x15/9,s1,x5/10,s15,x3/11,s9,pk/n,x15/14,s9,x10/2,pe/g,x6/9,s6,x14/4,pc/i,x7/9,s11,x1/13,s9,pg/e,x9/12,pm/i,x10/14,s6,x2/12,s6,x7/14,s10,x15/9,s6,x1/3,pp/k,x14/11,pn/d,x3/7,pp/o,x5/12,s7,x14/0,pn/k,x6/3,pg/i,s6,pf/c,x14/2,s4,x11/0,s2,x4/3,s8,x5/9,s4,x13/8,s8,x12/0,s3,x13/8,pm/k,x6/11,pf/h,x14/7,pb/m,s3,x3/1,s3,x7/11,pe/i,x5/4,s7,x14/0,s4,x11/5,ph/o,s14,x3/7,pb/i,x13/6,pp/n,x3/8,s9,x2/12,pf/d,x15/1,pk/e,x2/4,pn/f,x5/3,s5,x13/12,pk/a,x4/6,s2,x8/2,s8,x0/15,s9,x4/5,s10,po/n,s9,x14/3,s8,x10/15,s5,x14/1,s4,pe/k,x15/10,pb/p,x11/2,pl/m,x3/0,pi/j,s2,x10/1,s12,x6/7,s4,x5/2,s2,x0/12,pd/p,s6,x13/2,pg/a,s14,x9/11,pj/e,x3/5,po/i,x13/15,s11,x14/0,s1,x4/11,s14,x9/12,pj/d,x6/3,pc/f,x15/8,s10,x9/14,s15,x10/1,s10,x0/13,s15,x3/8,s10,x9/6,pj/m,x8/12,s8,x3/9,pi/c,x5/15,pd/g,x10/11,pk/m,x9/6,pg/a,s6,x14/11,pc/d,x8/2,s5,x10/3,s11,pi/o,s1,x13/8,s12,x6/10,s13,x0/4,pe/n,x8/3,ph/l,x5/1,pi/d,x2/12,pg/e,x15/0,po/j,s15,x7/8,pl/h,x6/3,s4,x9/13,s13,x7/1,s4,x6/11,s2,pc/e,x12/7,pp/l,x2/1,pb/i,x6/0,s13,x5/10,s11,x3/4,s7,pm/h,x8/6,pi/j,x1/4,s14,x13/10,pl/h,x5/3,s11,x4/14,s9,pj/p,x7/3,pf/m,x8/2,s13,x0/3,pb/g,x11/2,s7,x6/15,pi/m,x10/2,s6,x9/3,s10,x7/14,s1,x12/1,ph/b,x7/14,pf/p,x5/1,pc/o,s8,pa/b,x3/10,pg/f,x11/5,s2,x12/9,s14,x0/14,s10,x15/11,s9,x10/0,s3,x1/5,s15,x0/15,pi/e,x4/3,s12,x7/10,pp/n,x5/2,ph/d,x15/4,pe/a,x7/13,pb/m,x6/15,s7,x3/14,s9,x15/6,pl/g,x9/14,pm/o,x13/4,s10,x9/3,pk/g,x4/13,po/n,x8/2,s13,x13/14,s1,x3/15,s9,x8/0,s15,x7/4,pf/l,x1/2,pg/c,x9/5,pd/e,x10/3,s10,x11/15,s7,x1/6,ph/n,x15/3,pa/i,x9/14,s3,x7/6,s9,x4/3,s15,x13/2,s2,x5/10,s7,x3/15,pg/p,x6/9,s6,x12/13,pk/a,x6/2,s15,x0/4,s14,x15/11,s14,x4/12,s8,x0/7,s13,x3/1,pb/p,x4/10,pm/h,x0/2,s1,x14/10,pj/b,x0/4,s5,x6/9,po/e,x2/7,s6,x9/12,s14,x8/15,s4,x12/11,s1,pj/c,x10/8,s7,ph/f,x7/15,s1,x10/14,s3,x13/9,pd/m,x14/0,s5,x4/15,s11,x10/9,s10,pl/c,s5,x11/5,pb/d,x7/1,s1,x3/6,s6,x5/1,pi/a,x0/12,s10,x13/15,s2,x11/3,s15,x12/15,s9,x1/5,pf/m,x0/14,s6,pd/h,x6/11,pb/i,x7/3,s15,pm/g,x5/6,s5,x7/8,s1,x12/15,s6,pe/h,x11/3,pl/i,x4/14,s14,x12/6,pm/n,s2,x13/2,s8,x11/15,s8,x4/14,pi/k,x3/13,s4,x4/11,pg/c,x14/10,pp/d,s3,x1/4,pi/k,x12/5,s7,x15/6,ph/c,x11/0,pd/p,x4/3,s6,x2/15,pa/k,x4/0,pm/e,x10/9,pf/d,x7/2,s13,x12/10,pb/i,x13/3,s14,x7/12,s5,x3/8,pm/n,x15/1,s9,x14/12,s3,pi/k,x11/7,s13,x6/0,s12,x4/15,ph/n,x9/11,s14,x5/6,s12,x8/0,pa/i,x9/10,s5,x6/4,s14,x13/11,s5,x7/5,pm/b,x4/11,s15,x8/10,s1,x12/0,ph/k,x13/1,s1,pe/g,x6/15,s15,ph/d,x5/10,s8,x4/2,pa/f,x0/13,s11,x3/2,s7,x11/12,pl/g,x6/9,s14,x1/5,s5,x2/11,pe/d,x10/4,s6,x6/11,pc/l,x4/15,pp/h,x1/9,s14,x7/8,s1,x15/13,s4,x10/6,s5,pj/k,x2/13,s10,x11/7,pg/o,x8/15,s11,x11/2,pc/k,s3,x4/10,s2,x9/7,s4,x0/5,s6,x3/12,pn/f,x5/4,pg/m,x0/15,po/a,x5/9,s5,x0/1,pk/e,x14/15,pf/m,x6/0,s10,x8/12,s8,x11/5,pi/c,x3/13,s2,x7/5,s14,x8/14,s10,x12/5,s1,x11/1,s14,x0/7,s3,x2/12,pe/f,x10/11,s2,x3/12,s13,x2/7,s13,x14/11,pd/m,s14,x8/12,pc/l,x3/6,s12,x13/8,pm/b,s4,x1/4,pf/j,x2/10,pm/k,x12/3,s4,x15/9,s12,x11/6,s10,x7/2,s11,x3/10,pb/f,x1/7,pa/m,x12/9,pn/g,x3/7,s14,x5/8,s7,x10/1,pe/h,x3/5,s4,x10/8,s11,x9/7,s3,x5/12,s12,x7/8,s4,x6/3,s4,x5/13,pn/i,x8/14,pl/k,x13/11,s11,x15/6,pg/e,x13/3,pc/m,x8/4,s13,x15/1,s7,x10/3,pl/p,x2/11,s10,x1/10,s10,x5/12,pj/h,x0/10,pc/n,x4/13,ph/i,x11/7,po/a,x15/2,s6,x8/10,s5,x15/14,s3,pn/c,x10/3,s5,x14/1,s8,x3/12,pp/d,s5,pi/l,s5,x15/7,pa/g,x14/12,s12,x4/11,pl/e,x14/7,s7,x8/2,pm/i,x14/1,pc/p,x7/8,s8,x0/11,pb/n,s8,x14/15,pc/p,x13/3,pn/b,s10,x15/2,pg/h,s2,x11/14,s15,x13/7,pk/b,x6/2,pc/j,x8/3,pi/h,x1/7,s1,x6/8,s2,pd/c,x3/11,s9,x5/10,s1,x14/8,pl/n,s6,x9/0,s11,x3/8,pd/k,x5/0,s3,x11/9,s4,x12/0,pc/b,x6/9,pn/k,s6,x5/2,pf/i,x6/13,s1,x1/3,s3,x6/9,pm/o,x7/13,pf/j,x3/10,s1,x1/4,pk/m,x5/12,s7,x14/10,s11,x11/3,pe/a,s5,x4/7,s9,x15/13,s13,pb/m,x9/11,s9,x4/14,s1,x9/6,pk/l,x10/8,s7,x4/11,s2,x14/6,s5,x7/1,s5,x13/11,s11,x2/1,pm/g,x0/6,pd/n,x15/2,pc/j,x10/3,pe/a,s6,x9/12,pm/n,x4/5,pd/f,x15/8,s11,x12/13,s2,x10/3,s8,x8/0,s7,x4/10,s1,x13/12,s1,pn/l,x6/10,s12,x5/0,pj/o,x6/12,ph/g,x2/7,s3,x10/4,s10,x0/5,s5,x6/9,pl/e,x10/2,s3,x12/3,s5,x4/7,s8,x1/14,pj/g,x15/11,ph/m,x10/14,s9,x3/8,s7,x1/0,pp/g,x7/10,s15,x0/8,s10,x9/12,pn/h,x0/11,pp/c,x10/13,pl/g,s4,x4/14,s11,x12/3,s1,x11/1,po/a,s9,x5/14,pe/d,x0/3,pg/b,s14,x5/4,pd/e,x11/7,s2,x9/6,pc/j,x0/4,s15,x2/12,s13,x14/5,s14,x15/8,s8,x5/12,s7,x7/3,s14,x6/8,s2,x4/2,s4,x3/15,s11,x9/5,pa/d,x2/4,s10,x6/13,s9,pi/f,x4/1,pd/m,s13,x11/2,pf/i,x4/0,s12,ph/g,x1/9,pd/l,x15/8,s8,x5/13,pg/m,x1/8,s13,x12/0,s7,x6/9,pa/e,x5/15,pb/j,x13/0,s1,x8/7,pc/i,x3/6,s7,x14/1,s6,x0/10,pg/f,x12/11,pp/o,x13/3,s8,x4/11,s13,x8/0,pd/l,x14/13,po/c,x8/5,s6,pl/a,x6/0,ph/n,x10/14,pf/g,s11,x3/4,s1,x8/6,s5,pd/b,x7/2,s14,x4/8,s13,x0/11,s9,x13/4,po/g,x0/11,s4,pp/h,s9,x7/6,pi/d,x4/10,pf/p,s14,x7/8,pc/n,s11,pk/i,x14/1,pf/l,x5/2,s9,x15/7,po/m,s6,x1/5,s3,x4/11,s6,x8/6,s8,x14/0,ph/g,x1/11,s8,x9/5,s5,x6/4,s10,x0/5,s9,x3/14,s11,pj/p,x15/0,pf/k,x3/11,s5,x14/2,s11,x1/4,pe/n,x10/14,pi/k,x3/5,pb/l,s10,x1/2,s15,x12/5,s10,x7/11,pi/d,x8/2,s10,x10/3,s15,x15/6,pl/o,x0/13,s2,x14/4,pf/g,s8,x15/8,s11,x0/4,s2,x2/3,s15,x5/14,s13,x1/9,s2,pe/a,x6/3,s10,x0/5,pd/i,x1/13,pc/o,x11/6,s5,x7/0,s4,x11/13,pe/b,x8/5,pk/c,x1/13,pe/j,x2/0,s2,x9/10,s9,x11/13,s5,x8/14,s11,pf/m,s4,x11/3,s9,pb/i,x15/9,pd/m,x1/8,pb/c,x5/12,s6,x11/10,s3,x0/9,s13,po/e,x8/4,s12,pm/n,x14/5,s5,x8/10,pc/h,x13/7,s3,pj/o,x10/11,pd/e,x1/5,s1,x14/9,s14,x2/6,s7,x9/3,s9,x7/11,pm/a,x10/5,s8,x7/12,s1,x10/6,s4,x1/0,pk/g,x11/2,pl/m,x4/14,pg/c,x5/6,s5,x14/3,s12,x10/15,s10,x9/3,s5,x6/4,s3,x15/2,s14,x4/13,s3,x3/10,s11,x0/4,pf/a,x6/1,s12,x7/12,pm/k,x8/0,s8,x9/10,s11,x15/12,pj/h,x8/4,s10,x3/2,s2,x13/7,po/c,x15/10,pi/f,x2/14,s4,x3/0,pa/e,x12/6,s7,pb/g,x14/8,s14,x0/1,s11,x6/11,s4,x8/2,s1,x3/13,s12,x0/1,pp/c,x2/7,ph/b,x1/9,po/i,x14/7,pn/g,x8/15,pk/b,x9/10,pc/o,x15/13,s9,x8/14,s1,x0/2,pi/k,x3/15,s5,x1/6,s5,x10/12,s1,x4/1,s5,x12/10,s4,x9/8,po/h,x10/15,s13,x0/9,s2,pe/a,x6/12,s14,x3/5,pn/g,x6/10,s8,x14/5,s1,pl/e,x6/12,s14,x11/1,pa/i,x12/3,s14,x14/4,pg/m,s10,x12/0,s13,x7/5,ph/c,s15,x2/14,s12,x11/9,s13,x10/13,s5,x7/2,s13,x1/9,s10,x11/14,s6,x12/9,pj/b,x7/3,pd/f,s9,x10/8,s15,x7/0,pe/m,x1/10,pp/n,x9/0,s8,x10/15,pm/k,x1/3,pp/e,s4,x9/8,s15,x2/14,s13,x7/5,s2,x14/8,s8,x9/0,s10,x2/14,s3,x9/11,pg/d,x4/10,s15,x1/7,pb/n,s3,x12/15,s4,x9/10,pk/i,x7/3,pj/h,x12/2,s14,po/i,x0/3,pn/k,x5/7,pl/f,x10/8,ph/n,x15/4,pm/o,x8/3,s11,x4/12,pn/f,x10/7,pl/j,x0/5,ph/b,x12/1,s14,x8/2,pa/d,x14/3,pc/f,x6/10,s14,x0/8,s5,x2/9,s11,x12/0,s14,x5/4,s2,x0/6,pg/i,x11/9,pf/h,x14/12,s5,x1/11,pp/o,x7/14,s7,x10/11,s1,x8/1,s7,x0/2,pg/i,x9/13,s8,x4/5,s1,pj/d,s8,x8/14,s15,x12/0,ph/n,x2/4,pe/c,x13/3,s2,x8/2,s14,x5/9,s8,x0/12,s12,x11/5,po/k,x2/9,pn/j,x10/3,pd/h,x1/8,pm/b,s6,pl/j,x14/2,s15,x9/4,s9,x3/15,s4,x10/2,s9,x8/13,s8,x3/15,s14,x14/11,pp/o,x5/8,s10,x6/7,pg/m,x3/11,s12,pl/c,x7/14,s2,x15/13,pd/n,x11/2,pl/f,x14/1,pa/n,x9/15,s8,x5/3,s1,x12/1,s14,x4/7,s1,x5/13,pe/i,x3/10,s4,x11/9,s4,x15/2,s11,x5/8,s1,x12/1,pb/d,x4/11,s2,x12/9,pe/l,x11/4,pd/o,x10/0,s12,x2/11,pf/e,x4/12,s6,x8/2,s11,x13/7,s9,x12/4,s6,x10/2,pk/o,x12/0,pg/l,x14/13,s3,x15/8,pn/b,x5/3,pc/h,x0/7,s4,x3/1,pj/p,x13/12,s12,x15/5,pc/b,x3/14,pg/n,x11/6,s9,x15/9,s6,pl/h,x7/2,s14,x12/5,s6,x8/15,pf/b,x13/5,s5,x12/7,pc/j,x2/9,s7,pk/m,x14/13,s10,x10/7,s3,x14/8,s13,x7/12,s15,x5/4,s5,x12/0,s7,ph/a,x3/9,s5,x14/2,s3,x10/3,s6,x7/1,s12,x10/3,pd/f,x15/14,s12,x1/9,s6,x2/7,s4,x15/3,s4,x14/5,pa/c,x12/6,s2,x0/5,pi/e,x12/3,s11,x5/6,s10,x11/7,pa/h,x0/3,po/l,x7/14,pb/m,x4/2,pd/e,x12/11,pg/o,x15/9,s5,x8/14,pn/m,x0/15,s14,pa/d,s2,x12/13,pk/i,x3/7,pb/a,s15,x9/11,s11,x15/4,s13,x13/9,s7,x15/3,s4,x6/9,s1,x2/0,pf/m,x8/14,s7,pa/e,s14,x10/3,s7,x15/6,s9,x14/1,pn/g,x4/11,pb/a,x6/0,pm/o,x1/9,s12,x7/15,s4,x1/9,pg/d,x11/6,pn/e,x13/14,pk/c,x1/7,s9,x4/5,s6,x3/6,pe/m,x1/0,pf/n,s8,x15/13,s5,x8/0,s6,x9/11,s2,x4/12,s1,x9/7,pb/j,x5/11,pl/h,x0/15,s12,x8/6,s13,x1/15,s14,x7/0,s11,x9/4,s5,x13/0,s7,x8/9,s14,x11/14,pa/j,x8/4,ph/g,x9/15,s15,x4/6,pe/a,x7/3,s7,x5/1,s2,x7/11,pf/i,x10/14,po/k,s10,x8/13,pa/f,x3/2,po/l,x4/13,s12,x5/12,s8,x7/3,pg/f,s10,x6/9,pk/b,x2/14,po/n,x6/4,pg/i,x14/2,pa/o,x4/10,s1,x5/0,s7,x12/11,s1,x10/13,s2,x8/14,s5,x7/1,pe/b,x9/3,s14,x1/14,s12,x13/12,pp/l,x3/14,s13,x7/13,s13,x9/3,s13,x14/11,s13,x12/9,pj/k,s10,pg/m,x10/3,ph/o,x7/4,pj/b,s5,x12/5,s2,pf/c,x10/9,s2,x2/11,pa/l,x6/7,s4,x4/14,s13,x7/6,s14,x5/4,pm/c,x3/2,s15,x1/13,s11,x6/11,s10,x5/7,pf/g,x1/0,po/b,x6/12,s4,x15/2,s11,x14/9,s11,x5/3,pi/p,s15,x10/2,pc/d,x4/9,pl/h,x3/0,pb/o,x15/2,s4,x3/12,pj/f,x4/7,s9,x3/8,s7,x7/14,pb/g,x3/12,pe/p,x5/6,s6,x9/2,s9,x1/15,po/l,x5/0,pk/c,x1/4,pp/e,x5/7,s2,x0/6,pn/f,s5,x2/15,s15,x1/12,pb/a,s3,x15/8,s3,x2/5,s10,x8/1,s3,x4/0,pe/g,x5/2,s3,pb/a,s6,x4/14,s14,x13/15,s1,x12/10,pd/l,x15/13,s8,x11/7,s11,x3/4,s7,x5/1,s4,x13/9,s6,x0/11,pa/c,x2/7,s14,x10/12,s7,x6/8,pj/k,x3/15,s2,x6/13,s11,x14/2,pc/m,x5/0,s4,x8/12,s2,pb/g,x6/3,s6,x10/7,pf/p,x13/14,pm/o,x0/8,s4,x14/5,s8,x6/9,s15,x1/12,s6,x11/7,s9,x2/1,s15,pg/h,x11/6,s7,x4/2,po/m,x3/9,pc/b,x11/15,s4,x0/4,pg/m,x14/13,s10,x4/6,pi/o,x10/1,s12,x7/13,s3,x11/15,s2,pf/e,x9/4,s11,x13/15,pd/o,x4/3,pn/i,x0/15,ph/l,x12/14,s9,x6/8,pa/n,x0/14,pe/l,x10/2,s15,x4/15,po/a,x2/0,s11,x7/10,s4,x5/14,s7,x3/1,pc/h,x7/11,s13,x2/0,s13,x7/13,pd/k,x15/12,s5,x1/8,pi/g,x10/6,s2,x12/13,s4,x8/6,ph/n,x14/1,s5,pj/e,x10/12,pk/l,x9/5,s4,x8/0,s12,x7/9,s3,x15/11,s12,x9/13,s11,x6/11,s3,pj/m,x12/7,s14,x4/13,s5,x9/11,s4,x12/2,pl/a,x7/5,s4,x6/10,s13,x5/9,s14,x6/12,pg/c,x0/13,s13,x11/5,pb/n,x6/15,s10,x3/5,s10,x11/15,pl/a,x13/1,s1,pp/i,x7/0,pl/e,x8/10,pf/p,x15/1,ph/i,x7/4,pj/p,x13/2,s1,x8/9,s10,x5/2,s8,pf/h,x7/11,pa/b,x8/13,s7,pf/n,x4/6,pe/k,x2/0,pn/d,x13/12,pl/j,x2/7,s5,x1/5,pp/f,x3/13,pd/e,x11/15,s8,x14/4,ph/n,x0/12,s4,x4/9,s4,x6/8,pl/m,x12/13,pf/n,x6/1,s9,x0/12,s13,x1/2,s8,x8/7,s10,x13/2,s2,x1/4,pi/m,s3,x9/14,po/c,x5/4,pl/f,x0/7,s13,x10/2,s13,x1/15,ph/a,x7/13,s3,x12/2,s5,x0/10,s9,x9/14,pl/k,x2/15,s8,pb/n,x0/1,s7,pj/d,x4/10,s3,x11/6,pg/p,x1/3,s10,x7/11,pf/e,x1/13,s6,x3/6,s8,x14/9,pk/b,x15/3,pp/e,x10/2,pk/c,x12/0,pd/p,x6/7,pf/a,x10/15,s10,x7/5,s13,x9/4,s10,x14/7,po/l,x12/4,pb/a,x10/8,s1,x3/12,s11,x1/7,s4,x2/8,pm/f,x15/4,pl/o,x13/5,s11,x15/3,s7,x4/12,s3,x8/5,pb/i,x13/1,s1,x11/14,pd/p,x8/5,pa/f,x1/7,ph/p,x13/11,s11,x2/4,s14,x1/11,s11,x5/10,s12,x7/6,pe/l,x0/9,s11,x7/2,s3,x4/0,s12,x9/13,pi/p,x11/1,s10,pe/g,x6/10,pf/c,x5/2,s10,x6/9,pb/m,x14/15,pf/p,x7/9,pi/a,x14/13,s7,pj/l,x2/1,s6,x7/10,s2,x9/5,pa/d,x1/8,s5,x4/11,s13,pm/l,x1/7,s9,x12/15,pg/c,x1/11,pe/m,x7/5,s5,x15/9,s15,x10/12,s3,x9/14,pn/a,x0/15,po/e,x2/13,s6,x1/4,s9,x7/3,s5,x13/11,s7,x10/7,s7,x14/1,ph/p,s12,pc/f,s2,x15/8,s5,x7/11,s13,pj/l,x6/9,pe/h,x10/8,pl/i,x9/7,s4,x14/13,pp/f,x10/1,pg/a,x13/2,s8,x6/10,s13,x13/4,s1,x7/12,pp/m,x15/5,pj/g,x7/14,s9,x4/8,s12,x6/10,s15,x14/2,pp/c,x8/10,s1,x5/11,pb/l,x2/6,pe/d,x4/0,pi/p,x3/2,s14,x13/8,s1,x7/9,pn/o,x8/1,s13,x4/2,s11,x3/14,pp/m,x15/1,s8,x7/11,s6,x15/5,s13,x2/3,s4,pj/g,x10/6,pc/n,s14,x4/8,pg/i,s5,x9/10,s14,x11/14,s8,x10/15,s6,x1/4,s12,x13/15,s6,x6/14,pb/f,x5/11,pc/j,x6/13,po/n,x1/8,s8,x9/3,pb/a,x6/13,pk/n,x12/5,pl/p,x15/11,pb/h,x7/2,s10,x10/8,s15,x11/12,po/k,x6/14,s7,x3/0,pi/p,x2/15,pc/d,s15,x0/8,pa/g,s4,x6/4,s13,x11/13,s8,x12/1,s11,x7/11,po/c,x15/2,pa/f,s10,pm/n,x13/8,pi/h,x11/5,pp/k,x7/1,s11,x4/14,pg/f,s4,x3/10,s4,x12/9,s9,x2/11,s12,x8/5,s15,pc/a,x7/1,pf/h,x10/9,s12,pg/j,x11/14,po/d,x8/5,pn/l,s7,x10/12,s4,x14/8,s12,x2/11,pm/c,x0/12,s12,x5/13,s4,x3/14,s14,x5/15,pd/i,x6/13,s9,x9/11,s13,x1/2,s2,x13/12,pe/g,x10/14,s7,x7/3,s3,pd/j,x1/12,pa/k,x3/5,pd/i,x0/4,s2,x11/5,s9,x1/15,pj/c,x6/7,po/p,s6,x12/14,s7,x9/3,pi/a,x11/12,s2,x7/5,pm/o,s6,x0/3,s3,x11/2,s3,x3/10,pe/l,x8/6,s1,x12/2,s15,x6/11,pg/d,x4/0,pc/f,x14/15,s6,x5/11,pl/e,x0/3,s14,pg/h,x13/11,pc/l,x0/3,pa/d,x6/12,s14,x1/5,pp/b,x6/7,pl/n,x12/4,s14,x6/2,pp/g,s14,x0/10,s5,x1/9,s2,x5/12,pb/e,x1/7,s15,x4/3,pn/p,x0/10,s5,x9/6,pk/j,x15/13,s15,x5/3,s11,x10/6,pn/f,x9/5,s8,x15/10,po/g,x4/0,s5,x15/10,s9,x14/13,s6,x1/9,pj/n,x10/2,pm/i,x1/9,pk/h,x10/4,s8,x8/7,pn/l,s3,x12/5,pd/k,x0/15,s13,x12/4,s12,x1/9,s15,x10/13,pl/n,x6/8,s2,x13/2,pi/g,x10/3,s12,x9/13,s2,x2/12,pl/b,s8,x14/4,pj/c,x5/15,pk/b,x1/8,s1,x15/9,s15,x6/0,s12,x7/9,s15,x10/15,pn/o,x7/14,s5,x8/4,s9,x1/3,s14,pb/g,x2/8,s7,x5/0,s8,x3/13,pi/m,x15/10,po/j,x5/1,pf/e,x3/6,pa/m,x0/12,s14,x1/7,s9,x5/8,pn/h,x9/12,s15,x11/13,pa/p,x15/0,s3,x14/4,s15,x7/5,s10,x13/9,s11,x6/2,pi/g,x9/1,s15,x2/0,s13,x1/10,s14,x4/9,pn/h,x0/15,pj/o,x11/12,pi/a,x3/9,s10,x5/14,pg/e,x6/10,s12,x8/5,s3,x4/13,s11,x7/1,s13,x13/5,s13,x15/0,pf/m,x3/7,pe/h,x1/10,s2,x14/15,s10,x10/0,pn/a,x7/12,pi/p,x6/14,s4,x7/5,s15,x10/0,s7,x12/11,po/a,s1,x15/1,s11,x6/5,pb/j,s5,x10/12,pk/a,x6/15,pg/j,x4/1,s15,x0/12,pb/p,x4/14,pn/i,x3/1,pd/e,s15,x6/7,s6,x12/0,pj/b,x4/3,s8,x13/7,pa/e,x12/0,pn/f,x7/4,s3,x3/10,s8,x7/1,s13,x11/9,s11,pe/p,s10,x12/2,pi/g,x1/10,pe/c,x3/6,pj/f,x11/8,s15,x0/12,s15,x11/10,s7,x8/12,pc/g,x4/7,s11,x9/8,s8,x6/14,s12,x2/10,pb/l,x4/14,s7,x15/7,s11,x9/2,s3,x5/12,pg/e,s10,x1/15,pm/f,x12/3,ph/p,s2,x2/9,s14,x1/15,s11,x3/11,s4,x12/14,pk/b,x1/7,s15,x13/15,pe/l,x4/10,s4,x12/5,pc/h,x2/8,s8,x6/13,pp/j,x0/9,s1,pe/k,x2/1,s2,x8/14,pn/m,s2,x2/15,s10,x5/8,s2,pg/p,x14/2,s8,x7/6,pl/i,x4/12,s4,x13/3,pb/k,x7/10,pn/l,x8/5,s4,x4/15,s12,po/p,x1/14,pn/h,x13/2,s6,x7/8,s5,x2/3,s3,x6/10,s2,x8/2,pe/g,x9/13,s3,x1/6,s1,x3/13,s3,x12/0,s3,x14/15,pk/n,s15,x11/7,s15,x14/15,s15,x5/1,pg/p,x10/2,pn/i,s2,po/d,x8/7,pm/i,x6/15,s8,x7/13,pk/f,x5/11,s10,x6/8,pe/h,s14,x7/0,s10,x1/15,s11,x11/2,pi/k,x9/15,s3,ph/o,x8/10,s9,x6/2,s3,x8/13,s11,x12/2,s1,x6/14,pm/f,x5/7,s3,x2/15,s7,x9/1,s12,ph/c,x11/12,s8,x1/14,s6,x8/13,s4,x10/1,pf/b,x12/13,pd/c,x6/14,s12,pl/e,x4/3,pp/d,x1/14,pj/o,x7/3,pl/a,x0/12,pn/h,x13/5,s11,x6/9,pd/g,x1/3,s5,x7/9,pm/p,x5/11,po/c,x2/4,s4,ph/d,x10/15,pp/j,x5/0,po/b,x7/8,s9,x6/1,ph/k,x0/3,pm/d,x14/9,pe/a,s4,pn/l,x0/1,s7,x13/3,s2,x8/0,s4,x3/1,s1,x6/8,s8,x14/10,s8,x13/1,s15,x9/15,pj/e,s11,x8/0,pc/i,x2/10,s3,x13/6,pb/k,x2/9,s7,x15/0,s8,x10/5,pc/d,s1,x4/2,s14,x8/15,s9,x9/10,s10,x13/1,pi/m,s14,x2/0,pd/a,x5/15,po/h,x13/0,s7,x9/12,s12,x1/6,s7,x11/0,s4,x14/4,s15,x10/1,pg/f,x9/15,s1,x1/11,s6,x15/6,s10,x8/11,pc/l,x13/2,s10,x15/10,pg/o,x12/1,s5,pe/h,x10/0,s1,x6/14,s8,x8/12,pa/g,x6/2,pe/h,x0/13,s12,x15/11,po/p,x10/12,pm/k,x1/13,s7,x11/12,pc/h,x7/5,s2,x1/3,pj/f,x2/6,po/g,x1/4,pj/k,s7,x7/11,pb/p,x12/9,s9,pg/l,x13/5,s8,x4/6,pb/n,x15/11,pe/l,x14/3,pf/k,x15/7,s15,x8/14,s14,x0/1,pb/o,s9,x8/6,s12,x13/11,s7,x6/1,s1,x7/0,pp/f,x14/12,s11,x8/3,pd/l,x1/9,pp/i,x6/13,s13,x4/0,s5,x15/2,pe/a,x14/0,pn/f,s6,x8/11,pm/e,x5/14,s5,x13/11,s2,x0/12,pa/f,x5/10,s4,x6/7,s15,pi/e,x11/8,s2,pb/a,x13/0,s12,x14/4,pj/d,s1,x12/11,s5,x1/8,s7,x13/7,s3,x6/11,s13,x13/1,s6,x3/5,ph/b,x6/1,pp/l,x5/7,s11,x4/10,s1,x1/5,pn/j,x13/7,s14,x10/2,s11,x8/5,pb/m,x4/2,s11,x13/9,pj/d,x4/3,s3,x5/7,pf/o,s2,x4/14,pp/i,x9/10,s14,x15/2,pb/n,x0/10,pk/g,x7/9,s8,x10/11,s2,x5/8,s3,x0/9,s14,x14/8,pi/d,x9/1,ph/j,x12/4,s6,x10/13,s12,x2/5,pg/o,x0/11,pd/i,x5/15,s4,x4/0,s11,x2/10,pn/a,x11/3,po/f,s6,x4/5,pl/m,x15/2,s7,x0/11,s1,x1/12,pn/g,x15/8,s4,x6/1,s7,x5/14,s6,pd/e,s1,x11/8,s10,x2/9,s12,x8/4,s10,x10/1,s4,x4/7,pf/m,x3/15,s7,x10/12,ph/n,x0/11,s15,x15/4,s15,x9/2,pi/e,x5/13,s5,x3/10,s5,x5/7,pj/g,x14/10,s5,x9/7,s11,x5/15,s14,x10/4,pn/b,x11/15,pg/f,s9,x6/9,s3,x11/12,s8,x8/0,s6,x15/7,s14,x6/3,s12,x1/9,pk/p,x4/13,s4,x10/3,pj/f,x13/0,s12,x10/15,ph/g,x6/11,pb/l,x7/12,pe/f,x9/10,s4,x15/7,s8,x6/8,s8,x14/0,pc/p,x1/13,s15,x8/2,po/l,x3/13,s10,x11/8,s5,x5/13,pe/p,x10/12,s11,pf/n,x9/15,ph/p,x11/10,s8,x4/13,pj/d,x1/3,s4,x2/12,pm/o,x1/10,s4,x8/0,s7,x11/13,s15,x6/14,s14,x15/3,s3,x8/5,pk/j,x11/2,s11,x0/14,s12,x10/4,s10,x15/7,s5,x10/8,s3,x4/15,s2,pm/h,s9,x12/7,s3,x11/3,pl/f,x1/4,s3,x15/12,s10,x13/9,s1,x10/6,s13,x11/8,s10,x6/1,s5,x11/0,s2,x7/12,pn/i,x13/14,s10,x10/1,pp/g,x3/7,s11,x4/9,s11,x14/5,s10,x9/8,s5,x3/1,s8,pj/k,x6/0,s5,x7/4,pa/h,x6/5,pp/c,x11/4,pg/m,x14/0,pd/h,x6/15,pf/g,x8/5,pe/a,x11/2,s2,x7/3,s4,x1/4,s12,x6/15,pi/o,x14/2,s3,x0/15,pk/c,s15,x10/9,s12,x8/2,s3,x6/14,s11,x7/5,s15,x3/0,s15,x13/8,s7,x14/10,s11,x9/4,pd/a,x11/0,s7,x14/4,s12,x10/9,pf/h,x12/14,pa/g,x7/13,pd/m,x12/5,s11,x2/9,pn/o,x0/7,s15,x6/4,s13,x10/7,pl/g,x2/4,s1,x12/13,pn/k,s8,x6/11,pf/i,x9/12,s5,x13/8,s12,x12/4,s7,x5/2,s12,x0/3,s5,x7/10,pk/j,s3,x5/4,s9,x8/12,pe/g,x2/9,s6,x5/12,pp/o,x13/3,s4,x15/4,s14,x13/12,s2,x2/11,pj/b,s1,po/p,x12/1,s15,x11/4,s2,x8/9,s5,x6/7,s7,x11/13,pc/g,x6/15,pb/o,s13,x11/13,s4,x9/0,s9,x13/11,pc/d,x5/6,pi/m,x2/0,po/d,x12/15,s10,x2/5,s1,x14/9,s8,x7/2,pj/a,x5/13,s8,x10/14,s1,x7/13,s13,x4/12,po/g,s9,x0/8,s7,x10/15,s10,x3/0,pp/h,x7/11,s1,x3/12,s6,x15/5,pg/a,x14/12,po/e,x7/4,pl/i,x9/15,s5,x11/13,s9,x0/8,pc/o,x10/5,pp/f,x13/6,s10,x15/14,s13,x5/12,s1,x2/10,s7,x13/6,s4,x5/12,s3,x3/4,s9,x14/2,pd/a,x11/9,po/h,x3/4,pk/l,x0/14,s14,x10/6,pi/n,x12/14,pb/l,s3,x9/4,s15,x3/7,ph/m,x8/11,s1,x2/3,s2,x4/13,pg/k,s15,x0/3,s3,x1/14,pj/i,x5/11,s5,x14/12,s7,x6/0,s6,po/n,x15/3,s14,x8/12,s9,x2/3,s14,x5/7,s9,x14/0,pg/b,x15/7,pp/h,x0/10,s13,x11/8,s11,x7/2,s4,x13/5,pi/l,s2,x1/4,s7,x11/2,s9,x7/0,ph/p,x9/6,pl/e,x11/4,s7,x7/5,s10,x1/8,pp/i,x6/10,pm/e,x0/4,pb/l,x2/6,pe/i,x11/14,s11,x9/6,s12,x4/11,pg/o,s7,x1/13,s6,x4/0,s9,pm/h,x3/8,s10,x6/4,s13,x5/7,s15,x3/15,pa/d,x9/11,s9,x15/4,s7,x9/13,s2,x15/2,s13,x5/1,s12,x6/12,s6,x15/5,s9,x11/7,po/k,x10/0,s14,x11/2,pn/p,x6/1,s8,x5/2,s2,x6/3,pl/b,x4/11,s12,x2/8,s3,x9/7,s3,x14/5,pe/f,s3,x9/12,s12,x11/15,s2,x5/12,pd/a,x0/14,pm/j,x5/7,pn/i,x9/1,s11,x8/13,s10,x11/6,s13,x10/7,s14,x15/8,s12,x4/6,s13,x14/13,s4,x11/15,s11,x12/9,s5,x11/6,pp/e,x0/2,s2,pd/b,x1/14,s15,x6/10,s3,x8/13,pa/i,x2/4,pc/l,x12/13,s14,x10/3,pa/d,s3,x15/1,pg/i,x5/10,s7,x11/3,s5,x4/7,pl/o,x9/0,s4,x7/5,pk/p,x11/15,s2,x1/8,s2,x13/3,s1,x14/1,s2,x5/10,s13,x9/2,pb/j,x7/6,pc/k,x2/15,pa/i,x11/1,s8,x12/14,s13,x6/5,s15,pn/b,x10/12,s13,x5/11,pk/l,x3/2,pf/g,x14/4,s15,x11/3,pc/o,x15/13,pb/j,s10,pc/o,x6/8,pf/i,x1/5,pj/p,x2/8,po/c,s14,x1/0,ph/d,x13/11,s9,x5/8,s1,x14/10,s2,x6/11,s1,x4/3,pk/c,x8/5,s14,x3/13,s10,x11/7,s7,x15/0,s3,x7/11,s3,x10/2,s15,x8/1,pn/g,x5/2,s7,x3/6,ph/b,x8/15,s2,x3/13,s9,x12/10,s8,x8/2,s12,x12/10,pe/k,x9/1,pc/d,x6/13,po/n,x1/0,s8,x9/10,s3,x4/3,s15,x6/9,s3,x12/2,pm/g,x14/1,pl/d,x9/5,s6,pe/f,x0/7,pi/n,x5/13,pa/o,x8/7,s9,x1/0,pj/f,x5/10,s9,x1/3,pi/m,s7,x15/4,s5,x5/2,s8,x13/15,s3,x14/10,s13,x4/0,pc/f,x5/3,s10,x6/9,s5,x1/5,s7,x11/9,s13,x0/5,s3,x8/13,pn/a,x1/12,s8,x14/13,pb/g,x15/7,s6,x3/5,s7,x13/4,s14,x1/0,s4,x3/8,s1,x7/2,pn/e,x3/4,s14,x0/13,pk/p,x10/1,pa/n,s2,x0/8,s13,x4/14,s3,pm/d,x1/15,s7,x8/2,s8,x7/15,s10,x5/10,s12,x9/3,pn/h,x4/11,s14,x14/6,pa/o,x12/0,s4,x11/3,pg/i,x14/9,s8,x10/4,s10,x3/0,s8,x11/2,s10,x10/5,s2,x3/6,s2,x1/8,pb/n,x7/5,s5,pp/h,x1/9,s14,x14/0,pd/k,x12/2,s8,x10/7,pp/a,x1/11,s10,x13/0,pn/o,x7/3,s11,x10/4,pk/i,x7/11,s1,x4/3,s6,x15/14,pd/a,x5/10,pi/l,x3/1,pm/c,x6/4,s1,x12/3,s7,x13/11,pp/g,x12/9,s7,x5/15,s9,x4/14,pl/n,x10/8,s7,x5/1,pa/b,x3/10,pd/i,x14/0,pn/h,s12,x3/12,pj/c,x5/10,pd/n,x9/15,s6,x0/14,pe/l,x4/1,pd/h,x13/2,s14,x14/1,s15,x4/13,s7,pk/i,x0/14,s10,x13/9,s5,x10/7,s3,x0/11,s12,x2/15,s13,x10/3,po/j,x12/0,pb/e,x2/9,s3,pj/l,x5/6,s13,x1/4,s6,x6/7,s2,x15/3,s5,x5/9,s4,x14/2,s6,x13/11,s3,x8/1,pi/e,x3/10,pa/h,x4/0,s13,x7/11,pf/l,x9/15,s2,x11/7,s4,x13/5,s13,x8/15,s15,x7/4,pk/a,x5/9,pi/c,x4/6,pp/n,x0/8,pk/f,x3/14,s2,x7/5,s13,x2/0,s15,x5/4,s4,x13/11,pd/j,x7/8,s9,x3/13,pl/m,x0/15,pi/d,x12/1,s14,po/k,x14/5,s4,pi/c,x10/1,s9,x14/4,s10,x11/13,pf/o,x4/10,s14,x6/7,s7,pe/p,x8/10,s4,x13/5,s12,x15/2,s14,x10/8,pb/g,x14/13,s4,x7/12,s12,x2/15,s12,pl/e,x5/4,s6,x0/15,s8,x9/6,s13,x5/10,pc/o,x2/12,s14,x4/1,s9,x5/8,s8,x6/9,s10,x12/11,s13,x3/7,s6,x14/13,pa/e,x6/9,s7,x5/11,pf/n,s6,x9/7,pg/m,x10/11,s13,x5/4,s5,x11/9,s4,x6/12,s1,x2/4,pf/c,x9/6,s7,x11/0,s9,x6/4,s14,x15/9,po/h,s11,x0/11,pn/p,x4/15,s5,po/l,x2/8,s3,x3/15,s14,x13/0,pi/p,s8,x5/4,s5,pb/g,x7/10,pe/o,x9/14,s12,x12/2,s2,x15/11,pn/c,x13/4,s5,x0/5,s8,x7/3,s13,x2/10,s14,x11/9,s14,x5/0,s7,x1/14,pi/p,x2/9,pl/j,x3/4,pm/n,x15/10,s11,x6/5,s12,x13/15,s2,x6/4,s1,x7/9,s6,x12/0,pc/d,x6/3,pa/g,x14/0,s15,x4/10,s5,x6/5,pl/p,x2/12,pd/j,x1/0,pl/h,x10/4,po/k,x13/3,pg/d,x14/8,s8,x11/7,pe/m,s3,pl/o,x1/14,s4,x2/7,pk/p,x9/10,s1,x6/4,pb/a,s12,x9/14,s13,x8/5,s8,x13/12,s15,x8/6,s10,x0/14,s1,x15/11,s6,x12/8,s12,x0/4,s13,x10/3,s14,x11/9,s5,x15/5,s8,x14/8,ph/l,x5/6,s5,x7/11,s15,x2/8,pa/g,x12/13,pd/j,x8/1,s3,x6/11,s14,x2/9,s9,x1/13,s13,x2/10,s11,x13/7,pk/f,s3,x9/4,s10,x15/11,pm/d,x10/9,pg/i,s12,x12/11,s8,x15/6,s12,x9/0,s6,x15/1,pm/d,s3,x11/3,pi/j,x1/9,po/b,x6/12,pj/g,s11,x1/3,s6,x0/15,po/c,s15,x3/12,s12,x2/14,s8,x0/10,pn/b,x1/14,pe/f,s14,x6/12,s10,x4/1,s2,x11/13,s7,x2/5,pb/i,x7/12,pk/g,x11/4,s15,x13/6,s14,x14/0,pe/o,x3/8,s5,x15/0,s9,x4/11,s2,x10/9,s11,x2/14,s15,x5/6,ph/f,x1/2,pi/k,x5/14,s6,x0/7,s7,x8/6,s14,x11/12,pg/a,x2/8,s13,x1/15,s14,x0/10,s10,x9/6,pe/b,x10/8,s13,x0/2,s14,x9/11,pg/k,x5/8,s12,x1/6,s2,x10/11,pc/b,x14/3,pm/o,x13/0,s8,x7/2,s13,x10/12,s10,x1/2,s4,x8/9,ph/a,x12/13,po/k,x0/7,s8,pd/g,x11/4,pa/f,x1/3,s4,x11/4,s8,x14/13,s10,x9/7,s7,x6/5,s13,x11/10,pd/m,x6/8,pg/k,x5/11,s6,x9/15,pe/m,x8/3,s13,x9/10,s11,x13/3,pa/i,x14/15,s1,x1/11,s9,x5/4,pm/c,x8/6,s10,x2/3,s2,x5/15,s10,x7/1,s5,x12/9,s7,x3/8,s15,x4/1,s15,x15/14,pg/p,x3/4,s14,x5/12,pm/e,s11,x14/8,s11,x7/13,pp/f,x0/3,pi/g,x12/5,s15,x3/4,s3,x13/15,s1,x12/8,s7,x7/0,s2,x2/15,pb/n,x3/14,s2,x13/5,pc/a,x9/3,s8,x6/7,s15,x13/2,s3,x10/3,pm/h,x13/14,s9,x10/8,s11,pa/j,s9,pe/i,x9/14,s14,x2/0,s8,x13/9,s1,x8/12,s8,x10/3,s15,x6/8,s6,x2/10,s5,x11/14,s5,x9/15,pp/l,x0/11,pa/k,x1/10,s8,x6/11,s8,x15/2,pf/m,x10/9,pc/h,x14/7,s1,x15/6,pe/j,x12/2,s9,x1/5,s14,x6/10,pn/a,x14/1,s8,x11/8,s15,x14/4,pb/d,x11/7,pp/a,x8/15,s1,pl/j,x12/5,s13,x7/13,pd/m,x15/2,pa/f,x4/13,s11,x5/14,po/b,x7/8,s6,x5/6,s3,pa/i,x14/13,pn/f,x15/1,pd/j,x11/13,pk/c,x9/12,s5,pj/e,x10/7,pp/d,x3/6,s13,x7/14,s9,pf/c,x3/4,pp/i,x0/6,pm/j,x4/13,s13,x7/12,s14,x13/5,pf/d,x14/4,s12,x13/3,s15,x4/11,s8,x14/5,s7,x12/1,s3,pg/j,x3/11,pe/a,x10/14,s7,x6/5,s6,x13/9,pn/g,x4/11,pk/h,x8/9,pa/g,x10/0,pk/c,x3/6,pf/e,x14/11,pa/o,x13/15,s12,x14/12,pd/p,x13/1,s6,x12/9,s5,x11/10,pi/m,x8/1,s3,x10/14,pk/b,s10,x7/5,s6,x14/3,ph/i,x2/12,s6,x7/6,pf/m,x4/9,pl/b,x3/8,s9,x12/11,pm/g,x7/14,pi/p,s1,pj/a,x10/1,pl/m,x6/2,pe/j,x12/4,pc/b,s14,x13/11,s14,x4/0,pa/o,s13,x10/6,s7,x9/7,s5,x10/11,s5,x6/1,s10,pl/c,x13/2,pk/i,x14/6,ph/m,x8/9,s8,pi/f,x1/15,pd/j,x7/6,pk/f,x15/13,s6,x3/4,s5,pg/l,x10/9,pb/j,x2/15,pe/k,x3/6,s8,x10/5,s12,pl/o,x2/7,pa/g,x12/5,pn/k,x3/7,s3,x15/11,s1,x6/4,s2,pd/b,x1/8,pf/i,x2/12,s5,x11/7,s5,x0/2,s1,x7/9,s12,x2/0,s2,x5/8,pn/e,x4/14,s2,pm/l,x13/7,ph/k,x9/0,s9,x7/5,po/j,x10/6,pd/n,s4,x15/13,s6,x5/1,pg/m,x14/13,s6,x5/1,s3,x3/2,s2,x9/7,s15,x12/1,s12,x5/8,s5,x7/11,pl/d,x2/9,s9,x15/12,s10,pp/a,x13/14,s1,x11/1,s11,x6/14,s15,pf/h,x9/7,s1,x1/5,po/n,x15/12,pm/i,x3/14,s14,x15/5,s2,x14/4,po/l,x5/9,pf/n,x8/1,s3,x6/12,pb/j,x13/5,pa/h,x2/0,s12,x8/13,s10,x10/2,s14,x14/9,s5,pm/d,x10/12,s10,x1/6,pf/l,x10/12,pb/p,s12,x6/13,s3,x2/1,s15,x5/10,pn/d,x2/14,s4,x3/11,pi/c,x15/12,pd/n,x7/14,s10,x1/9,s7,x5/0,ph/k,x9/13,pg/l,x10/1,ph/j,x9/14,pc/n,x12/5,s13,x7/11,s9,x8/5,s10,x6/14,s3,x0/11,s12,x12/15,s3,x8/5,pk/m,x2/11,po/p,x5/0,s13,x7/9,pk/g,x0/14,pe/m,x12/11,pg/h,x2/15,s15,x10/1,s3,x7/14,pi/e,x13/10,s5,x14/5,s2,x0/13,s14,x2/4,s2,x0/8,pb/f,x1/9,s9,x12/6,pg/i,x10/13,s15,x0/9,pb/m,x6/14,s7,x9/7,s2,x6/4,pf/o,x15/2,s13,x12/5,pi/m,x6/0,s2,x4/13,s15,pf/j,x2/7,s5,x4/9,s5,x12/13,s12,x3/2,s9,x15/11,pd/b,x12/3,pk/p,x13/14,s7,x9/10,pc/g,x13/11,s4,x3/8,pn/b,s14,po/i,x0/15,s7,x12/11,s6,x5/8,pl/k,s12,x11/10,s14,x15/9,s10,x7/13,pp/g,x10/4,s2,pj/n,x9/0,s14,pp/o,x3/5,s13,x15/11,pb/k,x4/9,pj/g,x7/14,s12,ph/d,x10/0,s2,x3/5,s4,x6/9,s8,pp/j,x5/3,pm/k,x0/14,pn/l,x4/7,s7,x11/10,pp/o,s2,x2/12,s1,x8/10,s11,x1/13,pc/l,x8/6,pa/d,x0/3,pm/e,x6/12,pi/a,x2/5,s2,x15/9,s15,x5/11,s15,x15/14,s13,x13/2,s14,x0/15,pk/l,x13/11,s3,x6/0,s4,x4/1,s7,x13/2,s3,x1/11,pp/g,x2/14,s4,x8/0,pf/d,x3/2,s13,x13/12,pk/p,x15/10,pj/i,x12/7,s11,x0/11,s5,x9/14,s13,x1/10,s6,x6/8,pk/e,x14/3,s2,x4/6,s1,po/m,x7/2,s12,x13/1,s1,pj/f,x7/14,pl/d,x4/11,s2,x14/1,pj/c,s5,x11/3,s10,x15/13,s4,x9/10,ph/e,x0/1,s15,x5/11,pf/b,x0/15,s12,x4/10,s7,x5/12,pm/c,s13,x8/10,ph/a,s15,x4/11,s13,x12/7,s4,x1/9,s9,x15/10,pe/c,x12/0,s8,pk/j,x1/7,s5,x3/2,s7,x10/15,s5,x5/4,s9,x12/9,pp/m,x0/10,s10,pb/d,x12/6,s3,x2/4,pg/a,x8/9,s7,x5/4,s11,x14/10,s14,x12/3,s3,x15/2,ph/o,s6,pg/p,x8/1,s2,x12/5,s13,x11/7,s13,x0/8,s9,x4/6,s8,x8/12,s2,x4/14,s3,x2/13,s12,x15/10,pj/m,x4/13,s6,x8/2,pg/n,x7/0,s15,x13/8,pe/p,x10/15,s8,x11/12,s13,x8/7,pi/k,s9,x4/0,s13,ph/l,x13/11,pg/p,x5/8,s3,x15/4,ph/c,x3/11,s14,x2/8,s12,x3/15,s12,x12/8,pg/p,x9/14,pd/a,x15/3,s2,x6/5,pk/j,x13/2,s8,x4/8,pb/m,x13/14,s11,x12/3,s12,x14/4,s3,x0/3,s8,x9/15,s8,x5/4,s10,x7/12,s6,x4/15,s11,x7/1,s8,x4/12,s10,x6/0,s13,x10/14,pj/f,x5/6,s6,pe/k,x15/0,s12,x9/12,pj/a,s14,x2/10,s8,x1/12,s7,x8/6,pp/m,x5/7,s2,x13/1,po/a,x9/10,pi/f,x15/0,po/k,x14/12,pe/c,x9/6,pf/d,x14/1,s5,x3/11,s15,x5/12,s8,x4/1,pp/m,x14/5,s3,x10/0,po/n,x12/4,pd/b,x15/9,s13,x12/1,po/n,s10,x0/14,s7,x12/6,s13,x3/8,s1,x13/1,pa/i,x15/9,ph/c,x8/7,pp/n,x2/4,pk/h,x15/13,s9,x10/0,s2,x1/2,pl/e,x13/9,pi/h,x0/14,s11,x8/9,s12,x4/6,s11,x0/14,s6,x3/4,s5,x0/15,s12,x2/13,s15,x3/15,s7,x8/14,s6,x11/9,s6,x4/8,s5,x0/5,s10,x15/14,s11,x1/12,pl/e,x11/2,pg/b,x6/5,pi/e,x9/0,s3,x15/5,pp/c,x7/14,s7,x5/10,s2,x9/14,pj/a,x7/10,pp/l,x2/11,pb/o,x14/9,s11,x5/8,pe/p,x6/3,s4,x9/4,s8,x3/5,pi/h,x0/11,s13,pb/g,x3/10,s3,x14/1,s8,x3/4,s1,x10/1,pj/p,x11/9,s8,x15/4,pd/n,s6,x1/7,pp/f,x3/11,po/e,x13/12,s15,x11/1,s8,x14/0,s6,x13/12,s15,x11/15,pm/l,s8,x7/0,s3,x8/3,s2,x15/14,pp/a,x11/1,s15,pd/j,x10/15,s12,x11/8,s10,x1/15,pm/k,x9/2,s6,x14/13,s5,x12/4,pd/e,x6/13,pl/c,x14/1,s1,x12/5,ph/i,x11/3,s7,x7/1,pp/d,x11/12,s4,x8/0,s13,x7/12,pj/o,x3/5,s7,x4/0,s8,x3/6,s14,x4/1,s6,x12/5,pm/e,x7/14,s5,x9/0,s12,x12/11,s9,pa/d,x2/1,s9,x4/15,s4,x9/12,s8,x13/6,s15,x9/4,s1,x13/12,s4,x9/1,s9,pl/h,x7/5,s8,x9/8,s14,x6/12,pp/m,x4/14,pf/e,x3/12,pb/h,s3,x7/13,pn/c,x10/8,s12,x12/3,pb/d,x13/2,s10,pe/k,x1/12,pf/l,x4/14,s4,x11/10,s2,x7/14,s1,x6/1,s10,x0/9,pd/m,x1/12,s8,x6/10,s11,x7/12,pb/h,x2/15,pn/p,x14/5,s9,x12/0,s13,pd/b,x7/4,s3,x0/13,s8,x6/11,s3,x5/10,pm/n,x7/11,s14,x13/0,pg/p,x1/5,pd/k,x15/3,s8,x11/13,pm/b,s7,x9/8,pk/d,x2/15,pf/i,x12/11,s1,x3/13,po/p,x14/7,pk/c,x4/5,s2,x6/0,s12,x11/1,s2,pd/b,x5/15,pe/j,x11/14,pp/h,x0/15,s12,x14/11,pl/g,s14,x1/7,s15,x8/6,s2,x1/9,s14,x10/14,s9,x15/8,s6,pd/m,x14/4,s1,x7/5,s14,x4/0,pl/p,x9/13,s4,x0/1,ph/d,x3/15,s12,x0/5,pf/a,x1/7,pk/m,x2/15,ph/c,x0/11,pg/b,x4/7,s13,x5/2,pl/h,x11/1,pm/b,s9,x12/15,pl/h,x14/3,s8,x13/12,s15,x4/2,s9,x1/7,pd/p,x2/9,s11,x14/7,ph/l,x0/5,s14,x13/7,s11,x6/1,s3,x14/2,pp/a,x3/12,pf/h,x10/2,s2,pj/k,x3/14,s3,x2/0,s11,x4/5,pb/e,x14/7,s1,x10/12,s1,pc/i,s8,x11/13,s11,x10/3,pa/f,x11/9,po/p,x10/6,s1,x11/8,s2,x5/14,s15,ph/n,x0/11,pi/e,s7,x2/6,pf/m,x1/5,pe/p,x10/8,s10,x2/7,pk/c,x0/5,s9,x11/6,pp/a,x1/2,pf/m,x3/8,s7,x9/2,s2,pc/g,s8,x5/0,pf/p,s12,x13/15,s14,x7/0,pg/l,s9,x12/6,s7,x2/3,s3,ph/m,s13,x10/4,po/i,x9/3,s9,x15/7,pj/n,s14,pi/f,x12/0,pl/p,x15/1,pn/e,x0/5,s1,x12/1,s9,pk/p,x8/11,s11,x3/15,s6,x5/13,s3,x0/9,s3,x6/2,s8,pn/e,x11/15,s13,x7/4,po/b,s8,x5/8,pm/p,x14/1,s14,x10/0,s13,x5/12,s4,x13/6,s11,x2/5,pb/c,x7/4,s8,pa/g,x10/9,s15,x0/2,s5,x7/6,s13,x8/11,pk/j,x7/6,pg/a,x11/1,s8,x0/14,s2,x4/13,pn/h,x0/5,pl/o,x15/13,s1,x8/3,s8,x6/14,s10,x10/4,pi/p,x1/2,pm/f,s1,x14/8,s8,x2/5,pp/o,s3,x12/13,s8,pl/b,x8/14,s7,x9/10,pi/d,x1/7,s10,x6/3,s6,pm/g,x7/9,pb/f,x14/0,pm/i,x15/6,s14,x1/4,s15,x9/0,pg/e,x11/3,s13,x2/8,s5,x13/7,s1,x4/8,s6,x3/6,s4,x14/2,pp/i,x6/15,s12,pf/d,x12/5,s3,x0/14,s1,x11/15,pn/p,x9/10,pi/d,x0/12,pp/n,s4,x4/5,s8,pm/c,x8/2,s9,x10/7,pa/h,x0/4,s12,x3/15,s11,x6/8,pi/p,x5/13,s12,x6/11,pj/b,x3/5,s7,x11/14,s5,x7/5,s3,x12/2,s5,x5/4,s2,x8/0,po/m,x6/9,s1,x0/11,s10,x2/3,s12,x5/0,s1,x9/1,pn/l,x2/5,s9,x10/14,pj/h,s6,x13/5,s1,x1/15,s13,po/p,x8/12,pk/d,x14/5,pi/m,x4/10,s14,x0/14,pf/k,x15/2,pc/g,x9/8,pp/n,x3/12,pa/h,x5/15,s1,x13/12,s5,x1/15,pb/m,x5/10,pp/c,s11,pj/d,x7/6,s11,x5/9,pl/g,x7/8,s12,x9/0,pf/p,x13/15,pi/d,x10/6,pe/c,x12/14,s15,x4/7,s12,x5/2,s12,x11/9,pa/f,s2,x3/10,s14,x5/7,s13,x6/10,s11,x8/7,s5,x0/14,pk/m,x4/8,s9,pi/n,x0/12,s1,x13/14,s15,x5/10,pl/g,x8/9,pa/j,x3/11,pg/o,x1/7,pc/e,x12/5,pg/h,x6/15,s1,x5/10,s2,x15/6,po/j,x10/13,s3,pf/c,x5/4,s13,x12/3,pg/h,x15/2,s5,x9/7,pk/l,x2/8,s9,x12/9,s12,x6/3,s12,x8/9,pm/p,s2,x4/0,pg/d,x9/8,s12,x13/15,pk/h,s1,x3/6,pi/p,x8/4,pe/a,x3/14,s8,x0/11,pc/k,x9/15,s11,x14/7,pd/p,x3/12,s12,x15/9,s13,x6/7,s5,x5/10,s12,x4/14,s8,x6/10,pj/c,x9/5,pb/n,x6/11,pp/a,x15/5,s1,x11/2,pl/h,x14/6,s4,pd/p,x12/7,s8,pm/o,x14/10,s6,x4/7,s8,x11/15,pa/n,x13/8,s6,x15/5,s1,x0/13,s4,x8/11,s7,x13/0,s4,x1/9,s14,pl/e,x3/13,pg/p,x4/12,s10,x2/10,pn/b,x8/13,pe/d,x9/0,s7,x4/12,pm/k,x15/3,pj/a,x9/0,pi/e,x7/13,pj/b,x1/11,pg/k,x13/4,pj/n,x7/15,pe/i,x6/14,s12,x4/11,ph/k,x2/12,pi/f,x9/13,s14,x14/10,s15,x6/13,pl/n,x0/7,pp/b,x4/14,pi/m,x2/9,s2,x4/15,s14,pb/f,x13/2,pi/k,x15/1,s3,x12/0,ph/m,x3/14,s11,pg/a,x0/7,s13,pk/c,x1/9,pe/n,s13,x11/10,s5,x15/2,s12,x3/14,s12,x15/12,s8,pf/d,x11/6,s5,x3/1,s8,x7/10,pi/n,x2/3,s4,x11/1,pc/g,x15/5,pb/d,x1/13,s3,x4/14,s12,x13/10,pg/f,x1/12,s6,x2/8,s1,x0/4,pb/o,x3/15,s15,x2/7,s6,x4/12,s12,x9/7,s9,x11/8,s5,x13/1,s9,x6/15,pl/p,x11/5,pk/f,x10/7,pc/h,x2/6,po/e,x12/5,pa/m,x11/1,s12,x8/6,pc/j,x14/1,s6,x0/4,ph/f,x7/8,pa/d,x12/0,s5,x9/13,s12,pk/g,x14/4,s9,x1/15,po/e,x5/10,pm/b,s15,x13/8,s3,pj/i,x5/12,pn/d,x8/3,s12,x13/11,pk/m,x2/7,pn/f,x0/5,s9,x7/2,s11,x15/6,s14,x13/10,s14,x1/14,pk/c,x6/5,s2,x8/10,s12,x7/9,s14,x11/5,pp/a,s5,x14/15,s15,pb/j,x6/5,s1,x1/9,pf/o,x5/13,pc/i,x1/10,pm/j,x12/0,pe/g,x8/15,s3,x9/6,s14,x10/12,s11,x5/8,pb/p,x9/6,s5,pf/c,x12/0,s15,x10/13,s8,x0/4,s5,x14/13,s14,x9/5,s1,x1/15,s10,x3/13,po/m,x9/5,pe/g,x8/13,s9,x2/3,pi/m,x1/15,s13,x6/3,pk/p,x12/11,s14,x8/14,pa/d,x10/0,pj/m,x2/11,s6,x7/9,s8,x12/4,pk/a,x15/5,s13,pm/c,x0/1,s8,pk/l,x13/7,pa/o,x2/4,s8,x11/6,s10,x8/5,s12,x0/1,pg/l,x4/9,s9,x8/7,s4,x0/15,s7,x10/1,s8,x4/8,pm/j,s5,x3/6,s15,x7/5,pl/k,x1/6,s11,pf/o,s2,x9/14,ph/g,x8/4,s13,x5/13,s10,x10/6,s7,x3/7,pl/c,x0/10,pm/g,x1/13,s4,x0/5,po/e,x6/12,pa/k,x2/11,s12,x3/5,pb/o,x9/13,pa/k,x10/0,pm/j,x14/9,ph/l,s4,x5/4,s6,x1/11,pe/g,x15/12,s10,x5/9,ph/f,s13,x14/15,s10,x8/10,s6,x14/3,pg/l,s2,x10/9,s2,x0/6,pd/o,s3,x15/5,pi/l,x13/3,s13,x0/14,s7,x12/6,s12,x14/5,pj/k,x12/15,s9,x13/3,s3,x14/6,pd/b,x3/13,s15,x12/14,ph/c,x8/7,s3,pe/a,x3/4,pn/h,x6/13,pg/d,x8/7,s4,pf/i,x0/1,pe/o,x10/2,s2,pi/b,x14/0,s6,x2/15,s15,x6/9,pd/f,x11/15,pj/h,s15,x12/4,pd/c,x3/6,pp/l,x12/11,pc/d,x0/3,pn/o,x15/5,pi/p,x10/4,s2,x7/13,s6,x14/8,s7,pk/a,s7,x12/9,s13,x14/10,s10,pn/p,x0/6,po/b,x8/9,s12,x0/10,pp/j,x7/3,s1,x14/4,pf/h,x6/9,pc/k,x13/12,po/j,x5/8,pd/k,x4/6,pf/i,x0/3,s1,x5/14,pp/e,x1/15,s3,x5/13,s5,x4/14,ph/j,x7/13,s8,pi/n,x11/10,pl/c,x0/9,pe/f,x10/8,pi/m,s3,x11/12,s15,x1/4,pj/o,x14/2,s9,x8/0,s2,x11/3,s1,x8/14,pi/k,x2/15,pc/f,x0/3,ph/l,x9/15,s12,x7/2,s15,x9/14,s8,x11/6,pm/b,x1/7,pl/e,s15,x12/2,s13,x1/3,s1,x12/8,s13,x13/3,s9,x2/11,pp/d,x6/7,s9,x3/5,s8,pl/b,x6/15,po/n,x2/14,s5,x5/4,pl/g,s11,x1/9,pa/j,x14/4,pk/e,x12/6,pn/p,x13/5,pk/j,x8/9,pp/o,x3/0,pc/l,x6/4,s3,x0/12,s12,x2/3,s7,x9/5,pb/e,x2/1,s4,x13/4,s13,x6/10,s3,x1/12,s3,x3/4,pc/g,x5/15,pm/l,x9/7,pg/o,x3/0,pd/b,x10/14,s2,x3/11,s7,pi/j,x0/4,s14,x11/15,s10,x2/6,s11,x7/0,s2,x10/14,pb/e,x15/6,pm/g,x13/12,s7,x5/14,s5,x11/3,s3,x14/9,pp/k,x4/5,s13,x0/3,pi/g,x11/5,pf/n,x10/4,s2,x3/13,s3,x2/14,s4,x10/9,pi/h,x14/4,s9,x6/15,s10,x12/9,s12,x4/5,pc/d,x11/8,pj/k,x3/1,po/p,s4,x5/13,s7,x1/12,pi/b,x6/13,s9,x9/14,s15,x13/10,s15,x15/7,s14,pn/a,x5/12,s4,x6/14,s12,x10/7,s3,pp/f,x3/6,pk/o,x11/4,pi/j,x6/10,s6,x14/7,pa/m,s3,x11/8,pj/l,s1,x1/7,pc/i,s1,x0/3,pl/k,x11/14,pc/e,x12/13,s5,x2/9,s4,x5/1,s4,x9/10,s6,pf/n,x6/0,s5,x4/7,pd/p,s15,x15/6,pn/m,x3/9,ph/g,x7/1,pd/e,s3,x13/2,po/c,x8/3,pl/b,x4/11,s14,x13/6,pf/p,x8/12,pc/n,x10/6,s9,x11/12,ph/j,x4/13,pb/p,x11/3,s13,x15/8,s6,x14/5,pm/e,x9/8,s6,x12/3,pk/l,s4,x15/4,s1,x9/11,po/b,x0/12,s8,x14/11,s3,x4/3,pm/c,s11,x14/9,s11,x6/3,s13,x2/14,po/d,x8/6,pg/j,x3/12,s14,x7/8,pk/b,x11/9,s10,x14/12,pi/h,x11/15,s2,x3/10,s8,x11/9,pm/l,x7/8,pp/b,x3/9,s7,x8/10,s11,x14/2,pj/o,s15,x9/6,pk/c,x13/8,s12,x5/7,s8,x3/8,pp/e,x9/7,pl/d,x0/15,pf/k,x6/7,pd/c,x5/0,ph/f,x9/2,s5,x5/1,pl/n,x13/3,s7,x5/10,s13,x1/7,pi/k,x8/0,pa/n,x12/7,pj/h,x1/0,pn/d,s8,x6/14,pb/h,x10/7,pm/a,x13/1,s8,x10/12,pe/d,x4/14,pj/m,x0/12,s12,x7/4,s6,x5/0,s10,x2/1,s15,x4/15,pp/o,x7/5,s1,x0/12,pb/h,x6/3,s15,pk/i,x11/14,s2,x10/13,s3,x1/2,s13,x4/13,s8,x6/8,pf/j,x15/5,pa/o,x10/13,s6,pl/p,x15/6,po/e,x12/1,s3,x11/8,s13,x2/5,pk/j,x4/14,s1,x10/3,pe/m,x9/5,s6,pg/o,x15/8,s6,x9/3,s2,x4/10,s8,x7/13,s2,x15/12,s1,x1/3,s7,x12/8,s13,x10/0,pe/a,x8/13,s10,x0/12,ph/f,x2/3,s12,x10/7,pk/e,s7,x12/6,s2,x13/11,s11,x7/14,s10,x13/6,s8,x5/7,s8,x6/12,s9,x8/13,pf/j,x9/5,s4,x4/10,s1,x5/13,s5,x4/12,s1,x2/6,s5,x1/12,pb/h,x2/8,s14,x6/0,s3,x1/14,pi/k,s6,pd/o,x11/13,s5,x3/5,s15,x6/14,pi/f,x5/3,pb/o,s12,pi/j,x11/13,s2,x6/10,ph/c,x15/14,po/l,x7/13,s1,x11/9,s4,x0/14,s12,x3/15,s15,x1/8,s15,x13/11,s6,x2/7,s14,x8/0,pb/k,x5/9,pp/m,x8/7,pc/b,x3/14,s8,x12/13,pe/g,x8/10,s9,x3/12,pa/o,x11/4,s12,x10/15,pb/i,x7/12,s10,x14/9,pl/h,x4/0,s8,pi/d,x15/11,s1,x9/10,s11,pn/k,x5/7,s10,x10/3,s13,x1/0,pm/h,x12/10,pl/i,s10,x4/3,s3,x10/6,s5,x9/14,s12,x3/12,pc/k,x15/14,pa/j,x10/13,pn/m,x5/14,pk/f,s15,x3/11,pl/o,x5/14,pm/a,x7/0,s4,x6/8,s3,x4/13,s15,x2/1,pi/e,x7/6,s6,pp/n,s12,x13/15,pd/f,x1/3,s7,x9/8,s2,x0/14,s15,x5/10,pl/g,x4/15,s5,x1/2,pk/e,s1,x11/14,pd/l,s13,x12/4,pk/o,x1/3,s6,x14/10,s15,pf/a,s9,pd/l,x11/5,s7,x6/7,s1,pp/e,s1,x1/3,po/g,x9/0,s15,x11/2,s3,x7/5,pd/p,s9,pb/a,x8/3,s13,x1/14,s4,x8/11,pd/c,x13/7,s8,x3/11,s2,x5/2,s13,x9/12,s7,x4/1,s1,pn/g,x8/11,pf/a,x7/0,s3,x12/6,pk/b,x2/9,s10,x11/14,s5,x7/4,s3,x14/1,s4,x6/5,s2,x3/11,s6,x5/0,pp/o,x7/9,pn/j,x11/2,s13,x15/5,s1,x6/3,pe/d,x4/10,s3,x1/3,s11,x15/5,pf/c,s5,x10/12,pn/h,x7/8,s15,x3/9,pb/c,x7/13,po/a,x3/9,s7,x11/0,s10,x10/8,s12,x7/11,pn/p,x10/9,ph/m,x14/1,pb/d,s6,x13/3,pm/g,x15/6,s12,x13/0,pi/l,x5/15,s3,x4/7,s2,x10/14,pg/a,x13/5,s3,pf/p,x3/6,s9,x12/1,s7,x11/3,pc/d,x14/2,pi/k,x15/0,pl/c,s11,x14/12,pn/j,x11/3,s4,x15/12,ph/f,x11/14,pg/l,x4/1,pd/j,x11/0,s3,x15/1,s2,x11/12,pm/c,s12,x1/10,s10,x3/13,pe/a,x5/2,pb/h,x12/4,s11,x5/0,s15,x3/15,pk/a,x12/10,s10,x8/14,s3,x11/6,s11,pm/h,x14/5,pj/c,x4/1,s8,x5/14,s7,x15/11,pm/p,x7/6,pe/a,x11/8,s9,x15/7,s4,x3/12,s6,x9/8,s8,x7/12,pi/n,s6,x14/10,s6,x15/2,s10,x13/5,s11,x11/4,s7,x2/15,s13,x6/12,s1,x8/2,pj/g,x9/3,s3,x8/2,pa/c,x9/13,s13,x2/4,pk/f,x0/3,s3,pd/j,x2/4,s15,x12/1,s13,x11/3,pm/b,x4/9,pj/i,x2/10,s2,x14/9,pg/e,x2/15,s8,x6/7,s10,x13/0,s3,x12/4,ph/c,x1/3,pf/e,x7/9,pj/m,x14/10,s14,x2/11,s1,x5/8,s14,x1/4,pg/e,x7/12,pk/m,x13/0,s10,x8/9,s3,x7/11,s1,x9/5,pf/i,x15/7,pl/b,x14/4,s11,x5/6,s10,x13/10,pa/h,x5/4,pb/j,x8/12,s6,x1/14,s14,x10/11,pg/f,x6/0,s3,x3/5,s14,x6/0,pc/b,x2/13,s12,x15/10,pi/f,x5/1,s2,x2/7,pe/m,x11/3,s9,x5/14,pi/g,x10/15,po/p,s2,x0/1,s9,x15/13,pl/i,x6/10,s13,x2/5,pn/e,x1/3,pk/j,s13,x7/0,pp/n,x12/14,pm/l,s14,x4/6,s10,x14/2,po/k,x0/12,s3,x11/2,s2,x5/14,pl/d,x12/0,s13,x1/3,pk/o,x8/7,s5,x14/5,pe/b,s2,x15/11,pi/k,s4,x1/2,pf/a,x8/10,s5,x4/9,s5,x8/15,pm/h,x1/7,s8,x8/3,pc/g,x14/4,pk/n,x3/13,s15,x4/10,s13,x0/13,s15,x4/15,s7,x13/3,s2,x6/11,s7,x4/2,s2,x12/8,s15,x10/6,s10,x0/4,ph/p,x3/5,s3,x10/8,pd/l,x2/6,pc/a,x1/8,pp/m,x15/0,s4,x12/2,pe/d,x4/13,s13,x8/10,ph/m,x1/6,s13,pl/d,x5/13,s11,x12/0,pm/o,s15,pe/b,s4,x10/3,s12,ph/o,x4/6,pg/l,x12/3,pc/f,s3,x11/10,ph/o,s6,x0/14,s9,x2/7,s3,x14/10,s5,x13/2,s15,x14/9,s12,x10/15,pn/g,x2/4,pi/l,x8/6,s5,pc/m,x3/11,s15,x2/8,s9,pj/f,x5/0,s6,x7/1,pl/o,x11/12,s9,x10/13,pp/e,x2/1,pd/l,x6/8,s12,x5/3,pi/e,x6/11,s6,x13/15,pm/k,x14/7,po/g,x5/11,s8,x4/15,pd/p,s12,x12/2,s2,x10/14,ph/c,x3/15,po/l,s6,x14/10,s10,x11/5,pj/c,x14/1,pa/n,x0/15,s15,x9/7,pg/f,x8/10,pm/b,x15/13,pf/d,x12/14,s14,x10/5,s3,x14/7,s3,x4/8,s13,x9/12,s3,x5/7,s7,pi/h,x3/6,s14,x5/7,s12,x3/12,pg/b,x7/13,pi/d,x5/10,pk/m,x15/0,pa/d,x7/1,s11,x2/13,s9,x15/12,pk/j,x5/8,s6,x14/4,s14,pc/n,x6/0,s7,x2/13,s1,x15/9,pm/j,x8/12,s1,x14/1,s4,x8/2,pf/c,s15,x14/13,s12,x4/11,pl/d,x12/9,s5,x13/6,s6,x12/15,s10,x3/2,pg/a,x7/13,pp/k,s3,x2/6,s15,x3/7,s14,x12/0,s7,x4/15,s14,x8/7,pn/e,x6/10,s15,ph/j,x11/0,s12,x8/2,s8,x1/7,s11,x12/2,s9,x13/14,pn/o,x1/2,s12,x12/13,pg/e,x0/2,pj/a,x10/3,s10,x5/7,s1,x13/3,s5,x4/9,pd/e,x12/3,s5,x9/15,s15,x3/14,s6,x9/7,s9,x3/1,s8,x14/9,pl/g,x3/6,s15,x4/1,s7,x12/11,s2,pi/b,x8/7,s11,x3/6,s12,x5/1,pp/n,x11/0,pa/j,x15/6,pe/d,x0/9,s2,x13/14,pf/k,x2/4,s4,x1/9,s7,x0/8,s11,x15/14,s14,x9/5,ph/g,x14/11,s3,x13/10,pb/i,x4/11,s10,x10/7,pm/d,x15/6,s9,x10/1,s6,x11/6,pg/a,s4,x1/9,s7,x0/10,pb/f,x5/14,pc/k,x11/6,pb/h,x10/1,pm/a,x8/6,pn/h,x12/2,s11,x9/13,s3,x2/1,s5,x8/4,s3,x5/12,s12,x7/3,s6,x10/6,s3,x4/7,s3,x11/10,s6,x5/15,po/f,x0/1,s6,x8/15,s7,pj/p,x11/12,pl/o,x8/2,s11,x4/0,s1,x14/2,s2,x11/6,pm/k,s1,x8/5,s6,pi/j,x7/13,pm/g,x3/4,pl/j,x2/10,s12,x7/9,s10,x10/8,s3,x12/13,pp/c,x1/9,pd/b,x8/3,s5,pa/k,s14,x5/2,pj/l,x0/8,s7,pm/p,x7/14,s1,x9/3,pi/n,x2/11,pa/j,x5/9,s15,x4/11,pn/c,x5/13,ph/b,x0/14,s12,x9/11,s12,pm/i,x15/0,s7,x7/12,s5,x15/10,s15,x11/5,pk/h,x14/7,s13,x3/0,s15,x13/6,s15,x8/14,s13,po/l,x6/5,s9,x4/9,ph/n,x3/8,pg/e,x12/1,s13,x5/14,s14,x6/4,s14,x12/5,s2,x1/6,s8,x3/7,s15,x2/0,s15,x10/5,s1,x0/8,s6,x7/15,pa/h,x5/2,s5,pm/k,x6/14,s7,x13/1,s14,x4/6,pb/o,s7,x10/9,s14,x13/8,s4,pn/h,x2/15,s7,x0/9,s5,x8/14,s9,x11/15,pc/d,s4,x3/13,po/a,x11/15,s6,pg/l,x3/4,s2,x7/10,s15,x11/12,s3,x15/13,s8,x2/8,ph/k,s12,x1/10,po/c,s11,x0/12,pf/e,x1/6,s1,x11/0,s12,x7/14,pp/d,s4,x8/4,pl/k,x5/3,po/j,x4/14,s7,x10/5,s15,x0/3,pb/k,s14,x11/8,pa/m,x1/14,pb/f,x10/6,s4,pg/l,x0/13,pb/p,x2/7,pf/d,s2,x14/15,s1,x13/2,pe/j,x9/5,s2,x1/11,ph/g,s5,x7/2,s4,x0/9,pd/n,x8/6,s3,x5/13,s5,x11/9,s15,x8/0,pi/j,x2/7,po/p,x9/15,s2,x6/12,s6,x4/2,s6,x1/15,s14,x5/3,s4,x6/10,s15,x3/11,s7,x9/14,pd/k,x5/7,s11,x6/14,pl/j,s14,x12/1,pe/p,x11/5,s10,x8/1,s7,x10/5,pi/c,x9/0,pn/g,x1/5,s2,x9/0,pc/j,x14/8,pg/h,x1/5,s4,x10/2,s6,x9/12,pa/j,x14/10,s4,x4/9,s4,x5/2,s9,x8/13,pg/p,x5/1,ph/d,x12/3,pe/j,x4/11,pk/l,x1/7,s13,x9/2,s13,x11/5,pd/a,x12/6,s11,x1/5,s13,x9/14,s14,x1/15,pg/b,x5/14,pj/f,x4/9,s3,pa/k,x15/3,s11,x6/13,pf/j,x11/14,s15,x15/13,pg/h,x1/6,s14,x10/4,s5,x2/14,pn/o,x3/12,s1,x5/8,pg/e,x0/11,s15,x12/5,s8,x0/7,s15,pa/m,x3/2,pd/j,x4/10,s9,x13/14,s14,x9/2,s6,pg/f,x14/10,s7,x11/2,pd/e,s2,x15/3,s15,x11/6,ph/o,x4/3,pi/d,x6/14,s5,pa/c,s7,x13/10,s1,x8/6,s7,x5/7,pj/p,x9/10,pf/k,x14/1,s12,x13/7,s4,x12/14,s9,x1/10,s4,x0/13,s2,x7/12,s2,x6/9,s10,x12/7,pj/g,x1/13,s2,x7/3,pl/p,x8/10,s10,pc/m,x6/12,pj/a,x8/10,s13,x1/15,pi/p,x0/6,pb/c,x5/2,s8,po/m,x4/13,s3,ph/b,s4,x15/2,pn/l,x10/13,pj/g,x4/0,s14,x8/9,s6,pe/i,x10/13,s6,x9/12,s8,x5/14,s13,x11/7,pd/p,x0/3,s13,x9/6,pk/h,x4/3,pg/f,x13/15,pp/o,x3/8,s15,x5/2,s7,pl/f,x8/9,s3,x13/11,s11,x8/9,s10,x11/6,s15,x14/0,s14,ph/b,x7/11,s14,x5/0,s10,x12/3,s4,x14/9,pj/p,x12/7,s7,x6/3,pk/n,x15/12,s9,x7/4,s1,x0/2,po/p,x12/13,s15,x10/4,s3,x1/7,s2,x14/2,pb/h,x9/7,pm/f,x2/13,pp/b,x9/8,s11,x10/11,s12,x12/3,s5,x8/9,s14,x11/1,pe/c,x6/2,s12,x14/13,s11,x1/9,s8,x11/13,s13,x15/9,pf/l,x2/7,s7,x12/13,s9,x0/2,s8,x4/9,s4,x14/3,s14,x12/0,pi/p,x8/4,pk/h,x5/6,s7,x4/9,s1,x6/1,s10,x4/7,s9,x2/5,s4,x12/3,s4,x13/4,s8,x15/6,s1,x9/14,pb/n,x11/3,pd/p,x0/5,pj/h,x3/13,s13,x9/1,s1,x8/5,s9,x0/12,po/k,x4/3,s4,x15/8,s10,pm/n,x7/1,s9,x6/2,pp/d,x14/9,s12,x4/11,s4,x7/5,pn/g,x11/8,pp/e,x9/15,pd/i,x13/2,pg/l,x9/5,s10,x10/12,po/f,x3/15,s12,x7/12,s5,x9/10,s11,x5/4,pb/n,x10/15,po/h,x13/9,s5,x15/8,pe/i,s6,x12/7,pd/f,x3/13,po/i,s12,x9/6,s5,x10/12,s2,x2/5,pm/b,x7/15,s6,x13/4,s2,x2/1,pi/h,x0/6,s9,pg/c,x13/15,pl/i,x11/4,pb/m,x7/2,ph/l,s5,pp/b,x8/6,s7,pa/c,x1/14,s6,x15/12,s5,x0/8,pj/p,x13/9,s15,x14/15,s3,x12/4,ph/e,x11/7,pk/l,x0/1,s7,x10/6,s6,x12/4,s9,x0/2,po/m,s3,x8/10,s14,x12/7,s9,x5/1,pj/l,x6/9,s14,x11/8,ph/g,x12/5,s1,x10/0,s3,x7/13,s7,x9/12,s3,x8/11,s1,x9/1,s8,x6/14,s9,pi/j,x15/3,s7,x1/6,s11,x8/10,s14,x2/5,pc/h,s5,x10/13,s9,x11/0,s4,x6/4,s11,pn/k,x9/11,pj/e,x3/4,pc/m,x5/0,s8,x4/1,s14,pk/f,x11/15,s7,x7/14,pa/j,x4/1,pn/c,x10/15,po/p,x12/5,pf/b,x4/13,pn/c,x10/8,s1,x1/2,pe/o,x13/9,ph/b,x6/12,pn/e,x7/1,s10,x15/10,s8,x0/5,po/h,s2,pd/f,x13/4,s10,x8/6,pg/h,x14/4,s12,x15/11,s12,x5/8,s2,x14/3,s2,x8/6,pc/i,x0/11,pj/b,x9/5,pn/m,x1/0,pj/f,x15/8,ph/l,x5/10,s12,x11/14,pm/o,x15/10,s3,x13/2,s12,x7/5,s12,x3/2,s8,x1/12,pc/p,x8/2,pi/l,x13/5,s8,x8/15,s13,x3/6,s1,x14/2,s3,x8/10,s1,x7/2,s12,pd/m,x10/8,s3,x14/12,s6,x15/10,s7,x8/4,s8,x2/3,s10,x5/1,pi/a,x0/3,po/n,x14/10,pp/a,x8/6,s14,x7/0,pk/b,s9,x1/12,pj/e,x7/14,pb/k,s1,x11/2,s8,x15/1,s3,x3/9,s14,x2/1,pj/e,x10/7,s10,x15/4,s4,x3/0,s9,x14/2,ph/f,x15/6,s3,x9/2,pm/j,x15/14,s5,x13/12,pf/c,x3/15,s3,x9/5,s1,pb/p,x11/4,s8,x14/5,s3,pl/c,x8/12,s3,x11/7,po/k,x5/14,pf/j,x4/3,pp/o,x11/7,s12,x1/9,s12,x3/2,s4,x1/6,pj/c,x12/2,s1,x6/7,pn/k,x13/15,pb/i,x10/3,pg/o,x0/12,pi/j,x8/15,pa/c,x4/14,pb/l,x15/5,pi/d,x6/2,s2,x11/1,s13,x13/5,s1,x14/2,s12,x1/9,s5,x8/3,pp/a,x4/11,s1,x0/13,pk/i,x15/14,pn/c,x10/12,s10,pe/d,x4/2,pc/l,x6/0,s4,x11/10,s8,x12/4,s7,x8/14,pj/a,x2/3,ph/l,x11/4,pe/c,x6/5,s11,pj/l,x2/4,s2,x0/12,ph/n,x1/4,pc/p,x3/2,s11,x8/0,s15,x13/6,s3,x2/3,pa/h,x14/7,s12,x6/0,s3,pg/m,s4,x8/4,s9,x11/7,pf/a,x5/6,pd/e,x2/10,pc/f,x11/9,s6,x13/7,s4,x4/8,s7,pg/p,x12/0,ph/i,x11/2,pd/g,x6/14,s14,x0/15,s6,x11/9,pl/m,x7/13,ph/b,x9/12,pp/k,s12,x0/7,s12,x12/15,s12,pb/j,x3/11,s13,x7/15,pl/m,x1/8,s2,x7/12,s1,x10/14,pk/i,x3/9,s13,x4/2,s1,x10/13,s10,x4/5,pe/m,x8/10,s2,x4/7,pb/i,s15,x6/15,pc/p,x8/5,s13,pm/b,x12/13,s1,x4/2,s1,x6/8,pn/h,x12/13,s5,x4/14,s10,x5/11,po/d,x1/8,pl/f,x2/6,s2,x11/14,s11,x10/7,s4,x5/15,pb/d,x6/10,ph/l,x7/1,s5,x0/8,s8,x1/15,pb/m,x10/3,pp/d,x9/4,pj/h,x12/11,s1,x6/13,s11,x1/0,pa/e,x11/4,s7,x6/10,s4,x8/11,s2,x1/2,s14,x4/13,pj/f,x14/1,pg/l,x13/11,s8,x15/3,pd/m,x10/8,pb/f,x4/14,pg/a,x10/2,s2,x13/15,pf/l,x6/2,po/g,x3/8,pd/a,x6/11,pg/i,x9/10,pc/n,x8/7,s14,x2/10,s2,x1/12,pe/l,s1,x6/9,pp/b,x8/10,pf/l,x15/13,s10,x8/1,s10,x7/15,pj/k,x4/8,s1,pi/o,x15/3,s3,pg/k,x2/7,s3,x0/5,pb/m,x13/10,s8,x5/0,pd/g,x12/6,pi/j,x4/3,pe/f,x0/10,s13,x7/11,s13,x0/6,pg/j,x11/4,pp/k,x2/7,pf/g,x1/11,pe/b,x5/10,s8,x0/4,pn/c,x1/12,s4,x15/7,po/a,x0/11,s10,x9/6,pi/h,s5,x4/1,s3,x0/6,s4,x1/10,s6,x13/15,s4,x14/10,pg/m,x6/8,s5,pa/l,x9/10,s6,x8/14,pm/b,x5/15,pg/p,x13/0,s6,x2/8,pk/n,x9/1,pe/p,x12/3,pl/i,x0/14,s8,x8/6,s12,x3/11,s1,x2/0,s15,x3/1,s13,x2/4,s1,x10/12,s15,x6/5,s10,x13/15,pc/g,x7/3,s6,pd/o,x1/10,s6,x6/9,s5,x8/15,pg/b,x7/11,s7,x9/2,s1,x8/4,s12,x2/5,pf/k,s14,x4/15,pa/d,s9,x13/0,s8,x10/12,s2,x8/5,pi/p,x3/2,s9,x6/1,s13,x8/10,s2,x11/9,s8,x1/7,pl/e,x14/15,pn/f,x10/8,s2,pp/j,x7/15,po/a,x6/13,s5,x5/2,s10,x12/3,s13,x9/0,pj/d,x3/2,s11,pp/o,x0/8,pb/f,x5/2,s5,x0/11,pi/l,s12,x12/1,s9,x9/0,pb/a,x14/10,pf/m,x3/13,pd/j,x11/8,pa/g,x13/14,po/b,x0/4,pd/a,x11/13,pg/o,s11,x3/12,pp/m,x8/2,s5,x9/12,s7,x8/13,s6,x2/0,pc/i,s10,x11/13,s1,x15/1,pf/a,x4/8,s6,x6/0,pn/i,x13/14,pe/g,x0/7,s5,x10/13,s4,x12/1,pl/i,x7/0,s7,x10/14,s6,x2/9,pd/j,x3/8,s6,x11/4,s5,x10/13,s11,x1/8,pn/f,x7/4,s9,x3/1,pa/o,x12/5,pi/f,s9,x6/7,s3,x10/13,pa/g,x11/14,pb/l,x3/8,s4,x11/14,s5,x12/4,s9,x0/1,s10,x12/10,pe/c,x3/7,s6,pb/i,x15/13,s15,pn/l,x7/12,s1,x2/14,po/k,x8/10,s8,x14/4,s6,pj/a,x5/7,pf/o,x12/9,s8,ph/c,x2/0,s14,x14/6,pl/p,x4/1,s7,x6/12,s6,x7/15,pm/f,x3/11,s10,x8/1,s14,x12/0,s6,pj/n,s9,x7/5,s14,x1/6,s1,x5/0,s4,x2/11,s15,x6/3,s7,x11/7,s2,x8/1,pd/i,x4/11,s3,pn/g,s12,x12/1,pi/k,x2/11,s13,x0/1,s7,x3/2,po/b,x1/9,s8,x7/11,pe/f,x2/5,pb/n,s3,x15/9,s11,x7/8,pp/i,x3/4,s14,x7/13,pk/g,x2/6,pm/l,x14/9,pk/b,x10/3,s7,x1/4,s15,pc/h,x0/10,s2,x12/15,pp/n,x8/9,s3,pk/l,x14/15,s3,x3/8,pi/b,x7/5,pe/g,x6/14,pn/h,x1/5,s7,x12/3,s14,x1/13,pm/i,x5/9,pd/c,x13/2,s8,x15/4,s9,x8/11,s13,x4/5,pg/m,s7,pl/k,x13/7,s7,x9/14,s13,x0/5,pc/n,x2/13,s9,x6/0,s11,x11/7,pa/l,x1/4,s13,x9/12,s15,x5/2,s5,x9/14,s9,x3/10,s13,x14/5,s8,x4/0,s7,x9/13,s4,x1/11,s12,x13/8,s15,pf/j,x15/0,pm/e,x9/8,s5,x7/12,s11,x2/0,s7,x15/4,s9,x12/8,pd/o,x15/13,pa/c,x3/6,po/m,x14/8,s12,x7/12,s6,x3/10,s12,x1/8"""
print(solution_part_one(problem_input))
print(solution_part_two(problem_input, iterations=2))
| 375.693431
| 48,551
| 0.646163
| 17,303
| 51,470
| 1.919667
| 0.010114
| 0.003161
| 0.001445
| 0.002348
| 0.027186
| 0.017371
| 0.016649
| 0.012645
| 0.012645
| 0.010898
| 0
| 0.341891
| 0.01768
| 51,470
| 136
| 48,552
| 378.455882
| 0.315071
| 0.005304
| 0
| 0.458824
| 0
| 0.011765
| 0.949844
| 0.948925
| 0
| 0
| 0
| 0
| 0
| 1
| 0.094118
| false
| 0
| 0.023529
| 0.023529
| 0.341176
| 0.035294
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4b43e5d49d68cbb45c47adcde0cb7c22f450d8e2
| 52,604
|
py
|
Python
|
tests/test_007-general.py
|
scikit-hep/fastjet
|
e5aebdc66167400472cd29a36f4af0f2a789a992
|
[
"BSD-3-Clause"
] | 8
|
2021-04-18T07:00:19.000Z
|
2022-02-16T16:07:21.000Z
|
tests/test_007-general.py
|
scikit-hep/fastjet
|
e5aebdc66167400472cd29a36f4af0f2a789a992
|
[
"BSD-3-Clause"
] | 25
|
2021-04-15T16:35:33.000Z
|
2022-03-31T20:38:57.000Z
|
tests/test_007-general.py
|
scikit-hep/fastjet
|
e5aebdc66167400472cd29a36f4af0f2a789a992
|
[
"BSD-3-Clause"
] | 3
|
2021-07-26T23:12:36.000Z
|
2021-08-24T14:57:27.000Z
|
import awkward as ak # noqa: F401
import numpy as np # noqa: F401
import pytest # noqa: F401
import fastjet._pyjet # noqa: F401
def test_listoffset_inclusive():
array = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
],
with_name="Momentum4D",
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet._pyjet.AwkwardClusterSequence(array, jetdef)
inclusive_jets_out = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets_out == cluster.inclusive_jets().to_list()
constituent_index_out = [[[[[0], [1, 2]]]], [[[[0], [1, 2]]]]]
assert constituent_index_out == cluster.constituent_index().to_list()
def test_bytemasked_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = inputs.mask[[True, False, True]]
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
None,
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], None, [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_regulararray_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(ak.layout.RegularArray(inputs.layout, 1))
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
[
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
[
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[[0], [1, 2]]]]], [[[[[0], [1, 2]]]]], [[[[[0], [1, 2]]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_listarray_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.ListArray64(
ak.layout.Index64([0, 1]), ak.layout.Index64([1, 2]), inputs.layout
)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
[
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[[0], [1, 2]]]]], [[[[[0], [1, 2]]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_listarray32_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.ListArray32(
ak.layout.Index32([0, 1]), ak.layout.Index32([1, 2]), inputs.layout
)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
[
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[[0], [1, 2]]]]], [[[[[0], [1, 2]]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_listarrayU32_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.ListArrayU32(
ak.layout.IndexU32([0, 1]), ak.layout.IndexU32([1, 2]), inputs.layout
)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
[
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[[0], [1, 2]]]]], [[[[[0], [1, 2]]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_indexedarray_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.IndexedArray64(ak.layout.Index64([0, 2, 1]), inputs.layout)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], [[[[0], [1, 2]]]], [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_indexedarray32_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.IndexedArray32(ak.layout.Index32([0, 2, 1]), inputs.layout)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], [[[[0], [1, 2]]]], [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_indexedarrayU32_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.IndexedArrayU32(ak.layout.IndexU32([0, 2, 1]), inputs.layout)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], [[[[0], [1, 2]]]], [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_indexedoptionarray32_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.IndexedOptionArray32(ak.layout.Index32([0, -2, 1]), inputs.layout)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
None,
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], None, [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_indexedoptionarray64_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(
ak.layout.IndexedOptionArray64(ak.layout.Index64([0, -2, 1]), inputs.layout)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
None,
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], None, [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_unmaskedarray_input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
inputs = ak.Array(ak.layout.UnmaskedArray(inputs.layout))
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], [[[[0], [1, 2]]]], [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_virtualarray_input():
def generate():
inclusive_jets = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{
"px": 32.2,
"py": 64.21,
"pz": 543.34,
"E": 24.12,
"ex": 0.35,
},
{
"px": 32.45,
"py": 63.21,
"pz": 543.14,
"E": 24.56,
"ex": 0.0,
},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{
"px": 32.2,
"py": 64.21,
"pz": 543.34,
"E": 24.12,
"ex": 0.35,
},
{
"px": 32.45,
"py": 63.21,
"pz": 543.14,
"E": 24.56,
"ex": 0.0,
},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{
"px": 32.2,
"py": 64.21,
"pz": 543.34,
"E": 24.12,
"ex": 0.35,
},
{
"px": 32.45,
"py": 63.21,
"pz": 543.14,
"E": 24.56,
"ex": 0.1,
},
]
]
],
],
with_name="Momentum4D",
)
inclusive_jets = inclusive_jets.mask[[True, False, True]]
return inclusive_jets
inputs = ak.virtual(generate)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(inputs, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
None,
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[0], [1, 2]]]], None, [[[[0], [1, 2]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_indexed_subtree_input():
inputs = ak.Array(
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
],
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
],
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
],
],
with_name="Momentum4D",
)
out = ak.Array(
ak.layout.RecordArray(
[
ak.layout.NumpyArray(np.asarray(ak.Array(inputs.layout.content).px)),
ak.layout.NumpyArray(np.asarray(ak.Array(inputs.layout.content).py)),
ak.layout.NumpyArray(np.asarray(ak.Array(inputs.layout.content).pz)),
ak.layout.NumpyArray(np.asarray(ak.Array(inputs.layout.content).E)),
],
["px", "py", "pz", "E"],
)
)
out = ak.Array(
ak.layout.IndexedArray64(
ak.layout.Index64([7, 2, 3, 1, 0, 5, 4, 6, 8]), out.layout
)
)
out = ak.Array(ak.layout.ListOffsetArray64(inputs.layout.offsets, out.layout))
out = ak.Array(
ak.layout.ListOffsetArray64(ak.layout.Index64([0, 1, 2, 3]), out.layout)
)
out = ak.Array(
ak.layout.ListOffsetArray64(ak.layout.Index64([0, 1, 2, 3]), out.layout)
)
out = ak.Array(
ak.layout.ListOffsetArray64(ak.layout.Index64([0, 1, 2, 3]), out.layout)
)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(out, jetdef)
inclusive_jets = [
[
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
[
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [[[[[[2], [0, 1]]]]], [[[[[1], [0, 2]]]]], [[[[[1], [0, 2]]]]]]
assert const_idx == cluster.constituent_index().to_list()
def test_union_8_64_input():
inputs = ak.Array(
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
],
],
with_name="Momentum4D",
)
input2 = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
out = ak.concatenate((input2, inputs), axis=0)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(out, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [
[[[[0], [1, 2]]]],
[[[[0], [1, 2]]]],
[[[[0], [1, 2]]]],
[[[0], [1, 2]]],
[[[0], [1, 2]]],
[[[0], [1, 2]]],
]
assert const_idx == cluster.constituent_index().to_list()
def test_partitioned_input():
inputs = ak.Array(
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
],
],
with_name="Momentum4D",
)
input2 = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
out = ak.partitioned((input2, inputs), highlevel=True)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(out, jetdef)
inclusive_jets = [
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
],
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [
[[[[0], [1, 2]]]],
[[[[0], [1, 2]]]],
[[[[0], [1, 2]]]],
[[[0], [1, 2]]],
[[[0], [1, 2]]],
[[[0], [1, 2]]],
]
assert const_idx == cluster.constituent_index().to_list()
def test_record_input():
inputs = ak.Array(
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
],
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
],
],
with_name="Momentum4D",
)
input2 = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
out = ak.zip({"a": inputs, "b": input2}, depth_limit=1)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(out, jetdef)
inclusive_jets = [
{
"a": [
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
"b": [
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
],
},
{
"a": [
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
"b": [
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
],
},
{
"a": [
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
],
"b": [
[
[
{"px": 11.2, "py": 3.2, "pz": 5.4, "E": 2.5},
{
"px": 64.65,
"py": 127.41999999999999,
"pz": 1086.48,
"E": 48.68,
},
]
]
],
},
]
assert inclusive_jets == cluster.inclusive_jets().to_list()
const_idx = [
{"a": [[[0], [1, 2]]], "b": [[[[0], [1, 2]]]]},
{"a": [[[0], [1, 2]]], "b": [[[[0], [1, 2]]]]},
{"a": [[[0], [1, 2]]], "b": [[[[0], [1, 2]]]]},
]
assert const_idx == cluster.constituent_index().to_list()
def test_func_call__input():
inputs = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
input2 = ak.Array(
[
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.0},
]
]
],
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12, "ex": 0.35},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56, "ex": 0.1},
]
]
],
],
with_name="Momentum4D",
)
array1 = ak.Array(
[
[
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
]
]
]
)
array2 = ak.Array(
[
[
[
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
{"px": 64.65, "py": 127.41999999999999, "pz": 1086.48, "E": 48.68},
]
]
]
)
inn = ak.zip({"a": array1, "b": array2}, depth_limit=1)
out = ak.zip({"a": inputs, "b": input2}, depth_limit=1)
jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.6)
cluster = fastjet.ClusterSequence(out, jetdef)
get_parents = [
{
"a": [
[
[],
[
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56},
],
[],
]
],
"b": [
[
[
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56},
],
[],
[
{"px": 32.2, "py": 64.21, "pz": 543.34, "E": 24.12},
{"px": 32.45, "py": 63.21, "pz": 543.14, "E": 24.56},
],
]
],
}
]
assert get_parents == cluster.get_parents(inn).to_list()
| 34.158442
| 88
| 0.28264
| 5,668
| 52,604
| 2.581863
| 0.021701
| 0.04059
| 0.065054
| 0.041
| 0.928728
| 0.924696
| 0.924696
| 0.921416
| 0.914446
| 0.914446
| 0
| 0.228871
| 0.512356
| 52,604
| 1,539
| 89
| 34.180637
| 0.341611
| 0.000817
| 0
| 0.478144
| 0
| 0
| 0.053657
| 0
| 0
| 0
| 0
| 0
| 0.023537
| 1
| 0.012777
| false
| 0
| 0.00269
| 0
| 0.01614
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 1
| 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
|
4bbafd682cd648635da97c6105083959a091fb42
| 4,986
|
py
|
Python
|
scripts/pavia-university.py
|
AlanMorningLight/HyperSpec-WGAN
|
4a56b983b3c22bf1d4047c7b59f94315df54f44b
|
[
"MIT"
] | 1
|
2020-10-27T17:05:11.000Z
|
2020-10-27T17:05:11.000Z
|
scripts/pavia-university.py
|
AlanMorningLight/HyperSpec-WGAN
|
4a56b983b3c22bf1d4047c7b59f94315df54f44b
|
[
"MIT"
] | null | null | null |
scripts/pavia-university.py
|
AlanMorningLight/HyperSpec-WGAN
|
4a56b983b3c22bf1d4047c7b59f94315df54f44b
|
[
"MIT"
] | null | null | null |
# Import libraries
import os
from copy import copy
from data_exploration import DataExploration
from evaluate_CNN import EvaluateCNN
from generate_samples import GenerateSamples
from hyperspectral_scene import HyperspectralScene
from train_1D_CNN import Train1DCNN
from train_3D_CNN import Train3DCNN
# Set the working directory
if os.path.basename(os.getcwd()) == 'scripts':
os.chdir("..")
# Initialize Pavia University with unlabeled data
pu = HyperspectralScene(name='Pavia University',
path='scenes/pavia-university',
remove_unlabeled=False)
# Data Exploration for Pavia University with unlabeled data
pu_DE = copy(pu)
pu_DE.__class__ = DataExploration
pu_DE.__post_init__()
pu_DE.plot_ground_truth()
pu_DE.fit_scaler(feature_range=(-1, 1))
pu_DE.fit_PCA(n_components=15, whiten=True)
pu_DE.fit_TSNE(perplexity=15,
early_exaggeration=10,
learning_rate=250,
n_iter=500)
pu_DE.plot_PCA()
pu_DE.plot_TSNE()
# Train 1D-CNN for Pavia University with unlabeled data
pu_1D_CNN = copy(pu)
pu_1D_CNN.__class__ = Train1DCNN
pu_1D_CNN.__post_init__()
pu_1D_CNN.fit_scaler(feature_range=(-1, 1))
pu_1D_CNN.fit_PCA(n_components=15, whiten=True)
pu_1D_CNN.prepare_data(train_ratio=0.4, test_ratio=0.5, validation_ratio=0.1)
pu_1D_CNN.compile_1D_CNN()
pu_1D_CNN.fit_1D_CNN()
pu_1D_CNN.predict_data()
# Evaluate 1D-CNN for Pavia University with unlabeled data
pu_1D_CNN_eval = copy(pu)
pu_1D_CNN_eval.__class__ = EvaluateCNN
pu_1D_CNN_eval.__post_init__(model_name='1D-CNN')
pu_1D_CNN_eval.plot_training_history(figsize=(9, 6.5))
pu_1D_CNN_eval.generate_report()
pu_1D_CNN_eval.plot_confusion_matrix(figsize=(6.5, 6.5))
pu_1D_CNN_eval.plot_predicted(figsize=(9, 6.5))
# Train 3D-CNN for Pavia University with unlabeled data
pu_3D_CNN = copy(pu)
pu_3D_CNN.__class__ = Train3DCNN
pu_3D_CNN.__post_init__()
pu_3D_CNN.fit_scaler(feature_range=(-1, 1))
pu_3D_CNN.fit_PCA(n_components=15, whiten=False)
pu_3D_CNN.prepare_data(train_ratio=0.4, test_ratio=0.5, validation_ratio=0.1)
pu_3D_CNN.compile_3D_CNN()
pu_3D_CNN.fit_3D_CNN()
pu_3D_CNN.predict_data()
# Evaluate 3D-CNN for Pavia University with unlabeled data
pu_3D_CNN_eval = copy(pu)
pu_3D_CNN_eval.__class__ = EvaluateCNN
pu_3D_CNN_eval.__post_init__(model_name='3D-CNN')
pu_3D_CNN_eval.plot_training_history(figsize=(9, 6.5))
pu_3D_CNN_eval.generate_report()
pu_3D_CNN_eval.plot_confusion_matrix(figsize=(6.5, 6.5))
pu_3D_CNN_eval.plot_predicted(figsize=(6.5, 8))
# Initialize Pavia University without unlabeled data
pu = HyperspectralScene(name='Pavia University',
path='scenes/pavia-university',
remove_unlabeled=True)
# Data Exploration for Pavia University without unlabeled data
pu_DE = copy(pu)
pu_DE.__class__ = DataExploration
pu_DE.__post_init__()
pu_DE.plot_ground_truth()
pu_DE.fit_scaler(feature_range=(-1, 1))
pu_DE.fit_PCA(n_components=15, whiten=True)
pu_DE.fit_TSNE(perplexity=15,
early_exaggeration=10,
learning_rate=250,
n_iter=500)
pu_DE.plot_PCA()
pu_DE.plot_TSNE()
# Train 1D-CNN for Pavia University without unlabeled data
pu_1D_CNN = copy(pu)
pu_1D_CNN.__class__ = Train1DCNN
pu_1D_CNN.__post_init__()
pu_1D_CNN.fit_scaler(feature_range=(-1, 1))
pu_1D_CNN.fit_PCA(n_components=15, whiten=True)
pu_1D_CNN.prepare_data(train_ratio=0.4, test_ratio=0.5, validation_ratio=0.1)
pu_1D_CNN.compile_1D_CNN()
pu_1D_CNN.fit_1D_CNN()
pu_1D_CNN.predict_data()
# Evaluate 1D-CNN for Pavia University without unlabeled data
pu_1D_CNN_eval = copy(pu)
pu_1D_CNN_eval.__class__ = EvaluateCNN
pu_1D_CNN_eval.__post_init__(model_name='1D-CNN')
pu_1D_CNN_eval.plot_training_history(figsize=(9, 6.5))
pu_1D_CNN_eval.generate_report()
pu_1D_CNN_eval.plot_confusion_matrix(figsize=(6.5, 6.5))
pu_1D_CNN_eval.plot_predicted(figsize=(6.5, 8))
# Train 3D-CNN for Pavia University without unlabeled data
pu_3D_CNN = copy(pu)
pu_3D_CNN.__class__ = Train3DCNN
pu_3D_CNN.__post_init__()
pu_3D_CNN.fit_scaler(feature_range=(-1, 1))
pu_3D_CNN.fit_PCA(n_components=15, whiten=False)
pu_3D_CNN.prepare_data(train_ratio=0.4, test_ratio=0.5, validation_ratio=0.1)
pu_3D_CNN.compile_3D_CNN()
pu_3D_CNN.fit_3D_CNN()
pu_3D_CNN.predict_data()
# Evaluate 3D-CNN for Pavia University without unlabeled data
pu_3D_CNN_eval = copy(pu)
pu_3D_CNN_eval.__class__ = EvaluateCNN
pu_3D_CNN_eval.__post_init__(model_name='3D-CNN')
pu_3D_CNN_eval.plot_training_history(figsize=(9, 6.5))
pu_3D_CNN_eval.generate_report()
pu_3D_CNN_eval.plot_confusion_matrix(figsize=(6.5, 6.5))
pu_3D_CNN_eval.plot_predicted(figsize=(6.5, 8))
# Generate fake samples for Pavia University with a WGAN
pu_WGAN = copy(pu)
pu_WGAN.__class__ = GenerateSamples
for i in range(len(pu.labels) - 1):
pu_WGAN.__post_init__(class_num=i + 1)
pu_WGAN.fit_scaler(feature_range=(-1, 1))
pu_WGAN.train_WGAN(batch_size=128, epochs=200, update_disc_rate=5)
pu_WGAN.save_generated_samples()
| 35.112676
| 77
| 0.78199
| 866
| 4,986
| 4.038106
| 0.127021
| 0.061481
| 0.064055
| 0.044038
| 0.839005
| 0.830426
| 0.815842
| 0.795253
| 0.794395
| 0.794395
| 0
| 0.047792
| 0.114521
| 4,986
| 141
| 78
| 35.361702
| 0.744281
| 0.154633
| 0
| 0.810811
| 1
| 0
| 0.026435
| 0.010955
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.072072
| 0
| 0.072072
| 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
|
d9bb6f2bd592fc90f6f08cd431fb5d75a2f77404
| 1,300
|
py
|
Python
|
test/pyaz/storage/file/metadata/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
test/pyaz/storage/file/metadata/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | 9
|
2021-09-24T16:37:24.000Z
|
2021-12-24T00:39:19.000Z
|
test/pyaz/storage/file/metadata/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
import json, subprocess
from .... pyaz_utils import get_cli_name, get_params
def show(account_name=None, account_key=None, connection_string=None, sas_token=None, path, share_name, __DIRECTORY_NAME=None, __FILE_NAME=None, timeout=None, snapshot=None):
params = get_params(locals())
command = "az storage file metadata show " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def update(account_name=None, account_key=None, connection_string=None, sas_token=None, path, share_name, __DIRECTORY_NAME=None, __FILE_NAME=None, metadata=None, timeout=None):
params = get_params(locals())
command = "az storage file metadata update " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
| 40.625
| 176
| 0.7
| 168
| 1,300
| 5.25
| 0.285714
| 0.054422
| 0.045351
| 0.049887
| 0.861678
| 0.861678
| 0.861678
| 0.861678
| 0.861678
| 0.861678
| 0
| 0.003788
| 0.187692
| 1,300
| 31
| 177
| 41.935484
| 0.831439
| 0
| 0
| 0.785714
| 0
| 0
| 0.063077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.071429
| null | null | 0.214286
| 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
|
d9fd85c83b98f8fec54564b62da97afb19ed8662
| 32,406
|
py
|
Python
|
sdk/python/pulumi_vsphere/datastore_cluster.py
|
donovanmuller/pulumi-vsphere
|
83c18fb177b41690416ef7517c512349b3da9be6
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_vsphere/datastore_cluster.py
|
donovanmuller/pulumi-vsphere
|
83c18fb177b41690416ef7517c512349b3da9be6
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_vsphere/datastore_cluster.py
|
donovanmuller/pulumi-vsphere
|
83c18fb177b41690416ef7517c512349b3da9be6
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from . import _utilities, _tables
__all__ = ['DatastoreCluster']
class DatastoreCluster(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
datacenter_id: Optional[pulumi.Input[str]] = None,
folder: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
sdrs_advanced_options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
sdrs_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_default_intra_vm_affinity: Optional[pulumi.Input[bool]] = None,
sdrs_enabled: Optional[pulumi.Input[bool]] = None,
sdrs_free_space_threshold: Optional[pulumi.Input[float]] = None,
sdrs_free_space_threshold_mode: Optional[pulumi.Input[str]] = None,
sdrs_free_space_utilization_difference: Optional[pulumi.Input[float]] = None,
sdrs_io_balance_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_io_latency_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_load_balance_enabled: Optional[pulumi.Input[bool]] = None,
sdrs_io_load_imbalance_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_reservable_iops_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_reservable_percent_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_reservable_threshold_mode: Optional[pulumi.Input[str]] = None,
sdrs_load_balance_interval: Optional[pulumi.Input[float]] = None,
sdrs_policy_enforcement_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_rule_enforcement_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_space_balance_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_space_utilization_threshold: Optional[pulumi.Input[float]] = None,
sdrs_vm_evacuation_automation_level: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[List[pulumi.Input[str]]]] = None,
__props__=None,
__name__=None,
__opts__=None):
"""
Create a DatastoreCluster resource with the given unique name, props, and options.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A map of custom attribute ids to attribute
value strings to set for the datastore cluster. See
[here][docs-setting-custom-attributes] for a reference on how to set values
for custom attributes.
:param pulumi.Input[str] datacenter_id: The managed object ID of
the datacenter to create the datastore cluster in. Forces a new resource if
changed.
:param pulumi.Input[str] folder: The relative path to a folder to put this datastore
cluster in. This is a path relative to the datacenter you are deploying the
datastore to. Example: for the `dc1` datacenter, and a provided `folder` of
`foo/bar`, The provider will place a datastore cluster named
`datastore-cluster-test` in a datastore folder located at
`/dc1/datastore/foo/bar`, with the final inventory path being
`/dc1/datastore/foo/bar/datastore-cluster-test`.
:param pulumi.Input[str] name: The name of the datastore cluster.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] sdrs_advanced_options: A key/value map of advanced Storage DRS
settings that are not exposed via the provider or the vSphere client.
:param pulumi.Input[str] sdrs_automation_level: The global automation level for all
virtual machines in this datastore cluster. Default: `manual`.
:param pulumi.Input[bool] sdrs_default_intra_vm_affinity: When `true`, all disks in a
single virtual machine will be kept on the same datastore. Default: `true`.
:param pulumi.Input[bool] sdrs_enabled: Enable Storage DRS for this datastore cluster.
Default: `false`.
:param pulumi.Input[float] sdrs_free_space_threshold: The free space threshold to use.
When set to `utilization`, `drs_space_utilization_threshold` is used, and
when set to `freeSpace`, `drs_free_space_threshold` is used. Default:
`utilization`.
:param pulumi.Input[str] sdrs_free_space_threshold_mode: The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to
freeSpace, drs_free_space_threshold is used.
:param pulumi.Input[float] sdrs_free_space_utilization_difference: The threshold, in
percent, of difference between space utilization in datastores before storage
DRS makes decisions to balance the space. Default: `5` percent.
:param pulumi.Input[str] sdrs_io_balance_automation_level: Overrides the default
automation settings when correcting I/O load imbalances.
:param pulumi.Input[float] sdrs_io_latency_threshold: The I/O latency threshold, in
milliseconds, that storage DRS uses to make recommendations to move disks
from this datastore. Default: `15` seconds.
:param pulumi.Input[bool] sdrs_io_load_balance_enabled: Enable I/O load balancing for
this datastore cluster. Default: `true`.
:param pulumi.Input[float] sdrs_io_load_imbalance_threshold: The difference between load
in datastores in the cluster before storage DRS makes recommendations to
balance the load. Default: `5` percent.
:param pulumi.Input[float] sdrs_io_reservable_iops_threshold: The threshold of reservable
IOPS of all virtual machines on the datastore before storage DRS makes
recommendations to move VMs off of a datastore. Note that this setting should
only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
estimate of the capacity of the datastores in your cluster, and should be set
to roughly 50-60% of the worst case peak performance of the backing LUNs.
:param pulumi.Input[float] sdrs_io_reservable_percent_threshold: The threshold, in
percent, of actual estimated performance of the datastore (in IOPS) that
storage DRS uses to make recommendations to move VMs off of a datastore when
the total reservable IOPS exceeds the threshold. Default: `60` percent.
:param pulumi.Input[str] sdrs_io_reservable_threshold_mode: The reservable IOPS
threshold setting to use, `sdrs_io_reservable_percent_threshold` in the event
of `automatic`, or `sdrs_io_reservable_iops_threshold` in the event of
`manual`. Default: `automatic`.
:param pulumi.Input[float] sdrs_load_balance_interval: The storage DRS poll interval, in
minutes. Default: `480` minutes.
:param pulumi.Input[str] sdrs_policy_enforcement_automation_level: Overrides the default
automation settings when correcting storage and VM policy violations.
:param pulumi.Input[str] sdrs_rule_enforcement_automation_level: Overrides the default
automation settings when correcting affinity rule violations.
:param pulumi.Input[str] sdrs_space_balance_automation_level: Overrides the default
automation settings when correcting disk space imbalances.
:param pulumi.Input[float] sdrs_space_utilization_threshold: The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
:param pulumi.Input[str] sdrs_vm_evacuation_automation_level: Overrides the default
automation settings when generating recommendations for datastore evacuation.
:param pulumi.Input[List[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
"""
if __name__ is not None:
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
resource_name = __name__
if __opts__ is not None:
warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
opts = __opts__
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = dict()
__props__['custom_attributes'] = custom_attributes
if datacenter_id is None:
raise TypeError("Missing required property 'datacenter_id'")
__props__['datacenter_id'] = datacenter_id
__props__['folder'] = folder
__props__['name'] = name
__props__['sdrs_advanced_options'] = sdrs_advanced_options
__props__['sdrs_automation_level'] = sdrs_automation_level
__props__['sdrs_default_intra_vm_affinity'] = sdrs_default_intra_vm_affinity
__props__['sdrs_enabled'] = sdrs_enabled
__props__['sdrs_free_space_threshold'] = sdrs_free_space_threshold
__props__['sdrs_free_space_threshold_mode'] = sdrs_free_space_threshold_mode
__props__['sdrs_free_space_utilization_difference'] = sdrs_free_space_utilization_difference
__props__['sdrs_io_balance_automation_level'] = sdrs_io_balance_automation_level
__props__['sdrs_io_latency_threshold'] = sdrs_io_latency_threshold
__props__['sdrs_io_load_balance_enabled'] = sdrs_io_load_balance_enabled
__props__['sdrs_io_load_imbalance_threshold'] = sdrs_io_load_imbalance_threshold
__props__['sdrs_io_reservable_iops_threshold'] = sdrs_io_reservable_iops_threshold
__props__['sdrs_io_reservable_percent_threshold'] = sdrs_io_reservable_percent_threshold
__props__['sdrs_io_reservable_threshold_mode'] = sdrs_io_reservable_threshold_mode
__props__['sdrs_load_balance_interval'] = sdrs_load_balance_interval
__props__['sdrs_policy_enforcement_automation_level'] = sdrs_policy_enforcement_automation_level
__props__['sdrs_rule_enforcement_automation_level'] = sdrs_rule_enforcement_automation_level
__props__['sdrs_space_balance_automation_level'] = sdrs_space_balance_automation_level
__props__['sdrs_space_utilization_threshold'] = sdrs_space_utilization_threshold
__props__['sdrs_vm_evacuation_automation_level'] = sdrs_vm_evacuation_automation_level
__props__['tags'] = tags
super(DatastoreCluster, __self__).__init__(
'vsphere:index/datastoreCluster:DatastoreCluster',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
datacenter_id: Optional[pulumi.Input[str]] = None,
folder: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
sdrs_advanced_options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
sdrs_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_default_intra_vm_affinity: Optional[pulumi.Input[bool]] = None,
sdrs_enabled: Optional[pulumi.Input[bool]] = None,
sdrs_free_space_threshold: Optional[pulumi.Input[float]] = None,
sdrs_free_space_threshold_mode: Optional[pulumi.Input[str]] = None,
sdrs_free_space_utilization_difference: Optional[pulumi.Input[float]] = None,
sdrs_io_balance_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_io_latency_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_load_balance_enabled: Optional[pulumi.Input[bool]] = None,
sdrs_io_load_imbalance_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_reservable_iops_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_reservable_percent_threshold: Optional[pulumi.Input[float]] = None,
sdrs_io_reservable_threshold_mode: Optional[pulumi.Input[str]] = None,
sdrs_load_balance_interval: Optional[pulumi.Input[float]] = None,
sdrs_policy_enforcement_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_rule_enforcement_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_space_balance_automation_level: Optional[pulumi.Input[str]] = None,
sdrs_space_utilization_threshold: Optional[pulumi.Input[float]] = None,
sdrs_vm_evacuation_automation_level: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[List[pulumi.Input[str]]]] = None) -> 'DatastoreCluster':
"""
Get an existing DatastoreCluster resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A map of custom attribute ids to attribute
value strings to set for the datastore cluster. See
[here][docs-setting-custom-attributes] for a reference on how to set values
for custom attributes.
:param pulumi.Input[str] datacenter_id: The managed object ID of
the datacenter to create the datastore cluster in. Forces a new resource if
changed.
:param pulumi.Input[str] folder: The relative path to a folder to put this datastore
cluster in. This is a path relative to the datacenter you are deploying the
datastore to. Example: for the `dc1` datacenter, and a provided `folder` of
`foo/bar`, The provider will place a datastore cluster named
`datastore-cluster-test` in a datastore folder located at
`/dc1/datastore/foo/bar`, with the final inventory path being
`/dc1/datastore/foo/bar/datastore-cluster-test`.
:param pulumi.Input[str] name: The name of the datastore cluster.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] sdrs_advanced_options: A key/value map of advanced Storage DRS
settings that are not exposed via the provider or the vSphere client.
:param pulumi.Input[str] sdrs_automation_level: The global automation level for all
virtual machines in this datastore cluster. Default: `manual`.
:param pulumi.Input[bool] sdrs_default_intra_vm_affinity: When `true`, all disks in a
single virtual machine will be kept on the same datastore. Default: `true`.
:param pulumi.Input[bool] sdrs_enabled: Enable Storage DRS for this datastore cluster.
Default: `false`.
:param pulumi.Input[float] sdrs_free_space_threshold: The free space threshold to use.
When set to `utilization`, `drs_space_utilization_threshold` is used, and
when set to `freeSpace`, `drs_free_space_threshold` is used. Default:
`utilization`.
:param pulumi.Input[str] sdrs_free_space_threshold_mode: The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to
freeSpace, drs_free_space_threshold is used.
:param pulumi.Input[float] sdrs_free_space_utilization_difference: The threshold, in
percent, of difference between space utilization in datastores before storage
DRS makes decisions to balance the space. Default: `5` percent.
:param pulumi.Input[str] sdrs_io_balance_automation_level: Overrides the default
automation settings when correcting I/O load imbalances.
:param pulumi.Input[float] sdrs_io_latency_threshold: The I/O latency threshold, in
milliseconds, that storage DRS uses to make recommendations to move disks
from this datastore. Default: `15` seconds.
:param pulumi.Input[bool] sdrs_io_load_balance_enabled: Enable I/O load balancing for
this datastore cluster. Default: `true`.
:param pulumi.Input[float] sdrs_io_load_imbalance_threshold: The difference between load
in datastores in the cluster before storage DRS makes recommendations to
balance the load. Default: `5` percent.
:param pulumi.Input[float] sdrs_io_reservable_iops_threshold: The threshold of reservable
IOPS of all virtual machines on the datastore before storage DRS makes
recommendations to move VMs off of a datastore. Note that this setting should
only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
estimate of the capacity of the datastores in your cluster, and should be set
to roughly 50-60% of the worst case peak performance of the backing LUNs.
:param pulumi.Input[float] sdrs_io_reservable_percent_threshold: The threshold, in
percent, of actual estimated performance of the datastore (in IOPS) that
storage DRS uses to make recommendations to move VMs off of a datastore when
the total reservable IOPS exceeds the threshold. Default: `60` percent.
:param pulumi.Input[str] sdrs_io_reservable_threshold_mode: The reservable IOPS
threshold setting to use, `sdrs_io_reservable_percent_threshold` in the event
of `automatic`, or `sdrs_io_reservable_iops_threshold` in the event of
`manual`. Default: `automatic`.
:param pulumi.Input[float] sdrs_load_balance_interval: The storage DRS poll interval, in
minutes. Default: `480` minutes.
:param pulumi.Input[str] sdrs_policy_enforcement_automation_level: Overrides the default
automation settings when correcting storage and VM policy violations.
:param pulumi.Input[str] sdrs_rule_enforcement_automation_level: Overrides the default
automation settings when correcting affinity rule violations.
:param pulumi.Input[str] sdrs_space_balance_automation_level: Overrides the default
automation settings when correcting disk space imbalances.
:param pulumi.Input[float] sdrs_space_utilization_threshold: The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
:param pulumi.Input[str] sdrs_vm_evacuation_automation_level: Overrides the default
automation settings when generating recommendations for datastore evacuation.
:param pulumi.Input[List[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["custom_attributes"] = custom_attributes
__props__["datacenter_id"] = datacenter_id
__props__["folder"] = folder
__props__["name"] = name
__props__["sdrs_advanced_options"] = sdrs_advanced_options
__props__["sdrs_automation_level"] = sdrs_automation_level
__props__["sdrs_default_intra_vm_affinity"] = sdrs_default_intra_vm_affinity
__props__["sdrs_enabled"] = sdrs_enabled
__props__["sdrs_free_space_threshold"] = sdrs_free_space_threshold
__props__["sdrs_free_space_threshold_mode"] = sdrs_free_space_threshold_mode
__props__["sdrs_free_space_utilization_difference"] = sdrs_free_space_utilization_difference
__props__["sdrs_io_balance_automation_level"] = sdrs_io_balance_automation_level
__props__["sdrs_io_latency_threshold"] = sdrs_io_latency_threshold
__props__["sdrs_io_load_balance_enabled"] = sdrs_io_load_balance_enabled
__props__["sdrs_io_load_imbalance_threshold"] = sdrs_io_load_imbalance_threshold
__props__["sdrs_io_reservable_iops_threshold"] = sdrs_io_reservable_iops_threshold
__props__["sdrs_io_reservable_percent_threshold"] = sdrs_io_reservable_percent_threshold
__props__["sdrs_io_reservable_threshold_mode"] = sdrs_io_reservable_threshold_mode
__props__["sdrs_load_balance_interval"] = sdrs_load_balance_interval
__props__["sdrs_policy_enforcement_automation_level"] = sdrs_policy_enforcement_automation_level
__props__["sdrs_rule_enforcement_automation_level"] = sdrs_rule_enforcement_automation_level
__props__["sdrs_space_balance_automation_level"] = sdrs_space_balance_automation_level
__props__["sdrs_space_utilization_threshold"] = sdrs_space_utilization_threshold
__props__["sdrs_vm_evacuation_automation_level"] = sdrs_vm_evacuation_automation_level
__props__["tags"] = tags
return DatastoreCluster(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="customAttributes")
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
"""
A map of custom attribute ids to attribute
value strings to set for the datastore cluster. See
[here][docs-setting-custom-attributes] for a reference on how to set values
for custom attributes.
"""
return pulumi.get(self, "custom_attributes")
@property
@pulumi.getter(name="datacenterId")
def datacenter_id(self) -> pulumi.Output[str]:
"""
The managed object ID of
the datacenter to create the datastore cluster in. Forces a new resource if
changed.
"""
return pulumi.get(self, "datacenter_id")
@property
@pulumi.getter
def folder(self) -> pulumi.Output[Optional[str]]:
"""
The relative path to a folder to put this datastore
cluster in. This is a path relative to the datacenter you are deploying the
datastore to. Example: for the `dc1` datacenter, and a provided `folder` of
`foo/bar`, The provider will place a datastore cluster named
`datastore-cluster-test` in a datastore folder located at
`/dc1/datastore/foo/bar`, with the final inventory path being
`/dc1/datastore/foo/bar/datastore-cluster-test`.
"""
return pulumi.get(self, "folder")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the datastore cluster.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="sdrsAdvancedOptions")
def sdrs_advanced_options(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
"""
A key/value map of advanced Storage DRS
settings that are not exposed via the provider or the vSphere client.
"""
return pulumi.get(self, "sdrs_advanced_options")
@property
@pulumi.getter(name="sdrsAutomationLevel")
def sdrs_automation_level(self) -> pulumi.Output[Optional[str]]:
"""
The global automation level for all
virtual machines in this datastore cluster. Default: `manual`.
"""
return pulumi.get(self, "sdrs_automation_level")
@property
@pulumi.getter(name="sdrsDefaultIntraVmAffinity")
def sdrs_default_intra_vm_affinity(self) -> pulumi.Output[Optional[bool]]:
"""
When `true`, all disks in a
single virtual machine will be kept on the same datastore. Default: `true`.
"""
return pulumi.get(self, "sdrs_default_intra_vm_affinity")
@property
@pulumi.getter(name="sdrsEnabled")
def sdrs_enabled(self) -> pulumi.Output[Optional[bool]]:
"""
Enable Storage DRS for this datastore cluster.
Default: `false`.
"""
return pulumi.get(self, "sdrs_enabled")
@property
@pulumi.getter(name="sdrsFreeSpaceThreshold")
def sdrs_free_space_threshold(self) -> pulumi.Output[Optional[float]]:
"""
The free space threshold to use.
When set to `utilization`, `drs_space_utilization_threshold` is used, and
when set to `freeSpace`, `drs_free_space_threshold` is used. Default:
`utilization`.
"""
return pulumi.get(self, "sdrs_free_space_threshold")
@property
@pulumi.getter(name="sdrsFreeSpaceThresholdMode")
def sdrs_free_space_threshold_mode(self) -> pulumi.Output[Optional[str]]:
"""
The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to
freeSpace, drs_free_space_threshold is used.
"""
return pulumi.get(self, "sdrs_free_space_threshold_mode")
@property
@pulumi.getter(name="sdrsFreeSpaceUtilizationDifference")
def sdrs_free_space_utilization_difference(self) -> pulumi.Output[Optional[float]]:
"""
The threshold, in
percent, of difference between space utilization in datastores before storage
DRS makes decisions to balance the space. Default: `5` percent.
"""
return pulumi.get(self, "sdrs_free_space_utilization_difference")
@property
@pulumi.getter(name="sdrsIoBalanceAutomationLevel")
def sdrs_io_balance_automation_level(self) -> pulumi.Output[Optional[str]]:
"""
Overrides the default
automation settings when correcting I/O load imbalances.
"""
return pulumi.get(self, "sdrs_io_balance_automation_level")
@property
@pulumi.getter(name="sdrsIoLatencyThreshold")
def sdrs_io_latency_threshold(self) -> pulumi.Output[Optional[float]]:
"""
The I/O latency threshold, in
milliseconds, that storage DRS uses to make recommendations to move disks
from this datastore. Default: `15` seconds.
"""
return pulumi.get(self, "sdrs_io_latency_threshold")
@property
@pulumi.getter(name="sdrsIoLoadBalanceEnabled")
def sdrs_io_load_balance_enabled(self) -> pulumi.Output[Optional[bool]]:
"""
Enable I/O load balancing for
this datastore cluster. Default: `true`.
"""
return pulumi.get(self, "sdrs_io_load_balance_enabled")
@property
@pulumi.getter(name="sdrsIoLoadImbalanceThreshold")
def sdrs_io_load_imbalance_threshold(self) -> pulumi.Output[Optional[float]]:
"""
The difference between load
in datastores in the cluster before storage DRS makes recommendations to
balance the load. Default: `5` percent.
"""
return pulumi.get(self, "sdrs_io_load_imbalance_threshold")
@property
@pulumi.getter(name="sdrsIoReservableIopsThreshold")
def sdrs_io_reservable_iops_threshold(self) -> pulumi.Output[Optional[float]]:
"""
The threshold of reservable
IOPS of all virtual machines on the datastore before storage DRS makes
recommendations to move VMs off of a datastore. Note that this setting should
only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
estimate of the capacity of the datastores in your cluster, and should be set
to roughly 50-60% of the worst case peak performance of the backing LUNs.
"""
return pulumi.get(self, "sdrs_io_reservable_iops_threshold")
@property
@pulumi.getter(name="sdrsIoReservablePercentThreshold")
def sdrs_io_reservable_percent_threshold(self) -> pulumi.Output[Optional[float]]:
"""
The threshold, in
percent, of actual estimated performance of the datastore (in IOPS) that
storage DRS uses to make recommendations to move VMs off of a datastore when
the total reservable IOPS exceeds the threshold. Default: `60` percent.
"""
return pulumi.get(self, "sdrs_io_reservable_percent_threshold")
@property
@pulumi.getter(name="sdrsIoReservableThresholdMode")
def sdrs_io_reservable_threshold_mode(self) -> pulumi.Output[Optional[str]]:
"""
The reservable IOPS
threshold setting to use, `sdrs_io_reservable_percent_threshold` in the event
of `automatic`, or `sdrs_io_reservable_iops_threshold` in the event of
`manual`. Default: `automatic`.
"""
return pulumi.get(self, "sdrs_io_reservable_threshold_mode")
@property
@pulumi.getter(name="sdrsLoadBalanceInterval")
def sdrs_load_balance_interval(self) -> pulumi.Output[Optional[float]]:
"""
The storage DRS poll interval, in
minutes. Default: `480` minutes.
"""
return pulumi.get(self, "sdrs_load_balance_interval")
@property
@pulumi.getter(name="sdrsPolicyEnforcementAutomationLevel")
def sdrs_policy_enforcement_automation_level(self) -> pulumi.Output[Optional[str]]:
"""
Overrides the default
automation settings when correcting storage and VM policy violations.
"""
return pulumi.get(self, "sdrs_policy_enforcement_automation_level")
@property
@pulumi.getter(name="sdrsRuleEnforcementAutomationLevel")
def sdrs_rule_enforcement_automation_level(self) -> pulumi.Output[Optional[str]]:
"""
Overrides the default
automation settings when correcting affinity rule violations.
"""
return pulumi.get(self, "sdrs_rule_enforcement_automation_level")
@property
@pulumi.getter(name="sdrsSpaceBalanceAutomationLevel")
def sdrs_space_balance_automation_level(self) -> pulumi.Output[Optional[str]]:
"""
Overrides the default
automation settings when correcting disk space imbalances.
"""
return pulumi.get(self, "sdrs_space_balance_automation_level")
@property
@pulumi.getter(name="sdrsSpaceUtilizationThreshold")
def sdrs_space_utilization_threshold(self) -> pulumi.Output[Optional[float]]:
"""
The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
"""
return pulumi.get(self, "sdrs_space_utilization_threshold")
@property
@pulumi.getter(name="sdrsVmEvacuationAutomationLevel")
def sdrs_vm_evacuation_automation_level(self) -> pulumi.Output[Optional[str]]:
"""
Overrides the default
automation settings when generating recommendations for datastore evacuation.
"""
return pulumi.get(self, "sdrs_vm_evacuation_automation_level")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[List[str]]]:
"""
The IDs of any tags to attach to this resource.
"""
return pulumi.get(self, "tags")
def translate_output_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
def translate_input_property(self, prop):
return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
| 58.494585
| 184
| 0.692927
| 3,901
| 32,406
| 5.476032
| 0.073571
| 0.058702
| 0.038011
| 0.023593
| 0.876229
| 0.833817
| 0.815841
| 0.783915
| 0.765752
| 0.763365
| 0
| 0.001971
| 0.232673
| 32,406
| 553
| 185
| 58.600362
| 0.857114
| 0.455872
| 0
| 0.323887
| 1
| 0
| 0.184956
| 0.148184
| 0
| 0
| 0
| 0
| 0
| 1
| 0.117409
| false
| 0.004049
| 0.020243
| 0.008097
| 0.255061
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8a0820b90fe9477c4aff100b881bf3000c16d7f4
| 8,924
|
py
|
Python
|
users/tests/test_views.py
|
andywar65/rp_repo
|
726c1426d738b962cabeabd8995aa35767df0c41
|
[
"BSD-2-Clause"
] | null | null | null |
users/tests/test_views.py
|
andywar65/rp_repo
|
726c1426d738b962cabeabd8995aa35767df0c41
|
[
"BSD-2-Clause"
] | null | null | null |
users/tests/test_views.py
|
andywar65/rp_repo
|
726c1426d738b962cabeabd8995aa35767df0c41
|
[
"BSD-2-Clause"
] | null | null | null |
from django.test import TestCase
from django.urls import reverse
from users.models import User
class UserViewTest(TestCase):
@classmethod
def setUpTestData(cls):
# Set up non-modified objects used by all test methods
User.objects.create_user(username='existing', password='P4s5W0r6',
email='me@existing.com')
def test_registration_view_status_code(self):
response = self.client.get(reverse('registration'))
self.assertEqual(response.status_code, 200)
def test_registration_view_template(self):
response = self.client.get(reverse('registration'))
self.assertTemplateUsed(response, 'users/registration.html')
def test_registration_view_post_status_code(self):
"""Solved thanks to @MrValdez in https://stackoverflow.com/questions/
3159284/how-to-unit-test-a-form-with-a-captcha-field-in-django
"""
response = self.client.post('/registration/', {'username':'new_guy',
'email':'new@guy.com', 'privacy': True,
"g-recaptcha-response": "PASSED"})
self.assertEqual(response.status_code, 302 )
def test_registration_view_post_redirects(self):
response = self.client.post('/registration/', {'username':'new_guy',
'email':'new@guy.com', 'privacy': True,
"g-recaptcha-response": "PASSED"}, follow=True)
self.assertRedirects(response, '/registration/?submitted=True' )
def test_contact_view_status_code(self):
response = self.client.get(reverse('contacts'))
self.assertEqual(response.status_code, 200)
def test_contact_view_template_not_logged(self):
response = self.client.get(reverse('contacts'))
self.assertTemplateUsed(response, 'users/message.html')
def test_contact_view_message_not_logged_post_status_code(self):
response = self.client.post(reverse('contacts'), {'subject': 'Foo',
'body': 'Bar', 'nickname': 'Nick', 'email': 'me@example.com',
'privacy': True, "g-recaptcha-response": "PASSED"})
self.assertEqual(response.status_code, 302 )
def test_contact_view_message_not_logged_post_redirects(self):
response = self.client.post(reverse('contacts'), {'subject': 'Foo',
'body': 'Bar', 'nickname': 'Nick', 'email': 'me@example.com',
'privacy': True, "g-recaptcha-response": "PASSED"}, follow=True)
self.assertRedirects(response, '/contacts/?submitted=True' )
def test_contact_view_template_logged(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
response = self.client.get(reverse('contacts'))
self.assertTemplateUsed(response, 'users/message_log.html')
def test_contact_view_message_logged_post_status_code(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
response = self.client.post(reverse('contacts'), {'subject': 'Foo',
'body': 'Bar'})
self.assertEqual(response.status_code, 302 )
def test_contact_view_message_logged_post_status_code_subject(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
response = self.client.post('/contacts/?subject=Foo', {
'body': 'Bar'})
self.assertEqual(response.status_code, 200 )
def test_contact_view_message_logged_post_status_code_recipient(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.post(f'/contacts/?recipient={usr.id}', {
'subject': 'Foo', 'body': 'Bar',
'attachment': 'path/to/attachment.jpg'})
self.assertEqual(response.status_code, 302 )
def test_contact_view_message_logged_post_status_code_bad_recipient(self):
#this test is just for coverage
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.post(f'/contacts/?recipient=404', {
'subject': 'Foo', 'body': 'Bar'})
self.assertEqual(response.status_code, 302 )
def test_login_view_next_logout(self):
response = self.client.post('/accounts/login/?next=/accounts/logout/',
{'username':'existing', 'password':'P4s5W0r6'})
self.assertRedirects(response, '/accounts/profile/')
def test_login_view_next_deleted(self):
response = self.client.post('/accounts/login/?next=/accounts/profile/deleted/',
{'username':'existing', 'password':'P4s5W0r6'})
self.assertRedirects(response, '/accounts/profile/')
def test_login_view_next_reset(self):
response = self.client.post('/accounts/login/?next=/accounts/password_reset/done/',
{'username':'existing', 'password':'P4s5W0r6'})
self.assertRedirects(response, '/accounts/profile/')
def test_login_view_next_registration(self):
response = self.client.post('/accounts/login/?next=/registration/',
{'username':'existing', 'password':'P4s5W0r6'})
self.assertRedirects(response, '/accounts/profile/')
def test_change_profile_view_status_code(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.get(reverse('profile_change',
kwargs={'pk': usr.id}))
self.assertEqual(response.status_code, 200)
def test_change_profile_view_post_status_code(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.post(reverse('profile_change',
kwargs={'pk': usr.id}), {'first_name': 'Existing',
'last_name': 'Guy', 'email': 'me@existing.com', 'avatar': '',
'bio': 'Foo Bar', 'yes_spam': True, 'sector': '0-NO'})
self.assertEqual(response.status_code, 302)
def test_change_profile_view_post_redirects(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.post(reverse('profile_change',
kwargs={'pk': usr.id}), {'first_name': 'Existing',
'last_name': 'Guy', 'email': 'me@existing.com', 'avatar': '',
'bio': 'Foo Bar', 'yes_spam': True, 'sector': '0-NO'})
self.assertRedirects(response,
'/accounts/profile/?submitted=Existing+Guy')
def test_change_profile_view_template(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.get(reverse('profile_change',
kwargs={'pk': usr.id}))
self.assertTemplateUsed(response, 'users/profile_change.html')
def test_change_profile_view_denied(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
response = self.client.get(reverse('profile_change',
kwargs={'pk': 74}))
self.assertEqual(response.status_code, 404)
def test_delete_profile_view_status_code(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.get(reverse('profile_delete',
kwargs={'pk': usr.id}))
self.assertEqual(response.status_code, 200)
def test_delete_profile_view_template(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.get(reverse('profile_delete',
kwargs={'pk': usr.id}))
self.assertTemplateUsed(response, 'users/profile_delete.html')
def test_delete_profile_view_denied(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
response = self.client.get(reverse('profile_delete',
kwargs={'pk': 74}))
self.assertEqual(response.status_code, 404)
#let this be the last test
def test_delete_profile_view_post_redirect(self):
self.client.post('/accounts/login/', {'username':'existing',
'password':'P4s5W0r6'})
usr = User.objects.get(username='existing')
response = self.client.post(reverse('profile_delete',
kwargs={'pk': usr.id}), {'delete': True}, follow = True)
self.assertRedirects(response, '/accounts/profile/deleted/')
| 47.216931
| 91
| 0.644442
| 985
| 8,924
| 5.667005
| 0.13198
| 0.071659
| 0.072734
| 0.108922
| 0.862236
| 0.814941
| 0.794518
| 0.786456
| 0.742028
| 0.6555
| 0
| 0.018314
| 0.198454
| 8,924
| 188
| 92
| 47.468085
| 0.762058
| 0.02667
| 0
| 0.61039
| 0
| 0
| 0.260593
| 0.056345
| 0
| 0
| 0
| 0
| 0.168831
| 1
| 0.175325
| false
| 0.155844
| 0.019481
| 0
| 0.201299
| 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
|
8a54252e96de09d2a4a7da82be3f405b45492387
| 3,125
|
py
|
Python
|
backend_rest/setups/views.py
|
ezrankayamba/twiga_distribution
|
ac4fd3d4f6b111e734a932398be564c863582be2
|
[
"MIT"
] | null | null | null |
backend_rest/setups/views.py
|
ezrankayamba/twiga_distribution
|
ac4fd3d4f6b111e734a932398be564c863582be2
|
[
"MIT"
] | 16
|
2020-03-23T13:24:11.000Z
|
2022-03-12T00:17:58.000Z
|
backend_rest/setups/views.py
|
ezrankayamba/twiga_distribution
|
ac4fd3d4f6b111e734a932398be564c863582be2
|
[
"MIT"
] | null | null | null |
from rest_framework import generics, permissions
from oauth2_provider.contrib.rest_framework import TokenHasScope
from . import serializers
from . import models
from rest_framework.views import APIView
from rest_framework.response import Response
from django.contrib.auth.models import User
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import FormParser, MultiPartParser
class RegionListView(generics.ListCreateAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.RegionSerializer
modal_class = models.Region
def get_queryset(self):
return models.Region.objects.all()
class RegionManageView(generics.RetrieveUpdateDestroyAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.RegionSerializer
modal_class = models.Region
def get_queryset(self):
return models.Region.objects.all()
class DistrictListView(generics.ListCreateAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.DistrictSerializer
def get_queryset(self):
return models.District.objects.all()
class DistrictManageView(generics.RetrieveUpdateDestroyAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.DistrictSerializer
def get_queryset(self):
return models.District.objects.all()
class BrandListView(generics.ListCreateAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.BrandSerializer
def get_queryset(self):
return models.Brand.objects.all()
class BrandManageView(generics.RetrieveUpdateDestroyAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.BrandSerializer
def get_queryset(self):
return models.Brand.objects.all()
class CategoryListView(generics.ListCreateAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.CategorySerializer
parser_classes = [FormParser, MultiPartParser]
def get_queryset(self):
return models.Category.objects.all()
class CategoryManageView(generics.RetrieveUpdateDestroyAPIView):
permission_classes = [permissions.IsAuthenticated, TokenHasScope]
required_scopes = []
serializer_class = serializers.CategorySerializer
parser_classes = [FormParser, MultiPartParser]
def get_queryset(self):
return models.Category.objects.all()
class SetupCounts(APIView):
def get(self, request):
return Response({
'regions': models.Region.objects.count(),
'districts': models.District.objects.count(),
'brands': models.Brand.objects.count(),
'categories': models.Category.objects.count()
})
| 32.552083
| 69
| 0.7616
| 289
| 3,125
| 8.086505
| 0.221453
| 0.023107
| 0.095849
| 0.147197
| 0.71887
| 0.71887
| 0.71887
| 0.71887
| 0.71887
| 0.71887
| 0
| 0.000381
| 0.15936
| 3,125
| 95
| 70
| 32.894737
| 0.889227
| 0
| 0
| 0.637681
| 0
| 0
| 0.01024
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.130435
| false
| 0
| 0.130435
| 0.130435
| 0.927536
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
8a5b06c9651361282864977aaf7c1fd1eac29be1
| 48,749
|
py
|
Python
|
liquepy/field/nzgd_cpt_converter.py
|
eng-tools/liquepy
|
b1e42e27733044cb2ca18fba97aa7c819645fa31
|
[
"MIT"
] | 2
|
2019-09-13T08:01:20.000Z
|
2020-07-31T03:33:13.000Z
|
liquepy/field/nzgd_cpt_converter.py
|
eng-tools/liquepy
|
b1e42e27733044cb2ca18fba97aa7c819645fa31
|
[
"MIT"
] | null | null | null |
liquepy/field/nzgd_cpt_converter.py
|
eng-tools/liquepy
|
b1e42e27733044cb2ca18fba97aa7c819645fa31
|
[
"MIT"
] | 4
|
2019-11-02T02:11:34.000Z
|
2021-04-30T06:06:41.000Z
|
import pandas as pd
import glob
import os
import inspect
D_STR = "Depth (m)"
QC_STR = "qc (MPa)"
FS_STR = "fs (MPa)"
U2_STR = "u (MPa)"
def convert_file(ffp, out_fp, verbose=0):
"""
Converts a CPT from the NZGD into the standard liquepy format.
This solves the problem of dealing with multiple different file formats by converting to a single format.
The additional metadata is mostly maintained in the file.
Algorithm explained
-------------------
Algorithm works by trial and error:
- Many different converters have been written to convert from an existing format to the liquepy format
- This algorithm cycles through each converter and tries to recognise the existing file format
and then apply the conversion
- if the file is different to the expected existing format then the conversion will fail and another converter is
attempted
- if successful, then the converter function name that was successful is returned
- if unsuccessful, then 'NONE' is returned
Liquepy CPT format
------------------
The liquepy format is a simple standard format.
- File is saved as a CSV
- all units in metres and MPa.
- CPT measurements start at line 25
- Comma separation using ','
- First 23 lines contain meta data
- Pre-drill depth is defined in meta data as 'Pre-Drill:,<pre-drill depth>,'
- Ground water level is defined in meta data as 'Assumed GWL:,<ground water depth>,'
- Cone area ratio is defined in meta data as 'aratio,<cone area ratio>,'
- Second line of metadata contains name of converter function (useful for debugging)
Parameters
----------
:param ffp: str
Full file path to original CPT file
:param out_fp: str
Output folder path where formatted CPT file should be saved
:param verbose: bool or int
if true then print to algorithm steps to console
:return:
"""
fns = [convert_ags, convert_raw01_xls, convert_raw01_xls_v2, convert_raw01_xls_v3, convert_raw01_xlsx,
convert_raw02_xlsx_or_raw_03_xls, convert_raw01_xlsx_v2, convert_fugro_raw01, convert_raw01_fugro_v2,
convert_raw01_extra_cols, convert_tabulated_kpas, convert_raw01_xlsx_from_csv, convert_raw_txt_xlsx,
convert_raw01_w_kpa, convert_raw01_fugro_xls_v3, convert_raw01_xlsx_space_sep, convert_shortened_ags,
convert_raw01_w_underscores, convert_raw01_w_meta_on_right]
for i, fn in enumerate(fns):
if verbose:
print(fn.__name__)
res = fn(ffp, out_fp, verbose=verbose)
if res == 1:
return fn.__name__
if i == len(fns) - 1:
if verbose:
print("NOT CONVERTED!")
return "NONE"
def convert_folder(in_fp, out_fp, verbose=0):
"""
Reads through a folder of NZGD CPT files and converts them to liquepy format
:param in_fp: str
Folder path of existing NZGD CPT files
:param out_fp: str
Folder path where formatted NZGD files should be saved
:param verbose: int or bool
if true then print to algorithm steps to console
:return:
"""
results = []
ffps = glob.glob(in_fp + "*.xls*") # Does not handle .csv and .txt
ffps.sort()
if not os.path.exists(out_fp):
os.makedirs(out_fp)
for ffp in ffps:
if verbose:
print(ffp)
converter_name = convert_file(ffp, out_fp, verbose)
fname = ffp.split(in_fp)[-1]
results.append("{0},{1}".format(fname, converter_name))
if verbose:
print('SUMMARY: ')
for line in results:
print(line)
ofile = open(out_fp + 'last_processed.txt', 'w')
ofile.write("\n".join(results))
ofile.close()
return results
def trim_missing_at_end_data_df(df_data, neg_lim=None):
"""
Removes rows at end of file that have empty data
:param df_data:
:param neg_lim:
:return:
"""
df_data = df_data.reset_index(drop=True)
nan_rows = df_data[df_data.iloc[:, :3].isnull().T.any().T]
nan_indexes = list(nan_rows.index)
if len(nan_indexes):
i_start = None
i_end = None
if nan_indexes[0] == 0:
i_start = nan_indexes[-1] + 1
for i in range(1, len(nan_indexes)):
if nan_indexes[i] - nan_indexes[i - 1] > 1:
i_start = nan_indexes[i - 1] + 1
i_end = nan_indexes[i]
break
else:
i_end = nan_indexes[0]
df_data = df_data[i_start:i_end]
if neg_lim is not None:
# remove large neg values
neg_rows = df_data[df_data.iloc[:, 2] < neg_lim]
neg_indexes = list(neg_rows.index)
if len(neg_indexes):
df_data = df_data[:neg_indexes[0]]
return df_data
def clean_top(df_top):
"""
Removes empty data at top of file
:param df_top:
:return:
"""
for i in range(len(df_top)):
for j in range(4):
if isinstance(df_top.iloc[i, j], str) and '\r\n' in df_top.iloc[i, j]:
df_top.iloc[i, j] = df_top.iloc[i, j].replace('\r\n', '')
def convert_ags(ffp, out_fp, verbose=0):
cpt_num = ffp.split("CPT_")[-1]
if "_AGS" in ffp:
cpt_num = int(cpt_num.split("_AGS")[0])
elif "_Raw" in ffp: # e.g. CPT_27240_Raw01.xls
cpt_num = int(cpt_num.split("_Raw")[0])
elif "McM" in ffp or "M" in ffp or "DAL" in ffp or "Fitz" in ffp or "ANZ" in ffp:
cpt_num = cpt_num[:-4]
else:
try:
if cpt_num[-5:] == '.xlsx':
cpt_num = int(cpt_num[:-5])
elif cpt_num[-4:] == '.xls':
cpt_num = int(cpt_num[:-4])
else:
return 0
except ValueError:
return 0
df = pd.read_excel(ffp, sheet_name=0)
cols = list(df)
if len(df) < 20 or len(cols) < 4:
return 0
if df.iloc[20, 0] == D_STR and df.iloc[20, 1] == QC_STR and df.iloc[20, 2] == FS_STR and df.iloc[20, 3] == U2_STR:
pass
else:
return 0
df_titles = df.iloc[20:21, 0:4]
df_data = df.iloc[21:, 0:4]
df_data = trim_missing_at_end_data_df(df_data, neg_lim=-100)
df_top = df.iloc[0:19, 0:4]
more = 3
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_top.index = df_top.index + 1 # shifting index
df_top = df_top.sort_index() # sorting by index
clean_top(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_titles, df_data])
# df_new.reindex(index=np.arange(len(df_new)))
# df_new = pd.concat([df_top, df_z, df_data])
df_top.iloc[3, 1] = 'H'
df_tt = pd.concat([df_top, df_z, df_titles])
df_new.to_csv(out_fp + "CPT_{0}.csv".format(cpt_num), index=False)
return 1
def convert_shortened_ags(ffp, out_fp, verbose=0):
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp: # e.g. CPT_27240_Raw01.xls
cpt_num = int(cpt_num.split("_Raw")[0])
elif "McM" in ffp or "M" in ffp or "DAL" in ffp or "Fitz" in ffp or "ANZ" in ffp:
cpt_num = cpt_num[:-4]
else:
try:
if cpt_num[-5:] == '.xlsx':
cpt_num = int(cpt_num[:-5])
elif cpt_num[-4:] == '.xls':
cpt_num = int(cpt_num[:-4])
else:
return 0
except ValueError:
return 0
df = pd.read_excel(ffp, sheet_name=0)
cols = list(df)
if len(df) < 20 or len(cols) < 4:
return 0
ln0 = 14
ln1 = 15
if df.iloc[ln0, 0] == 'Depth [m]' and df.iloc[ln0, 1] == 'qc [MPa]' and df.iloc[ln0, 2] == 'fs [MPa]' and df.iloc[ln0, 3] == 'u2 [MPa]':
ln = ln0
elif df.iloc[ln1, 0] == 'Depth [m]' and df.iloc[ln1, 1] == 'qc [MPa]' and df.iloc[ln1, 2] == 'fs [MPa]' and df.iloc[ln1, 3] == 'u2 [MPa]':
ln = ln1
else:
return 0
df_data = df.iloc[ln + 1:, 0:4]
df_data = trim_missing_at_end_data_df(df_data, neg_lim=-100)
df_top = df.iloc[0:ln - 1, 0:4]
heads = [D_STR, QC_STR, FS_STR, U2_STR]
df_headers = pd.DataFrame([heads], columns=list(df_top))
limit = 22
more = limit - len(df_top)
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_top.index = df_top.index + 1 # shifting index
df_top = df_top.sort_index() # sorting by index
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Predrill":
df_top.iloc[i, 0] = 'Pre-Drill:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
# df_new = pd.concat([df_top, df_z, df_data])
df_new.to_csv(out_fp + "CPT_{0}.csv".format(cpt_num), index=False)
return 1
def convert_tabulated_kpas(ffp, out_fp, verbose=0):
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp: # e.g. CPT_27240_Raw01.xls
cpt_num = int(cpt_num.split("_Raw")[0])
else:
return 0
df = pd.read_excel(ffp, sheet_name=0)
cols = list(df)
if len(df) < 21 or len(cols) < 4:
return 0
if df.iloc[21, 0] == D_STR and df.iloc[21, 1] == QC_STR and df.iloc[21, 2] == 'fs (kPa)' and df.iloc[21, 3] == 'u (kPa)':
pass
else:
return 0
# df_titles = df.iloc[20:21, 0:4]
df_data = df.iloc[22:, 0:4]
df_data = trim_missing_at_end_data_df(df_data, neg_lim=-100)
df_data.iloc[:, 2] = df_data.iloc[:, 2] / 1e3 # convert to MPa
df_data.iloc[:, 3] = df_data.iloc[:, 3] / 1e3 # convert to MPa
df_top = df.iloc[0:20, 0:4]
df_headers = pd.DataFrame([[D_STR, QC_STR, FS_STR, U2_STR]], columns=list(df_top))
more = 2
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_top.index = df_top.index + 1 # shifting index
df_top = df_top.sort_index() # sorting by index
for i in range(len(df_top)):
for j in range(3):
if df_top.iloc[i, j] == 'Nil':
df_top.iloc[i, j] = 0.0
if df_top.iloc[i, j] == 'nil':
df_top.iloc[i, j] = 0.0
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
# df_new = pd.concat([df_top, df_z, df_data])
df_new.to_csv(out_fp + "CPT_{0}.csv".format(cpt_num), index=False)
return 1
def convert_raw01_extra_cols(ffp, out_fp, verbose=0):
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
d_str = 'Penetration Depth (m)'
# try info all on one page
try:
df = pd.read_excel(ffp, sheet_name=0)
cols = list(df)
if len(df) < 20 or len(cols) < 4:
raise ValueError
if df.iloc[20, 1] == d_str and df.iloc[20, 2] == QC_STR and df.iloc[20, 3] == FS_STR and df.iloc[20, 4] == U2_STR:
df_data = df.iloc[21:, 1:5]
df_top = df.iloc[0:19, 0:4]
else:
raise ValueError
except ValueError:
# try info split over two sheets
try:
df = pd.read_excel(ffp, sheet_name=1)
except IndexError:
return 0
cols = list(df)
if cols[0] == d_str and cols[1] == QC_STR and cols[2] == FS_STR and cols[3] == U2_STR:
df_data = df.iloc[:, :4]
df_top = pd.read_excel(ffp, sheet_name=0)
df_top = df_top.iloc[:min(22, len(df_top)), :4]
else:
return 0
heads = [D_STR, QC_STR, FS_STR, U2_STR]
df_data = trim_missing_at_end_data_df(df_data)
df_headers = pd.DataFrame([heads], columns=list(df_top))
df_data.columns = list(df_top)
more = 22 - len(df_top)
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_top.index = df_top.index + 1 # shifting index
df_top = df_top.sort_index() # sorting by index
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data], sort=True)
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_fugro_raw01(ffp, out_fp, verbose=0): # e.g. CPT_27643_Raw01.xlsx
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
else:
return 0
df = pd.read_excel(ffp, sheet_name=0)
cols = list(df)
tline = 44
uline = 45
if len(df) < 20 or len(cols) < 4:
return 0
if df.iloc[tline, 0] == 'Depth' and df.iloc[tline, 1] == 'Cone' and df.iloc[tline, 2] == 'Friction' and df.iloc[tline, 3] == 'Pore 2':
if df.iloc[uline, 0] == 'm' and df.iloc[uline, 1] == 'MPa' and df.iloc[uline, 2] == 'MPa' and df.iloc[uline, 3] == 'MPa':
pass
else:
return 0
else:
return 0
df_data = df.iloc[uline + 1:, 0:4]
df_data = trim_missing_at_end_data_df(df_data)
df_top = df.iloc[0:19, 0:4]
more = 3
zeros = [["", "", "", ""]] * more
zeros.append([D_STR, QC_STR, FS_STR, U2_STR])
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_top.index = df_top.index + 1 # shifting index
df_top = df_top.sort_index() # sorting by index
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_data], sort=True)
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_xls(ffp, out_fp, verbose=0):
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
if 'Header' in xf.sheet_names and 'CPT1' in xf.sheet_names:
if verbose:
print('found header match at convert_raw01_xls')
else:
return 0
df = pd.read_excel(ffp, sheet_name='CPT1')
if df.iloc[5, 0] == D_STR and df.iloc[5, 1] == QC_STR and df.iloc[5, 2] == 'fs(kPa)' and df.iloc[5, 3] == 'u (kPa)':
pass
else:
return 0
df_data = df.iloc[6:, 0:4]
df_data = trim_missing_at_end_data_df(df_data)
# Convert columns from kPa to MPa
df_data.iloc[:, 2] = df_data.iloc[:, 2] / 1e3
df_data.iloc[:, 3] = df_data.iloc[:, 3] / 1e3
df_top = pd.read_excel(ffp, sheet_name='Header')
df_top = df_top.iloc[:, 3:7]
n_cols = len(list(df_top))
if n_cols < 4:
for i in range(n_cols, 4):
df_top["C%i" % i] = ""
pp = len(df_top)
gwl_row = None
aratio_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Water level":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
limit = 20
more = limit - pp
if gwl_row is not None and gwl_row > limit:
df_top[limit - 2] = df_top[gwl_row]
if aratio_row is not None and aratio_row > limit:
df_top[limit - 1] = df_top[aratio_row]
if more < 0:
df_top = df_top[:limit]
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_headers = pd.DataFrame([[D_STR, QC_STR, FS_STR, U2_STR]], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_xls_v2(ffp, out_fp, verbose=0):
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
d_str = 'Depth (m)'
qc_str = 'qc Clean (MPa)'
fs_str = 'fs Clean (MPa)'
u2_str = 'u2 Clean (MPa)'
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str and cols[3] == u2_str:
found = name
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[:, 0:4]
# Columns already in MPa
df_data = trim_missing_at_end_data_df(df_data)
df_top = pd.read_excel(ffp, sheet_name='CPT_Details')
n_cols = len(list(df_top))
if n_cols < 4:
for i in range(n_cols, 4):
df_top["C%i" % i] = ""
pp = len(df_top)
gwl_row = None
aratio_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Water Level":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
limit = 22
more = limit - pp
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
# for i in range(more):
# df_top.loc[-1] = [0, 0, 0, 0]
# df_top.append([0, 0, 0, 0])
df_headers = pd.DataFrame([[D_STR, QC_STR, FS_STR, U2_STR]], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_w_meta_on_right(ffp, out_fp, verbose=0):
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
d_str = 'Depth (m)'
qc_str = 'qcClean (MPa)'
fs_str = 'fsClean (MPa)'
u2_str = 'u2Clean (MPa)'
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str and cols[3] == u2_str:
found = name
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[:, 0:4]
# Columns already in MPa
df_data = trim_missing_at_end_data_df(df_data)
df_top = df.iloc[:, 5:]
r1 = []
r2 = []
r3 = []
for head in df_top.columns:
r1.append([head, df_top[head].iloc[0]])
if not pd.isnull(df_top[head].iloc[2]):
r2.append([df_top[head].iloc[2], df_top[head].iloc[3]])
if not pd.isnull(df_top[head].iloc[6]):
r3.append([df_top[head].iloc[6], df_top[head].iloc[7]])
dd = r1 + r2 + r3
df_top = pd.DataFrame(dd)
n_header_cols = 2
if n_header_cols < 4:
for i in range(n_header_cols, 4):
df_top["C%i" % i] = ""
pp = len(df_top)
gwl_row = None
aratio_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Water Level": # not used
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "ConeAreaRatio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
limit = 22
more = limit - pp
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_headers = pd.DataFrame([[D_STR, QC_STR, FS_STR, U2_STR]], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_fugro_xls_v3(ffp, out_fp, verbose=0):
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
d_str = 'Depth'
qc_str = 'Cone'
fs_str = 'Friction'
u2_strs = ['Pore 2', 'Pore2']
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str and cols[3] in u2_strs:
if df.iloc[0, 0] == 'm' and df.iloc[0, 1] == 'MPa' and df.iloc[0, 2] == 'MPa' and df.iloc[0, 3] == 'MPa':
found = name
else:
return 0
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[1:, 0:4]
# Columns already in MPa
df_data = trim_missing_at_end_data_df(df_data)
df_top = pd.read_excel(ffp, sheet_name='Description')
n_cols = len(list(df_top))
if n_cols < 4:
for i in range(n_cols, 4):
df_top["C%i" % i] = ""
else:
df_top = df_top.iloc[:, :4]
pp = len(df_top)
gwl_row = None
aratio_row = None
predrill_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Derived GWL (m):":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Tip Net Area Ratio:":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
if df_top.iloc[i, 0] == "Pre-Drill (m):":
df_top.iloc[i, 0] = 'Pre-Drill:'
predrill_row = i
limit = 22
more = limit - pp
if predrill_row is not None and predrill_row > limit:
df_top.iloc[limit - 3, :] = df_top.iloc[predrill_row, :]
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_headers = pd.DataFrame([[D_STR, QC_STR, FS_STR, U2_STR]], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_fugro_v2(ffp, out_fp, verbose=0):
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
opt0 = ['Depth [m]', 'qc [MPa]', 'fs [MPa]', 'u2 [MPa]']
opt1 = ['Depth [m]', 'Qc [MPa]', 'Fs [MPa]', 'U2 [MPa]']
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == opt0[0] and cols[1] == opt0[1] and cols[2] == opt0[2] and cols[3] == opt0[3]:
found = name
if cols[0] == opt1[0] and cols[1] == opt1[1] and cols[2] == opt1[2] and cols[3] == opt1[3]:
found = name
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[:, 0:4]
# Convert columns from kPa to MPa
df_data.iloc[:, 2] = df_data.iloc[:, 2]
df_data.iloc[:, 3] = df_data.iloc[:, 3]
df_data = trim_missing_at_end_data_df(df_data)
if 'TESTING SUMMARY SHEET' in sheet_names:
df_top = pd.read_excel(ffp, sheet_name='TESTING SUMMARY SHEET')
elif 'Description' in sheet_names:
df_top = pd.read_excel(ffp, sheet_name='Description')
elif 'CPT SUMMARY SHEET' in sheet_names:
df_top = pd.read_excel(ffp, sheet_name='CPT SUMMARY SHEET')
dd = []
for head in df_top.columns:
dd.append([head, df_top[head].iloc[0]])
df_top = pd.DataFrame(dd)
else:
raise ValueError("Sheet name not detected")
n_cols = len(list(df_top))
if n_cols < 4:
for i in range(n_cols, 4):
df_top["C%i" % i] = ""
elif n_cols > 4:
df_top = df_top.iloc[:, :4]
pp = len(df_top)
gwl_row = None
aratio_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Water Level":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
limit = 22
more = limit - pp
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_headers = pd.DataFrame([[D_STR, QC_STR, FS_STR, U2_STR]], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_w_kpa(ffp, out_fp, verbose=0):
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
opt1 = ['Depth [m]', 'Qc [MPa]', 'Fs [KPa]', 'U2 [KPa]']
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
if len(df) < 32:
continue
cols = list(df)
if len(cols) < 3:
continue
if df.iloc[31, 0] == opt1[0] and df.iloc[31, 1] == opt1[1] and df.iloc[31, 2] == opt1[2] and df.iloc[31, 3] == opt1[3]:
found = name
break
if not found:
if verbose:
print("CPT headers not found")
return 0
df_data = df.iloc[32:, 0:4]
df_data.iloc[:, 2] = df_data.iloc[:, 2] / 1e3
df_data.iloc[:, 3] = df_data.iloc[:, 3] / 1e3
df_top = df.iloc[0:19, 0:4]
heads = [D_STR, QC_STR, FS_STR, U2_STR]
df_data = trim_missing_at_end_data_df(df_data)
df_headers = pd.DataFrame([heads], columns=list(df_top))
df_data.columns = list(df_top)
more = 22 - len(df_top)
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_top.index = df_top.index + 1 # shifting index
df_top = df_top.sort_index() # sorting by index
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data], sort=True)
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_xls_v3(ffp, out_fp, verbose=0):
d_str = 'Test Length (m)'
qc_str = 'Cone Resistance (MPa)'
fs_str = 'Local Friction (MPa)'
u2_str = 'Pore Pressure (MPa)'
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
n_data_cols = 3
offset = None
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str:
if cols[3] == u2_str:
n_data_cols = 4
offset = 0
found = name
elif cols[1] == d_str and cols[2] == qc_str and cols[3] == fs_str:
if cols[4] == u2_str:
n_data_cols = 4
offset = 1
found = name
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[:, offset:n_data_cols + offset]
df_data = trim_missing_at_end_data_df(df_data)
df_data.fillna(0, inplace=True)
# Convert columns from kPa to MPa
df_data.iloc[:, 2] = df_data.iloc[:, 2]
if n_data_cols == 4:
df_data.iloc[:, 3] = df_data.iloc[:, 3]
df_top = pd.read_excel(ffp, sheet_name='General')
dd = []
for head in df_top.columns:
dd.append([head, df_top[head].iloc[0]])
df_top = pd.DataFrame(dd)
n_cols = len(list(df_top))
if n_cols < 4:
for i in range(n_cols, n_data_cols):
df_top["C%i" % i] = ""
pp = len(df_top)
gwl_row = None
aratio_row = None
predrill_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Water Level":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
if df_top.iloc[i, 0] == "Predrilled":
df_top.iloc[i, 0] = 'Pre-Drill:'
predrill_row = i
limit = 21
more = limit - pp
if predrill_row is not None and predrill_row > limit:
df_top.iloc[limit - 3, :] = df_top.iloc[predrill_row, :]
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [[""] * n_data_cols] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
heads = [D_STR, QC_STR, FS_STR, U2_STR]
if n_data_cols == 3:
heads = [D_STR, QC_STR, FS_STR]
df_headers = pd.DataFrame([heads], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_w_underscores(ffp, out_fp, verbose=0):
d_str = 'Depth_m'
qc_str = 'qc_mpa'
fs_str = 'fs_mpa'
u2_str = 'u2_mpa'
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
n_data_cols = 3
offset = None
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str:
if cols[3] == u2_str:
n_data_cols = 4
offset = 0
found = name
elif cols[1] == d_str and cols[2] == qc_str and cols[3] == fs_str:
if cols[4] == u2_str:
n_data_cols = 4
offset = 1
found = name
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[:, offset:n_data_cols + offset]
df_data = trim_missing_at_end_data_df(df_data)
df_data.fillna(0, inplace=True)
df_top = pd.read_excel(ffp, sheet_name='CPT_Setup')
dd = []
for head in df_top.columns:
dd.append([head, df_top[head].iloc[0]])
df_top = pd.DataFrame(dd)
n_cols = len(list(df_top))
if n_cols < 4:
for i in range(n_cols, n_data_cols):
df_top["C%i" % i] = ""
pp = len(df_top)
gwl_row = None
aratio_row = None
predrill_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "WaterLevel":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "ConeAreaRatio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
if df_top.iloc[i, 0] == "Predrill":
df_top.iloc[i, 0] = 'Pre-Drill:'
if df_top.iloc[i, 1] == '' or pd.isnull(df_top.iloc[i, 1]):
df_top.iloc[i, 1] = '0.0'
predrill_row = i
limit = 21
more = limit - pp
if predrill_row is not None and predrill_row > limit:
df_top.iloc[limit - 3, :] = df_top.iloc[predrill_row, :]
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [[""] * n_data_cols] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
heads = [D_STR, QC_STR, FS_STR, U2_STR]
if n_data_cols == 3:
heads = [D_STR, QC_STR, FS_STR]
df_headers = pd.DataFrame([heads], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_xlsx_v2(ffp, out_fp, verbose=0): # e.g. CPT_38858_Raw01.xlsx
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
else:
return 0
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
n_data_cols = 3
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
d_str = 'Depth'
qc_str = 'qc'
fs_str = 'fs'
u2_str = 'u2'
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str:
if df.iloc[0, 1] != '[MPa]' and df.iloc[0, 2] != '[MPa]':
return 0
if cols[3] == u2_str:
n_data_cols = 4
if df.iloc[0, 3] != '[MPa]':
return 0
found = name
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[2:, 0:n_data_cols]
df_data.fillna(0, inplace=True)
# Convert columns from kPa to MPa
df_data.iloc[:, 2] = df_data.iloc[:, 2]
if n_data_cols == 4:
df_data.iloc[:, 3] = df_data.iloc[:, 3]
df_data = trim_missing_at_end_data_df(df_data)
df_top = pd.read_excel(ffp, sheet_name='Header')
dd = []
for head in df_top.columns:
dd.append([head, df_top[head].iloc[0]])
df_top = pd.DataFrame(dd)
n_cols = len(list(df_top))
if n_cols < n_data_cols:
for i in range(n_cols, n_data_cols):
df_top["C%i" % i] = ""
pp = len(df_top)
gwl_row = None
aratio_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Waterlevel:":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
limit = 22
more = limit - pp
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [[""] * n_data_cols] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
if n_data_cols == 4:
heads = [D_STR, QC_STR, FS_STR, U2_STR]
else:
heads = [D_STR, QC_STR, FS_STR]
df_headers = pd.DataFrame([heads], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_xlsx_space_sep(ffp, out_fp, verbose=0): # e.g. CPT_38858_Raw01.xlsx
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
else:
return 0
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
n_data_cols = 3
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
cols = list(df)
if len(cols) != 1:
continue
titles = df.iloc[9, 0]
units = df.iloc[10, 0]
if 'Depth qc' in titles:
if '[MPa] [MPa]' in units:
found = name
break
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
data = []
for i in range(11, len(df)):
data.append(df.iloc[i, 0].split()[:4])
top = []
for i in range(9):
top.append(df.iloc[i, 0].split(':'))
more = 13
zeros = [[""] * n_data_cols] * more
heads = [D_STR, QC_STR, FS_STR, U2_STR]
head_lines = [heads]
dd = top + zeros + head_lines + data
df_new = pd.DataFrame(dd)
df_new.iloc[0, -1] = inspect.stack()[0][3]
for i in range(len(df_new)):
if df_new.iloc[i, 0] == "Waterlevel":
df_new.iloc[i, 0] = 'Assumed GWL:'
if df_new.iloc[i, 0] == "Cone Area Ratio":
df_new.iloc[i, 0] = 'aratio'
if df_new.iloc[i, 0] == "PreDrill":
df_new.iloc[i, 0] = 'Pre-Drill:'
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw_txt_xlsx(ffp, out_fp, verbose=0): # e.g. CPT_49062
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
else:
return 0
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
n_data_cols = 4
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
d_str = 'Depth'
qc_str = 'qc'
fs_str = 'fs'
u2_str = 'u2'
cols = list(df)
if len(cols) < 3:
continue
if len(df) <= 12:
continue
if df.iloc[12, 0] == d_str and df.iloc[12, 1] == qc_str and df.iloc[12, 2] == fs_str and df.iloc[12, 3] == u2_str:
found = name
else:
return 0
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[15:, 0:n_data_cols]
df_data = trim_missing_at_end_data_df(df_data)
df_data.fillna(0, inplace=True)
df_top = df.iloc[:12, 0:n_data_cols]
n_cols = len(list(df_top))
if n_cols < n_data_cols:
for i in range(n_cols, n_data_cols):
df_top["C%i" % i] = ""
pp = len(df_top)
gwl_row = None
aratio_row = None
predrill_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Waterlevel:":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
if df_top.iloc[i, 0] == "PreDrill":
df_top.iloc[i, 0] = 'Pre-Drill:'
predrill_row = i
limit = 22
more = limit - pp
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if predrill_row is not None and predrill_row > limit:
df_top.iloc[limit - 3, :] = df_top.iloc[predrill_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [[""] * n_data_cols] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
if n_data_cols == 4:
heads = [D_STR, QC_STR, FS_STR, U2_STR]
else:
heads = [D_STR, QC_STR, FS_STR]
df_headers = pd.DataFrame([heads], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_xlsx_from_csv(ffp, out_fp, verbose=0): # e.g. CPT_29585_Raw01.xlsx
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
else:
return 0
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
n_data_cols = 4
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
d_str = 'H [m]'
qc_str = 'qc [MPa]'
fs_str = 'fs [MPa]'
u2_str = 'u2 [MPa]'
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str:
found = name
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
df_data = df.iloc[:, 0:n_data_cols]
df_data.fillna(0, inplace=True)
df_data = trim_missing_at_end_data_df(df_data)
more = 22
zeros = [[""] * n_data_cols] * more
df_z = pd.DataFrame(zeros, columns=list([""] * n_data_cols))
if n_data_cols == 4:
heads = [D_STR, QC_STR, FS_STR, U2_STR]
else:
heads = [D_STR, QC_STR, FS_STR]
df_headers = pd.DataFrame([heads], columns=[""] * n_data_cols)
df_data.columns = [""] * n_data_cols
df_z.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw02_xlsx_or_raw_03_xls(ffp, out_fp, verbose=0):
cpt_num = ffp.split("CPT_")[-1]
if "_Raw" in ffp:
cpt_num = int(cpt_num.split("_Raw")[0])
else:
return 0
xf = pd.ExcelFile(ffp)
sheet_names = xf.sheet_names
found = 0
n_data_cols = 3
opt1 = ['Test length[1]', 'Cone resistance[2]', 'Local friction[3]', 'Pore pressure u2[6]']
opt2 = ['Test length[1] m', 'Cone resistance[2] MPa', 'Local friction[3] MPa', 'Pore pressure u2[6] MPa']
units_in_title = 0
for name in sheet_names:
df = pd.read_excel(ffp, sheet_name=name)
cols = list(df)
if len(cols) < 3:
continue
if cols[0] == opt1[0] and cols[1] == opt1[1] and cols[2] == opt1[2]:
if df.iloc[0, 0] == 'm' and df.iloc[0, 1] == 'MPa' and df.iloc[0, 2] == 'MPa':
if cols[3] == opt1[3]:
n_data_cols = 4
found = name
break
elif cols[0] == opt2[0] and cols[1] == opt2[1] and cols[2] == opt2[2] and cols[3] == opt2[3]:
found = name
units_in_title = 1
break
if not found:
if verbose:
print("CPT headers not found")
return 0
df = pd.read_excel(ffp, sheet_name=found)
if units_in_title:
df_data = df.iloc[:, 0:n_data_cols]
else:
df_data = df.iloc[1:, 0:n_data_cols]
df_data.fillna(0, inplace=True)
df_data = trim_missing_at_end_data_df(df_data)
if 'General' in sheet_names:
df_top = pd.read_excel(ffp, sheet_name='General')
# dd = []
# for head in df_top.columns:
# dd.append([head, df_top[head].iloc[0]])
# df_top = pd.DataFrame(dd)
elif 'Header' in sheet_names:
df_top = pd.read_excel(ffp, sheet_name='Header')
else:
return 0
n_cols = len(list(df_top))
if n_cols < n_data_cols:
for i in range(n_cols, n_data_cols):
df_top["C%i" % i] = ""
if n_cols > n_data_cols:
df_top = df_top.iloc[:, :n_data_cols]
pp = len(df_top)
gwl_row = None
aratio_row = None
predrill_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Water Level":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Cone Area Ratio":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
if df_top.iloc[i, 0] == "Predrilled":
df_top.iloc[i, 0] = 'Pre-Drill:'
predrill_row = i
limit = 22
more = limit - pp
if predrill_row is not None and predrill_row > limit:
df_top.iloc[limit - 3, :] = df_top.iloc[predrill_row, :]
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
zeros = [[""] * n_data_cols] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
if n_data_cols == 4:
heads = [D_STR, QC_STR, FS_STR, U2_STR]
df_data.columns = list(df_top)
else:
heads = [D_STR, QC_STR, FS_STR]
df_data.columns = list(df_top)
df_headers = pd.DataFrame([heads], columns=list(df_top))
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
def convert_raw01_xlsx(ffp, out_fp, verbose=0):
if "_Raw" not in ffp:
return 0
cpt_num = ffp.split("CPT_")[-1]
cpt_num = int(cpt_num.split("_Raw")[0])
xf = pd.ExcelFile(ffp)
if 'Header' in xf.sheet_names and 'Data' in xf.sheet_names:
if verbose:
print('found sheet names at convert_raw01_xlsx')
else:
return 0
df = pd.read_excel(ffp, sheet_name='Data')
d_str = 'Depth [m]'
qc_str = 'Cone resistance (qc) in MPa'
fs_str = 'Sleeve friction (fs) in MPa'
u2_str = 'Dynamic pore pressure (u2) in MPa'
cols = list(df)
if cols[0] == d_str and cols[1] == qc_str and cols[2] == fs_str and cols[3] == u2_str:
pass
else:
return 0
df_data = df.iloc[:, 0:4]
df_data = trim_missing_at_end_data_df(df_data)
df_top = pd.read_excel(ffp, sheet_name='Header')
df_top = df_top.iloc[:, 0:4]
pp = len(df_top)
limit = 22
more = limit - pp
gwl_row = None
aratio_row = None
predrill_row = None
for i in range(len(df_top)):
if df_top.iloc[i, 0] == "Predrill":
df_top.iloc[i, 0] = 'Pre-Drill:'
predrill_row = i
if df_top.iloc[i, 0] == "Water level":
df_top.iloc[i, 0] = 'Assumed GWL:'
if df_top.iloc[i, 1] < 0:
df_top.iloc[i, 1] *= -1
gwl_row = i
if df_top.iloc[i, 0] == "Alpha Factor":
df_top.iloc[i, 0] = 'aratio'
aratio_row = i
if predrill_row is not None and predrill_row > limit:
df_top.iloc[limit - 3, :] = df_top.iloc[predrill_row, :]
if gwl_row is not None and gwl_row > limit:
df_top.iloc[limit - 2, :] = df_top.iloc[gwl_row, :]
if aratio_row is not None and aratio_row > limit:
df_top.iloc[limit - 1, :] = df_top.iloc[aratio_row, :]
if more < 0:
df_top = df_top[:limit]
n_cols = len(list(df_top))
if n_cols < 4:
for i in range(n_cols, 4):
df_top["C%i" % i] = ""
n_cols = len(list(df_top))
if more < 0:
df_top = df_top[:limit]
zeros = [["", "", "", ""]] * more
df_z = pd.DataFrame(zeros, columns=list(df_top))
df_headers = pd.DataFrame([[D_STR, QC_STR, FS_STR, U2_STR]], columns=list(df_top))
df_data.columns = list(df_top)
df_top.iloc[0, -1] = inspect.stack()[0][3]
df_new = pd.concat([df_top, df_z, df_headers, df_data])
df_new.to_csv(out_fp + "CPT_%i.csv" % cpt_num, index=False)
return 1
| 32.84973
| 142
| 0.566042
| 7,964
| 48,749
| 3.238448
| 0.045706
| 0.076965
| 0.059672
| 0.036835
| 0.830135
| 0.806832
| 0.774921
| 0.763173
| 0.746113
| 0.734869
| 0
| 0.033734
| 0.293401
| 48,749
| 1,483
| 143
| 32.871881
| 0.715003
| 0.06595
| 0
| 0.794215
| 0
| 0
| 0.060114
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.019008
| false
| 0.004132
| 0.003306
| 0
| 0.083471
| 0.015702
| 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
|
8a72c538dd948f0d6e932efb68081bf0c3df9478
| 6,461
|
py
|
Python
|
examples/transaction/contract_transaction.py
|
meherett/pyxdc
|
c7e9283ce47a911b2e619e286ba443ec6c022790
|
[
"MIT"
] | 4
|
2021-05-03T06:13:04.000Z
|
2022-02-28T07:43:31.000Z
|
examples/transaction/contract_transaction.py
|
meherett/pyxdc
|
c7e9283ce47a911b2e619e286ba443ec6c022790
|
[
"MIT"
] | null | null | null |
examples/transaction/contract_transaction.py
|
meherett/pyxdc
|
c7e9283ce47a911b2e619e286ba443ec6c022790
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
from pyxdc import (
HTTP_PROVIDER, DEFAULT_PATH
)
from pyxdc.transaction import ContractTransaction
from pyxdc.utils import amount_unit_converter
from pyxdc.rpc import submit_transaction_raw
from pyxdc.wallet import Wallet
import json
# Wallet entropy hex string
ENTROPY: str = "92e6d1f7aa93ae88c432b57ef63aaf5f"
# Value for contract (Wei unit)
VALUE: int = amount_unit_converter(amount=0, unit="XDC2Wei")
# Contract bytecode
BYTECODE: str = "608060405234801561001057600080fd5b506040518060400160405280600581526020017f48656c6c6f00000000000" \
"00000000000000000000000000000000000000000008152506000908051906020019061005c929190610062565b5061" \
"0166565b82805461006e90610105565b90600052602060002090601f01602090048101928261009057600085556100d" \
"7565b82601f106100a957805160ff19168380011785556100d7565b828001600101855582156100d7579182015b8281" \
"11156100d65782518255916020019190600101906100bb565b5b5090506100e491906100e8565b5090565b5b8082111" \
"56101015760008160009055506001016100e9565b5090565b6000600282049050600182168061011d57607f82169150" \
"5b6020821081141561013157610130610137565b5b50919050565b7f4e487b710000000000000000000000000000000" \
"0000000000000000000000000600052602260045260246000fd5b61053b806101756000396000f3fe60806040523480" \
"1561001057600080fd5b50600436106100415760003560e01c8063a413686214610046578063cfae321714610062578" \
"063ef690cc014610080575b600080fd5b610060600480360381019061005b91906102e3565b61009e565b005b61006a" \
"6100b8565b604051610077919061035d565b60405180910390f35b61008861014a565b604051610095919061035d565" \
"b60405180910390f35b80600090805190602001906100b49291906101d8565b5050565b6060600080546100c7906104" \
"33565b80601f01602080910402602001604051908101604052809291908181526020018280546100f390610433565b8" \
"0156101405780601f1061011557610100808354040283529160200191610140565b820191906000526020600020905b" \
"81548152906001019060200180831161012357829003601f168201915b5050505050905090565b60008054610157906" \
"10433565b80601f01602080910402602001604051908101604052809291908181526020018280546101839061043356" \
"5b80156101d05780601f106101a5576101008083540402835291602001916101d0565b8201919060005260206000209" \
"05b8154815290600101906020018083116101b357829003601f168201915b505050505081565b8280546101e4906104" \
"33565b90600052602060002090601f016020900481019282610206576000855561024d565b82601f1061021f5780516" \
"0ff191683800117855561024d565b8280016001018555821561024d579182015b8281111561024c5782518255916020" \
"01919060010190610231565b5b50905061025a919061025e565b5090565b5b808211156102775760008160009055506" \
"0010161025f565b5090565b600061028e610289846103a4565b61037f565b9050828152602081018484840111156102" \
"a657600080fd5b6102b18482856103f1565b509392505050565b600082601f8301126102ca57600080fd5b81356102d" \
"a84826020860161027b565b91505092915050565b6000602082840312156102f557600080fd5b600082013567ffffff" \
"ffffffffff81111561030f57600080fd5b61031b848285016102b9565b91505092915050565b600061032f826103d55" \
"65b61033981856103e0565b9350610349818560208601610400565b610352816104f4565b840191505092915050565b" \
"600060208201905081810360008301526103778184610324565b905092915050565b600061038961039a565b9050610" \
"3958282610465565b919050565b6000604051905090565b600067ffffffffffffffff8211156103bf576103be6104c5" \
"565b5b6103c8826104f4565b9050602081019050919050565b600081519050919050565b60008282526020820190509" \
"2915050565b82818337600083830152505050565b60005b8381101561041e5780820151818401526020810190506104" \
"03565b8381111561042d576000848401525b50505050565b6000600282049050600182168061044b57607f821691505" \
"b6020821081141561045f5761045e610496565b5b50919050565b61046e826104f4565b810181811067ffffffffffff" \
"ffff8211171561048d5761048c6104c5565b5b80604052505050565b7f4e487b7100000000000000000000000000000" \
"000000000000000000000000000600052602260045260246000fd5b7f4e487b71000000000000000000000000000000" \
"00000000000000000000000000600052604160045260246000fd5b6000601f19601f830116905091905056fea264697" \
"066735822122002786b5114bea14354170503b8bffe80a17bb5e4610cb41deca549935965f30864736f6c6343000803" \
"0033"
# Contract ABI
ABI: list = [
{'inputs': [], 'stateMutability': 'nonpayable', 'type': 'constructor'},
{'inputs': [], 'name': 'greet', 'outputs': [{'internalType': 'string', 'name': '', 'type': 'string'}], 'stateMutability': 'view', 'type': 'function'},
{'inputs': [], 'name': 'greeting', 'outputs': [{'internalType': 'string', 'name': '', 'type': 'string'}], 'stateMutability': 'view', 'type': 'function'},
{'inputs': [{'internalType': 'string', 'name': '_greeting', 'type': 'string'}], 'name': 'setGreeting', 'outputs': [], 'stateMutability': 'nonpayable', 'type': 'function'}
]
# Initialize XinFin wallet
wallet: Wallet = Wallet(provider=HTTP_PROVIDER)
# Get XinFin wallet from entropy
wallet.from_entropy(entropy=ENTROPY, language="english")
# Derivation from default path
wallet.from_path(path=DEFAULT_PATH)
print("From Wallet Balance:", wallet.balance(unit="XDC"), "XDC")
# Initialize contract transaction
contract_transaction: ContractTransaction = ContractTransaction(provider=HTTP_PROVIDER)
# Build contract transaction
contract_transaction.build_transaction(
address=wallet.address(), abi=ABI, bytecode=BYTECODE, value=VALUE, estimate_gas=True
)
# Sing contract transaction by private key
contract_transaction.sign_transaction(
root_xprivate_key=wallet.root_xprivate_key(), path=DEFAULT_PATH
)
print("Contract Transaction Fee:", contract_transaction.fee(unit="Wei"), "Wei")
print("Contract Transaction Hash:", contract_transaction.hash())
print("Contract Transaction Raw:", contract_transaction.raw())
print("Contract Transaction Json:", json.dumps(contract_transaction.json(), indent=4))
# Submit contract transaction raw
print("\nSubmitted Contract Transaction Hash:", submit_transaction_raw(
transaction_raw=contract_transaction.raw(), provider=HTTP_PROVIDER
))
| 70.228261
| 174
| 0.792911
| 292
| 6,461
| 17.428082
| 0.390411
| 0.06347
| 0.018864
| 0.011397
| 0.044017
| 0.029868
| 0.029868
| 0.029868
| 0.029868
| 0.029868
| 0
| 0.561378
| 0.137595
| 6,461
| 91
| 175
| 71
| 0.351938
| 0.050302
| 0
| 0
| 0
| 0
| 0.647779
| 0.563684
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.084507
| 0
| 0.084507
| 0.084507
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8a8834bd4079986b330bbc499af58de454896759
| 165
|
py
|
Python
|
06/01/LocaleTextCalendar/calendar.LocaleTextCalendar.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
06/01/LocaleTextCalendar/calendar.LocaleTextCalendar.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | 32
|
2017-09-01T00:52:17.000Z
|
2017-10-01T00:30:02.000Z
|
06/01/LocaleTextCalendar/calendar.LocaleTextCalendar.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
import calendar
print(calendar.LocaleTextCalendar())
print(calendar.LocaleTextCalendar(firstweekday=0))#月曜日
print(calendar.LocaleTextCalendar(firstweekday=6))#日曜日
| 23.571429
| 54
| 0.842424
| 17
| 165
| 8.176471
| 0.529412
| 0.280576
| 0.669065
| 0.618705
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012658
| 0.042424
| 165
| 6
| 55
| 27.5
| 0.867089
| 0.036364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0.75
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
8ab7696ad4f4517c8d917f204b8adf419ae574e3
| 14,170
|
py
|
Python
|
dialogflow_v2/proto/intent_pb2_grpc.py
|
gertventer1970/dialogflow-python-client-v2
|
e78b0e6765f94fb9ecbbc72c9fc30ce7245703e2
|
[
"Apache-2.0"
] | 1
|
2020-10-14T07:43:19.000Z
|
2020-10-14T07:43:19.000Z
|
dialogflow_v2/proto/intent_pb2_grpc.py
|
everydaycodings/dialogflow-python-client-v2
|
c1c925d94726f49e549870e087ad79ee491056e2
|
[
"Apache-2.0"
] | null | null | null |
dialogflow_v2/proto/intent_pb2_grpc.py
|
everydaycodings/dialogflow-python-client-v2
|
c1c925d94726f49e549870e087ad79ee491056e2
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from dialogflow_v2.proto import (
intent_pb2 as google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2,
)
from google.longrunning import (
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
)
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
class IntentsStub(object):
"""Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.ListIntents = channel.unary_unary(
"/google.cloud.dialogflow.v2.Intents/ListIntents",
request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.ListIntentsRequest.SerializeToString,
response_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.ListIntentsResponse.FromString,
)
self.GetIntent = channel.unary_unary(
"/google.cloud.dialogflow.v2.Intents/GetIntent",
request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.GetIntentRequest.SerializeToString,
response_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.FromString,
)
self.CreateIntent = channel.unary_unary(
"/google.cloud.dialogflow.v2.Intents/CreateIntent",
request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.CreateIntentRequest.SerializeToString,
response_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.FromString,
)
self.UpdateIntent = channel.unary_unary(
"/google.cloud.dialogflow.v2.Intents/UpdateIntent",
request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.UpdateIntentRequest.SerializeToString,
response_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.FromString,
)
self.DeleteIntent = channel.unary_unary(
"/google.cloud.dialogflow.v2.Intents/DeleteIntent",
request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.DeleteIntentRequest.SerializeToString,
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
)
self.BatchUpdateIntents = channel.unary_unary(
"/google.cloud.dialogflow.v2.Intents/BatchUpdateIntents",
request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.BatchUpdateIntentsRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
)
self.BatchDeleteIntents = channel.unary_unary(
"/google.cloud.dialogflow.v2.Intents/BatchDeleteIntents",
request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.BatchDeleteIntentsRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
)
class IntentsServicer(object):
"""Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
"""
def ListIntents(self, request, context):
"""Returns the list of all intents in the specified agent.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def GetIntent(self, request, context):
"""Retrieves the specified intent.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def CreateIntent(self, request, context):
"""Creates an intent in the specified agent.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def UpdateIntent(self, request, context):
"""Updates the specified intent.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def DeleteIntent(self, request, context):
"""Deletes the specified intent and its direct or indirect followup intents.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def BatchUpdateIntents(self, request, context):
"""Updates/Creates multiple intents in the specified agent.
Operation <response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]>
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def BatchDeleteIntents(self, request, context):
"""Deletes intents in the specified agent.
Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def add_IntentsServicer_to_server(servicer, server):
rpc_method_handlers = {
"ListIntents": grpc.unary_unary_rpc_method_handler(
servicer.ListIntents,
request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.ListIntentsRequest.FromString,
response_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.ListIntentsResponse.SerializeToString,
),
"GetIntent": grpc.unary_unary_rpc_method_handler(
servicer.GetIntent,
request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.GetIntentRequest.FromString,
response_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.SerializeToString,
),
"CreateIntent": grpc.unary_unary_rpc_method_handler(
servicer.CreateIntent,
request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.CreateIntentRequest.FromString,
response_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.SerializeToString,
),
"UpdateIntent": grpc.unary_unary_rpc_method_handler(
servicer.UpdateIntent,
request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.UpdateIntentRequest.FromString,
response_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.SerializeToString,
),
"DeleteIntent": grpc.unary_unary_rpc_method_handler(
servicer.DeleteIntent,
request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.DeleteIntentRequest.FromString,
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
),
"BatchUpdateIntents": grpc.unary_unary_rpc_method_handler(
servicer.BatchUpdateIntents,
request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.BatchUpdateIntentsRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
),
"BatchDeleteIntents": grpc.unary_unary_rpc_method_handler(
servicer.BatchDeleteIntents,
request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.BatchDeleteIntentsRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
"google.cloud.dialogflow.v2.Intents", rpc_method_handlers
)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class Intents(object):
"""Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
"""
@staticmethod
def ListIntents(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
):
return grpc.experimental.unary_unary(
request,
target,
"/google.cloud.dialogflow.v2.Intents/ListIntents",
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.ListIntentsRequest.SerializeToString,
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.ListIntentsResponse.FromString,
options,
channel_credentials,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
)
@staticmethod
def GetIntent(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
):
return grpc.experimental.unary_unary(
request,
target,
"/google.cloud.dialogflow.v2.Intents/GetIntent",
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.GetIntentRequest.SerializeToString,
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.FromString,
options,
channel_credentials,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
)
@staticmethod
def CreateIntent(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
):
return grpc.experimental.unary_unary(
request,
target,
"/google.cloud.dialogflow.v2.Intents/CreateIntent",
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.CreateIntentRequest.SerializeToString,
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.FromString,
options,
channel_credentials,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
)
@staticmethod
def UpdateIntent(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
):
return grpc.experimental.unary_unary(
request,
target,
"/google.cloud.dialogflow.v2.Intents/UpdateIntent",
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.UpdateIntentRequest.SerializeToString,
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.Intent.FromString,
options,
channel_credentials,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
)
@staticmethod
def DeleteIntent(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
):
return grpc.experimental.unary_unary(
request,
target,
"/google.cloud.dialogflow.v2.Intents/DeleteIntent",
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.DeleteIntentRequest.SerializeToString,
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
options,
channel_credentials,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
)
@staticmethod
def BatchUpdateIntents(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
):
return grpc.experimental.unary_unary(
request,
target,
"/google.cloud.dialogflow.v2.Intents/BatchUpdateIntents",
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.BatchUpdateIntentsRequest.SerializeToString,
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
options,
channel_credentials,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
)
@staticmethod
def BatchDeleteIntents(
request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None,
):
return grpc.experimental.unary_unary(
request,
target,
"/google.cloud.dialogflow.v2.Intents/BatchDeleteIntents",
google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.BatchDeleteIntentsRequest.SerializeToString,
google_dot_longrunning_dot_operations__pb2.Operation.FromString,
options,
channel_credentials,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
)
| 39.691877
| 137
| 0.690332
| 1,395
| 14,170
| 6.555556
| 0.091039
| 0.070858
| 0.05205
| 0.063204
| 0.841881
| 0.832586
| 0.805467
| 0.763368
| 0.719081
| 0.719081
| 0
| 0.009583
| 0.241496
| 14,170
| 356
| 138
| 39.803371
| 0.841273
| 0.072054
| 0
| 0.682274
| 1
| 0
| 0.087204
| 0.055423
| 0
| 0
| 0
| 0
| 0
| 1
| 0.053512
| false
| 0
| 0.013378
| 0.023411
| 0.100334
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8abc143d1fcde90ae52508bea78d8a49db81d309
| 1,566
|
py
|
Python
|
unicaps/_service/rucaptcha.py
|
sergey-scat/unicaps
|
8f4a3c3f802c58464e93f953bcf11ecf44ef8f3b
|
[
"Apache-2.0"
] | 8
|
2020-07-27T19:18:27.000Z
|
2022-02-23T04:05:56.000Z
|
unicaps/_service/rucaptcha.py
|
sergey-scat/unicaps
|
8f4a3c3f802c58464e93f953bcf11ecf44ef8f3b
|
[
"Apache-2.0"
] | 2
|
2021-01-19T07:06:03.000Z
|
2021-09-03T13:27:12.000Z
|
unicaps/_service/rucaptcha.py
|
sergey-scat/unicaps
|
8f4a3c3f802c58464e93f953bcf11ecf44ef8f3b
|
[
"Apache-2.0"
] | 5
|
2021-03-22T23:09:05.000Z
|
2022-01-21T09:00:14.000Z
|
# -*- coding: UTF-8 -*-
"""
rucaptcha.com service
"""
# pylint: disable=unused-import
from .twocaptcha import (
Service as Service2Captcha, GetBalanceRequest, GetStatusRequest,
ReportGoodRequest, ReportBadRequest,
ImageCaptchaTaskRequest, ImageCaptchaSolutionRequest,
RecaptchaV2TaskRequest, RecaptchaV2SolutionRequest,
RecaptchaV3TaskRequest, RecaptchaV3SolutionRequest,
TextCaptchaTaskRequest, TextCaptchaSolutionRequest,
FunCaptchaTaskRequest, FunCaptchaSolutionRequest,
KeyCaptchaTaskRequest, KeyCaptchaSolutionRequest,
GeeTestTaskRequest, GeeTestSolutionRequest,
HCaptchaTaskRequest, HCaptchaSolutionRequest,
CapyTaskRequest, CapySolutionRequest,
TikTokCaptchaTaskRequest, TikTokCaptchaSolutionRequest
)
__all__ = [
'Service', 'GetBalanceRequest', 'GetStatusRequest',
'ReportGoodRequest', 'ReportBadRequest',
'ImageCaptchaTaskRequest', 'ImageCaptchaSolutionRequest',
'RecaptchaV2TaskRequest', 'RecaptchaV2SolutionRequest',
'RecaptchaV3TaskRequest', 'RecaptchaV3SolutionRequest',
'TextCaptchaTaskRequest', 'TextCaptchaSolutionRequest',
'FunCaptchaTaskRequest', 'FunCaptchaSolutionRequest',
'KeyCaptchaTaskRequest', 'KeyCaptchaSolutionRequest',
'GeeTestTaskRequest', 'GeeTestSolutionRequest',
'HCaptchaTaskRequest', 'HCaptchaSolutionRequest',
'CapyTaskRequest', 'CapySolutionRequest',
'TikTokCaptchaTaskRequest', 'TikTokCaptchaSolutionRequest'
]
class Service(Service2Captcha):
""" Main service class for rucaptcha """
BASE_URL = 'https://rucaptcha.com'
| 37.285714
| 68
| 0.786718
| 79
| 1,566
| 15.531646
| 0.56962
| 0.01956
| 0.0815
| 0.107579
| 0.847596
| 0.847596
| 0.847596
| 0.847596
| 0.847596
| 0.847596
| 0
| 0.008017
| 0.123883
| 1,566
| 41
| 69
| 38.195122
| 0.886297
| 0.068966
| 0
| 0
| 0
| 0
| 0.379764
| 0.265419
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.033333
| 0
| 0.1
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
76d1ef950cc2627654924c806b7e2c069ddfdc88
| 112
|
py
|
Python
|
whr/__init__.py
|
tokoharu/whr_renju
|
b30218d10730b882448c217a1881522d2e163f07
|
[
"MIT"
] | 8
|
2020-05-25T17:51:21.000Z
|
2022-03-06T04:18:56.000Z
|
whr/__init__.py
|
wind23/whole_history_rating
|
0b98035221d06385f2b8d820c999ca188dcfb09b
|
[
"MIT"
] | null | null | null |
whr/__init__.py
|
wind23/whole_history_rating
|
0b98035221d06385f2b8d820c999ca188dcfb09b
|
[
"MIT"
] | null | null | null |
from .base import *
from .game import *
from .player import *
from .player_day import *
from .evaluate import *
| 18.666667
| 25
| 0.732143
| 16
| 112
| 5.0625
| 0.4375
| 0.493827
| 0.395062
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 112
| 5
| 26
| 22.4
| 0.880435
| 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
|
0a083b2cacadc9bf287b88f8917a69a3b5a2e21d
| 16,812
|
py
|
Python
|
packages/mdp/simulator.py
|
bastianalt/correlation_priors_for_rl
|
9a98f345ac10e9767d854cd7a9681057a50a9737
|
[
"MIT"
] | null | null | null |
packages/mdp/simulator.py
|
bastianalt/correlation_priors_for_rl
|
9a98f345ac10e9767d854cd7a9681057a50a9737
|
[
"MIT"
] | null | null | null |
packages/mdp/simulator.py
|
bastianalt/correlation_priors_for_rl
|
9a98f345ac10e9767d854cd7a9681057a50a9737
|
[
"MIT"
] | null | null | null |
import numpy as np
from abc import ABC, abstractmethod
class Simulator(ABC):
"""
Base class for a simulator of a transition model
"""
def __init__(self, nStates, nActions, initialState=None):
"""
Parameters
----------
nStates - int: number of states for the simulator
nActions - int: number of actions for the simulator
initialState - int: initial state of the simulator
"""
# Save inputs
self.nStates = nStates
self.nActions = nActions
if initialState is None:
self.lastStates = 0
else:
self.lastStates = initialState
@abstractmethod
def simulate(self, curStates=None, curActions=None):
"""
Parameters
----------
curStates - int: current state of the MDP
curActions - int: action taken in the MDP
Returns
-------
nextState - int: next state of the MDP
"""
nextStates = None
return nextStates
class QueuingNetworkSimulator4D(Simulator):
""" Four Dimensional queuing network (Bernoulli arrivals and servicing)"""
def __init__(self, B1=19, B2=12, B3=12, B4=19, a1=.08, a3=.08, d1=.12, d2=.12, d3=.28, d4=.28, initialStates=None):
"""
Parameters
----------
B1 - int: bufferlength of the first queue
B2 - int: bufferlength of the second queue
B3 - int: bufferlength of the third queue
B4 - int: bufferlength of the fourth queue
a1 - float 0<=x<=1: probability of arrival at queue 1
a3 - float 0<=x<=1: probability of arrival at queue 3
d1 - float 0<=x<=1: probability of departure at queue 1
d2 - float 0<=x<=1: probability of departure at queue 2
d3 - float 0<=x<=1: probability of departure at queue 3
d4 - float 0<=x<=1: probability of departure at queue 4
initialStates - int: starting state of the simulator
"""
# Initalize simulator
super().__init__(nStates=(B1 + 1) * (B2 + 1) * (B3 + 1) * (B4 + 1), nActions=4, initialState=initialStates)
# save input
self.bufferLengths = dict(B1=B1, B2=B2, B3=B3, B4=B4)
self.params = dict(a1=a1, a3=a3, d1=d1, d2=d2, d3=d3, d4=d4)
def simulate_single(self, curState, curAction):
"""
Simulates one step of the queuing network starting in curState under curAction
Parameters
----------
curState - starting State
curAction - action taken
Returns
-------
nextState - new State after single simulation
"""
# Coding action=0 ==> queue 1 and 2 are served
# action=1 ==> queue 1 and 3 are served
# action=2 ==> queue 2 and 4 are served
# action=3 ==> queue 3 and 4 are served
# convert state number into four dimensional vector
vec_tuple = (self.bufferLengths['B1'] + 1, self.bufferLengths['B2'] + 1, self.bufferLengths['B3'] + 1,
self.bufferLengths['B4'] + 1)
x = np.array(np.unravel_index(curState, vec_tuple)).squeeze()
# Compute dynamics
# Arrivals at the queues
A1 = int(np.random.rand() < self.params['a1'])
A3 = int(np.random.rand() < self.params['a3'])
# Departures of the queues using curActions
D1 = D2 = D3 = D4 = 0
if curAction == 0:
D1 = int(np.random.rand() < self.params['d1'])
D2 = int(np.random.rand() < self.params['d2'])
if curAction == 1:
D1 = int(np.random.rand() < self.params['d1'])
D3 = int(np.random.rand() < self.params['d3'])
if curAction == 2:
D2 = int(np.random.rand() < self.params['d2'])
D4 = int(np.random.rand() < self.params['d4'])
if curAction == 3:
D3 = int(np.random.rand() < self.params['d3'])
D4 = int(np.random.rand() < self.params['d4'])
# Compute dynamics of queuing network
x_next = x + np.array([A1 - D1, D1 - D2, A3 - D3, D3 - D4])
# Truncate if new state over floats/ under floats buffer (0<=x<=B)
x_next[x_next < 0] = 0
if x_next[0] > self.bufferLengths['B1']: x_next[0] = self.bufferLengths['B1']
if x_next[1] > self.bufferLengths['B2']: x_next[1] = self.bufferLengths['B2']
if x_next[2] > self.bufferLengths['B3']: x_next[2] = self.bufferLengths['B3']
if x_next[3] > self.bufferLengths['B4']: x_next[3] = self.bufferLengths['B4']
# convert state number into scalar integer state number
nextState = np.ravel_multi_index(tuple(x_next), vec_tuple)
return nextState
def simulate(self, curStates=None, curActions=None):
"""
Simulate the 4D queuing network
Parameters
----------
curStates - int: current state of the MDP
curActions - int: action taken in the MDP
Returns
-------
nextState - int: next state of the MDP
"""
# Store last state of the simulator
if curStates is None:
curStates = self.lastStates
nTraj = len(curStates)
if nTraj == 1:
nextStates = self.simulate_single(curStates, curActions)
else:
nextStates = np.zeros(nTraj)
for n in range(nTraj):
nextStates[n] = self.simulate_single(curStates[n], curActions[n])
# Save state internally
self.lastStates = nextStates
return nextStates
class QueuingNetworkSimulator4DBatch(Simulator):
""" Four Dimensional queuing network (Poisson arrivals and servicing)"""
def __init__(self, B1=19, B2=12, B3=12, B4=19, a1=.08, a3=.08, d1=.12, d2=.12, d3=.28, d4=.28, initialStates=None):
"""
Parameters
----------
B1 - int: bufferlength of the first queue
B2 - int: bufferlength of the second queue
B3 - int: bufferlength of the third queue
B4 - int: bufferlength of the fourth queue
a1 - float 0<=x<=1: probability of arrival at queue 1
a3 - float 0<=x<=1: probability of arrival at queue 3
d1 - float 0<=x<=1: probability of departure at queue 1
d2 - float 0<=x<=1: probability of departure at queue 2
d3 - float 0<=x<=1: probability of departure at queue 3
d4 - float 0<=x<=1: probability of departure at queue 4
initialStates - int: starting state of the simulator
"""
# Initalize simulator
super().__init__(nStates=(B1 + 1) * (B2 + 1) * (B3 + 1) * (B4 + 1), nActions=4, initialState=initialStates)
# save input
self.bufferLengths = dict(B1=B1, B2=B2, B3=B3, B4=B4)
self.params = dict(a1=a1, a3=a3, d1=d1, d2=d2, d3=d3, d4=d4)
def simulate_single(self, curState, curAction):
"""
Simulates one step of the queuing network starting in curState under curAction
Parameters
----------
curState - starting State
curAction - action taken
Returns
-------
nextState - new State after single simulation
"""
# Coding action=0 ==> queue 1 and 2 are served
# action=1 ==> queue 1 and 3 are served
# action=2 ==> queue 2 and 4 are served
# action=3 ==> queue 3 and 4 are served
# convert state number into four dimensional vector
vec_tuple = (self.bufferLengths['B1'] + 1, self.bufferLengths['B2'] + 1, self.bufferLengths['B3'] + 1,
self.bufferLengths['B4'] + 1)
x = np.array(np.unravel_index(curState, vec_tuple)).squeeze()
# Compute dynamics
# Arrivals at the queues
A1 = int(np.random.poisson(self.params['a1']))
A3 = int(np.random.poisson(self.params['a3']))
# Departures of the queues using curActions
D1 = D2 = D3 = D4 = 0
if curAction == 0:
D1 = int(np.random.poisson(self.params['d1']))
D2 = int(np.random.poisson(self.params['d2']))
if curAction == 1:
D1 = int(np.random.poisson(self.params['d1']))
D3 = int(np.random.poisson(self.params['d3']))
if curAction == 2:
D2 = int(np.random.poisson(self.params['d2']))
D4 = int(np.random.poisson(self.params['d4']))
if curAction == 3:
D3 = int(np.random.poisson(self.params['d3']))
D4 = int(np.random.poisson(self.params['d4']))
# Compute dynamics of queuing network
x_next = x + np.array([A1 - D1, D1 - D2, A3 - D3, D3 - D4])
# Truncate if new state over floats/ under floats buffer (0<=x<=B)
x_next[x_next < 0] = 0
if x_next[0] > self.bufferLengths['B1']: x_next[0] = self.bufferLengths['B1']
if x_next[1] > self.bufferLengths['B2']: x_next[1] = self.bufferLengths['B2']
if x_next[2] > self.bufferLengths['B3']: x_next[2] = self.bufferLengths['B3']
if x_next[3] > self.bufferLengths['B4']: x_next[3] = self.bufferLengths['B4']
# convert state number into scalar integer state number
nextState = np.ravel_multi_index(tuple(x_next), vec_tuple)
return nextState
def simulate(self, curStates=None, curActions=None):
"""
Simulate the 4D queuing network
Parameters
----------
curStates - int: current state of the MDP
curActions - int: action taken in the MDP
Returns
-------
nextState - int: next state of the MDP
"""
# Store last state of the simulator
if curStates is None:
curStates = self.lastStates
nTraj = len(curStates)
if nTraj == 1:
nextStates = self.simulate_single(curStates, curActions)
else:
nextStates = np.zeros(nTraj)
for n in range(nTraj):
nextStates[n] = self.simulate_single(curStates[n], curActions[n])
# Save state internally
self.lastStates = nextStates
return nextStates
class QueuingNetworkSimulator2D(Simulator):
""" Two Dimensional queuing network (Bernoulli arrivals and servicing)"""
def __init__(self, B1=19, B2=12, a1=.08, d1=.12, d2=.12, initialStates=None):
"""
Parameters
----------
B1 - int: bufferlength of the first queue
B2 - int: bufferlength of the second queue
a1 - float 0<=x<=1: probability of arrival at queue 1
d1 - float 0<=x<=1: probability of departure at queue 1
d2 - float 0<=x<=1: probability of departure at queue 2
initialStates - int: starting state of the simulator
"""
# Initalize simulator
super().__init__(nStates=(B1 + 1) * (B2 + 1), nActions=2, initialState=initialStates)
# save input
self.bufferLengths = dict(B1=B1, B2=B2)
self.params = dict(a1=a1, d1=d1, d2=d2)
def simulate_single(self, curState, curAction):
"""
Simulates one step of the queuing network starting in curState under curAction
Parameters
----------
curState - starting State
curAction - action taken
Returns
-------
nextState - new State after single simulation
"""
# Coding action=0 ==> queue 1 is served
# action=1 ==> queue 2 is served
# convert state number into four dimensional vector
vec_tuple = (self.bufferLengths['B1'] + 1, self.bufferLengths['B2'] + 1)
x = np.array(np.unravel_index(curState, vec_tuple)).squeeze()
# Compute dynamics
# Arrivals at the queues
A1 = int(np.random.rand() < self.params['a1'])
# Departures of the queues using curActions
D1 = D2 = 0
if curAction == 0:
D1 = int(np.random.rand() < self.params['d1'])
if curAction == 1:
D2 = int(np.random.rand() < self.params['d2'])
# Compute dynamics of queuing network
x_next = x + np.array([A1 - D1, D1 - D2])
# Truncate if new state over floats/ under floats buffer (0<=x<=B)
x_next[x_next < 0] = 0
if x_next[0] > self.bufferLengths['B1']: x_next[0] = self.bufferLengths['B1']
if x_next[1] > self.bufferLengths['B2']: x_next[1] = self.bufferLengths['B2']
# convert state number into scalar integer state number
nextState = np.ravel_multi_index(tuple(x_next), vec_tuple)
return nextState
def simulate(self, curStates=None, curActions=None):
"""
Simulate the 2D queuing network
Parameters
----------
curStates - int: current states of the MDP
curActions - int: actions taken in the MDP
Returns
-------
nextState - int: next state of the MDP
"""
# Store last state of the simulator
if curStates is None:
curStates = self.lastStates
nTraj = len(curStates)
if nTraj == 1:
nextStates = self.simulate_single(curStates, curActions)
else:
nextStates = np.zeros(nTraj)
for n in range(nTraj):
nextStates[n] = self.simulate_single(curStates[n], curActions[n])
# Save state internally
self.lastStates = nextStates
return nextStates
class QueuingNetworkSimulator2DBatch(Simulator):
""" Two Dimensional queuing network (Poisson arrivals and servicing)"""
def __init__(self, B1=19, B2=12, a1=.08, d1=.12, d2=.12, initialStates=None):
"""
Parameters
----------
B1 - int: bufferlength of the first queue
B2 - int: bufferlength of the second queue
a1 - float 0<=x<=1: probability of arrival at queue 1
d1 - float 0<=x<=1: probability of departure at queue 1
d2 - float 0<=x<=1: probability of departure at queue 2
initialStates - int: starting state of the simulator
"""
# Initalize simulator
super().__init__(nStates=(B1 + 1) * (B2 + 1), nActions=2, initialState=initialStates)
# save input
self.bufferLengths = dict(B1=B1, B2=B2)
self.params = dict(a1=a1, d1=d1, d2=d2)
def simulate_single(self, curState, curAction):
"""
Simulates one step of the queuing network starting in curState under curAction
Parameters
----------
curState - starting State
curAction - action taken
Returns
-------
nextState - new State after single simulation
"""
# Coding action=0 ==> queue 1 is served
# action=1 ==> queue 2 is served
# convert state number into four dimensional vector
vec_tuple = (self.bufferLengths['B1'] + 1, self.bufferLengths['B2'] + 1)
x = np.array(np.unravel_index(curState, vec_tuple)).squeeze()
# Compute dynamics
# Arrivals at the queues
A1 = int(np.random.poisson(self.params['a1']))
# Departures of the queues using curActions
D1 = D2 = 0
if curAction == 0:
D1 = int(np.random.poisson(self.params['d1']))
if curAction == 1:
D2 = int(np.random.poisson(self.params['d2']))
# Compute dynamics of queuing network
x_next = x + np.array([A1 - D1, D1 - D2])
# Truncate if new state over floats/ under floats buffer (0<=x<=B)
x_next[x_next < 0] = 0
if x_next[0] > self.bufferLengths['B1']: x_next[0] = self.bufferLengths['B1']
if x_next[1] > self.bufferLengths['B2']: x_next[1] = self.bufferLengths['B2']
# convert state number into scalar integer state number
nextState = np.ravel_multi_index(tuple(x_next), vec_tuple)
return nextState
def simulate(self, curStates=None, curActions=None):
"""
Simulate the 2D queuing network
Parameters
----------
curStates - int: current states of the MDP
curActions - int: actions taken in the MDP
Returns
-------
nextState - int: next state of the MDP
"""
# Store last state of the simulator
if curStates is None:
curStates = self.lastStates
nTraj = len(curStates)
if nTraj == 1:
nextStates = self.simulate_single(curStates, curActions)
else:
nextStates = np.zeros(nTraj)
for n in range(nTraj):
nextStates[n] = self.simulate_single(curStates[n], curActions[n])
# Save state internally
self.lastStates = nextStates
return nextStates
| 34.592593
| 119
| 0.571913
| 2,068
| 16,812
| 4.595261
| 0.072534
| 0.071556
| 0.030096
| 0.015153
| 0.942439
| 0.937178
| 0.93602
| 0.928865
| 0.901084
| 0.901084
| 0
| 0.042813
| 0.312277
| 16,812
| 485
| 120
| 34.663918
| 0.779104
| 0.364264
| 0
| 0.89759
| 0
| 0
| 0.013384
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.084337
| false
| 0
| 0.012048
| 0
| 0.180723
| 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
|
0a09e5a875119a8a2a8d276153e52c94bd273081
| 3,393
|
py
|
Python
|
ZiggeoStreams.py
|
Ziggeo/ZiggeoPythonSdk
|
7c1e46bdd0649bdd58707747279da40783f14f8b
|
[
"Apache-2.0"
] | 3
|
2018-07-17T16:38:17.000Z
|
2020-10-31T19:56:47.000Z
|
ZiggeoStreams.py
|
Ziggeo/ZiggeoPythonSdk
|
7c1e46bdd0649bdd58707747279da40783f14f8b
|
[
"Apache-2.0"
] | 8
|
2015-08-20T15:59:13.000Z
|
2022-01-17T13:08:45.000Z
|
ZiggeoStreams.py
|
Ziggeo/ZiggeoPythonSdk
|
7c1e46bdd0649bdd58707747279da40783f14f8b
|
[
"Apache-2.0"
] | 7
|
2015-08-12T14:32:12.000Z
|
2019-10-30T05:26:51.000Z
|
class ZiggeoStreams:
def __init__(self, application):
self.__application = application
def index(self, video_token_or_key, data = None):
return self.__application.connect.getJSON('/v1/videos/' + video_token_or_key + '/streams', data)
def get(self, video_token_or_key, token_or_key):
return self.__application.connect.getJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '')
def download_video(self, video_token_or_key, token_or_key):
return self.__application.cdn_connect.get('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/video')
def download_image(self, video_token_or_key, token_or_key):
return self.__application.cdn_connect.get('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/image')
def push_to_service(self, video_token_or_key, token_or_key, data = None):
return self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/push', data)
def delete(self, video_token_or_key, token_or_key):
return self.__application.connect.delete('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '')
def create(self, video_token_or_key, data = None, file = None):
if (file != None):
result = self.__application.connect.postUploadJSON('/v1/videos/' + video_token_or_key + '/streams-upload-url', 'stream', data, file, 'video_type')
result = self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + result['token'] + '/confirm-video')
return result
else:
return self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams', data, file)
def attach_image(self, video_token_or_key, token_or_key, data = None, file = None):
if (file != None):
result = self.__application.connect.postUploadJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/image-upload-url', 'stream', data, file)
result = self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/confirm-image')
return result
else:
return self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/image', data, file)
def attach_video(self, video_token_or_key, token_or_key, data = None, file = None):
if (file != None):
result = self.__application.connect.postUploadJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/video-upload-url', 'stream', data, file, 'video_type')
result = self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/confirm-video')
return result
else:
return self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/video', data, file)
def attach_subtitle(self, video_token_or_key, token_or_key, data = None):
return self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/subtitle', data)
def bind(self, video_token_or_key, token_or_key):
return self.__application.connect.postJSON('/v1/videos/' + video_token_or_key + '/streams/' + token_or_key + '/bind')
| 62.833333
| 185
| 0.679045
| 446
| 3,393
| 4.764574
| 0.09417
| 0.164706
| 0.235294
| 0.197647
| 0.888
| 0.877176
| 0.877176
| 0.868706
| 0.864941
| 0.847059
| 0
| 0.006102
| 0.178898
| 3,393
| 53
| 186
| 64.018868
| 0.75664
| 0
| 0
| 0.225
| 0
| 0
| 0.150354
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0
| 0.2
| 0.675
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 11
|
0a5c13dcef446d97e2a9c4d780f046dcac29ec25
| 313,125
|
py
|
Python
|
electrum/tests/test_wallet_vertical.py
|
mnaei/electrum
|
e83f0dd3fc4e19c8845fc21f344400f1b0a7eebf
|
[
"MIT"
] | null | null | null |
electrum/tests/test_wallet_vertical.py
|
mnaei/electrum
|
e83f0dd3fc4e19c8845fc21f344400f1b0a7eebf
|
[
"MIT"
] | null | null | null |
electrum/tests/test_wallet_vertical.py
|
mnaei/electrum
|
e83f0dd3fc4e19c8845fc21f344400f1b0a7eebf
|
[
"MIT"
] | null | null | null |
import unittest
from unittest import mock
import shutil
import tempfile
from typing import Sequence
import asyncio
import copy
from electrum import storage, bitcoin, keystore, bip32, wallet
from electrum import Transaction
from electrum import SimpleConfig
from electrum.address_synchronizer import TX_HEIGHT_UNCONFIRMED, TX_HEIGHT_UNCONF_PARENT
from electrum.wallet import sweep, Multisig_Wallet, Standard_Wallet, Imported_Wallet, restore_wallet_from_text, Abstract_Wallet
from electrum.util import bfh, bh2u
from electrum.transaction import TxOutput, Transaction, PartialTransaction, PartialTxOutput, PartialTxInput, tx_from_any
from electrum.mnemonic import seed_type
from electrum.plugins.trustedcoin import trustedcoin
from . import TestCaseForTestnet
from . import ElectrumTestCase
UNICODE_HORROR_HEX = 'e282bf20f09f988020f09f98882020202020e3818620e38191e3819fe381be20e3828fe3828b2077cda2cda2cd9d68cda16fcda2cda120ccb8cda26bccb5cd9f6eccb4cd98c7ab77ccb8cc9b73cd9820cc80cc8177cd98cda2e1b8a9ccb561d289cca1cda27420cca7cc9568cc816fccb572cd8fccb5726f7273cca120ccb6cda1cda06cc4afccb665cd9fcd9f20ccb6cd9d696ecda220cd8f74cc9568ccb7cca1cd9f6520cd9fcd9f64cc9b61cd9c72cc95cda16bcca2cca820cda168ccb465cd8f61ccb7cca2cca17274cc81cd8f20ccb4ccb7cda0c3b2ccb5ccb666ccb82075cca7cd986ec3adcc9bcd9c63cda2cd8f6fccb7cd8f64ccb8cda265cca1cd9d3fcd9e'
UNICODE_HORROR = bfh(UNICODE_HORROR_HEX).decode('utf-8')
assert UNICODE_HORROR == '₿ 😀 😈 う けたま わる w͢͢͝h͡o͢͡ ̸͢k̵͟n̴͘ǫw̸̛s͘ ̀́w͘͢ḩ̵a҉̡͢t ̧̕h́o̵r͏̵rors̡ ̶͡͠lį̶e͟͟ ̶͝in͢ ͏t̕h̷̡͟e ͟͟d̛a͜r̕͡k̢̨ ͡h̴e͏a̷̢̡rt́͏ ̴̷͠ò̵̶f̸ u̧͘ní̛͜c͢͏o̷͏d̸͢e̡͝?͞'
class WalletIntegrityHelper:
gap_limit = 1 # make tests run faster
@classmethod
def check_seeded_keystore_sanity(cls, test_obj, ks):
test_obj.assertTrue(ks.is_deterministic())
test_obj.assertFalse(ks.is_watching_only())
test_obj.assertFalse(ks.can_import())
test_obj.assertTrue(ks.has_seed())
@classmethod
def check_xpub_keystore_sanity(cls, test_obj, ks):
test_obj.assertTrue(ks.is_deterministic())
test_obj.assertTrue(ks.is_watching_only())
test_obj.assertFalse(ks.can_import())
test_obj.assertFalse(ks.has_seed())
@classmethod
def create_standard_wallet(cls, ks, *, config: SimpleConfig, gap_limit=None):
db = storage.WalletDB('', manual_upgrades=False)
db.put('keystore', ks.dump())
db.put('gap_limit', gap_limit or cls.gap_limit)
w = Standard_Wallet(db, None, config=config)
w.synchronize()
return w
@classmethod
def create_imported_wallet(cls, *, config: SimpleConfig, privkeys: bool):
db = storage.WalletDB('', manual_upgrades=False)
if privkeys:
k = keystore.Imported_KeyStore({})
db.put('keystore', k.dump())
w = Imported_Wallet(db, None, config=config)
return w
@classmethod
def create_multisig_wallet(cls, keystores: Sequence, multisig_type: str, *,
config: SimpleConfig, gap_limit=None):
"""Creates a multisig wallet."""
db = storage.WalletDB('', manual_upgrades=True)
for i, ks in enumerate(keystores):
cosigner_index = i + 1
db.put('x%d/' % cosigner_index, ks.dump())
db.put('wallet_type', multisig_type)
db.put('gap_limit', gap_limit or cls.gap_limit)
w = Multisig_Wallet(db, None, config=config)
w.synchronize()
return w
class TestWalletKeystoreAddressIntegrityForMainnet(ElectrumTestCase):
def setUp(self):
super().setUp()
self.config = SimpleConfig({'electrum_path': self.electrum_path})
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_seed_standard(self, mock_save_db):
seed_words = 'cycle rocket west magnet parrot shuffle foot correct salt library feed song'
self.assertEqual(seed_type(seed_words), 'standard')
ks = keystore.from_seed(seed_words, '', False)
WalletIntegrityHelper.check_seeded_keystore_sanity(self, ks)
self.assertTrue(isinstance(ks, keystore.BIP32_KeyStore))
self.assertEqual(ks.xprv, 'xprv9s21ZrQH143K32jECVM729vWgGq4mUDJCk1ozqAStTphzQtCTuoFmFafNoG1g55iCnBTXUzz3zWnDb5CVLGiFvmaZjuazHDL8a81cPQ8KL6')
self.assertEqual(ks.xpub, 'xpub661MyMwAqRbcFWohJWt7PHsFEJfZAvw9ZxwQoDa4SoMgsDDM1T7WK3u9E4edkC4ugRnZ8E4xDZRpk8Rnts3Nbt97dPwT52CwBdDWroaZf8U')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2pkh')
self.assertEqual(w.get_receiving_addresses()[0], '1NNkttn1YvVGdqBW4PR6zvc3Zx3H5owKRf')
self.assertEqual(w.get_change_addresses()[0], '1KSezYMhAJMWqFbVFB2JshYg69UpmEXR4D')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_seed_segwit(self, mock_save_db):
seed_words = 'bitter grass shiver impose acquire brush forget axis eager alone wine silver'
self.assertEqual(seed_type(seed_words), 'segwit')
ks = keystore.from_seed(seed_words, '', False)
WalletIntegrityHelper.check_seeded_keystore_sanity(self, ks)
self.assertTrue(isinstance(ks, keystore.BIP32_KeyStore))
self.assertEqual(ks.xprv, 'zprvAZswDvNeJeha8qZ8g7efN3FXYVJLaEUsE9TW6qXDEbVe74AZ75c2sZFZXPNFzxnhChDQ89oC8C5AjWwHmH1HeRKE1c4kKBQAmjUDdKDUZw2')
self.assertEqual(ks.xpub, 'zpub6nsHdRuY92FsMKdbn9BfjBCG6X8pyhCibNP6uDvpnw2cyrVhecvHRMa3Ne8kdJZxjxgwnpbHLkcR4bfnhHy6auHPJyDTQ3kianeuVLdkCYQ')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2wpkh')
self.assertEqual(w.get_receiving_addresses()[0], 'bc1q3g5tmkmlvxryhh843v4dz026avatc0zzr6h3af')
self.assertEqual(w.get_change_addresses()[0], 'bc1qdy94n2q5qcp0kg7v9yzwe6wvfkhnvyzje7nx2p')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_seed_segwit_passphrase(self, mock_save_db):
seed_words = 'bitter grass shiver impose acquire brush forget axis eager alone wine silver'
self.assertEqual(seed_type(seed_words), 'segwit')
ks = keystore.from_seed(seed_words, UNICODE_HORROR, False)
WalletIntegrityHelper.check_seeded_keystore_sanity(self, ks)
self.assertTrue(isinstance(ks, keystore.BIP32_KeyStore))
self.assertEqual(ks.xprv, 'zprvAZDmEQiCLUcZXPfrBXoksCD2R6RMAzAre7SUyBotibisy9c7vGhLYvHaP3d9rYU12DKAWdZfscPNA7qEPgTkCDqX5sE93ryAJAQvkDbfLxU')
self.assertEqual(ks.xpub, 'zpub6nD7dvF6ArArjskKHZLmEL9ky8FqaSti1LN5maDWGwFrqwwGTp1b6ic4EHwciFNaYDmCXcQYxXSiF9BjcLCMPcaYkVN2nQD6QjYQ8vpSR3Z')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2wpkh')
self.assertEqual(w.get_receiving_addresses()[0], 'bc1qx94dutas7ysn2my645cyttujrms5d9p57f6aam')
self.assertEqual(w.get_change_addresses()[0], 'bc1qcywwsy87sdp8vz5rfjh3sxdv6rt95kujdqq38g')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_seed_old(self, mock_save_db):
seed_words = 'powerful random nobody notice nothing important anyway look away hidden message over'
self.assertEqual(seed_type(seed_words), 'old')
ks = keystore.from_seed(seed_words, '', False)
WalletIntegrityHelper.check_seeded_keystore_sanity(self, ks)
self.assertTrue(isinstance(ks, keystore.Old_KeyStore))
self.assertEqual(ks.mpk, 'e9d4b7866dd1e91c862aebf62a49548c7dbf7bcc6e4b7b8c9da820c7737968df9c09d5a3e271dc814a29981f81b3faaf2737b551ef5dcc6189cf0f8252c442b3')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2pkh')
self.assertEqual(w.get_receiving_addresses()[0], '1FJEEB8ihPMbzs2SkLmr37dHyRFzakqUmo')
self.assertEqual(w.get_change_addresses()[0], '1KRW8pH6HFHZh889VDq6fEKvmrsmApwNfe')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_seed_2fa_legacy_pre27(self, mock_save_db):
# pre-version-2.7 2fa seed
seed_words = 'bind clever room kidney crucial sausage spy edit canvas soul liquid ribbon slam open alpha suffer gate relax voice carpet law hill woman tonight abstract'
self.assertEqual(seed_type(seed_words), '2fa')
xprv1, xpub1, xprv2, xpub2 = trustedcoin.TrustedCoinPlugin.xkeys_from_seed(seed_words, '')
ks1 = keystore.from_xprv(xprv1)
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xprv, 'xprv9s21ZrQH143K2TsDemiaPqaTuBkW3gns4sGi9f65pWtg27nmmmAut6fErgaHFxj3d4rHgyFKjhvtAUafqF3wwU8Bkou8LefQgBtRWjUKN3V')
self.assertEqual(ks1.xpub, 'xpub661MyMwAqRbcEwwgkoFakyXCTDazT9WiS6CJx3VhNrRetv7vKJVARtyihwCVatSsUtVsEYcvdxhvDtkSk8qKV3VVtcL3csz6sQTbGzmEckd')
self.assertEqual(ks1.xpub, xpub1)
ks2 = keystore.from_xprv(xprv2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
self.assertEqual(ks2.xprv, 'xprv9s21ZrQH143K3r6H1h91TqRECE7tmDB5PYGZDKPuSjefTzNbDMauUMUnjsUSv8X8nuzQsrtGmtCuA51CNz7XimRj2HPYxUxXGGf4KB7M74y')
self.assertEqual(ks2.xpub, 'xpub661MyMwAqRbcGLAk7ig1pyMxkFxPAftvkmCA1hoX15BeLnhjktuA29oGb7bh9opQgNERu6iWhwcY6b5bZX57dYsGo7zYjwXTNCryfKuPfek')
self.assertEqual(ks2.xpub, xpub2)
long_user_id, short_id = trustedcoin.get_user_id(
{'x1/': {'xpub': xpub1},
'x2/': {'xpub': xpub2}})
xtype = bip32.xpub_type(xpub1)
xpub3 = trustedcoin.make_xpub(trustedcoin.get_signing_xpub(xtype), long_user_id)
ks3 = keystore.from_xpub(xpub3)
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks3)
self.assertTrue(isinstance(ks3, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2, ks3], '2of3', config=self.config)
self.assertEqual(w.txin_type, 'p2sh')
self.assertEqual(w.get_receiving_addresses()[0], '3Bw5jczNModhFAbvfwvUHbdGrC2Lh2qRQp')
self.assertEqual(w.get_change_addresses()[0], '3Ke6pKrmtSyyQaMob1ES4pk8siAAkRmst9')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_seed_2fa_legacy_post27(self, mock_save_db):
# post-version-2.7 2fa seed
seed_words = 'kiss live scene rude gate step hip quarter bunker oxygen motor glove'
self.assertEqual(seed_type(seed_words), '2fa')
xprv1, xpub1, xprv2, xpub2 = trustedcoin.TrustedCoinPlugin.xkeys_from_seed(seed_words, '')
ks1 = keystore.from_xprv(xprv1)
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xprv, 'xprv9uraXy9F3HP7i8QDqwNTBiD8Jf4bPD4Epif8cS8qbUbgeidUesyZpKmzfcSeHutsGfFnjgih7kzwTB5UQVRNB5LoXaNc8pFusKYx3KVVvYR')
self.assertEqual(ks1.xpub, 'xpub68qvwUg8sewQvcUgwxuTYr9rrgu5nfn6BwajQpYT9p8fXWxdCRHpN86UWruWJAD1ede8Sv8ERrTa22Gyc4SBfm7zFpcyoVWVBKCVwnw6s1J')
self.assertEqual(ks1.xpub, xpub1)
ks2 = keystore.from_xprv(xprv2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
self.assertEqual(ks2.xprv, 'xprv9uraXy9F3HP7kKSiRAvLV7Nrjj7YzspDys7dvGLLu4tLZT49CEBxPWp88dHhVxvZ69SHrPQMUCWjj4Ka2z9kNvs1HAeEf3extGGeSWqEVqf')
self.assertEqual(ks2.xpub, 'xpub68qvwUg8sewQxoXBXCTLrFKbHkx3QLY5M63EiejxTQRKSFPHjmWCwK8byvZMM2wZNYA3SmxXoma3M1zxhGESHZwtB7SwrxRgKXAG8dCD2eS')
self.assertEqual(ks2.xpub, xpub2)
long_user_id, short_id = trustedcoin.get_user_id(
{'x1/': {'xpub': xpub1},
'x2/': {'xpub': xpub2}})
xtype = bip32.xpub_type(xpub1)
xpub3 = trustedcoin.make_xpub(trustedcoin.get_signing_xpub(xtype), long_user_id)
ks3 = keystore.from_xpub(xpub3)
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks3)
self.assertTrue(isinstance(ks3, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2, ks3], '2of3', config=self.config)
self.assertEqual(w.txin_type, 'p2sh')
self.assertEqual(w.get_receiving_addresses()[0], '35L8XmCDoEBKeaWRjvmZvoZvhp8BXMMMPV')
self.assertEqual(w.get_change_addresses()[0], '3PeZEcumRqHSPNN43hd4yskGEBdzXgY8Cy')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_seed_2fa_segwit(self, mock_save_db):
seed_words = 'universe topic remind silver february ranch shine worth innocent cattle enhance wise'
self.assertEqual(seed_type(seed_words), '2fa_segwit')
xprv1, xpub1, xprv2, xpub2 = trustedcoin.TrustedCoinPlugin.xkeys_from_seed(seed_words, '')
ks1 = keystore.from_xprv(xprv1)
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xprv, 'ZprvAm1R3RZMrkSLYKZer8QECGoc8oA1RQuKfsztHkBTmi2yF8RhmN1JRb7Ag69mMrL88sP67WiaegaSSDnKndorWEpFr7a5B2QgrD7TkERSYX6')
self.assertEqual(ks1.xpub, 'Zpub6yzmSw6Fh7zdkoe7x9wEZQkLgpzVpsdB36vV68b5L3Zx7vkrJuKYyPReXMSjBegmtUjFBxP2uZEdL87cYvtTtGaVuwtRRCTSFUsoAdKZMge')
self.assertEqual(ks1.xpub, xpub1)
ks2 = keystore.from_xprv(xprv2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
self.assertEqual(ks2.xprv, 'ZprvAm1R3RZMrkSLab4jVKTwuroBgKEfnsmK9CQa1ErkuRzpsPauYuv9z2UzhDNn9YgbLHcmXpmxbNq4MdDRAUM5B2N9Wr3Uq9yp2c4AtTJDFdi')
self.assertEqual(ks2.xpub, 'Zpub6yzmSw6Fh7zdo59CbLzxGzjvEM5ACLVAWRLAodGNTmXokBv46TEQXpoUYUaoxPCeynysxg7APfScikCQ2jhCfM3NcNEk46BCVfSSrdrSkbR')
self.assertEqual(ks2.xpub, xpub2)
long_user_id, short_id = trustedcoin.get_user_id(
{'x1/': {'xpub': xpub1},
'x2/': {'xpub': xpub2}})
xtype = bip32.xpub_type(xpub1)
xpub3 = trustedcoin.make_xpub(trustedcoin.get_signing_xpub(xtype), long_user_id)
ks3 = keystore.from_xpub(xpub3)
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks3)
self.assertTrue(isinstance(ks3, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2, ks3], '2of3', config=self.config)
self.assertEqual(w.txin_type, 'p2wsh')
self.assertEqual(w.get_receiving_addresses()[0], 'bc1qpmufh0zjp5prfsrk2yskcy82sa26srqkd97j0457andc6m0gh5asw7kqd2')
self.assertEqual(w.get_change_addresses()[0], 'bc1qd4q50nft7kxm9yglfnpup9ed2ukj3tkxp793y0zya8dc9m39jcwq308dxz')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip39_seed_bip44_standard(self, mock_save_db):
seed_words = 'treat dwarf wealth gasp brass outside high rent blood crowd make initial'
self.assertEqual(keystore.bip39_is_checksum_valid(seed_words), (True, True))
ks = keystore.from_bip39_seed(seed_words, '', "m/44'/0'/0'")
self.assertTrue(isinstance(ks, keystore.BIP32_KeyStore))
self.assertEqual(ks.xprv, 'xprv9zGLcNEb3cHUKizLVBz6RYeE9bEZAVPjH2pD1DEzCnPcsemWc3d3xTao8sfhfUmDLMq6e3RcEMEvJG1Et8dvfL8DV4h7mwm9J6AJsW9WXQD')
self.assertEqual(ks.xpub, 'xpub6DFh1smUsyqmYD4obDX6ngaxhd53Zx7aeFjoobebm7vbkT6f9awJWFuGzBT9FQJEWFBL7UyhMXtYzRcwDuVbcxtv9Ce2W9eMm4KXLdvdbjv')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2pkh')
self.assertEqual(w.get_receiving_addresses()[0], '16j7Dqk3Z9DdTdBtHcCVLaNQy9MTgywUUo')
self.assertEqual(w.get_change_addresses()[0], '1GG5bVeWgAp5XW7JLCphse14QaC4qiHyWn')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip39_seed_bip44_standard_passphrase(self, mock_save_db):
seed_words = 'treat dwarf wealth gasp brass outside high rent blood crowd make initial'
self.assertEqual(keystore.bip39_is_checksum_valid(seed_words), (True, True))
ks = keystore.from_bip39_seed(seed_words, UNICODE_HORROR, "m/44'/0'/0'")
self.assertTrue(isinstance(ks, keystore.BIP32_KeyStore))
self.assertEqual(ks.xprv, 'xprv9z8izheguGnLopSqkY7GcGFrP2Gu6rzBvvHo6uB9B8DWJhsows6WDZAsbBTaP3ncP2AVbTQphyEQkahrB9s1L7ihZtfz5WGQPMbXwsUtSik')
self.assertEqual(ks.xpub, 'xpub6D85QDBajeLe2JXJrZeGyQCaw47PWKi3J9DPuHakjTkVBWCxVQQkmMVMSSfnw39tj9FntbozpRtb1AJ8ubjeVSBhyK4M5mzdvsXZzKPwodT')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2pkh')
self.assertEqual(w.get_receiving_addresses()[0], '1F88g2naBMhDB7pYFttPWGQgryba3hPevM')
self.assertEqual(w.get_change_addresses()[0], '1H4QD1rg2zQJ4UjuAVJr5eW1fEM8WMqyxh')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip39_seed_bip49_p2sh_segwit(self, mock_save_db):
seed_words = 'treat dwarf wealth gasp brass outside high rent blood crowd make initial'
self.assertEqual(keystore.bip39_is_checksum_valid(seed_words), (True, True))
ks = keystore.from_bip39_seed(seed_words, '', "m/49'/0'/0'")
self.assertTrue(isinstance(ks, keystore.BIP32_KeyStore))
self.assertEqual(ks.xprv, 'yprvAJEYHeNEPcyBoQYM7sGCxDiNCTX65u4ANgZuSGTrKN5YCC9MP84SBayrgaMyZV7zvkHrr3HVPTK853s2SPk4EttPazBZBmz6QfDkXeE8Zr7')
self.assertEqual(ks.xpub, 'ypub6XDth9u8DzXV1tcpDtoDKMf6kVMaVMn1juVWEesTshcX4zUVvfNgjPJLXrD9N7AdTLnbHFL64KmBn3SNaTe69iZYbYCqLCCNPZKbLz9niQ4')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2wpkh-p2sh')
self.assertEqual(w.get_receiving_addresses()[0], '35ohQTdNykjkF1Mn9nAVEFjupyAtsPAK1W')
self.assertEqual(w.get_change_addresses()[0], '3KaBTcviBLEJajTEMstsA2GWjYoPzPK7Y7')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip39_seed_bip84_native_segwit(self, mock_save_db):
# test case from bip84
seed_words = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about'
self.assertEqual(keystore.bip39_is_checksum_valid(seed_words), (True, True))
ks = keystore.from_bip39_seed(seed_words, '', "m/84'/0'/0'")
self.assertTrue(isinstance(ks, keystore.BIP32_KeyStore))
self.assertEqual(ks.xprv, 'zprvAdG4iTXWBoARxkkzNpNh8r6Qag3irQB8PzEMkAFeTRXxHpbF9z4QgEvBRmfvqWvGp42t42nvgGpNgYSJA9iefm1yYNZKEm7z6qUWCroSQnE')
self.assertEqual(ks.xpub, 'zpub6rFR7y4Q2AijBEqTUquhVz398htDFrtymD9xYYfG1m4wAcvPhXNfE3EfH1r1ADqtfSdVCToUG868RvUUkgDKf31mGDtKsAYz2oz2AGutZYs')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(w.txin_type, 'p2wpkh')
self.assertEqual(w.get_receiving_addresses()[0], 'bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu')
self.assertEqual(w.get_change_addresses()[0], 'bc1q8c6fshw2dlwun7ekn9qwf37cu2rn755upcp6el')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_multisig_seed_standard(self, mock_save_db):
seed_words = 'blast uniform dragon fiscal ensure vast young utility dinosaur abandon rookie sure'
self.assertEqual(seed_type(seed_words), 'standard')
ks1 = keystore.from_seed(seed_words, '', True)
WalletIntegrityHelper.check_seeded_keystore_sanity(self, ks1)
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xprv, 'xprv9s21ZrQH143K3t9vo23J3hajRbzvkRLJ6Y1zFrUFAfU3t8oooMPfb7f87cn5KntgqZs5nipZkCiBFo5ZtaSD2eDo7j7CMuFV8Zu6GYLTpY6')
self.assertEqual(ks1.xpub, 'xpub661MyMwAqRbcGNEPu3aJQqXTydqR9t49Tkwb4Esrj112kw8xLthv8uybxvaki4Ygt9xiwZUQGeFTG7T2TUzR3eA4Zp3aq5RXsABHFBUrq4c')
# electrum seed: ghost into match ivory badge robot record tackle radar elbow traffic loud
ks2 = keystore.from_xpub('xpub661MyMwAqRbcGfCPEkkyo5WmcrhTq8mi3xuBS7VEZ3LYvsgY1cCFDbenT33bdD12axvrmXhuX3xkAbKci3yZY9ZEk8vhLic7KNhLjqdh5ec')
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2], '2of2', config=self.config)
self.assertEqual(w.txin_type, 'p2sh')
self.assertEqual(w.get_receiving_addresses()[0], '32ji3QkAgXNz6oFoRfakyD3ys1XXiERQYN')
self.assertEqual(w.get_change_addresses()[0], '36XWwEHrrVCLnhjK5MrVVGmUHghr9oWTN1')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_electrum_multisig_seed_segwit(self, mock_save_db):
seed_words = 'snow nest raise royal more walk demise rotate smooth spirit canyon gun'
self.assertEqual(seed_type(seed_words), 'segwit')
ks1 = keystore.from_seed(seed_words, '', True)
WalletIntegrityHelper.check_seeded_keystore_sanity(self, ks1)
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xprv, 'ZprvAjxLRqPiDfPDxXrm8JvcoCGRAW6xUtktucG6AMtdzaEbTEJN8qcECvujfhtDU3jLJ9g3Dr3Gz5m1ypfMs8iSUh62gWyHZ73bYLRWyeHf6y4')
self.assertEqual(ks1.xpub, 'Zpub6xwgqLvc42wXB1wEELTdALD9iXwStMUkGqBgxkJFYumaL2dWgNvUkjEDWyDFZD3fZuDWDzd1KQJ4NwVHS7hs6H6QkpNYSShfNiUZsgMdtNg')
# electrum seed: hedgehog sunset update estate number jungle amount piano friend donate upper wool
ks2 = keystore.from_xpub('Zpub6y4oYeETXAbzLNg45wcFDGwEG3vpgsyMJybiAfi2pJtNF3i3fJVxK2BeZJaw7VeKZm192QHvXP3uHDNpNmNDbQft9FiMzkKUhNXQafUMYUY')
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2], '2of2', config=self.config)
self.assertEqual(w.txin_type, 'p2wsh')
self.assertEqual(w.get_receiving_addresses()[0], 'bc1qvzezdcv6vs5h45ugkavp896e0nde5c5lg5h0fwe2xyfhnpkxq6gq7pnwlc')
self.assertEqual(w.get_change_addresses()[0], 'bc1qxqf840dqswcmu7a8v82fj6ej0msx08flvuy6kngr7axstjcaq6us9hrehd')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip39_multisig_seed_bip45_standard(self, mock_save_db):
seed_words = 'treat dwarf wealth gasp brass outside high rent blood crowd make initial'
self.assertEqual(keystore.bip39_is_checksum_valid(seed_words), (True, True))
ks1 = keystore.from_bip39_seed(seed_words, '', "m/45'/0")
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xprv, 'xprv9vyEFyXf7pYVv4eDU3hhuCEAHPHNGuxX73nwtYdpbLcqwJCPwFKknAK8pHWuHHBirCzAPDZ7UJHrYdhLfn1NkGp9rk3rVz2aEqrT93qKRD9')
self.assertEqual(ks1.xpub, 'xpub69xafV4YxC6o8Yiga5EiGLAtqR7rgNgNUGiYgw3S9g9pp6XYUne1KxdcfYtxwmA3eBrzMFuYcNQKfqsXCygCo4GxQFHfywxpUbKNfYvGJka')
# bip39 seed: tray machine cook badge night page project uncover ritual toward person enact
# der: m/45'/0
ks2 = keystore.from_xpub('xpub6B26nSWddbWv7J3qQn9FbwPPQktSBdPQfLfHhRK4375QoZq8fvM8rQey1koGSTxC5xVoMzNMaBETMUmCqmXzjc8HyAbN7LqrvE4ovGRwNGg')
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2], '2of2', config=self.config)
self.assertEqual(w.txin_type, 'p2sh')
self.assertEqual(w.get_receiving_addresses()[0], '3JPTQ2nitVxXBJ1yhMeDwH6q417UifE3bN')
self.assertEqual(w.get_change_addresses()[0], '3FGyDuxgUDn2pSZe5xAJH1yUwSdhzDMyEE')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip39_multisig_seed_p2sh_segwit(self, mock_save_db):
# bip39 seed: pulse mixture jazz invite dune enrich minor weapon mosquito flight fly vapor
# der: m/49'/0'/0'
# NOTE: there is currently no bip43 standard derivation path for p2wsh-p2sh
ks1 = keystore.from_xprv('YprvAUXFReVvDjrPerocC3FxVH748sJUTvYjkAhtKop5VnnzVzMEHr1CHrYQKZwfJn1As3X4LYMav6upxd5nDiLb6SCjRZrBH76EFvyQAG4cn79')
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xpub, 'Ypub6hWbqA2p47QgsLt5J4nxrR3ngu8xsPGb7PdV8CDh48KyNngNqPKSqertAqYhQ4umELu1UsZUCYfj9XPA6AdSMZWDZQobwF7EJ8uNrECaZg1')
# bip39 seed: slab mixture skin evoke harsh tattoo rare crew sphere extend balcony frost
# der: m/49'/0'/0'
ks2 = keystore.from_xpub('Ypub6iNDhL4WWq5kFZcdFqHHwX4YTH4rYGp8xbndpRrY7WNZFFRfogSrL7wRTajmVHgR46AT1cqUG1mrcRd7h1WXwBsgX2QvT3zFbBCDiSDLkau')
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2], '2of2', config=self.config)
self.assertEqual(w.txin_type, 'p2wsh-p2sh')
self.assertEqual(w.get_receiving_addresses()[0], '35LeC45QgCVeRor1tJD6LiDgPbybBXisns')
self.assertEqual(w.get_change_addresses()[0], '39RhtDchc6igmx5tyoimhojFL1ZbQBrXa6')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip32_extended_version_bytes(self, mock_save_db):
seed_words = 'crouch dumb relax small truck age shine pink invite spatial object tenant'
self.assertEqual(keystore.bip39_is_checksum_valid(seed_words), (True, True))
bip32_seed = keystore.bip39_to_seed(seed_words, '')
self.assertEqual('0df68c16e522eea9c1d8e090cfb2139c3b3a2abed78cbcb3e20be2c29185d3b8df4e8ce4e52a1206a688aeb88bfee249585b41a7444673d1f16c0d45755fa8b9',
bh2u(bip32_seed))
def create_keystore_from_bip32seed(xtype):
ks = keystore.BIP32_KeyStore({})
ks.add_xprv_from_seed(bip32_seed, xtype=xtype, derivation='m/')
return ks
ks = create_keystore_from_bip32seed(xtype='standard')
self.assertEqual('033a05ec7ae9a9833b0696eb285a762f17379fa208b3dc28df1c501cf84fe415d0', ks.derive_pubkey(0, 0).hex())
self.assertEqual('02bf27f41683d84183e4e930e66d64fc8af5508b4b5bf3c473c505e4dbddaeed80', ks.derive_pubkey(1, 0).hex())
ks = create_keystore_from_bip32seed(xtype='standard') # p2pkh
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(ks.xprv, 'xprv9s21ZrQH143K3nyWMZVjzGL4KKAE1zahmhTHuV5pdw4eK3o3igC5QywgQG7UTRe6TGBniPDpPFWzXMeMUFbBj8uYsfXGjyMmF54wdNt8QBm')
self.assertEqual(ks.xpub, 'xpub661MyMwAqRbcGH3yTb2kMQGnsLziRTJZ8vNthsVSCGbdBr8CGDWKxnGAFYgyKTzBtwvPPmfVAWJuFmxRXjSbUTg87wDkWQ5GmzpfUcN9t8Z')
self.assertEqual(w.get_receiving_addresses()[0], '19fWEVaXqgJFFn7JYNr6ouxyjZy3uK7CdK')
self.assertEqual(w.get_change_addresses()[0], '1EEX7da31qndYyeKdbM665w1ze5gbkkAZZ')
ks = create_keystore_from_bip32seed(xtype='p2wpkh-p2sh')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(ks.xprv, 'yprvABrGsX5C9janu6AdBvHNCMRZVHJfxcaCgoyWgsyi1wSXN9cGyLMe33bpRU54TLJ1ruJbTrpNqusYQeFvBx1CXNb9k1DhKtBFWo8b1sLbXhN')
self.assertEqual(ks.xpub, 'ypub6QqdH2c5z7967aF6HwpNZVNJ3K9AN5J442u7VGPKaGyWEwwRWsftaqvJGkeZKNe7Jb3C9FG3dAfT94ZzFRrcGhMizGvB6Jtm3itJsEFhxMC')
self.assertEqual(w.get_receiving_addresses()[0], '34SAT5gGF5UaBhhSZ8qEuuxYvZ2cm7Zi23')
self.assertEqual(w.get_change_addresses()[0], '38unULZaetSGSKvDx7Krukh8zm8NQnxGiA')
ks = create_keystore_from_bip32seed(xtype='p2wpkh')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(ks.xprv, 'zprvAWgYBBk7JR8GkPMk2H4zQSX4fFT7uEZhbvVjUGsbPwpQRFRWDzXCf7FxSg2eTEwwGYRQDLQwJaE6HvsUueRDKcGkcLv7unzjnXCEQVWhrF9')
self.assertEqual(ks.xpub, 'zpub6jftahH18ngZxsSD8JbzmaToDHHcJhHYy9RLGfHCxHMPJ3kemXqTCuaSHxc9KHJ2iE9ztirc5q212MBYy8Gd4w3KrccbgDiFKSwxFpYKEH6')
self.assertEqual(w.get_receiving_addresses()[0], 'bc1qtuynwzd0d6wptvyqmc6ehkm70zcamxpshyzu5e')
self.assertEqual(w.get_change_addresses()[0], 'bc1qjy5zunxh6hjysele86qqywfa437z4xwmleq8wk')
ks = create_keystore_from_bip32seed(xtype='standard') # p2sh
w = WalletIntegrityHelper.create_multisig_wallet([ks], '1of1', config=self.config)
self.assertEqual(ks.xprv, 'xprv9s21ZrQH143K3nyWMZVjzGL4KKAE1zahmhTHuV5pdw4eK3o3igC5QywgQG7UTRe6TGBniPDpPFWzXMeMUFbBj8uYsfXGjyMmF54wdNt8QBm')
self.assertEqual(ks.xpub, 'xpub661MyMwAqRbcGH3yTb2kMQGnsLziRTJZ8vNthsVSCGbdBr8CGDWKxnGAFYgyKTzBtwvPPmfVAWJuFmxRXjSbUTg87wDkWQ5GmzpfUcN9t8Z')
self.assertEqual(w.get_receiving_addresses()[0], '3F4nm8Vunb7mxVvqhUP238PYge2hpU5qYv')
self.assertEqual(w.get_change_addresses()[0], '3N8jvKGmxzVHENn6B4zTdZt3N9bmRKjj96')
ks = create_keystore_from_bip32seed(xtype='p2wsh-p2sh')
w = WalletIntegrityHelper.create_multisig_wallet([ks], '1of1', config=self.config)
self.assertEqual(ks.xprv, 'YprvANkMzkodih9AKfL18akM2RmND5LwAyFo15dBc9FFPiGvzLBBjjjv8ATkEB2Y1mWv6NNaLSpVj8G3XosgVBA9frhpaUL6jHeFQXQTbqVPcv2')
self.assertEqual(ks.xpub, 'Ypub6bjiQGLXZ4hTY9QUEcHMPZi6m7BRaRyeNJYnQXerx3ous8WLHH4AfxnE5Tc2sos1Y47B1qGAWP3xGEBkYf1ZRBUPpk2aViMkwTABT6qoiBb')
self.assertEqual(w.get_receiving_addresses()[0], '3L1BxLLASGKE3DR1ruraWm3hZshGCKqcJx')
self.assertEqual(w.get_change_addresses()[0], '3NDGcbZVXTpaQWRhiuVPpXsNt4g2JiCX4E')
ks = create_keystore_from_bip32seed(xtype='p2wsh')
w = WalletIntegrityHelper.create_multisig_wallet([ks], '1of1', config=self.config)
self.assertEqual(ks.xprv, 'ZprvAhadJRUYsNgeAxX7xwXyEWrsP3VP7bFHvC9QPY98miep3RzQzPuUkE7tFNz81gAqW1VP5vR4BncbR6VFCsaAU6PRSp2XKCTjgFU6zRpk6Xp')
self.assertEqual(ks.xpub, 'Zpub6vZyhw1ShkEwPSbb4y4ybeobw5KsX3y9HR51BvYkL4BnvEKZXwDjJ2SN6fZcsiWvwhDymJriy3QW9WoKGMRaDR9zh5j15dBFDBDpqjK1ekQ')
self.assertEqual(w.get_receiving_addresses()[0], 'bc1q84x0yrztvcjg88qef4d6978zccxulcmc9y88xcg4ghjdau999x7q7zv2qe')
self.assertEqual(w.get_change_addresses()[0], 'bc1q0fj5mra96hhnum80kllklc52zqn6kppt3hyzr49yhr3ecr42z3tsrkg3gs')
class TestWalletKeystoreAddressIntegrityForTestnet(TestCaseForTestnet):
def setUp(self):
super().setUp()
self.config = SimpleConfig({'electrum_path': self.electrum_path})
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip39_multisig_seed_p2sh_segwit_testnet(self, mock_save_db):
# bip39 seed: finish seminar arrange erosion sunny coil insane together pretty lunch lunch rose
# der: m/49'/1'/0'
# NOTE: there is currently no bip43 standard derivation path for p2wsh-p2sh
ks1 = keystore.from_xprv('Uprv9BEixD3As2LK5h6G2SNT3cTqbZpsWYPceKTSuVAm1yuSybxSvQz2MV1o8cHTtctQmj4HAenb3eh5YJv4YRZjv35i8fofVnNbs4Dd2B4i5je')
self.assertTrue(isinstance(ks1, keystore.BIP32_KeyStore))
self.assertEqual(ks1.xpub, 'Upub5QE5Mia4hPtcJBAj8TuTQkQa9bfMv17U1YP3hsaNaKSRrQHbTxJGuHLGyv3MbKZixuPyjfXGUdbTjE4KwyFcX8YD7PX5ybTDbP11UT8UpZR')
# bip39 seed: square page wood spy oil story rebel give milk screen slide shuffle
# der: m/49'/1'/0'
ks2 = keystore.from_xpub('Upub5QRzUGRJuWJe5MxGzwgQAeyJjzcdGTXkkq77w6EfBkCyf5iWppSaZ4caY2MgWcU9LP4a4uE5apUFN4wLoENoe9tpu26mrUxeGsH84dN3JFh')
WalletIntegrityHelper.check_xpub_keystore_sanity(self, ks2)
self.assertTrue(isinstance(ks2, keystore.BIP32_KeyStore))
w = WalletIntegrityHelper.create_multisig_wallet([ks1, ks2], '2of2', config=self.config)
self.assertEqual(w.txin_type, 'p2wsh-p2sh')
self.assertEqual(w.get_receiving_addresses()[0], '2MzsfTfTGomPRne6TkctMmoDj6LwmVkDrMt')
self.assertEqual(w.get_change_addresses()[0], '2NFp9w8tbYYP9Ze2xQpeYBJQjx3gbXymHX7')
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_bip32_extended_version_bytes(self, mock_save_db):
seed_words = 'crouch dumb relax small truck age shine pink invite spatial object tenant'
self.assertEqual(keystore.bip39_is_checksum_valid(seed_words), (True, True))
bip32_seed = keystore.bip39_to_seed(seed_words, '')
self.assertEqual('0df68c16e522eea9c1d8e090cfb2139c3b3a2abed78cbcb3e20be2c29185d3b8df4e8ce4e52a1206a688aeb88bfee249585b41a7444673d1f16c0d45755fa8b9',
bh2u(bip32_seed))
def create_keystore_from_bip32seed(xtype):
ks = keystore.BIP32_KeyStore({})
ks.add_xprv_from_seed(bip32_seed, xtype=xtype, derivation='m/')
return ks
ks = create_keystore_from_bip32seed(xtype='standard')
self.assertEqual('033a05ec7ae9a9833b0696eb285a762f17379fa208b3dc28df1c501cf84fe415d0', ks.derive_pubkey(0, 0).hex())
self.assertEqual('02bf27f41683d84183e4e930e66d64fc8af5508b4b5bf3c473c505e4dbddaeed80', ks.derive_pubkey(1, 0).hex())
ks = create_keystore_from_bip32seed(xtype='standard') # p2pkh
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(ks.xprv, 'tprv8ZgxMBicQKsPecD328MF9ux3dSaSFWci7FNQmuWH7uZ86eY8i3XpvjK8KSH8To2QphiZiUqaYc6nzDC6bTw8YCB9QJjaQL5pAApN4z7vh2B')
self.assertEqual(ks.xpub, 'tpubD6NzVbkrYhZ4Y5Epun1qZKcACU6NQqocgYyC4RYaYBMWw8nuLSMR7DvzVamkqxwRgrTJ1MBMhc8wwxT2vbHqMu8RBXy4BvjWMxR5EdZroxE')
self.assertEqual(w.get_receiving_addresses()[0], 'mpBTXYfWehjW2tavFwpUdqBJbZZkup13k2')
self.assertEqual(w.get_change_addresses()[0], 'mtkUQgf1psDtL67wMAKTv19LrdgPWy6GDQ')
ks = create_keystore_from_bip32seed(xtype='p2wpkh-p2sh')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(ks.xprv, 'uprv8tXDerPXZ1QsVuQ9rV8sN13YoQitC8cD2MtdZJQAVuw19kMMxhhPYnyGLeEiThgLELqNTxS91GTLsVofKAM9LRrkGeRzzEuJRtt1Tcostr7')
self.assertEqual(ks.xpub, 'upub57Wa4MvRPNyAiPUcxWfsj8zHMSZNbbL4PapEMgon4FTz2YgWWF1e6bHkBvpDKk2Rg2Zy9LsonXFFbv7jNeCZ5kdKWv8UkfcoxpdjJrZuBX6')
self.assertEqual(w.get_receiving_addresses()[0], '2MuzNWpcHrXyvPVKzEGT7Xrwp8uEnXXjWnK')
self.assertEqual(w.get_change_addresses()[0], '2MzTzY5VcGLwce7YmdEwjXhgQD7LYEKLJTm')
ks = create_keystore_from_bip32seed(xtype='p2wpkh')
w = WalletIntegrityHelper.create_standard_wallet(ks, config=self.config)
self.assertEqual(ks.xprv, 'vprv9DMUxX4ShgxMMCbGgqvVa693yNsL8kbhwUQrLhJ3svJtCrAbDMrxArdQMrCJTcLFdyxBDS2hTvotknRE2rmA8fYM8z8Ra9inhcwerEsG6Ev')
self.assertEqual(ks.xpub, 'vpub5SLqN2bLY4WeZgfjnsTVwE5nXQhpYDKZJhLT95hfSFqs5eVjkuBCiewtD8moKegM5fgmtpUNFBboVCjJ6LcZszJvPFpuLaSJEYhNhUAnrCS')
self.assertEqual(w.get_receiving_addresses()[0], 'tb1qtuynwzd0d6wptvyqmc6ehkm70zcamxpsaze002')
self.assertEqual(w.get_change_addresses()[0], 'tb1qjy5zunxh6hjysele86qqywfa437z4xwm4lm549')
ks = create_keystore_from_bip32seed(xtype='standard') # p2sh
w = WalletIntegrityHelper.create_multisig_wallet([ks], '1of1', config=self.config)
self.assertEqual(ks.xprv, 'tprv8ZgxMBicQKsPecD328MF9ux3dSaSFWci7FNQmuWH7uZ86eY8i3XpvjK8KSH8To2QphiZiUqaYc6nzDC6bTw8YCB9QJjaQL5pAApN4z7vh2B')
self.assertEqual(ks.xpub, 'tpubD6NzVbkrYhZ4Y5Epun1qZKcACU6NQqocgYyC4RYaYBMWw8nuLSMR7DvzVamkqxwRgrTJ1MBMhc8wwxT2vbHqMu8RBXy4BvjWMxR5EdZroxE')
self.assertEqual(w.get_receiving_addresses()[0], '2N6czpsRwQ3d8AHZPNbztf5NotzEsaZmVQ8')
self.assertEqual(w.get_change_addresses()[0], '2NDgwz4CoaSzdSAQdrCcLFWsJaVowCNgiPA')
ks = create_keystore_from_bip32seed(xtype='p2wsh-p2sh')
w = WalletIntegrityHelper.create_multisig_wallet([ks], '1of1', config=self.config)
self.assertEqual(ks.xprv, 'Uprv95RJn67y7xyEvUZXo9brC5PMXCm9QVHoLdYJUZfhsgmQmvvGj75fduqC9MCC28uETouMLYSFtUqqzfRRcPW6UuyR77YQPeNJKd9t3XutF8b')
self.assertEqual(ks.xpub, 'Upub5JQfBberxLXY8xdzuB8rZDL65Ebdox1ehrTuGx5KS2JPejFRGePvBi9fzdmgtBFKuVdx1vsvfjdkj5jVfsMWEEjzMPEtA55orYubtrCZmRr')
self.assertEqual(w.get_receiving_addresses()[0], '2NBZQ25GC3ipaF13ZY3UT8i2xnDuS17pJqx')
self.assertEqual(w.get_change_addresses()[0], '2NDmUgLVX8vKvcJ4FQ37GSUre6QtBzKkb6k')
ks = create_keystore_from_bip32seed(xtype='p2wsh')
w = WalletIntegrityHelper.create_multisig_wallet([ks], '1of1', config=self.config)
self.assertEqual(ks.xprv, 'Vprv16YtLrHXxePM6noKqtFtMtmUgBE9bEpF3fPLmpvuPksssLostujtdHBwqhEeVuzESz22UY8hyPx9ed684SQpCmUKSVhpxPFbvVNY7qnviNR')
self.assertEqual(ks.xpub, 'Vpub5dEvVGKn7251zFq7jXvUmJRbFCk5ka19cxz84LyCp2gGhq4eXJZUomop1qjGt5uFK8kkmQUV8PzJcNM4PZmX2URbDiwJjyuJ8GyFHRrEmmG')
self.assertEqual(w.get_receiving_addresses()[0], 'tb1q84x0yrztvcjg88qef4d6978zccxulcmc9y88xcg4ghjdau999x7qf2696k')
self.assertEqual(w.get_change_addresses()[0], 'tb1q0fj5mra96hhnum80kllklc52zqn6kppt3hyzr49yhr3ecr42z3ts5777jl')
class TestWalletSending(TestCaseForTestnet):
def setUp(self):
super().setUp()
self.config = SimpleConfig({'electrum_path': self.electrum_path})
def create_standard_wallet_from_seed(self, seed_words, *, config=None):
if config is None:
config = self.config
ks = keystore.from_seed(seed_words, '', False)
return WalletIntegrityHelper.create_standard_wallet(ks, gap_limit=2, config=config)
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_between_p2wpkh_and_compressed_p2pkh(self, mock_save_db):
wallet1 = self.create_standard_wallet_from_seed('bitter grass shiver impose acquire brush forget axis eager alone wine silver')
wallet2 = self.create_standard_wallet_from_seed('cycle rocket west magnet parrot shuffle foot correct salt library feed song')
# bootstrap wallet1
funding_tx = Transaction('01000000014576dacce264c24d81887642b726f5d64aa7825b21b350c7b75a57f337da6845010000006b483045022100a3f8b6155c71a98ad9986edd6161b20d24fad99b6463c23b463856c0ee54826d02200f606017fd987696ebbe5200daedde922eee264325a184d5bbda965ba5160821012102e5c473c051dae31043c335266d0ef89c1daab2f34d885cc7706b267f3269c609ffffffff0240420f00000000001600148a28bddb7f61864bdcf58b2ad13d5aeb3abc3c42a2ddb90e000000001976a914c384950342cb6f8df55175b48586838b03130fad88ac00000000')
funding_txid = funding_tx.txid()
funding_output_value = 1000000
self.assertEqual('add2535aedcbb5ba79cc2260868bb9e57f328738ca192937f2c92e0e94c19203', funding_txid)
wallet1.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# wallet1 -> wallet2
outputs = [PartialTxOutput.from_address_and_value(wallet2.get_receiving_address(), 250000)]
tx = wallet1.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet1.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet1.is_mine(wallet1.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('010000000001010392c1940e2ec9f2372919ca3887327fe5b98b866022cc79bab5cbed5a53d2ad0000000000feffffff0290d00300000000001976a914ea7804a2c266063572cc009a63dc25dcc0e9d9b588ac285e0b0000000000160014690b59a8140602fb23cc2904ece9cc4daf361052024730440220608a5339ca894592da82119e1e4a1d09335d70a552c683687223b8ed724465e902201b3f0feccf391b1b6257e4b18970ae57d7ca060af2dae519b3690baad2b2a34e0121030faee9b4a25b7db82023ca989192712cdd4cb53d3d9338591c7909e581ae1c0c00000000',
str(tx_copy))
self.assertEqual('3c06ae4d9be8226a472b3e7f7c127c7e3016f525d658d26106b80b4c7e3228e2', tx_copy.txid())
self.assertEqual('d8d930ae91dce73118c3fffabbdfcfb87f5d91673fb4c7dfd0fbe7cf03bf426b', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
wallet1.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED) # TX_HEIGHT_UNCONF_PARENT but nvm
wallet2.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet2 -> wallet1
outputs = [PartialTxOutput.from_address_and_value(wallet1.get_receiving_address(), 100000)]
tx = wallet2.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet2.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet2.is_mine(wallet2.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('0100000001e228327e4c0bb80661d258d625f516307e7c127c7f3e2b476a22e89b4dae063c000000006a47304402200c7b06ff882db5ffe9d6e2a3cc2cabf5cd1b4224f1453d1e3dadd13b3d391e2c02201d23fde8482b05837f27d43021d17a1be2ee619dfc889ee80d4c2761e7c7ffb20121030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cffeffffff02a086010000000000160014284520c815980d426264766d8d930013dd20aa6068360200000000001976a914ca4c60999c46c2108326590b125aefd476dcb11888ac00000000',
str(tx_copy))
self.assertEqual('4ff22c31dd884dedbb905fae275508d1f7bb4948c1c979d2567132848fdff24a', tx_copy.txid())
self.assertEqual('4ff22c31dd884dedbb905fae275508d1f7bb4948c1c979d2567132848fdff24a', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
wallet1.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet level checks
self.assertEqual((0, funding_output_value - 250000 - 5000 + 100000, 0), wallet1.get_balance())
self.assertEqual((0, 250000 - 5000 - 100000, 0), wallet2.get_balance())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_between_p2sh_2of3_and_uncompressed_p2pkh(self, mock_save_db):
wallet1a = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('blast uniform dragon fiscal ensure vast young utility dinosaur abandon rookie sure', '', True),
keystore.from_xpub('tpubD6NzVbkrYhZ4YTPEgwk4zzr8wyo7pXGmbbVUnfYNtx6SgAMF5q3LN3Kch58P9hxGNsTmP7Dn49nnrmpE6upoRb1Xojg12FGLuLHkVpVtS44'),
keystore.from_xpub('tpubD6NzVbkrYhZ4XJzYkhsCbDCcZRmDAKSD7bXi9mdCni7acVt45fxbTVZyU6jRGh29ULKTjoapkfFsSJvQHitcVKbQgzgkkYsAmaovcro7Mhf')
],
'2of3', gap_limit=2,
config=self.config
)
wallet1b = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('cycle rocket west magnet parrot shuffle foot correct salt library feed song', '', True),
keystore.from_xpub('tpubD6NzVbkrYhZ4YTPEgwk4zzr8wyo7pXGmbbVUnfYNtx6SgAMF5q3LN3Kch58P9hxGNsTmP7Dn49nnrmpE6upoRb1Xojg12FGLuLHkVpVtS44'),
keystore.from_xpub('tpubD6NzVbkrYhZ4YARFMEZPckrqJkw59GZD1PXtQnw14ukvWDofR7Z1HMeSCxfYEZVvg4VdZ8zGok5VxHwdrLqew5cMdQntWc5mT7mh1CSgrnX')
],
'2of3', gap_limit=2,
config=self.config
)
# ^ third seed: ghost into match ivory badge robot record tackle radar elbow traffic loud
wallet2 = self.create_standard_wallet_from_seed('powerful random nobody notice nothing important anyway look away hidden message over')
# bootstrap wallet1
funding_tx = Transaction('010000000001014121f99dc02f0364d2dab3d08905ff4c36fc76c55437fd90b769c35cc18618280100000000fdffffff02d4c22d00000000001600143fd1bc5d32245850c8cb5be5b09c73ccbb9a0f75001bb7000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e4887024830450221008781c78df0c9d4b5ea057333195d5d76bc29494d773f14fa80e27d2f288b2c360220762531614799b6f0fb8d539b18cb5232ab4253dd4385435157b28a44ff63810d0121033de77d21926e09efd04047ae2d39dbd3fb9db446e8b7ed53e0f70f9c9478f735dac11300')
funding_txid = funding_tx.txid()
funding_output_value = 12000000
self.assertEqual('b25cd55687c9e528c2cfd546054f35fb6741f7cf32d600f07dfecdf2e1d42071', funding_txid)
wallet1a.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# wallet1 -> wallet2
outputs = [PartialTxOutput.from_address_and_value(wallet2.get_receiving_address(), 370000)]
tx = wallet1a.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007501000000017120d4e1f2cdfe7df000d632cff74167fb354f0546d5cfc228e5c98756d55cb20100000000feffffff0250a50500000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac2862b1000000000017a9142e517854aa54668128c0e9a3fdd4dec13ad571368700000000000100e0010000000001014121f99dc02f0364d2dab3d08905ff4c36fc76c55437fd90b769c35cc18618280100000000fdffffff02d4c22d00000000001600143fd1bc5d32245850c8cb5be5b09c73ccbb9a0f75001bb7000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e4887024830450221008781c78df0c9d4b5ea057333195d5d76bc29494d773f14fa80e27d2f288b2c360220762531614799b6f0fb8d539b18cb5232ab4253dd4385435157b28a44ff63810d0121033de77d21926e09efd04047ae2d39dbd3fb9db446e8b7ed53e0f70f9c9478f735dac11300220202afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f284730440220751ee3599e59debb8b2aeef61bb5f574f26379cd961caf382d711a507bc632390220598d53e62557c4a5ab8cfb2f8948f37cca06a861714b55c781baf2c3d7a580b501010469522102afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f2821030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf2103e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce53ae220602afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f280c0036e9ac00000000000000002206030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf0c48adc7a00000000000000000220603e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce0cdb692427000000000000000000000100695221022ec6f62b0f3b7c2446f44346bff0a6f06b5fdbc27368be8a36478e0287fe47be21024238f21f90527dc87e945f389f3d1711943b06f0a738d5baab573fc0ab6c98582102b7139e93747d7c77f62af5a38b8a2b009f3456aa94dea9bf21f73a6298c867a253ae2202022ec6f62b0f3b7c2446f44346bff0a6f06b5fdbc27368be8a36478e0287fe47be0cdb69242701000000000000002202024238f21f90527dc87e945f389f3d1711943b06f0a738d5baab573fc0ab6c98580c0036e9ac0100000000000000220202b7139e93747d7c77f62af5a38b8a2b009f3456aa94dea9bf21f73a6298c867a20c48adc7a0010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet1b.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet1a.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet1a.is_mine(wallet1a.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('01000000017120d4e1f2cdfe7df000d632cff74167fb354f0546d5cfc228e5c98756d55cb201000000fc004730440220751ee3599e59debb8b2aeef61bb5f574f26379cd961caf382d711a507bc632390220598d53e62557c4a5ab8cfb2f8948f37cca06a861714b55c781baf2c3d7a580b501473044022023b55c679397bdf3a04d545adc6193eabc11b3a28850d3d46049a51a30c6732402205dbfdade5620e9072ae4aa7577c5f0fd294f59a6b0064cc7105093c0fe7a6d24014c69522102afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f2821030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf2103e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce53aefeffffff0250a50500000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac2862b1000000000017a9142e517854aa54668128c0e9a3fdd4dec13ad571368700000000',
str(tx_copy))
self.assertEqual('b508ee1908181e55d2a18a5b2a3904dffbc7cb6b6320bbfba4433578d0f7831e', tx_copy.txid())
self.assertEqual('b508ee1908181e55d2a18a5b2a3904dffbc7cb6b6320bbfba4433578d0f7831e', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
wallet1a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet2 -> wallet1
outputs = [PartialTxOutput.from_address_and_value(wallet1a.get_receiving_address(), 100000)]
tx = wallet2.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet2.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet2.is_mine(wallet2.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('01000000011e83f7d0783543a4fbbb20636bcbc7fbdf04392a5b8aa1d2551e180819ee08b5000000008a473044022007569f938b5d7a7f529ceccc413363d84325c11d589c1897660bebfd5fd1cc4302203ef71fa42f9b31bb1e816af13b0bf725c493a0405433390c783cd9374713c5880141045f7ba332df2a7b4f5d13f246e307c9174cfa9b8b05f3b83410a3c23ef8958d610be285963d67c7bc1feb082f168fa9877c25999963ff8b56b242a852b23e25edfeffffff02a08601000000000017a914efe136b8275f49bc0f9871eebb9a48d0516229fd87280b0400000000001976a914ca14915184a2662b5d1505ce7142c8ca066c70e288ac00000000',
str(tx_copy))
self.assertEqual('30f6eec4db5e6b1dfe572dfbc7077661df9a15a2a1b7701612b906d3e1bee3d8', tx_copy.txid())
self.assertEqual('30f6eec4db5e6b1dfe572dfbc7077661df9a15a2a1b7701612b906d3e1bee3d8', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
wallet1a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet level checks
self.assertEqual((0, funding_output_value - 370000 - 5000 + 100000, 0), wallet1a.get_balance())
self.assertEqual((0, 370000 - 5000 - 100000, 0), wallet2.get_balance())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_between_p2wsh_2of3_and_p2wsh_p2sh_2of2(self, mock_save_db):
wallet1a = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('bitter grass shiver impose acquire brush forget axis eager alone wine silver', '', True),
keystore.from_xpub('Vpub5fcdcgEwTJmbmqAktuK8Kyq92fMf7sWkcP6oqAii2tG47dNbfkGEGUbfS9NuZaRywLkHE6EmUksrqo32ZL3ouLN1HTar6oRiHpDzKMAF1tf'),
keystore.from_xpub('Vpub5fjkKyYnvSS4wBuakWTkNvZDaBM2vQ1MeXWq368VJHNr2eT8efqhpmZ6UUkb7s2dwCXv2Vuggjdhk4vZVyiAQTwUftvff73XcUGq2NQmWra')
],
'2of3', gap_limit=2,
config=self.config
)
wallet1b = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('snow nest raise royal more walk demise rotate smooth spirit canyon gun', '', True),
keystore.from_xpub('Vpub5fjkKyYnvSS4wBuakWTkNvZDaBM2vQ1MeXWq368VJHNr2eT8efqhpmZ6UUkb7s2dwCXv2Vuggjdhk4vZVyiAQTwUftvff73XcUGq2NQmWra'),
keystore.from_xpub('Vpub5gSKXzxK7FeKQedu2q1z9oJWxqvX72AArW3HSWpEhc8othDH8xMDu28gr7gf17sp492BuJod8Tn7anjvJrKpETwqnQqX7CS8fcYyUtedEMk')
],
'2of3', gap_limit=2,
config=self.config
)
# ^ third seed: hedgehog sunset update estate number jungle amount piano friend donate upper wool
wallet2a = WalletIntegrityHelper.create_multisig_wallet(
[
# bip39: finish seminar arrange erosion sunny coil insane together pretty lunch lunch rose, der: m/1234'/1'/0', p2wsh-p2sh multisig
keystore.from_xprv('Uprv9CvELvByqm8k2dpecJVjgLMX1z5DufEjY4fBC5YvdGF5WjGCa7GVJJ2fYni1tyuF7Hw83E6W2ZBjAhaFLZv2ri3rEsubkCd5avg4EHKoDBN'),
keystore.from_xpub('Upub5Qb8ik4Cnu8g97KLXKgVXHqY6tH8emQvqtBncjSKsyfTZuorPtTZgX7ovKKZHuuVGBVd1MTTBkWez1XXt2weN1sWBz6SfgRPQYEkNgz81QF')
],
'2of2', gap_limit=2,
config=self.config
)
wallet2b = WalletIntegrityHelper.create_multisig_wallet(
[
# bip39: square page wood spy oil story rebel give milk screen slide shuffle, der: m/1234'/1'/0', p2wsh-p2sh multisig
keystore.from_xprv('Uprv9BbnKEXJxXaNvdEsRJ9VA9toYrSeFJh5UfGBpM2iKe8Uh7UhrM9K8ioL53s8gvCoGfirHHaqpABDAE7VUNw8LNU1DMJKVoWyeNKu9XcDC19'),
keystore.from_xpub('Upub5RuakRisg8h3F7u7iL2k3UJFa1uiK7xauHamzTxYBbn4PXbM7eajr6M9Q2VCr6cVGhfhqWQqxnABvtSATuVM1xzxk4nA189jJwzaMn1QX7V')
],
'2of2', gap_limit=2,
config=self.config
)
# bootstrap wallet1
funding_tx = Transaction('01000000000101a41aae475d026c9255200082c7fad26dc47771275b0afba238dccda98a597bd20000000000fdffffff02400d0300000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63c9dcd410000000000160014824626055515f3ed1d2cfc9152d2e70685c71e8f02483045022100b9f39fad57d07ce1e18251424034f21f10f20e59931041b5167ae343ce973cf602200fefb727fa0ffd25b353f1bcdae2395898fe407b692c62f5885afbf52fa06f5701210301a28f68511ace43114b674371257bb599fd2c686c4b19544870b1799c954b40e9c11300')
funding_txid = funding_tx.txid()
funding_output_value = 200000
self.assertEqual('d2bd6c9d332db8e2c50aa521cd50f963fba214645aab2f7556e061a412103e21', funding_txid)
wallet1a.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# wallet1 -> wallet2
outputs = [PartialTxOutput.from_address_and_value(wallet2a.get_receiving_address(), 165000)]
tx = wallet1a.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
txid = tx.txid()
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007e0100000001213e1012a461e056752fab5a6414a2fb63f950cd21a50ac5e2b82d339d6cbdd20000000000feffffff023075000000000000220020cc5e4cc05a76d0648cd0742768556317e9f8cc729aed077134287909035dba88888402000000000017a914187842cea9c15989a51ce7ca889a08b824bf87438700000000000100eb01000000000101a41aae475d026c9255200082c7fad26dc47771275b0afba238dccda98a597bd20000000000fdffffff02400d0300000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63c9dcd410000000000160014824626055515f3ed1d2cfc9152d2e70685c71e8f02483045022100b9f39fad57d07ce1e18251424034f21f10f20e59931041b5167ae343ce973cf602200fefb727fa0ffd25b353f1bcdae2395898fe407b692c62f5885afbf52fa06f5701210301a28f68511ace43114b674371257bb599fd2c686c4b19544870b1799c954b40e9c1130022020223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa473044022055cb04fa71c4b5955724d7ac5da90436d75212e7847fc121cb588f54bcdffdc4022064eca1ad639b7c748101059dc69f2893abb3b396bcf9c13f670415076f93ddbf0101056952210223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa210273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e2102aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae94153ae22060223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa10b2e35a7d01000080000000000000000022060273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e1053b77ddb010000800000000000000000220602aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae9411043067d6301000080000000000000000000010169522102174696a58a8dcd6c6455bd25e0749e9a6fc7d84ee09e192ab37b0d0b18c2de1a2102c807a19ca6783261f8c198ffcc437622e7ecba8d6c5692f3a5e7f1e45af53fd52102eee40c7e24d89639182db32f5e9188613e4bc212da2ee9b4ccc85d9b82e1a98053ae220202174696a58a8dcd6c6455bd25e0749e9a6fc7d84ee09e192ab37b0d0b18c2de1a1053b77ddb010000800100000000000000220202c807a19ca6783261f8c198ffcc437622e7ecba8d6c5692f3a5e7f1e45af53fd51043067d63010000800100000000000000220202eee40c7e24d89639182db32f5e9188613e4bc212da2ee9b4ccc85d9b82e1a98010b2e35a7d0100008001000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertEqual(txid, tx.txid())
self.assertFalse(tx.is_complete())
wallet1b.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet1a.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet1a.is_mine(wallet1a.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('01000000000101213e1012a461e056752fab5a6414a2fb63f950cd21a50ac5e2b82d339d6cbdd20000000000feffffff023075000000000000220020cc5e4cc05a76d0648cd0742768556317e9f8cc729aed077134287909035dba88888402000000000017a914187842cea9c15989a51ce7ca889a08b824bf8743870400473044022055cb04fa71c4b5955724d7ac5da90436d75212e7847fc121cb588f54bcdffdc4022064eca1ad639b7c748101059dc69f2893abb3b396bcf9c13f670415076f93ddbf01473044022009230e456724f2a4c10d886c836eeec599b21db0bf078aa8fc8c95868b8920ec02200dfda835a66acb5af50f0d95fcc4b76c6e8f4789a7184c182275b087d1efe556016952210223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa210273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e2102aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae94153ae00000000',
str(tx_copy))
self.assertEqual('6e9c3cd8788bdb970a124ea06136d52bc01cec4f9b1e217627d5e90ebe77d049', tx_copy.txid())
self.assertEqual('dfd568f4fe0d41f8679b665d2d65e514315bcd5ac3ff63ef1b1596e5313740a3', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual(txid, tx_copy.txid())
wallet1a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet2 -> wallet1
outputs = [PartialTxOutput.from_address_and_value(wallet1a.get_receiving_address(), 100000)]
tx = wallet2a.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
txid = tx.txid()
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007e010000000149d077be0ee9d52776211e9b4fec1cc02bd53661a04e120a97db8b78d83c9c6e0100000000feffffff0260ea00000000000017a9143025051b6b5ccd4baf30dfe2de8aa84f0dd567ed87a086010000000000220020f7b6b30c3073ae2680a7e90c589bbfec5303331be68bbab843eed5d51ba0123900000000000100fd7c0101000000000101213e1012a461e056752fab5a6414a2fb63f950cd21a50ac5e2b82d339d6cbdd20000000000feffffff023075000000000000220020cc5e4cc05a76d0648cd0742768556317e9f8cc729aed077134287909035dba88888402000000000017a914187842cea9c15989a51ce7ca889a08b824bf8743870400473044022055cb04fa71c4b5955724d7ac5da90436d75212e7847fc121cb588f54bcdffdc4022064eca1ad639b7c748101059dc69f2893abb3b396bcf9c13f670415076f93ddbf01473044022009230e456724f2a4c10d886c836eeec599b21db0bf078aa8fc8c95868b8920ec02200dfda835a66acb5af50f0d95fcc4b76c6e8f4789a7184c182275b087d1efe556016952210223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa210273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e2102aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae94153ae00000000220202119f899075a131d4d519d4cdcf5de5907dc2df3b93d54b53ded852211d2b6cb14730440220091ea67af7c1131f51f62fe9596dff0a60c8b45bfc5be675389e193912e8a71802201bf813bbf83933a35ecc46e2d5b0442bd8758fa82e0f8ed16392c10d51f7f7660101042200204311edae835c7a5aa712c8ca644180f13a3b2f3b420fa879b181474724d6163c010547522102119f899075a131d4d519d4cdcf5de5907dc2df3b93d54b53ded852211d2b6cb12102fdb0f6775d4b6619257c43343ba5e7807b0164f1eb3f00f2b594ab9e53ab812652ae220602119f899075a131d4d519d4cdcf5de5907dc2df3b93d54b53ded852211d2b6cb10cd1dbcc210000000000000000220602fdb0f6775d4b6619257c43343ba5e7807b0164f1eb3f00f2b594ab9e53ab81260c17cea9140000000000000000000100220020717ab7037b81797cb3e192a8a1b4d88083444bbfcd26934cadf3bcf890f14e05010147522102987c184fcd8ace2e2a314250e04a15a4b8c885fb4eb778ab82c45838bcbcbdde21034084c4a0493c248783e60d8415cd30b3ba2c3b7a79201e38b953adea2bc44f9952ae220202987c184fcd8ace2e2a314250e04a15a4b8c885fb4eb778ab82c45838bcbcbdde0c17cea91401000000000000002202034084c4a0493c248783e60d8415cd30b3ba2c3b7a79201e38b953adea2bc44f990cd1dbcc2101000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertEqual(txid, tx.txid())
self.assertFalse(tx.is_complete())
wallet2b.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet2a.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet2a.is_mine(wallet2a.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('0100000000010149d077be0ee9d52776211e9b4fec1cc02bd53661a04e120a97db8b78d83c9c6e01000000232200204311edae835c7a5aa712c8ca644180f13a3b2f3b420fa879b181474724d6163cfeffffff0260ea00000000000017a9143025051b6b5ccd4baf30dfe2de8aa84f0dd567ed87a086010000000000220020f7b6b30c3073ae2680a7e90c589bbfec5303331be68bbab843eed5d51ba0123904004730440220091ea67af7c1131f51f62fe9596dff0a60c8b45bfc5be675389e193912e8a71802201bf813bbf83933a35ecc46e2d5b0442bd8758fa82e0f8ed16392c10d51f7f7660147304402203ecf75b0316a449dd31bc549251b687dc904194aa551941bd5e8c67603661bdb02204ed58b3a6b070ec138d2127093bebcc6581495818fa611583e1c81cd9b2cf5ee0147522102119f899075a131d4d519d4cdcf5de5907dc2df3b93d54b53ded852211d2b6cb12102fdb0f6775d4b6619257c43343ba5e7807b0164f1eb3f00f2b594ab9e53ab812652ae00000000',
str(tx_copy))
self.assertEqual('df92f0179b2bd4d0845472a8492edcaa3c24883ec4c7816dcd634183e0f89f29', tx_copy.txid())
self.assertEqual('614a3c2d908229e5421364b5ac9802eb4636ead08c080cae3c7ca6ba4ad5f3cf', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual(txid, tx_copy.txid())
wallet1a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet level checks
self.assertEqual((0, funding_output_value - 165000 - 5000 + 100000, 0), wallet1a.get_balance())
self.assertEqual((0, 165000 - 5000 - 100000, 0), wallet2a.get_balance())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_between_p2sh_1of2_and_p2wpkh_p2sh(self, mock_save_db):
wallet1a = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('phone guilt ancient scan defy gasp off rotate approve ill word exchange', '', True),
keystore.from_xpub('tpubD6NzVbkrYhZ4YPZ3ntVjqSCxiUUv2jikrUBU73Q3iJ7Y8iR41oYf991L5fanv7ciHjbjokdK2bjYqg1BzEUDxucU9qM5WRdBiY738wmgLP4')
],
'1of2', gap_limit=2,
config=self.config
)
# ^ second seed: kingdom now gift initial age right velvet exotic harbor enforce kingdom kick
wallet2 = WalletIntegrityHelper.create_standard_wallet(
# bip39: uniform tank success logic lesson awesome stove elegant regular desert drip device, der: m/49'/1'/0'
keystore.from_xprv('uprv91HGbrNZTK4x8u22nbdYGzEuWPxjaHMREUi7CNhY64KsG5ZGnVM99uCa16EMSfrnaPTFxjbRdBZ2WiBkokoM8anzAy3Vpc52o88WPkitnxi'),
gap_limit=2,
config=self.config
)
# bootstrap wallet1
funding_tx = Transaction('010000000001027e20990282eb29588375ad04936e1e991af3bc5b9c6f1ab62eca8c25becaef6a01000000171600140e6a17fadc8bafba830f3467a889f6b211d69a00fdffffff51847fd6bcbdfd1d1ea2c2d95c2d8de1e34c5f2bd9493e88a96a4e229f564e800100000017160014ecdf9fa06856f9643b1a73144bc76c24c67774a6fdffffff021e8501000000000017a91451991bfa68fbcb1e28aa0b1e060b7d24003352e38700093d000000000017a914b0b9f31bace76cdfae2c14abc03e223403d7dc4b870247304402205e19721b92c6afd70cd932acb50815a36ee32ab46a934147d62f02c13aeacf4702207289c4a4131ef86e27058ff70b6cb6bf0e8e81c6cbab6dddd7b0a9bc732960e4012103fe504411c21f7663caa0bbf28931f03fae7e0def7bc54851e0194dfb1e2c85ef02483045022100e969b65096fba4f8b24eb5bc622d2282076241621f3efe922cc2067f7a8a6be702203ec4047dd2a71b9c83eb6a0875a6d66b4d65864637576c06ed029d3d1a8654b0012102bbc8100dca67ba0297aba51296a4184d714204a5fc2eda34708360f37019a3dccfcc1300')
funding_txid = funding_tx.txid()
funding_output_value = 4000000
self.assertEqual('1137c12de4ce0f5b08de8846ba14c0814351a7f0f31457c8ea51a5d4b3c891a3', funding_txid)
wallet1a.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# wallet1 -> wallet2
outputs = [PartialTxOutput.from_address_and_value(wallet2.get_receiving_address(), 1000000)]
tx = wallet1a.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet1a.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet1a.is_mine(wallet1a.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('0100000001a391c8b3d4a551eac85714f3f0a7514381c014ba4688de085b0fcee42dc1371101000000910047304402204f1e1821b93b80a2033d3045325fe5c123d7ef54c2050aa356712eb32111ee670220039825c63cfe5879e808bf95aa365967d06a5f4072154955448becb65b8c5926014751210245c90e040d4f9d1fc136b3d4d6b7535bbb5df2bd27666c21977042cc1e05b5b02103c9a6bebfce6294488315e58137a279b2efe09f1f528ecf93b40675ded3cf0e5f52aefeffffff0240420f000000000017a9149573eb50f3136dff141ac304190f41c8becc92ce8738b32d000000000017a914b815d1b430ae9b632e3834ed537f7956325ee2a98700000000',
str(tx_copy))
self.assertEqual('4649d6b6f8f967a84309de15c6d7403e628aa92ecb4f4d6d21299156fddff9e6', tx_copy.txid())
self.assertEqual('4649d6b6f8f967a84309de15c6d7403e628aa92ecb4f4d6d21299156fddff9e6', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
wallet1a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet2 -> wallet1
outputs = [PartialTxOutput.from_address_and_value(wallet1a.get_receiving_address(), 300000)]
tx = wallet2.mktx(outputs=outputs, password=None, fee=5000, tx_version=1)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
self.assertEqual(wallet2.txin_type, tx.inputs()[0].script_type)
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet2.is_mine(wallet2.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('01000000000101e6f9dffd569129216d4d4fcb2ea98a623e40d7c615de0943a867f9f8b6d6494600000000171600149fad840ed174584ee054bd26f3e411817338c5edfeffffff02e09304000000000017a9145ae3933a6e13100f301f23227b98b0bdb5d16b8487d89a0a000000000017a9148ccd0efb2be5b412c4033715f560ed8f446c8ceb8702473044022020a3c46886b72f4ec561c5983a789098202307eae9679ff74fcb0879f65fff1d0220242ec3bfa747c513ef31874670d9c68ad235892588be55564696dd6690952e5a0121038362bbf0b4918b37e9d7c75930ed3a78e3d445724cb5c37ade4a59b6e411fe4e00000000',
str(tx_copy))
self.assertEqual('ae5dcacdf9e3067e18fcfd33582c24f60f844730e7872049bb627796929879ee', tx_copy.txid())
self.assertEqual('f70bce6418fc44dcab41cbd466086aea54283821487189e4d15c4d1e2d1e267d', tx_copy.wtxid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
wallet1a.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet level checks
self.assertEqual((0, funding_output_value - 1000000 - 5000 + 300000, 0), wallet1a.get_balance())
self.assertEqual((0, 1000000 - 5000 - 300000, 0), wallet2.get_balance())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_rbf(self, mock_save_db):
self.maxDiff = None
config = SimpleConfig({'electrum_path': self.electrum_path})
config.set_key('coin_chooser_output_rounding', False)
for simulate_moving_txs in (False, True):
with self.subTest(msg="_bump_fee_p2pkh_when_there_is_a_change_address", simulate_moving_txs=simulate_moving_txs):
self._bump_fee_p2pkh_when_there_is_a_change_address(
simulate_moving_txs=simulate_moving_txs,
config=config)
with self.subTest(msg="_bump_fee_p2wpkh_when_there_is_a_change_address", simulate_moving_txs=simulate_moving_txs):
self._bump_fee_p2wpkh_when_there_is_a_change_address(
simulate_moving_txs=simulate_moving_txs,
config=config)
with self.subTest(msg="_bump_fee_when_user_sends_max", simulate_moving_txs=simulate_moving_txs):
self._bump_fee_when_user_sends_max(
simulate_moving_txs=simulate_moving_txs,
config=config)
with self.subTest(msg="_bump_fee_when_new_inputs_need_to_be_added", simulate_moving_txs=simulate_moving_txs):
self._bump_fee_when_new_inputs_need_to_be_added(
simulate_moving_txs=simulate_moving_txs,
config=config)
with self.subTest(msg="_bump_fee_p2wpkh_when_there_is_only_a_single_output_and_that_is_a_change_address", simulate_moving_txs=simulate_moving_txs):
self._bump_fee_p2wpkh_when_there_is_only_a_single_output_and_that_is_a_change_address(
simulate_moving_txs=simulate_moving_txs,
config=config)
with self.subTest(msg="_rbf_batching", simulate_moving_txs=simulate_moving_txs):
self._rbf_batching(
simulate_moving_txs=simulate_moving_txs,
config=config)
def _bump_fee_p2pkh_when_there_is_a_change_address(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('fold object utility erase deputy output stadium feed stereo usage modify bean',
config=config)
# bootstrap wallet
funding_tx = Transaction('010000000001011f4db0ecd81f4388db316bc16efb4e9daf874cf4950d54ecb4c0fb372433d68500000000171600143d57fd9e88ef0e70cddb0d8b75ef86698cab0d44fdffffff0280969800000000001976a91472e34cebab371967b038ce41d0e8fa1fb983795e88ac86a0ae020000000017a9149188bc82bdcae077060ebb4f02201b73c806edc887024830450221008e0725d531bd7dee4d8d38a0f921d7b1213e5b16c05312a80464ecc2b649598d0220596d309cf66d5f47cb3df558dbb43c5023a7796a80f5a88b023287e45a4db6b9012102c34d61ceafa8c216f01e05707672354f8119334610f7933a3f80dd7fb6290296bd391400')
funding_txid = funding_tx.txid()
funding_output_value = 10000000
self.assertEqual('03052739fcfa2ead5f8e57e26021b0c2c546bcd3d74c6e708d5046dc58d90762', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('2N1VTMMFb91SH9SNRAkT7z8otP5eZEct4KL', 2500000)]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325501
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007501000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc392705030000000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d7200000000001976a914aab9af3fbee0ab4e5c00d53e92f66d4bcb44f1bd88acbd391400000100fa010000000001011f4db0ecd81f4388db316bc16efb4e9daf874cf4950d54ecb4c0fb372433d68500000000171600143d57fd9e88ef0e70cddb0d8b75ef86698cab0d44fdffffff0280969800000000001976a91472e34cebab371967b038ce41d0e8fa1fb983795e88ac86a0ae020000000017a9149188bc82bdcae077060ebb4f02201b73c806edc887024830450221008e0725d531bd7dee4d8d38a0f921d7b1213e5b16c05312a80464ecc2b649598d0220596d309cf66d5f47cb3df558dbb43c5023a7796a80f5a88b023287e45a4db6b9012102c34d61ceafa8c216f01e05707672354f8119334610f7933a3f80dd7fb6290296bd391400220602a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587a0c8296e57100000000000000000000220203aa6a5d43c6de66d60f50942cf34f20e02c2c6f55349548fbf2cde5dd5d69b9180c8296e571010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc39270503000000006a473044022003660461e018c78c2cc73e12c367062a51f71c79b5123b1508765980cbe131bd02205c09bf00e629ea166e2b810a220a20bf4327b4479fb8d841e0c9bca0f843a009012102a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587afdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d7200000000001976a914aab9af3fbee0ab4e5c00d53e92f66d4bcb44f1bd88acbd391400',
str(tx_copy))
self.assertEqual('212cd9aca604cfb4f2c43161b94e32c1a6bc9773fced360e5d4dda98e84b168d', tx_copy.txid())
self.assertEqual('212cd9aca604cfb4f2c43161b94e32c1a6bc9773fced360e5d4dda98e84b168d', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, funding_output_value - 2500000 - 5000, 0), wallet.get_balance())
# bump tx
tx = wallet.bump_fee(tx=tx_from_any(tx.serialize()), new_fee_rate=70.0)
tx.locktime = 1325501
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007501000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc392705030000000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987a0337200000000001976a914aab9af3fbee0ab4e5c00d53e92f66d4bcb44f1bd88acbd391400000100fa010000000001011f4db0ecd81f4388db316bc16efb4e9daf874cf4950d54ecb4c0fb372433d68500000000171600143d57fd9e88ef0e70cddb0d8b75ef86698cab0d44fdffffff0280969800000000001976a91472e34cebab371967b038ce41d0e8fa1fb983795e88ac86a0ae020000000017a9149188bc82bdcae077060ebb4f02201b73c806edc887024830450221008e0725d531bd7dee4d8d38a0f921d7b1213e5b16c05312a80464ecc2b649598d0220596d309cf66d5f47cb3df558dbb43c5023a7796a80f5a88b023287e45a4db6b9012102c34d61ceafa8c216f01e05707672354f8119334610f7933a3f80dd7fb6290296bd391400220602a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587a0c8296e57100000000000000000000220203aa6a5d43c6de66d60f50942cf34f20e02c2c6f55349548fbf2cde5dd5d69b9180c8296e571010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('01000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc39270503000000006a4730440220228deafd10b344371cb828eda507707f0b01f8b421feae5b079396aef72fa08f02205c63a540ac54b483cb59275ff191c89997be02fcf548a216ed1b1045c5d21041012102a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587afdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987a0337200000000001976a914aab9af3fbee0ab4e5c00d53e92f66d4bcb44f1bd88acbd391400',
str(tx_copy))
self.assertEqual('fa1eba447d88bd84c6ceca16f2767232c488c73a25b51989b2fc6aacaa05d16f', tx_copy.txid())
self.assertEqual('fa1eba447d88bd84c6ceca16f2767232c488c73a25b51989b2fc6aacaa05d16f', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 7484320, 0), wallet.get_balance())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_cpfp_p2pkh(self, mock_save_db):
wallet = self.create_standard_wallet_from_seed('fold object utility erase deputy output stadium feed stereo usage modify bean')
# bootstrap wallet
funding_tx = Transaction('010000000001010f40064d66d766144e17bb3276d96042fd5aee2196bcce7e415f839e55a83de800000000171600147b6d7c7763b9185b95f367cf28e4dc6d09441e73fdffffff02404b4c00000000001976a9141df43441a3a3ee563e560d3ddc7e07cc9f9c3cdb88ac009871000000000017a9143873281796131b1996d2f94ab265327ee5e9d6e28702473044022029c124e5a1e2c6fa12e45ccdbdddb45fec53f33b982389455b110fdb3fe4173102203b3b7656bca07e4eae3554900aa66200f46fec0af10e83daaa51d9e4e62a26f4012103c8f0460c245c954ef563df3b1743ea23b965f98b120497ac53bd6b8e8e9e0f9bbe391400')
funding_txid = funding_tx.txid()
funding_output_value = 5000000
self.assertEqual('9973bf8918afa349b63934432386f585613b51034db6c8628b61ba2feb8a3668', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# cpfp tx
tx = wallet.cpfp(funding_tx, fee=50000)
tx.set_rbf(True)
tx.locktime = 1325502
tx.version = 1
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('010000000168368aeb2fba618b62c8b64d03513b6185f58623433439b649a3af1889bf7399000000006a473044022014139c4c8dd4148851c1306c4901b759799e87a22885a3c23f6a6472a3c580dd02205df8037a19261a80157143ee61d24b64b8f60c3cb196e36e758920669f88eb56012102a7536f0bfbc60c5a8e86e2b9df26431fc062f9f454016dbc26f2467e0bc98b3ffdffffff01f0874b00000000001976a914aab9af3fbee0ab4e5c00d53e92f66d4bcb44f1bd88acbe391400',
str(tx_copy))
self.assertEqual('c064c0dd89077de615f0ff8a626d4a62092c02649ed8266ed4c54302918e87d5', tx_copy.txid())
self.assertEqual('c064c0dd89077de615f0ff8a626d4a62092c02649ed8266ed4c54302918e87d5', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, funding_output_value - 50000, 0), wallet.get_balance())
def _bump_fee_p2wpkh_when_there_is_a_change_address(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage',
config=config)
# bootstrap wallet
funding_tx = Transaction('01000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb391400')
funding_txid = funding_tx.txid()
funding_output_value = 10000000
self.assertEqual('52e669a20a26c8b3df5b41e5e6309b18bcde8e1ad7ea17a18f63b6dc6c8becc0', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('2N1VTMMFb91SH9SNRAkT7z8otP5eZEct4KL', 2500000)]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100720100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d720000000000160014f0fe5c1867a174a12e70165e728a072619455ed5bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d720000000000160014f0fe5c1867a174a12e70165e728a072619455ed50247304402205442705e988abe74bf391b293bb1b886674284a92ed0788c33024f9336d60aef022013a93049d3bed693254cd31a704d70bb988a36750f0b74d0a5b4d9e29c54ca9d0121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('b019bbad45a46ed25365e46e4cae6428fb12ae425977eb93011ffb294cb4977e', tx_copy.txid())
self.assertEqual('ba87313e2b3b42f1cc478843d4d53c72d6e06f6c66ac8cfbe2a59cdac2fd532d', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, funding_output_value - 2500000 - 5000, 0), wallet.get_balance())
# bump tx
tx = wallet.bump_fee(tx=tx_from_any(tx.serialize()), new_fee_rate=70.0)
tx.locktime = 1325500
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100720100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f9870c4a720000000000160014f0fe5c1867a174a12e70165e728a072619455ed5bc391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f9870c4a720000000000160014f0fe5c1867a174a12e70165e728a072619455ed50247304402202a7e412d37f7a54f7ede0f85e58c7f9dc0f7244d222a4f50a90f87b05badeed40220788d4a4a13f660de7d5464dce5e79419361fdd5d1853c7da65469cd32f7981a90121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bc391400',
str(tx_copy))
self.assertEqual('dad75ab7078b9ce9698a83e7a954c1c38b235d3a4ab79bcb340245e3d9b62b93', tx_copy.txid())
self.assertEqual('05a484c64a094724b1c58a15463c8c772a98f084cc23ee636204ad9c4d9e5b51', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 7490060, 0), wallet.get_balance())
def _bump_fee_p2wpkh_when_there_is_only_a_single_output_and_that_is_a_change_address(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage',
config=config)
# bootstrap wallet
funding_tx = Transaction('01000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb391400')
funding_txid = funding_tx.txid()
funding_output_value = 10000000
self.assertEqual('52e669a20a26c8b3df5b41e5e6309b18bcde8e1ad7ea17a18f63b6dc6c8becc0', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('tb1q7rl9cxr85962ztnsze089zs8ycv52hk43f3m9n', '!')]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325499
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100520200000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f882980000000000160014f0fe5c1867a174a12e70165e728a072619455ed5bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a9039800000080000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('02000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f882980000000000160014f0fe5c1867a174a12e70165e728a072619455ed50247304402201050a398878098e695e2fcef181383d529d0bd0c959554bc01c35cc1791dd83b02202a193fbc77ab47879093d01c131fd4f2c80dd76750b7f0be027751ca970b84a50121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('839b4d7ec2480975126ffa0c2a4552a85dd43435b23b375536391943e1f27074', tx_copy.txid())
self.assertEqual('b6fc78267494951771d935ef0338f50b13e62258e54265ad4989fe9ffe98b018', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, funding_output_value - 5000, 0), wallet.get_balance())
# bump tx
tx = wallet.bump_fee(tx=tx_from_any(tx.serialize()), new_fee_rate=75)
tx.locktime = 1325500
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100520200000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff014676980000000000160014f0fe5c1867a174a12e70165e728a072619455ed5bc391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a9039800000080000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('02000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff014676980000000000160014f0fe5c1867a174a12e70165e728a072619455ed502473044022008bcb6fab261e9f4d5ccdd11c389b0620de1a1f493e97df6ec83f0c1a261e96c02205e352d3096cc68d4b1279f05dd4a2b1f9d1134dd01f761d01e21f4a88e608cca0121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bc391400',
str(tx_copy))
self.assertEqual('0787da6829907ede8a322273d19ba47943ac234ad7fd1cb1821f6a0e78fcc003', tx_copy.txid())
self.assertEqual('65760ae60ed5feedfd10a9198b44e483ea64dcfa116d32cf247f45d474ee5ce0', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 9991750, 0), wallet.get_balance())
def _bump_fee_when_user_sends_max(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage',
config=config)
# bootstrap wallet
funding_tx = Transaction('01000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb391400')
funding_txid = funding_tx.txid()
self.assertEqual('52e669a20a26c8b3df5b41e5e6309b18bcde8e1ad7ea17a18f63b6dc6c8becc0', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('2N1VTMMFb91SH9SNRAkT7z8otP5eZEct4KL', '!')]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100530100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987024730440220520ab41536d5d0fac8ad44e6aa4a8258a266121bab1eb6599f1ee86bbc65719d02205944c2fb765fca4753a850beadac49f5305c6722410c347c08cec4d90e3eb4430121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('dc4b622f3225f00edb886011fa02b74630cdbc24cebdd3210d5ea3b68bef5cc9', tx_copy.txid())
self.assertEqual('a00340ee8c90673e05f2cf368601b6bba6a7f0513bd974feb218a326e39b1874', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 0, 0), wallet.get_balance())
# bump tx
tx = wallet.bump_fee(tx=tx_from_any(tx.serialize()), new_fee_rate=70.0)
tx.locktime = 1325500
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100530100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01267898000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987bc391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01267898000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f98702473044022069412007c3a6509fdfcfbe90679395c202c973740b0530b8ff366bc86ebff99d02206a02e3c0beb0921fa7d30379db4999d685d4b97239a2b8c7dd839531c72863110121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bc391400',
str(tx_copy))
self.assertEqual('53824cc67e8fe973b0dfa1b8cc10f4e2441b9b4b2b1eb92576fbba7000c2908a', tx_copy.txid())
self.assertEqual('bb137a5a810bb44d3b1cc77fb4f840e7c8c0f84771f7ce4671c3b1a9f5f93724', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 0, 0), wallet.get_balance())
def _bump_fee_when_new_inputs_need_to_be_added(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage',
config=config)
# bootstrap wallet (incoming funding_tx1)
funding_tx1 = Transaction('01000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb391400')
funding_txid1 = funding_tx1.txid()
#funding_output_value = 10_000_000
self.assertEqual('52e669a20a26c8b3df5b41e5e6309b18bcde8e1ad7ea17a18f63b6dc6c8becc0', funding_txid1)
wallet.receive_tx_callback(funding_txid1, funding_tx1, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('2N1VTMMFb91SH9SNRAkT7z8otP5eZEct4KL', '!')]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100530100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987024730440220520ab41536d5d0fac8ad44e6aa4a8258a266121bab1eb6599f1ee86bbc65719d02205944c2fb765fca4753a850beadac49f5305c6722410c347c08cec4d90e3eb4430121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('dc4b622f3225f00edb886011fa02b74630cdbc24cebdd3210d5ea3b68bef5cc9', tx_copy.txid())
self.assertEqual('a00340ee8c90673e05f2cf368601b6bba6a7f0513bd974feb218a326e39b1874', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 0, 0), wallet.get_balance())
# another incoming transaction (funding_tx2)
funding_tx2 = Transaction('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520000000017160014ba9ca815474a674ff1efb3fc82cf0f3460de8c57fdffffff0230390f000000000017a9148b59abaca8215c0d4b18cbbf715550aa2b50c85b87404b4c000000000016001483c3bc7234f17a209cc5dcce14903b54ee4dab9002473044022038a05f7d38bcf810dfebb39f1feda5cc187da4cf5d6e56986957ddcccedc75d302203ab67ccf15431b4e2aeeab1582b9a5a7821e7ac4be8ebf512505dbfdc7e094fd0121032168234e0ba465b8cedc10173ea9391725c0f6d9fa517641af87926626a5144abd391400')
funding_txid2 = funding_tx2.txid()
#funding_output_value = 5_000_000
self.assertEqual('c36a6e1cd54df108e69574f70bc9b88dc13beddc70cfad9feb7f8f6593255d4a', funding_txid2)
wallet.receive_tx_callback(funding_txid2, funding_tx2, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 5_000_000, 0), wallet.get_balance())
# bump tx
tx = wallet.bump_fee(tx=tx_from_any(tx.serialize()), new_fee_rate=70.0)
tx.locktime = 1325500
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01009b0100000002c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff4a5d2593658f7feb9fadcf70dced3bc18db8c90bf77495e608f14dd51c6e6ac30100000000feffffff025c254c0000000000160014f0fe5c1867a174a12e70165e728a072619455ed5f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987bc391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a90398000000800000000000000000000100f601000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520000000017160014ba9ca815474a674ff1efb3fc82cf0f3460de8c57fdffffff0230390f000000000017a9148b59abaca8215c0d4b18cbbf715550aa2b50c85b87404b4c000000000016001483c3bc7234f17a209cc5dcce14903b54ee4dab9002473044022038a05f7d38bcf810dfebb39f1feda5cc187da4cf5d6e56986957ddcccedc75d302203ab67ccf15431b4e2aeeab1582b9a5a7821e7ac4be8ebf512505dbfdc7e094fd0121032168234e0ba465b8cedc10173ea9391725c0f6d9fa517641af87926626a5144abd391400220602a6ff1ffc189b4776b78e20edca969cc45da3e610cc0cc79925604be43fee469f10e8a9039800000080000000000100000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a903980000008001000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('01000000000102c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff4a5d2593658f7feb9fadcf70dced3bc18db8c90bf77495e608f14dd51c6e6ac30100000000feffffff025c254c0000000000160014f0fe5c1867a174a12e70165e728a072619455ed5f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987024730440220075992f2696076ca14265372c797fa5c6116ef9b8023f36fa7500442fe3e21430220252677cce7b009d8a65681e8f50b78c9a31c6461f67c995b8804041a290893660121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c502473044022018379b52ea52436eaeef1593e08aba78db1fd624b804ab747722f748203d553702204cbe4c87a010c8b67be9034014b503354e72f9c8205172269c00de20883fac61012102a6ff1ffc189b4776b78e20edca969cc45da3e610cc0cc79925604be43fee469fbc391400',
str(tx_copy))
self.assertEqual('056aaf5ec628a492742b083ad7790836e2d12e89061f32d5b517679764fdaff1', tx_copy.txid())
self.assertEqual('0c26d17386408d0111ebc94a5d05f6afd681add632dfbcd986658f9d9fe25ff7', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 4_990_300, 0), wallet.get_balance())
def _rbf_batching(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage',
config=config)
wallet.config.set_key('batch_rbf', True)
# bootstrap wallet (incoming funding_tx1)
funding_tx1 = Transaction('01000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb391400')
funding_txid1 = funding_tx1.txid()
#funding_output_value = 10_000_000
self.assertEqual('52e669a20a26c8b3df5b41e5e6309b18bcde8e1ad7ea17a18f63b6dc6c8becc0', funding_txid1)
wallet.receive_tx_callback(funding_txid1, funding_tx1, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('2N1VTMMFb91SH9SNRAkT7z8otP5eZEct4KL', 2_500_000)]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100720100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d720000000000160014f0fe5c1867a174a12e70165e728a072619455ed5bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d720000000000160014f0fe5c1867a174a12e70165e728a072619455ed50247304402205442705e988abe74bf391b293bb1b886674284a92ed0788c33024f9336d60aef022013a93049d3bed693254cd31a704d70bb988a36750f0b74d0a5b4d9e29c54ca9d0121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('b019bbad45a46ed25365e46e4cae6428fb12ae425977eb93011ffb294cb4977e', tx_copy.txid())
self.assertEqual('ba87313e2b3b42f1cc478843d4d53c72d6e06f6c66ac8cfbe2a59cdac2fd532d', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 7_495_000, 0), wallet.get_balance())
# another incoming transaction (funding_tx2)
funding_tx2 = Transaction('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520000000017160014ba9ca815474a674ff1efb3fc82cf0f3460de8c57fdffffff0230390f000000000017a9148b59abaca8215c0d4b18cbbf715550aa2b50c85b87404b4c000000000016001483c3bc7234f17a209cc5dcce14903b54ee4dab9002473044022038a05f7d38bcf810dfebb39f1feda5cc187da4cf5d6e56986957ddcccedc75d302203ab67ccf15431b4e2aeeab1582b9a5a7821e7ac4be8ebf512505dbfdc7e094fd0121032168234e0ba465b8cedc10173ea9391725c0f6d9fa517641af87926626a5144abd391400')
funding_txid2 = funding_tx2.txid()
#funding_output_value = 5_000_000
self.assertEqual('c36a6e1cd54df108e69574f70bc9b88dc13beddc70cfad9feb7f8f6593255d4a', funding_txid2)
wallet.receive_tx_callback(funding_txid2, funding_tx2, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 12_495_000, 0), wallet.get_balance())
# create new tx (output should be batched with existing!)
# no new input will be needed. just a new output, and change decreased.
outputs = [PartialTxOutput.from_address_and_value('tb1qy6xmdj96v5dzt3j08hgc05yk3kltqsnmw4r6ry', 2_500_000)]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=20000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100910100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff03a025260000000000160014268db6c8ba651a25c64f3dd187d0968dbeb0427ba02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f98720fd4b0000000000160014f0fe5c1867a174a12e70165e728a072619455ed5bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a90398000000800000000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff03a025260000000000160014268db6c8ba651a25c64f3dd187d0968dbeb0427ba02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f98720fd4b0000000000160014f0fe5c1867a174a12e70165e728a072619455ed50247304402206add1d6fc8b5fc6fd1bbf50d06fe432e65b16a9d715dbfe7f2d26473f48a128302207983d8db3508e3b953e6e26581d2bbba5a7ca0ff0dd07361de60977dc61ed1580121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('21112d35fa08b9577bfe46405ad17720d0fa85bcefab0b0a1cffe79b9d6167c4', tx_copy.txid())
self.assertEqual('d49ffdaa832a35d88f3f43bcfb08306347c2342200098f450e41ccb289b26db3', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 9_980_000, 0), wallet.get_balance())
# create new tx (output should be batched with existing!)
# new input will be needed!
outputs = [PartialTxOutput.from_address_and_value('2NCVwbmEpvaXKHpXUGJfJr9iB5vtRN3vcut', 6_000_000)]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=100_000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100da0100000002c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff4a5d2593658f7feb9fadcf70dced3bc18db8c90bf77495e608f14dd51c6e6ac30100000000fdffffff04a025260000000000160014268db6c8ba651a25c64f3dd187d0968dbeb0427ba02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f98760823b0000000000160014f0fe5c1867a174a12e70165e728a072619455ed5808d5b000000000017a914d332f2f63019da6f2d23ee77bbe30eed7739790587bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a90398000000800000000000000000000100f601000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520000000017160014ba9ca815474a674ff1efb3fc82cf0f3460de8c57fdffffff0230390f000000000017a9148b59abaca8215c0d4b18cbbf715550aa2b50c85b87404b4c000000000016001483c3bc7234f17a209cc5dcce14903b54ee4dab9002473044022038a05f7d38bcf810dfebb39f1feda5cc187da4cf5d6e56986957ddcccedc75d302203ab67ccf15431b4e2aeeab1582b9a5a7821e7ac4be8ebf512505dbfdc7e094fd0121032168234e0ba465b8cedc10173ea9391725c0f6d9fa517641af87926626a5144abd391400220602a6ff1ffc189b4776b78e20edca969cc45da3e610cc0cc79925604be43fee469f10e8a90398000000800000000001000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a903980000008001000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(2, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000102c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff4a5d2593658f7feb9fadcf70dced3bc18db8c90bf77495e608f14dd51c6e6ac30100000000fdffffff04a025260000000000160014268db6c8ba651a25c64f3dd187d0968dbeb0427ba02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f98760823b0000000000160014f0fe5c1867a174a12e70165e728a072619455ed5808d5b000000000017a914d332f2f63019da6f2d23ee77bbe30eed7739790587024730440220730ac17af4ac14f008ee5d0a7be524d8ca344afc19b548faa9ac8c21a216df81022010d9cc878402103c1dd6b06e97e7910a23b7ec88251627f47ed1d5a8d741beba0121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c50247304402201005fc1e9091ac36d98b60c1c8b65aada0d4fe4da438d69b3262028644005cfc02207353c987be9e33d1e8702689960df76ac28adacc2f9093d731bc56c9578c5458012102a6ff1ffc189b4776b78e20edca969cc45da3e610cc0cc79925604be43fee469fbb391400',
str(tx_copy))
self.assertEqual('88791bcd352b50592a5521c15595972b14b5d6be165be2df0e57ea19e588c025', tx_copy.txid())
self.assertEqual('7c5e5bff601e5467036b574b41090681a86de403867dd2b14097920b95e392ed', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 3_900_000, 0), wallet.get_balance())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_cpfp_p2wpkh(self, mock_save_db):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage')
# bootstrap wallet
funding_tx = Transaction('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520000000017160014ba9ca815474a674ff1efb3fc82cf0f3460de8c57fdffffff0230390f000000000017a9148b59abaca8215c0d4b18cbbf715550aa2b50c85b87404b4c000000000016001483c3bc7234f17a209cc5dcce14903b54ee4dab9002473044022038a05f7d38bcf810dfebb39f1feda5cc187da4cf5d6e56986957ddcccedc75d302203ab67ccf15431b4e2aeeab1582b9a5a7821e7ac4be8ebf512505dbfdc7e094fd0121032168234e0ba465b8cedc10173ea9391725c0f6d9fa517641af87926626a5144abd391400')
funding_txid = funding_tx.txid()
funding_output_value = 5000000
self.assertEqual('c36a6e1cd54df108e69574f70bc9b88dc13beddc70cfad9feb7f8f6593255d4a', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# cpfp tx
tx = wallet.cpfp(funding_tx, fee=50000)
tx.set_rbf(True)
tx.locktime = 1325501
tx.version = 1
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('010000000001014a5d2593658f7feb9fadcf70dced3bc18db8c90bf77495e608f14dd51c6e6ac30100000000fdffffff01f0874b0000000000160014f0fe5c1867a174a12e70165e728a072619455ed502473044022029314c8fb5e05dcd6e94d26f7d96bd9824290977bdc0602b2ef1faf8aa7da53c022003c0477a2b45f05ec4e06e4669a9c3a9e8d9ad0ab78ed85a37b93064c5358e9a012102a6ff1ffc189b4776b78e20edca969cc45da3e610cc0cc79925604be43fee469fbd391400',
str(tx_copy))
self.assertEqual('6bb0490b29b65c7292f6bb1715982fe4474417b4fbdcf8a4675a0994ce12d156', tx_copy.txid())
self.assertEqual('ce94905afcb396d7bc6de28e4d102dcefc85224abae7df16399b2789f5596db8', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, funding_output_value - 50000, 0), wallet.get_balance())
def test_sweep_p2pk(self):
class NetworkMock:
relay_fee = 1000
async def listunspent_for_scripthash(self, scripthash):
if scripthash == '460e4fb540b657d775d84ff4955c9b13bd954c2adc26a6b998331343f85b6a45':
return [{'tx_hash': 'ac24de8b58e826f60bd7b9ba31670bdfc3e8aedb2f28d0e91599d741569e3429', 'tx_pos': 1, 'height': 1325785, 'value': 1000000}]
else:
return []
async def get_transaction(self, txid):
if txid == "ac24de8b58e826f60bd7b9ba31670bdfc3e8aedb2f28d0e91599d741569e3429":
return "010000000001021b41471d6af3aa80ebe536dbf4f505a6d46af456131a8e12e1950171959b690e0f00000000fdffffff2ef29833a69863b31e884fc5e6f7b99a23b5601e14f0eb65905faa42fec0776d0000000000fdffffff02f96a070000000000160014e61b989a740056254b5f8061281ac96ca15d35e140420f00000000004341049afa8fb50f52104b381a673c6e4fb7fb54987271d0e948dd9a568bb2af6f9310a7a809ce06e09d1510e5836f20414596232e2c0be63715459fa3cf8e7092af05ac0247304402201fe20012c1c732a6a8f942c4e0feed5ed0bddfb94db736ec3d0c0d38f0f7f46a022021d690e6d2688b90b76002f4c3134981502d666211e85e8a6ca91e78405dfa3801210346fb31136ab48e6c648865264d32004b43643d01f0ba485cffac4bb0b3f739470247304402204a2473ab4b3bfc8e6b1a6b8675dc2c3d115d8c04f5df37f29779dca6d300d9db02205e72ebbccd018c67b86ae4da6b0e6222902a8de85915ed6115330b9328764b370121027a93ffc9444a12d99307318e2e538949072cb35b2aca344b8163795a022414c7d73a1400"
else:
raise Exception("unexpected txid")
privkeys = ['93NQ7CFbwTPyKDJLXe97jczw33fiLijam2SCZL3Uinz1NSbHrTu', ]
network = NetworkMock()
dest_addr = 'tb1q3ws2p0qjk5vrravv065xqlnkckvzcpclk79eu2'
sweep_coro = sweep(privkeys, network=network, config=self.config, to_address=dest_addr, fee=5000, locktime=1325785, tx_version=1)
loop = asyncio.get_event_loop()
tx = loop.run_until_complete(sweep_coro)
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('010000000129349e5641d79915e9d0282fdbaee8c3df0b6731bab9d70bf626e8588bde24ac010000004847304402206bf0d0a93abae0d5873a62ebf277a5dd2f33837821e8b93e74d04e19d71b578002201a6d729bc159941ef5c4c9e5fe13ece9fc544351ba531b00f68ba549c8b38a9a01fdffffff01b82e0f00000000001600148ba0a0bc12b51831f58c7ea8607e76c5982c071fd93a1400',
str(tx_copy))
self.assertEqual('7f827fc5256c274fd1094eb7e020c8ded0baf820356f61aa4f14a9093b0ea0ee', tx_copy.txid())
self.assertEqual('7f827fc5256c274fd1094eb7e020c8ded0baf820356f61aa4f14a9093b0ea0ee', tx_copy.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_coinjoin_between_two_p2wpkh_electrum_seeds(self, mock_save_db):
wallet1 = WalletIntegrityHelper.create_standard_wallet(
keystore.from_seed('humor argue expand gain goat shiver remove morning security casual leopard degree', ''),
gap_limit=2,
config=self.config
)
wallet2 = WalletIntegrityHelper.create_standard_wallet(
keystore.from_seed('couple fade lift useless text thank badge act august roof drastic violin', ''),
gap_limit=2,
config=self.config
)
# bootstrap wallet1
funding_tx = Transaction('0200000000010162ecbac2f0c8662f53505d9410fdc56c84c5642ddbd3358d9a27d564e26731130200000000fdffffff02c0d8a70000000000160014aba1c9faecc3f8882e641583e8734a3f9d01b15ab89ed5000000000016001470afbd97b2dc351bd167f714e294b2fd3b60aedf02483045022100c93449989510e279eb14a0193d5c262ae93034b81376a1f6be259c6080d3ba5d0220536ab394f7c20f301d7ec2ef11be6e7b6d492053dce56458931c1b54218ec0fd012103b8f5a11df8e68cf335848e83a41fdad3c7413dc42148248a3799b58c93919ca010851800')
funding_txid = funding_tx.txid()
self.assertEqual('d8f8186379085cffc9a3fd747e7a7527435db974d1e2941f52f063be8e4fbdd5', funding_txid)
wallet1.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# bootstrap wallet2
funding_tx = Transaction('02000000000101d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80100000000fdffffff025066350000000000160014e3aa82aa2e754507d5585c0b6db06cc0cb4927b7a037a000000000001600140719d12228c61cab793ecd659c09cfe565a845c302483045022100f42e27519bd2379c22951c16b038fa6d49164fe6802854f2fdc7ee87fe31a8bc02204ea71e9324781b44bf7fea2f318caf3bedc5b497cbd1b4313fa71f833500bcb7012103a7853e1ee02a1629c8e870ec694a1420aeb98e6f5d071815257028f62d6f784169851800')
funding_txid = funding_tx.txid()
self.assertEqual('934f26a72c840293f06c37dc10a358df056dfe245cdf072ae836977c0abc46e5', funding_txid)
wallet2.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# wallet1 creates tx1, with output back to himself
outputs = [PartialTxOutput.from_address_and_value("tb1qhye4wfp26kn0l7ynpn5a4hvt539xc3zf0n76t3", 10_000_000)]
tx1 = wallet1.mktx(outputs=outputs, fee=5000, tx_version=2, rbf=True, sign=False)
tx1.locktime = 1607022
partial_tx1 = tx1.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100710200000001d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80000000000fdffffff02b82e0f0000000000160014250dbabd5761d7e0773d6147699938dd08ec2eb88096980000000000160014b93357242ad5a6fff8930ce9dadd8ba44a6c44496e851800000100df0200000000010162ecbac2f0c8662f53505d9410fdc56c84c5642ddbd3358d9a27d564e26731130200000000fdffffff02c0d8a70000000000160014aba1c9faecc3f8882e641583e8734a3f9d01b15ab89ed5000000000016001470afbd97b2dc351bd167f714e294b2fd3b60aedf02483045022100c93449989510e279eb14a0193d5c262ae93034b81376a1f6be259c6080d3ba5d0220536ab394f7c20f301d7ec2ef11be6e7b6d492053dce56458931c1b54218ec0fd012103b8f5a11df8e68cf335848e83a41fdad3c7413dc42148248a3799b58c93919ca01085180022060205e8db1b1906219782fadb18e763c0874a3118a17ce931e01707cbde194e041510775087560000008000000000000000000022020240ef5d2efee3b04b313a254df1b13a0b155451581e73943b21f3346bf6e1ba351077508756000000800100000000000000002202024a410b1212e88573561887b2bc38c90c074e4be425b9f3d971a9207825d9d3c8107750875600000080000000000100000000",
partial_tx1)
tx1.prepare_for_export_for_coinjoin()
partial_tx1 = tx1.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100710200000001d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80000000000fdffffff02b82e0f0000000000160014250dbabd5761d7e0773d6147699938dd08ec2eb88096980000000000160014b93357242ad5a6fff8930ce9dadd8ba44a6c44496e851800000100df0200000000010162ecbac2f0c8662f53505d9410fdc56c84c5642ddbd3358d9a27d564e26731130200000000fdffffff02c0d8a70000000000160014aba1c9faecc3f8882e641583e8734a3f9d01b15ab89ed5000000000016001470afbd97b2dc351bd167f714e294b2fd3b60aedf02483045022100c93449989510e279eb14a0193d5c262ae93034b81376a1f6be259c6080d3ba5d0220536ab394f7c20f301d7ec2ef11be6e7b6d492053dce56458931c1b54218ec0fd012103b8f5a11df8e68cf335848e83a41fdad3c7413dc42148248a3799b58c93919ca010851800000000",
partial_tx1)
# wallet2 creates tx2, with output back to himself
outputs = [PartialTxOutput.from_address_and_value("tb1qufnj5k2rrsnpjq7fg6d2pq3q9um6skdyyehw5m", 10_000_000)]
tx2 = wallet2.mktx(outputs=outputs, fee=5000, tx_version=2, rbf=True, sign=False)
tx2.locktime = 1607023
partial_tx2 = tx2.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100710200000001e546bc0a7c9736e82a07df5c24fe6d05df58a310dc376cf09302842ca7264f930100000000fdffffff02988d07000000000016001453675a59be834aa6d139c3ebea56646a9b160c4c8096980000000000160014e2672a59431c261903c9469aa082202f37a859a46f851800000100df02000000000101d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80100000000fdffffff025066350000000000160014e3aa82aa2e754507d5585c0b6db06cc0cb4927b7a037a000000000001600140719d12228c61cab793ecd659c09cfe565a845c302483045022100f42e27519bd2379c22951c16b038fa6d49164fe6802854f2fdc7ee87fe31a8bc02204ea71e9324781b44bf7fea2f318caf3bedc5b497cbd1b4313fa71f833500bcb7012103a7853e1ee02a1629c8e870ec694a1420aeb98e6f5d071815257028f62d6f784169851800220602275b4fba18bb34e5198a9cfb3e940306658839079b3bda50d504a9cf2bae36f41067f36697000000800000000001000000002202036e4d0a5fb845b2f1c3c868c2ce7212b155b73e91c05be1b7a77c48830831ba4f1067f366970000008001000000000000000022020200062fdea2b0a056b17fa6b91dd87f5b5d838fe1ee84d636a5022f9a340eebcc1067f3669700000080000000000000000000",
partial_tx2)
# wallet2 gets raw partial tx1, merges it into his own tx2
tx2.join_with_other_psbt(tx_from_any(partial_tx1))
partial_tx2 = tx2.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100d80200000002e546bc0a7c9736e82a07df5c24fe6d05df58a310dc376cf09302842ca7264f930100000000fdffffffd5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80000000000fdffffff04988d07000000000016001453675a59be834aa6d139c3ebea56646a9b160c4cb82e0f0000000000160014250dbabd5761d7e0773d6147699938dd08ec2eb88096980000000000160014b93357242ad5a6fff8930ce9dadd8ba44a6c44498096980000000000160014e2672a59431c261903c9469aa082202f37a859a46f851800000100df02000000000101d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80100000000fdffffff025066350000000000160014e3aa82aa2e754507d5585c0b6db06cc0cb4927b7a037a000000000001600140719d12228c61cab793ecd659c09cfe565a845c302483045022100f42e27519bd2379c22951c16b038fa6d49164fe6802854f2fdc7ee87fe31a8bc02204ea71e9324781b44bf7fea2f318caf3bedc5b497cbd1b4313fa71f833500bcb7012103a7853e1ee02a1629c8e870ec694a1420aeb98e6f5d071815257028f62d6f784169851800220602275b4fba18bb34e5198a9cfb3e940306658839079b3bda50d504a9cf2bae36f41067f36697000000800000000001000000000100df0200000000010162ecbac2f0c8662f53505d9410fdc56c84c5642ddbd3358d9a27d564e26731130200000000fdffffff02c0d8a70000000000160014aba1c9faecc3f8882e641583e8734a3f9d01b15ab89ed5000000000016001470afbd97b2dc351bd167f714e294b2fd3b60aedf02483045022100c93449989510e279eb14a0193d5c262ae93034b81376a1f6be259c6080d3ba5d0220536ab394f7c20f301d7ec2ef11be6e7b6d492053dce56458931c1b54218ec0fd012103b8f5a11df8e68cf335848e83a41fdad3c7413dc42148248a3799b58c93919ca010851800002202036e4d0a5fb845b2f1c3c868c2ce7212b155b73e91c05be1b7a77c48830831ba4f1067f3669700000080010000000000000000000022020200062fdea2b0a056b17fa6b91dd87f5b5d838fe1ee84d636a5022f9a340eebcc1067f3669700000080000000000000000000",
partial_tx2)
tx2.prepare_for_export_for_coinjoin()
partial_tx2 = tx2.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100d80200000002e546bc0a7c9736e82a07df5c24fe6d05df58a310dc376cf09302842ca7264f930100000000fdffffffd5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80000000000fdffffff04988d07000000000016001453675a59be834aa6d139c3ebea56646a9b160c4cb82e0f0000000000160014250dbabd5761d7e0773d6147699938dd08ec2eb88096980000000000160014b93357242ad5a6fff8930ce9dadd8ba44a6c44498096980000000000160014e2672a59431c261903c9469aa082202f37a859a46f851800000100df02000000000101d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80100000000fdffffff025066350000000000160014e3aa82aa2e754507d5585c0b6db06cc0cb4927b7a037a000000000001600140719d12228c61cab793ecd659c09cfe565a845c302483045022100f42e27519bd2379c22951c16b038fa6d49164fe6802854f2fdc7ee87fe31a8bc02204ea71e9324781b44bf7fea2f318caf3bedc5b497cbd1b4313fa71f833500bcb7012103a7853e1ee02a1629c8e870ec694a1420aeb98e6f5d071815257028f62d6f784169851800000100df0200000000010162ecbac2f0c8662f53505d9410fdc56c84c5642ddbd3358d9a27d564e26731130200000000fdffffff02c0d8a70000000000160014aba1c9faecc3f8882e641583e8734a3f9d01b15ab89ed5000000000016001470afbd97b2dc351bd167f714e294b2fd3b60aedf02483045022100c93449989510e279eb14a0193d5c262ae93034b81376a1f6be259c6080d3ba5d0220536ab394f7c20f301d7ec2ef11be6e7b6d492053dce56458931c1b54218ec0fd012103b8f5a11df8e68cf335848e83a41fdad3c7413dc42148248a3799b58c93919ca0108518000000000000",
partial_tx2)
# wallet2 signs
wallet2.sign_transaction(tx2, password=None)
partial_tx2 = tx2.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100d80200000002e546bc0a7c9736e82a07df5c24fe6d05df58a310dc376cf09302842ca7264f930100000000fdffffffd5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80000000000fdffffff04988d07000000000016001453675a59be834aa6d139c3ebea56646a9b160c4cb82e0f0000000000160014250dbabd5761d7e0773d6147699938dd08ec2eb88096980000000000160014b93357242ad5a6fff8930ce9dadd8ba44a6c44498096980000000000160014e2672a59431c261903c9469aa082202f37a859a46f851800000100df02000000000101d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80100000000fdffffff025066350000000000160014e3aa82aa2e754507d5585c0b6db06cc0cb4927b7a037a000000000001600140719d12228c61cab793ecd659c09cfe565a845c302483045022100f42e27519bd2379c22951c16b038fa6d49164fe6802854f2fdc7ee87fe31a8bc02204ea71e9324781b44bf7fea2f318caf3bedc5b497cbd1b4313fa71f833500bcb7012103a7853e1ee02a1629c8e870ec694a1420aeb98e6f5d071815257028f62d6f78416985180001070001086b0247304402205106349e1644223b5128009376fc497477227172ac28a54942da58014869d4f502205aa60ba466f53b52c5933c39cfa1ab735c1722029039d7a5a7577789ae891389012102275b4fba18bb34e5198a9cfb3e940306658839079b3bda50d504a9cf2bae36f4000100df0200000000010162ecbac2f0c8662f53505d9410fdc56c84c5642ddbd3358d9a27d564e26731130200000000fdffffff02c0d8a70000000000160014aba1c9faecc3f8882e641583e8734a3f9d01b15ab89ed5000000000016001470afbd97b2dc351bd167f714e294b2fd3b60aedf02483045022100c93449989510e279eb14a0193d5c262ae93034b81376a1f6be259c6080d3ba5d0220536ab394f7c20f301d7ec2ef11be6e7b6d492053dce56458931c1b54218ec0fd012103b8f5a11df8e68cf335848e83a41fdad3c7413dc42148248a3799b58c93919ca010851800002202036e4d0a5fb845b2f1c3c868c2ce7212b155b73e91c05be1b7a77c48830831ba4f1067f3669700000080010000000000000000000022020200062fdea2b0a056b17fa6b91dd87f5b5d838fe1ee84d636a5022f9a340eebcc1067f3669700000080000000000000000000",
partial_tx2)
tx2.prepare_for_export_for_coinjoin()
partial_tx2 = tx2.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100d80200000002e546bc0a7c9736e82a07df5c24fe6d05df58a310dc376cf09302842ca7264f930100000000fdffffffd5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80000000000fdffffff04988d07000000000016001453675a59be834aa6d139c3ebea56646a9b160c4cb82e0f0000000000160014250dbabd5761d7e0773d6147699938dd08ec2eb88096980000000000160014b93357242ad5a6fff8930ce9dadd8ba44a6c44498096980000000000160014e2672a59431c261903c9469aa082202f37a859a46f851800000100df02000000000101d5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80100000000fdffffff025066350000000000160014e3aa82aa2e754507d5585c0b6db06cc0cb4927b7a037a000000000001600140719d12228c61cab793ecd659c09cfe565a845c302483045022100f42e27519bd2379c22951c16b038fa6d49164fe6802854f2fdc7ee87fe31a8bc02204ea71e9324781b44bf7fea2f318caf3bedc5b497cbd1b4313fa71f833500bcb7012103a7853e1ee02a1629c8e870ec694a1420aeb98e6f5d071815257028f62d6f78416985180001070001086b0247304402205106349e1644223b5128009376fc497477227172ac28a54942da58014869d4f502205aa60ba466f53b52c5933c39cfa1ab735c1722029039d7a5a7577789ae891389012102275b4fba18bb34e5198a9cfb3e940306658839079b3bda50d504a9cf2bae36f4000100df0200000000010162ecbac2f0c8662f53505d9410fdc56c84c5642ddbd3358d9a27d564e26731130200000000fdffffff02c0d8a70000000000160014aba1c9faecc3f8882e641583e8734a3f9d01b15ab89ed5000000000016001470afbd97b2dc351bd167f714e294b2fd3b60aedf02483045022100c93449989510e279eb14a0193d5c262ae93034b81376a1f6be259c6080d3ba5d0220536ab394f7c20f301d7ec2ef11be6e7b6d492053dce56458931c1b54218ec0fd012103b8f5a11df8e68cf335848e83a41fdad3c7413dc42148248a3799b58c93919ca0108518000000000000",
partial_tx2)
# wallet1 gets raw partial tx2, and signs
tx2 = tx_from_any(partial_tx2)
wallet1.sign_transaction(tx2, password=None)
tx = tx_from_any(tx2.serialize_as_bytes().hex()) # simulates moving partial txn between cosigners
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual("02000000000102e546bc0a7c9736e82a07df5c24fe6d05df58a310dc376cf09302842ca7264f930100000000fdffffffd5bd4f8ebe63f0521f94e2d174b95d4327757a7e74fda3c9ff5c08796318f8d80000000000fdffffff04988d07000000000016001453675a59be834aa6d139c3ebea56646a9b160c4cb82e0f0000000000160014250dbabd5761d7e0773d6147699938dd08ec2eb88096980000000000160014b93357242ad5a6fff8930ce9dadd8ba44a6c44498096980000000000160014e2672a59431c261903c9469aa082202f37a859a40247304402205106349e1644223b5128009376fc497477227172ac28a54942da58014869d4f502205aa60ba466f53b52c5933c39cfa1ab735c1722029039d7a5a7577789ae891389012102275b4fba18bb34e5198a9cfb3e940306658839079b3bda50d504a9cf2bae36f402473044022003010ece3471f7a23f31b2a0fd157f88f7d436c0c73ec408043c7f5dd2b7ccbb02204bd21f5829555c3f94fbd0b5295d1071f739c6b8f2682f8a688e34d0ad26c90101210205e8db1b1906219782fadb18e763c0874a3118a17ce931e01707cbde194e04156f851800",
str(tx))
self.assertEqual('4a33546eeaed0e25f9e6a58968be92a804a7e70a5332360dabc79f93cd059752', tx.txid())
self.assertEqual('32584f78479a1b6f7aeff4f4d0e0323b67c36ce155d010f9b324b6189b91a540', tx.wtxid())
wallet1.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
wallet2.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
# wallet level checks
self.assertEqual((0, 10995000, 0), wallet1.get_balance())
self.assertEqual((0, 10495000, 0), wallet2.get_balance())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_standard_wallet_cannot_sign_multisig_input_even_if_cosigner(self, mock_save_db):
"""Just because our keystore recognizes the pubkeys in a txin, if the prevout does not belong to the wallet,
then wallet.is_mine and wallet.can_sign should return False (e.g. multisig input for single-sig wallet).
(see issue #5948)
"""
wallet_2of2 = WalletIntegrityHelper.create_multisig_wallet(
[
# seed: frost repair depend effort salon ring foam oak cancel receive save usage
# convert_xkey(wallet.get_master_public_key(), "p2wsh")
keystore.from_xpub('Vpub5gqF73Wpbp9ThwEgZKHLjBDthsatXjajYvrN8CVnkdBYeTR1M1sfZFQqQ5wpKHGhnwKhzgMhaWrtgKG2LthCzxjd653KqKVUAw7UrwYnbKQ'),
# seed: bitter grass shiver impose acquire brush forget axis eager alone wine silver
# convert_xkey(wallet.get_master_public_key(), "p2wsh")
keystore.from_xpub('Vpub5gSKXzxK7FeKNi2WPNW9iuA48SbJRZvKFBwtgucpegMWPdohQPeK2DoR6XFtC7BBLsHhfWDAPKaiecqJ7jTzYSfeg5YATowmPcgCWxARabT')
],
'2of2', gap_limit=2,
config=self.config
)
wallet_frost = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage')
# bootstrap wallet_2of2
funding_tx = Transaction('020000000001018ed0132bb5f35d097572081524cd5e847c895e765b93d5af46b8a8bef621244a0100000000fdffffff0220a1070000000000220020302981db44eb5dad0dab3987134a985b360ae2227a7e7a10cfe8cffd23bacdc9b07912000000000016001442b423aab2aa803f957084832b10359beaa2469002473044022065c5e28900b4706487223357e8539e176552e3560e2081ac18de7c26e8e420ba02202755c7fc8177ff502634104c090e3fd4c4252bfa8566d4eb6605bb9e236e7839012103b63bbf85ec9e5e312e4d7a2b45e690f48b916a442e787a47a6092d6c052394c5966a1900')
funding_txid = funding_tx.txid()
self.assertEqual('0c2f5981981a6cb69d7b729feceb55be7962b16dc41e8aaf64e5203f7cb604d0', funding_txid)
wallet_2of2.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('tb1qfrlx5pza9vmez6vpx7swt8yp0nmgz3qa7jjkuf', 100_000)]
coins = wallet_2of2.get_spendable_coins(domain=None)
tx = wallet_2of2.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1665628
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007d0200000001d004b67c3f20e564af8a1ec46db16279be55ebec9f727b9db66c1a9881592f0c0000000000fdffffff02a08601000000000016001448fe6a045d2b3791698137a0e59c817cf681441df806060000000000220020eb428a0bdeca2c1b3731aedb81c0518456875a99755d177d204d6516d8f6b3075c6a1900000100ea020000000001018ed0132bb5f35d097572081524cd5e847c895e765b93d5af46b8a8bef621244a0100000000fdffffff0220a1070000000000220020302981db44eb5dad0dab3987134a985b360ae2227a7e7a10cfe8cffd23bacdc9b07912000000000016001442b423aab2aa803f957084832b10359beaa2469002473044022065c5e28900b4706487223357e8539e176552e3560e2081ac18de7c26e8e420ba02202755c7fc8177ff502634104c090e3fd4c4252bfa8566d4eb6605bb9e236e7839012103b63bbf85ec9e5e312e4d7a2b45e690f48b916a442e787a47a6092d6c052394c5966a19000105475221028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c521030faee9b4a25b7db82023ca989192712cdd4cb53d3d9338591c7909e581ae1c0c52ae2206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000002206030faee9b4a25b7db82023ca989192712cdd4cb53d3d9338591c7909e581ae1c0c10b2e35a7d0000008000000000000000000000010147522102105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea21028584e789e39f41391b2f27852ca18abec06a5411c21be350fed61eec7120de5352ae220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a903980000008001000000000000002202028584e789e39f41391b2f27852ca18abec06a5411c21be350fed61eec7120de5310b2e35a7d00000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('652c1a903a659c9fabb9caf4a2281a9fbcc59cd598bf6edc88cd60f940c2352c', tx.txid())
self.assertEqual('tb1qxq5crk6yadw66rdt8xr3xj5ctvmq4c3z0fl85yx0ar8l6ga6ehysk0rjrk', tx.inputs()[0].address)
self.assertEqual('tb1qfrlx5pza9vmez6vpx7swt8yp0nmgz3qa7jjkuf', tx.outputs()[0].address)
self.assertEqual('tb1qadpg5z77egkpkde34mdcrsz3s3tgwk5ew4w3wlfqf4j3dk8kkvrs3t3mn0', tx.outputs()[1].address)
# check that wallet_frost does not mistakenly think tx is related to it in any way
tx.add_info_from_wallet(wallet_frost)
self.assertFalse(wallet_frost.can_sign(tx))
self.assertFalse(any([wallet_frost.is_mine(txin.address) for txin in tx.inputs()]))
self.assertFalse(any([wallet_frost.is_mine(txout.address) for txout in tx.outputs()]))
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_dscancel(self, mock_save_db):
self.maxDiff = None
config = SimpleConfig({'electrum_path': self.electrum_path})
config.set_key('coin_chooser_output_rounding', False)
for simulate_moving_txs in (False, True):
with self.subTest(msg="_dscancel_when_all_outputs_are_ismine", simulate_moving_txs=simulate_moving_txs):
self._dscancel_when_all_outputs_are_ismine(
simulate_moving_txs=simulate_moving_txs,
config=config)
with self.subTest(msg="_dscancel_p2wpkh_when_there_is_a_change_address", simulate_moving_txs=simulate_moving_txs):
self._dscancel_p2wpkh_when_there_is_a_change_address(
simulate_moving_txs=simulate_moving_txs,
config=config)
with self.subTest(msg="_dscancel_when_user_sends_max", simulate_moving_txs=simulate_moving_txs):
self._dscancel_when_user_sends_max(
simulate_moving_txs=simulate_moving_txs,
config=config)
def _dscancel_when_all_outputs_are_ismine(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('fold object utility erase deputy output stadium feed stereo usage modify bean',
config=config)
# bootstrap wallet
funding_tx = Transaction('010000000001011f4db0ecd81f4388db316bc16efb4e9daf874cf4950d54ecb4c0fb372433d68500000000171600143d57fd9e88ef0e70cddb0d8b75ef86698cab0d44fdffffff0280969800000000001976a91472e34cebab371967b038ce41d0e8fa1fb983795e88ac86a0ae020000000017a9149188bc82bdcae077060ebb4f02201b73c806edc887024830450221008e0725d531bd7dee4d8d38a0f921d7b1213e5b16c05312a80464ecc2b649598d0220596d309cf66d5f47cb3df558dbb43c5023a7796a80f5a88b023287e45a4db6b9012102c34d61ceafa8c216f01e05707672354f8119334610f7933a3f80dd7fb6290296bd391400')
funding_txid = funding_tx.txid()
funding_output_value = 10000000
self.assertEqual('03052739fcfa2ead5f8e57e26021b0c2c546bcd3d74c6e708d5046dc58d90762', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('miFLSDZBXUo4on8PGhTRTAufUn4mP61uoH', '!')]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1859362
tx.version = 2
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01005502000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc392705030000000000fdffffff01f8829800000000001976a9141df43441a3a3ee563e560d3ddc7e07cc9f9c3cdb88ac225f1c00000100fa010000000001011f4db0ecd81f4388db316bc16efb4e9daf874cf4950d54ecb4c0fb372433d68500000000171600143d57fd9e88ef0e70cddb0d8b75ef86698cab0d44fdffffff0280969800000000001976a91472e34cebab371967b038ce41d0e8fa1fb983795e88ac86a0ae020000000017a9149188bc82bdcae077060ebb4f02201b73c806edc887024830450221008e0725d531bd7dee4d8d38a0f921d7b1213e5b16c05312a80464ecc2b649598d0220596d309cf66d5f47cb3df558dbb43c5023a7796a80f5a88b023287e45a4db6b9012102c34d61ceafa8c216f01e05707672354f8119334610f7933a3f80dd7fb6290296bd391400220602a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587a0c8296e571000000000000000000220202a7536f0bfbc60c5a8e86e2b9df26431fc062f9f454016dbc26f2467e0bc98b3f0c8296e571000000000100000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('02000000016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc39270503000000006a47304402200c1ad6499cfd7a808c2463e211e0aaf503a571c85b679e69af215b76f05ad74d022066fccfec30164ad62686734ec3eca024e33e935b1bf30a98df85d87f01ba1b5f012102a807c07bd7975211078e916bdda061d97e98d59a3631a804aada2f9a3f5b587afdffffff01f8829800000000001976a9141df43441a3a3ee563e560d3ddc7e07cc9f9c3cdb88ac225f1c00',
str(tx_copy))
self.assertEqual('200d5173d3113e9cec7a63e885b64836245572d93b6dda4035f3ed44341b6277', tx_copy.txid())
self.assertEqual('200d5173d3113e9cec7a63e885b64836245572d93b6dda4035f3ed44341b6277', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, funding_output_value - 5000, 0), wallet.get_balance())
# cancel tx
tx_details = wallet.get_tx_info(tx_from_any(tx.serialize()))
self.assertFalse(tx_details.can_dscancel)
def _dscancel_p2wpkh_when_there_is_a_change_address(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage',
config=config)
# bootstrap wallet
funding_tx = Transaction('01000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb391400')
funding_txid = funding_tx.txid()
funding_output_value = 10000000
self.assertEqual('52e669a20a26c8b3df5b41e5e6309b18bcde8e1ad7ea17a18f63b6dc6c8becc0', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('2N1VTMMFb91SH9SNRAkT7z8otP5eZEct4KL', 2500000)]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100720100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d720000000000160014f0fe5c1867a174a12e70165e728a072619455ed5bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff02a02526000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987585d720000000000160014f0fe5c1867a174a12e70165e728a072619455ed50247304402205442705e988abe74bf391b293bb1b886674284a92ed0788c33024f9336d60aef022013a93049d3bed693254cd31a704d70bb988a36750f0b74d0a5b4d9e29c54ca9d0121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('b019bbad45a46ed25365e46e4cae6428fb12ae425977eb93011ffb294cb4977e', tx_copy.txid())
self.assertEqual('ba87313e2b3b42f1cc478843d4d53c72d6e06f6c66ac8cfbe2a59cdac2fd532d', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, funding_output_value - 2500000 - 5000, 0), wallet.get_balance())
# cancel tx
tx_details = wallet.get_tx_info(tx_from_any(tx.serialize()))
self.assertTrue(tx_details.can_dscancel)
tx = wallet.dscancel(tx=tx_from_any(tx.serialize()), new_fee_rate=70.0)
tx.locktime = 1859397
tx.version = 2
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100520200000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff016c78980000000000160014f0fe5c1867a174a12e70165e728a072619455ed5455f1c00000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a9039800000080000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('02000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff016c78980000000000160014f0fe5c1867a174a12e70165e728a072619455ed50247304402201e706f7ab50e4212a98782e483476102cd6579dad91196002b13dedec79a9a6302205ae30e6c3cf6dd8c566ddae090eeedaac09ba0adc4c0205dfa77bc627621a6b70121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5455f1c00',
str(tx_copy))
self.assertEqual('165f82b1440cd3a31c005cec660cf834917a1e0a89011805a620c702840fc46a', tx_copy.txid())
self.assertEqual('a164fff4f4231a09e8745eb27d0fe636c5c291400b8506d932b0bde6ff8cf9ee', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 9992300, 0), wallet.get_balance())
def _dscancel_when_user_sends_max(self, *, simulate_moving_txs, config):
wallet = self.create_standard_wallet_from_seed('frost repair depend effort salon ring foam oak cancel receive save usage',
config=config)
# bootstrap wallet
funding_tx = Transaction('01000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb391400')
funding_txid = funding_tx.txid()
self.assertEqual('52e669a20a26c8b3df5b41e5e6309b18bcde8e1ad7ea17a18f63b6dc6c8becc0', funding_txid)
wallet.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create tx
outputs = [PartialTxOutput.from_address_and_value('2N1VTMMFb91SH9SNRAkT7z8otP5eZEct4KL', '!')]
coins = wallet.get_spendable_coins(domain=None)
tx = wallet.make_unsigned_transaction(coins=coins, outputs=outputs, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325499
tx.version = 1
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100530100000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987bb391400000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a903980000008000000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
tx_copy = tx_from_any(tx.serialize())
self.assertTrue(wallet.is_mine(wallet.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
self.assertEqual(tx.wtxid(), tx_copy.wtxid())
self.assertEqual('01000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff01f88298000000000017a9145a71fc1a7a98ddd67be935ade1600981c0d066f987024730440220520ab41536d5d0fac8ad44e6aa4a8258a266121bab1eb6599f1ee86bbc65719d02205944c2fb765fca4753a850beadac49f5305c6722410c347c08cec4d90e3eb4430121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c5bb391400',
str(tx_copy))
self.assertEqual('dc4b622f3225f00edb886011fa02b74630cdbc24cebdd3210d5ea3b68bef5cc9', tx_copy.txid())
self.assertEqual('a00340ee8c90673e05f2cf368601b6bba6a7f0513bd974feb218a326e39b1874', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 0, 0), wallet.get_balance())
# cancel tx
tx_details = wallet.get_tx_info(tx_from_any(tx.serialize()))
self.assertTrue(tx_details.can_dscancel)
tx = wallet.dscancel(tx=tx_from_any(tx.serialize()), new_fee_rate=70.0)
tx.locktime = 1859455
tx.version = 2
if simulate_moving_txs:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100520200000001c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff016c78980000000000160014f0fe5c1867a174a12e70165e728a072619455ed57f5f1c00000100fda20101000000000102acd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba020000001716001455c7f5e0631d8e6f5f05dddb9f676cec48845532fdffffffd146691ef6a207b682b13da5f2388b1f0d2a2022c8cfb8dc27b65434ec9ec8f701000000171600147b3be8a7ceaf15f57d7df2a3d216bc3c259e3225fdffffff02a9875b000000000017a914ea5a99f83e71d1c1dfc5d0370e9755567fe4a141878096980000000000160014d4ca56fcbad98fb4dcafdc573a75d6a6fffb09b702483045022100dde1ba0c9a2862a65791b8d91295a6603207fb79635935a67890506c214dd96d022046c6616642ef5971103c1db07ac014e63fa3b0e15c5729eacdd3e77fcb7d2086012103a72410f185401bb5b10aaa30989c272b554dc6d53bda6da85a76f662723421af024730440220033d0be8f74e782fbcec2b396647c7715d2356076b442423f23552b617062312022063c95cafdc6d52ccf55c8ee0f9ceb0f57afb41ea9076eb74fe633f59c50c6377012103b96a4954d834fbcfb2bbf8cf7de7dc2b28bc3d661c1557d1fd1db1bfc123a94abb3914002206028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c510e8a9039800000080000000000000000000220202105dd9133f33cbd4e50443ef9af428c0be61f097f8942aaa916f50b530125aea10e8a9039800000080010000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertFalse(tx.is_complete())
wallet.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
tx_copy = tx_from_any(tx.serialize())
self.assertEqual('02000000000101c0ec8b6cdcb6638fa117ead71a8edebc189b30e6e5415bdfb3c8260aa269e6520100000000fdffffff016c78980000000000160014f0fe5c1867a174a12e70165e728a072619455ed502473044022013892ba1580bd8b35fe74cb7a0dceb6914b01ed5cfef6435b94ac0256866971c02200290d08d5f199fcdbba1a2dc4884f5cdea0177cb88e423d8588480d6a5fd62740121028d4c44ca36d2c4bff3813df8d5d3c0278357521ecb892cd694c473c03970e4c57f5f1c00',
str(tx_copy))
self.assertEqual('42e222b8faff6cb7fcb82697e04f7bc88a5ed57293773a57a5e400ce0450203e', tx_copy.txid())
self.assertEqual('0c6511d0c008604948ea68b0f8cb3da00966c5a97a08a220716ff47eecd4922d', tx_copy.wtxid())
wallet.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual((0, 9992300, 0), wallet.get_balance())
class TestWalletOfflineSigning(TestCaseForTestnet):
def setUp(self):
super().setUp()
self.config = SimpleConfig({'electrum_path': self.electrum_path})
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_old_electrum_seed_online_mpk(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
keystore.from_seed('alone body father children lead goodbye phone twist exist grass kick join', '', False),
gap_limit=4,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_standard_wallet(
keystore.from_master_key('cd805ed20aec61c7a8b409c121c6ba60a9221f46d20edbc2be83ebd91460e97937cd7d782e77c1cb08364c6bc1c98bc040fdad53f22f29f7d3a85c8e51f9c875'),
gap_limit=4,
config=self.config
)
# bootstrap wallet_online
funding_tx = Transaction('01000000000101161115f8d8110001aa0883989487f9c7a2faf4451038e4305c7594c5236cbb490100000000fdffffff0338117a0000000000160014c1d7b2ded7017cbde837aab36c1e7b2a3952a57800127a00000000001600143e2ab71fc9738ce16fbe6b3b1c210a68c12db84180969800000000001976a91424b64d981d621c227716b51479faf33019371f4688ac0247304402207a5efc6d970f6a5fdcd1933f68b353b4bf2904743f9f1dc3e9177d8754074baf02202eed707e661493bc450357f12cd7a8b8c610c7cb32ded10516c2933a2ba4346a01210287dce03f594fd889726b13a12970237992a0094a5c9f4eebcca6d50d454b39e9ff121600')
funding_txid = funding_tx.txid()
self.assertEqual('3b9e0581602f4656cb04633dac13662bc62d9f5191caa15cc901dcc76e430856', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1qyw3c0rvn6kk2c688y3dygvckn57525y8qnxt3a', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1446655
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007401000000015608436ec7dc01c95ca1ca91519f2dc62b6613ac3d6304cb56462f6081059e3b0200000000fdffffff02a02526000000000016001423a3878d93d5acac68e7245a4433169d3d455087585d7200000000001976a914b6a6bbbc4cf9da58786a8acc58291e218d52130688acff121600000100fd000101000000000101161115f8d8110001aa0883989487f9c7a2faf4451038e4305c7594c5236cbb490100000000fdffffff0338117a0000000000160014c1d7b2ded7017cbde837aab36c1e7b2a3952a57800127a00000000001600143e2ab71fc9738ce16fbe6b3b1c210a68c12db84180969800000000001976a91424b64d981d621c227716b51479faf33019371f4688ac0247304402207a5efc6d970f6a5fdcd1933f68b353b4bf2904743f9f1dc3e9177d8754074baf02202eed707e661493bc450357f12cd7a8b8c610c7cb32ded10516c2933a2ba4346a01210287dce03f594fd889726b13a12970237992a0094a5c9f4eebcca6d50d454b39e9ff121600420604e79eb77f2f3f989f5e9d090bc0af50afeb0d5bd6ec916f2022c5629ed022e84a87584ef647d69f073ea314a0f0c110ebe24ad64bc1922a10819ea264fc3f35f50c343ddcab000000000100000000004202048e2004ca581afcc54a5d9b3b47affdf48b3f89e16d5bd96774fc0f167f2d7873bac6264e3d1f1bb96f64d1530a54e026e0bd7d674151d146fba582e79f4ef5e80c343ddcab010000000000000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual('01000000015608436ec7dc01c95ca1ca91519f2dc62b6613ac3d6304cb56462f6081059e3b020000008a47304402206bed3e02af8a38f6ba2fa3bf5908cb8c643aa62e78e8de6d9af2e19dec55fafc0220039cc1d81d4e5e0292bbc54ea92b8ec4ec016d4828eedc8975a66952cedf13a1014104e79eb77f2f3f989f5e9d090bc0af50afeb0d5bd6ec916f2022c5629ed022e84a87584ef647d69f073ea314a0f0c110ebe24ad64bc1922a10819ea264fc3f35f5fdffffff02a02526000000000016001423a3878d93d5acac68e7245a4433169d3d455087585d7200000000001976a914b6a6bbbc4cf9da58786a8acc58291e218d52130688acff121600',
str(tx))
self.assertEqual('06032230d0bf6a277bc4f8c39e3311a712e0e614626d0dea7cc9f592abfae5d8', tx.txid())
self.assertEqual('06032230d0bf6a277bc4f8c39e3311a712e0e614626d0dea7cc9f592abfae5d8', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_xprv_online_xpub_p2pkh(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39: "qwe", der: m/44'/1'/0'
keystore.from_xprv('tprv8gfKwjuAaqtHgqxMh1tosAQ28XvBMkcY5NeFRA3pZMpz6MR4H4YZ3MJM4fvNPnRKeXR1Td2vQGgjorNXfo94WvT5CYDsPAqjHxSn436G1Eu'),
gap_limit=4,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_standard_wallet(
keystore.from_xpub('tpubDDMN69wQjDZxaJz9afZQGa48hZS7X5oSegF2hg67yddNvqfpuTN9DqvDEp7YyVf7AzXnqBqHdLhzTAStHvsoMDDb8WoJQzNrcHgDJHVYgQF'),
gap_limit=4,
config=self.config
)
# bootstrap wallet_online
funding_tx = Transaction('01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a19391400')
funding_txid = funding_tx.txid()
self.assertEqual('98574bc5f6e75769eb0c93d41453cc1dfbd15c14e63cc3c42f37cdbd08858762', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1qp0mv2sxsyxxfj5gl0332f9uyez93su9cf26757', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325340
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
orig_tx = tx
for uses_qr_code in (False, True):
with self.subTest(msg="uses_qr_code", uses_qr_code=uses_qr_code):
tx = copy.deepcopy(orig_tx)
if uses_qr_code:
partial_tx = tx.to_qr_data()
self.assertEqual("8VXO.MYW+UE2.+5LGGVQP.$087REZNQ8:6*U1CLU+NW7:.T7K04HTV.JW78BXOF$IM*4YYL6LWVSZ4QA0Q-1*8W38XJH833$K3EUK:87-TGQ86XAQ3/RD*PZKM1RLVRAVCFG/8.UHCF8IX*ED1HXNGI*WQ37K*HWJ:XXNKMU.M2A$IYUM-AR:*P34/.EGOQF-YUJ.F0UF$LMW-YXWQU$$CMXD4-L21B7X5/OL7MKXCAD5-9IL/TDP5J2$13KFIH2K5B0/2F*/-XCY:/G-+8K*+1U$56WUE3:J/8KOGSRAN66CNZLG7Y4IB$Y*.S64CC2A9Q/-P5TQFZCF7F+CYG+V363/ME.W0WTPXJM3BC.YPH+Y3K7VIF2+0D.O.JS4LYMZ",
partial_tx)
else:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff010074010000000162878508bdcd372fc4c33ce6145cd1fb1dcc5314d4930ceb6957e7f6c54b57980200000000fdffffff02a0252600000000001600140bf6c540d0218c99511f7c62a49784c88b1870b8585d7200000000001976a9149b308d0b3efd4e3469441bc83c3521afde4072b988ac1c391400000100fd4c0d01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a19391400220602ab053d10eda769fab03ab52ee4f1692730288751369643290a8506e31d1e80f00c233d2ae40000000002000000000022020327295144ffff9943356c2d6625f5e2d6411bab77fd56dce571fda6234324e3d90c233d2ae4010000000000000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual('d9c21696eca80321933e7444ca928aaf25eeda81aaa2f4e5c085d4d0a9cf7aa7', tx.txid())
self.assertEqual('d9c21696eca80321933e7444ca928aaf25eeda81aaa2f4e5c085d4d0a9cf7aa7', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_xprv_online_xpub_p2wpkh_p2sh(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39: "qwe", der: m/49'/1'/0'
keystore.from_xprv('uprv8zHHrMQMQ26utWwNJ5MK2SXpB9hbmy7pbPaneii69xT8cZTyFpxQFxkknGWKP8dxBTZhzy7yP6cCnLrRCQjzJDk3G61SjZpxhFQuB2NR8a5'),
gap_limit=4,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_standard_wallet(
keystore.from_xpub('upub5DGeFrwFEPfD711qQ6tKPaUYjBY6BRqfxcWPT77hiHz7VMo7oNGeom5EdXoKXEazePyoN3ueJMqHBfp3MwmsaD8k9dFHoa8KGeVXev7Pbg2'),
gap_limit=4,
config=self.config
)
# bootstrap wallet_online
funding_tx = Transaction('01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a19391400')
funding_txid = funding_tx.txid()
self.assertEqual('98574bc5f6e75769eb0c93d41453cc1dfbd15c14e63cc3c42f37cdbd08858762', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1qp0mv2sxsyxxfj5gl0332f9uyez93su9cf26757', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325341
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff010072010000000162878508bdcd372fc4c33ce6145cd1fb1dcc5314d4930ceb6957e7f6c54b57980300000000fdffffff02a0252600000000001600140bf6c540d0218c99511f7c62a49784c88b1870b8585d72000000000017a914191e7373ae7b4829532220e8f281f4581ed52638871d391400000100fd4c0d01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a193914000104160014105db4dae7e5b8dd4dda7b7d3b1e588c9bf26f192206030dddd5d3c31738ca2d8b25391f648af6a8b08e6961e8f56d4173d03e9db82d3e0c105d19280000000002000000000001001600144f485261505d5cbd33dce02a723776c99240c28722020211ab9359cc49c95b3b9a87ee95fd4edf0cecce862f9e9f86ff63e10880baaba80c105d1928010000000000000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('3f0d188519237478258ad2bf881643618635d11c2bb95512e830fcf2eda3c522', tx_copy.txid())
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('3f0d188519237478258ad2bf881643618635d11c2bb95512e830fcf2eda3c522', tx.txid())
self.assertEqual('27b78ec072a403b0545258e7a1a8d494e4b6fd48bf77f4251a12160c92207cbc', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_xprv_online_xpub_p2wpkh(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39: "qwe", der: m/84'/1'/0'
keystore.from_xprv('vprv9K9hbuA23Bidgj1KRSHUZMa59jJLeZBpXPVn4RP7sBLArNhZxJjw4AX7aQmVTErDt4YFC11ptMLjbwxgrsH8GLQ1cx77KggWeVPeDBjr9xM'),
gap_limit=4,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_standard_wallet(
keystore.from_xpub('vpub5Y941QgusZGvuD5nXTpUvVWohm8q41uftcRNronjRWs9jB2iVr4BbxqbRfAoQjWHgJtDCQEXChgfsPbEuBnidtkFztZSD3zDKTrtwXa2LCa'),
gap_limit=4,
config=self.config
)
# bootstrap wallet_online
funding_tx = Transaction('01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a19391400')
funding_txid = funding_tx.txid()
self.assertEqual('98574bc5f6e75769eb0c93d41453cc1dfbd15c14e63cc3c42f37cdbd08858762', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1qp0mv2sxsyxxfj5gl0332f9uyez93su9cf26757', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325341
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
orig_tx = tx
for uses_qr_code in (False, True):
with self.subTest(msg="uses_qr_code", uses_qr_code=uses_qr_code):
tx = copy.deepcopy(orig_tx)
if uses_qr_code:
partial_tx = tx.to_qr_data()
self.assertEqual("FP:A9SADM6+OGU/3KZ/RCI$7/Y2R7OZYNZXB1.$0Y9K69-BXZZ1EAWLM0/*SYX7G:1/0N9+E5YWF0KRPK/Y-GJSJ7TM/A0N0RO.H*S**8E*$W1P7-3RA-+I.1BA77$P8CSX55OHNIIG735$UEH5XTW5DDVD/HK*EQNTI:E3PO:K3$MSN4C3+LIR/-U91-Z9NS/AF*9BZ53VN.XPKD0$.GN*9HOFL3L7MA7ECA86IPZ1J-HJY:$EPZC*3D:+T-L195ULV7:DJ$$Q$H9:+UR:8:5X*S:YC9/HV-$+XQY8/*S1UN9UCE8R786.RW8V$TGQPUCP$KHFM-18I0Q7*RIHI-U0ULUSCG6L3YAS*O4:AEBQLHB37RHRI1E91",
partial_tx)
else:
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff010071010000000162878508bdcd372fc4c33ce6145cd1fb1dcc5314d4930ceb6957e7f6c54b57980100000000fdffffff02a0252600000000001600140bf6c540d0218c99511f7c62a49784c88b1870b8585d7200000000001600145543fe1a1364b806b27a5c9dc92ac9bbf0d42aa31d391400000100fd4c0d01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a19391400220603fd88f32a81e812af0187677fc0e7ac9b7fb63ca68c2d98c2afbcf99aa311ac060cdf758ae500000000020000000000220202ac05f54ef082ac98302d57d532e728653565bd55f46fcf03cacbddb168fd6c760cdf758ae5010000000000000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('ee76c0c6da87f0eb5ab4d1ae05d3942512dcd3c4c42518f9d3619e74400cfc1f', tx_copy.txid())
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('ee76c0c6da87f0eb5ab4d1ae05d3942512dcd3c4c42518f9d3619e74400cfc1f', tx.txid())
self.assertEqual('484e350beaa722a744bb3e2aa38de005baa8526d86536d6143e5814355acf775', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_offline_signing_beyond_gap_limit(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39: "qwe", der: m/84'/1'/0'
keystore.from_xprv('vprv9K9hbuA23Bidgj1KRSHUZMa59jJLeZBpXPVn4RP7sBLArNhZxJjw4AX7aQmVTErDt4YFC11ptMLjbwxgrsH8GLQ1cx77KggWeVPeDBjr9xM'),
gap_limit=1, # gap limit of offline wallet intentionally set too low
config=self.config
)
wallet_online = WalletIntegrityHelper.create_standard_wallet(
keystore.from_xpub('vpub5Y941QgusZGvuD5nXTpUvVWohm8q41uftcRNronjRWs9jB2iVr4BbxqbRfAoQjWHgJtDCQEXChgfsPbEuBnidtkFztZSD3zDKTrtwXa2LCa'),
gap_limit=4,
config=self.config
)
# bootstrap wallet_online
funding_tx = Transaction('01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a19391400')
funding_txid = funding_tx.txid()
self.assertEqual('98574bc5f6e75769eb0c93d41453cc1dfbd15c14e63cc3c42f37cdbd08858762', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1qp0mv2sxsyxxfj5gl0332f9uyez93su9cf26757', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325341
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff010071010000000162878508bdcd372fc4c33ce6145cd1fb1dcc5314d4930ceb6957e7f6c54b57980100000000fdffffff02a0252600000000001600140bf6c540d0218c99511f7c62a49784c88b1870b8585d7200000000001600145543fe1a1364b806b27a5c9dc92ac9bbf0d42aa31d391400000100fd4c0d01000000000116e9c9dac2651672316aab3b9553257b6942c5f762c5d795776d9cfa504f183c000000000000fdffffff8085019852fada9da84b58dcf753d292dde314a19f5a5527f6588fa2566142130000000000fdffffffa4154a48db20ce538b28722a89c6b578bd5b5d60d6d7b52323976339e39405230000000000fdffffff0b5ef43f843a96364aebd708e25ea1bdcf2c7df7d0d995560b8b1be5f357b64f0100000000fdffffffd41dfe1199c76fdb3f20e9947ea31136d032d9da48c5e45d85c8f440e2351a510100000000fdffffff5bd015d17e4a1837b01c24ebb4a6b394e3da96a85442bd7dc6abddfbf16f20510000000000fdffffff13a3e7f80b1bd46e38f2abc9e2f335c18a4b0af1778133c7f1c3caae9504345c0200000000fdffffffdf4fc1ab21bca69d18544ddb10a913cd952dbc730ab3d236dd9471445ff405680100000000fdffffffe0424d78a30d5e60ac6b26e2274d7d6e7c6b78fe0b49bdc3ac4dd2147c9535750100000000fdffffff7ab6dd6b3c0d44b0fef0fdc9ab0ad6eee23eef799eee29c005d52bc4461998760000000000fdffffff48a77e5053a21acdf4f235ce00c82c9bc1704700f54d217f6a30704711b9737d0000000000fdffffff86918b39c1d9bb6f34d9b082182f73cedd15504331164dc2b186e95c568ccb870000000000fdffffff15a847356cbb44be67f345965bb3f2589e2fec1c9a0ada21fd28225dcc602e8f0100000000fdffffff9a2875297f81dfd3b77426d63f621db350c270cc28c634ad86b9969ee33ac6960000000000fdffffffd6eeb1d1833e00967083d1ab86fa5a2e44355bd613d9277135240fe6f60148a20100000000fdffffffd8a6e5a9b68a65ff88220ca33e36faf6f826ae8c5c8a13fe818a5e63828b68a40100000000fdffffff73aab8471f82092e45ed1b1afeffdb49ea1ec74ce4853f971812f6a72a7e85aa0000000000fdffffffacd6459dec7c3c51048eb112630da756f5d4cb4752b8d39aa325407ae0885cba0000000000fdffffff1eddd5e13bef1aba1ff151762b5860837daa9b39db1eae8ea8227c81a5a1c8ba0000000000fdffffff67a096ff7c343d39e96929798097f6d7a61156bbdb905fbe534ba36f273271d40100000000fdffffff109a671eb7daf6dcd07c0ceff99f2de65864ab36d64fb3a890bab951569adeee0100000000fdffffff4f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0200000000fdffffff042f280000000000001600149c756aa33f4f89418b33872a973274b5445c727b80969800000000001600146c540c1c9f546004539f45318b8d9f4d7b4857ef80969800000000001976a91422a6daa4a7b695c8a2dd104d47c5dc73d655c96f88ac809698000000000017a914a6885437e0762013facbda93894202a0fe86e35f8702473044022075ef5f04d7a63347064938e15a0c74277a79e5c9d32a26e39e8a517a44d565cc022015246790fb5b29c9bf3eded1b95699b1635bcfc6d521886fddf1135ba1b988ec012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe02473044022061aa9b0d9649ffd7259bc54b35f678565dbbe11507d348dd8885522eaf1fa70c02202cc79de09e8e63e8d57fde6ef66c079ddac4d9828e1936a9db833d4c142615c3012103a8f58fc1f5625f18293403104874f2d38c9279f777e512570e4199c7d292b81b0247304402207744dc1ab0bf77c081b58540c4321d090c0a24a32742a361aa55ad86f0c7c24e02201a9b0dd78b63b495ab5a0b5b161c54cb085d70683c90e188bb4dc2e41e142f6601210361fb354f8259abfcbfbdda36b7cb4c3b05a3ca3d68dd391fd8376e920d93870d0247304402204803e423c321acc6c12cb0ebf196d2906842fdfed6de977cc78277052ee5f15002200634670c1dc25e6b1787a65d3e09c8e6bb0340238d90b9d98887e8fd53944e080121031104c60d027123bf8676bcaefaa66c001a0d3d379dc4a9492a567a9e1004452d02473044022050e4b5348d30011a22b6ae8b43921d29249d88ea71b1fbaa2d9c22dfdef58b7002201c5d5e143aa8835454f61b0742226ebf8cd466bcc2cdcb1f77b92e473d3b13190121030496b9d49aa8efece4f619876c60a77d2c0dc846390ecdc5d9acbfa1bb3128760247304402204d6a9b986e1a0e3473e8aef84b3eb7052442a76dfd7631e35377f141496a55490220131ab342853c01e31f111436f8461e28bc95883b871ca0e01b5f57146e79d7bb012103262ffbc88e25296056a3c65c880e3686297e07f360e6b80f1219d65b0900e84e02483045022100c8ffacf92efa1dddef7e858a241af7a80adcc2489bcc325195970733b1f35fac022076f40c26023a228041a9665c5290b9918d06f03b716e4d8f6d47e79121c7eb37012102d9ba7e02d7cd7dd24302f823b3114c99da21549c663f72440dc87e8ba412120902483045022100b55545d84e43d001bbc10a981f184e7d3b98a7ed6689863716cab053b3655a2f0220537eb76a695fbe86bf020b4b6f7ae93b506d778bbd0885f0a61067616a2c8bce0121034a57f2fa2c32c9246691f6a922fb1ebdf1468792bae7eff253a99fc9f2a5023902483045022100f1d4408463dbfe257f9f778d5e9c8cdb97c8b1d395dbd2e180bc08cad306492c022002a024e19e1a406eaa24467f033659de09ab58822987281e28bb6359288337bd012103e91daa18d924eea62011ce596e15b6d683975cf724ea5bf69a8e2022c26fc12f0247304402204f1e12b923872f396e5e1a3aa94b0b2e86b4ce448f4349a017631db26d7dff8a022069899a05de2ad2bbd8e0202c56ab1025a7db9a4998eea70744e3c367d2a7eb71012103b0eee86792dbef1d4a49bc4ea32d197c8c15d27e6e0c5c33e58e409e26d4a39a0247304402201787dacdb92e0df6ad90226649f0e8321287d0bd8fddc536a297dd19b5fc103e022001fe89300a76e5b46d0e3f7e39e0ee26cc83b71d59a2a5da1dd7b13350cd0c07012103afb1e43d7ec6b7999ef0f1093069e68fe1dfe5d73fc6cfb4f7a5022f7098758c02483045022100acc1212bba0fe4fcc6c3ae5cf8e25f221f140c8444d3c08dfc53a93630ac25da02203f12982847244bd9421ef340293f3a38d2ab5d028af60769e46fcc7d81312e7e012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024830450221009c04934102402949484b21899271c3991c007b783b8efc85a3c3d24641ac7c24022006fb1895ce969d08a2cb29413e1a85427c7e85426f7a185108ca44b5a0328cb301210360248db4c7d7f76fe231998d2967104fee04df8d8da34f10101cc5523e82648c02483045022100b11fe61b393fa5dbe18ab98f65c249345b429b13f69ee2d1b1335725b24a0e73022010960cdc5565cbc81885c8ed95142435d3c202dfa5a3dc5f50f3914c106335ce0121029c878610c34c21381cda12f6f36ab88bf60f5f496c1b82c357b8ac448713e7b50247304402200ca080db069c15bbf98e1d4dff68d0aea51227ff5d17a8cf67ceae464c22bbb0022051e7331c0918cbb71bb2cef29ca62411454508a16180b0fb5df94248890840df0121028f0be0cde43ff047edbda42c91c37152449d69789eb812bb2e148e4f22472c0f0247304402201fefe258938a2c481d5a745ef3aa8d9f8124bbe7f1f8c693e2ddce4ddc9a927c02204049e0060889ede8fda975edf896c03782d71ba53feb51b04f5ae5897d7431dc012103946730b480f52a43218a9edce240e8b234790e21df5e96482703d81c3c19d3f1024730440220126a6a56dbe69af78d156626fc9cf41d6aac0c07b8b5f0f8491f68db5e89cb5002207ee6ed6f2f41da256f3c1e79679a3de6cf34cc08b940b82be14aefe7da031a6b012102801bc7170efb82c490e243204d86970f15966aa3bce6a06bef5c09a83a5bfffe024730440220363204a1586d7f13c148295122cbf9ec7939685e3cadab81d6d9e921436d21b7022044626b8c2bd4aa7c167d74bc4e9eb9d0744e29ce0ad906d78e10d6d854f23d170121037fb9c51716739bb4c146857fab5a783372f72a65987d61f3b58c74360f4328dd0247304402207925a4c2a3a6b76e10558717ee28fcb8c6fde161b9dc6382239af9f372ace99902204a58e31ce0b4a4804a42d2224331289311ded2748062c92c8aca769e81417a4c012102e18a8c235b48e41ef98265a8e07fa005d2602b96d585a61ad67168d74e7391cb02483045022100bbfe060479174a8d846b5a897526003eb2220ba307a5fee6e1e8de3e4e8b38fd02206723857301d447f67ac98a5a5c2b80ef6820e98fae213db1720f93d91161803b01210386728e2ac3ecee15f58d0505ee26f86a68f08c702941ffaf2fb7213e5026aea10247304402203a2613ae68f697eb02b5b7d18e3c4236966dac2b3a760e3021197d76e9ad4239022046f9067d3df650fcabbdfd250308c64f90757dec86f0b08813c979a42d06a6ec012102a1d7ee1cb4dc502f899aaafae0a2eb6cbf80d9a1073ae60ddcaabc3b1d1f15df02483045022100ab1bea2cc5388428fd126c7801550208701e21564bd4bd00cfd4407cfafc1acd0220508ee587f080f3c80a5c0b2175b58edd84b755e659e2135b3152044d75ebc4b501210236dd1b7f27a296447d0eb3750e1bdb2d53af50b31a72a45511dc1ec3fe7a684a19391400220603fd88f32a81e812af0187677fc0e7ac9b7fb63ca68c2d98c2afbcf99aa311ac060cdf758ae500000000020000000000220202ac05f54ef082ac98302d57d532e728653565bd55f46fcf03cacbddb168fd6c760cdf758ae5010000000000000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('ee76c0c6da87f0eb5ab4d1ae05d3942512dcd3c4c42518f9d3619e74400cfc1f', tx_copy.txid())
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('ee76c0c6da87f0eb5ab4d1ae05d3942512dcd3c4c42518f9d3619e74400cfc1f', tx.txid())
self.assertEqual('484e350beaa722a744bb3e2aa38de005baa8526d86536d6143e5814355acf775', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_signing_where_offline_ks_does_not_have_keyorigin_but_psbt_contains_it(self, mock_save_db):
# keystore has intermediate xprv without root fp; tx contains root fp and full path.
# tx has input with key beyond gap limit
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39 seed: "brave scare company drastic consider confirm grow differ alter wide olympic utility"
# der: m/84'/1'/0'
keystore.from_xprv('vprv9KXDgRXYp3WCozCS3bMehASe2cJhY28DihCZ3KuyiTTjngopkfRC9QkH1SUREyCvnV7TSD6EgEHTTYa5yod7ZveBhVReEU1uDgfVASFqLNw'),
gap_limit=4,
config=self.config
)
tx = tx_from_any('70736274ff01005202000000017b748828553b1127b86674e71ad0cd4a2e5e8baeab8792a3c3263f7ea0ba86500000000000fdffffff01ad16010000000000160014d74b54300bc0d4b6e8f506fe540b47ce0da38b4a08f21c00000100bf0200000000010163a419b779be17167c54ff3acb1205e5347fbd72963f89fb1d66b5cf09f329c90000000000fdffffff011b17010000000000160014ed420532f0c33477b9b3fbb57431b4a1adce99c90247304402204e4ad4992fa8798e3b595d17c59961b905ca71c32dc3ba910ae14f139259ffbe02206ee2281f21499e46aa77f4bec2edce3674fea529d9dd340439365c2232bad35701210334080358ffdac08f83d6800a8e477e3512ad5c39ede553089db8c4bbe16f59aad7f11c00220602d137f257a96cbc58c7e60f2085cd65a311e242459e23d1efbed77dd8f372513818cc2bdaaa540000800100008000000080000000001e000000002202030671d324eeba0f85499a8749f783a4883103d23f5dedbe048391ff18c3da067818cc2bdaaa540000800100008000000080000000000100000000')
self.assertEqual('065b6e0a5731107641828337f5e000c9ddd94a12d074708643b0bca517374c6a', tx.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
self.assertEqual('020000000001017b748828553b1127b86674e71ad0cd4a2e5e8baeab8792a3c3263f7ea0ba86500000000000fdffffff01ad16010000000000160014d74b54300bc0d4b6e8f506fe540b47ce0da38b4a0247304402203098741bf4d4f956e96f2706a517a1c0a63f67a242a50d155fbc56ad0bbac8b102207e535391c03bdab641f3205762311c1e6648b3459681e53d68fa44e63604a7f6012102d137f257a96cbc58c7e60f2085cd65a311e242459e23d1efbed77dd8f372513808f21c00',
str(tx))
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_wif_online_addr_p2pkh(self, mock_save_db): # compressed pubkey
wallet_offline = WalletIntegrityHelper.create_imported_wallet(privkeys=True, config=self.config)
wallet_offline.import_private_key('p2pkh:cQDxbmQfwRV3vP1mdnVHq37nJekHLsuD3wdSQseBRA2ct4MFk5Pq', password=None)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('mg2jk6S5WGDhUPA8mLSxDLWpUoQnX1zzoG')
# bootstrap wallet_online
funding_tx = Transaction('01000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400')
funding_txid = funding_tx.txid()
self.assertEqual('0a08ea26a49e2b80f253796d605b69e2d0403fac64bdf6f7db82ada4b7bb6b62', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1quk7ahlhr3qmjndy0uvu9y9hxfesrtahtta9ghm', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325340
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100740100000001626bbbb7a4ad82dbf7f6bd64ac3f40d0e2695b606d7953f2802b9ea426ea080a0100000000fdffffff02a025260000000000160014e5bddbfee3883729b48fe3385216e64e6035f6eb585d7200000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac1c391400000100fd200101000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(None, tx_copy.txid()) # not segwit
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual('e56da664631b8c666c6df38ec80c954c4ac3c4f56f040faf0070e4681e937fc4', tx.txid())
self.assertEqual('e56da664631b8c666c6df38ec80c954c4ac3c4f56f040faf0070e4681e937fc4', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_wif_online_addr_p2wpkh_p2sh(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_imported_wallet(privkeys=True, config=self.config)
wallet_offline.import_private_key('p2wpkh-p2sh:cU9hVzhpvfn91u2zTVn8uqF2ymS7ucYH8V5TmsTDmuyMHgRk9WsJ', password=None)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('2NA2JbUVK7HGWUCK5RXSVNHrkgUYF8d9zV8')
# bootstrap wallet_online
funding_tx = Transaction('01000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400')
funding_txid = funding_tx.txid()
self.assertEqual('0a08ea26a49e2b80f253796d605b69e2d0403fac64bdf6f7db82ada4b7bb6b62', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1quk7ahlhr3qmjndy0uvu9y9hxfesrtahtta9ghm', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325340
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100720100000001626bbbb7a4ad82dbf7f6bd64ac3f40d0e2695b606d7953f2802b9ea426ea080a0200000000fdffffff02a025260000000000160014e5bddbfee3883729b48fe3385216e64e6035f6eb585d72000000000017a914b808938a8007bc54509cd946944c479c0fa6554f871c391400000100fd200101000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(None, tx_copy.txid()) # redeem script not available
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('7642816d051aa3b333b6564bb6e44fe3a5885bfe7db9860dfbc9973a5c9a6562', tx.txid())
self.assertEqual('9bb9949974954613945756c48ca5525cd5cba1b667ccb10c7a53e1ed076a1117', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_wif_online_addr_p2wpkh(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_imported_wallet(privkeys=True, config=self.config)
wallet_offline.import_private_key('p2wpkh:cPuQzcNEgbeYZ5at9VdGkCwkPA9r34gvEVJjuoz384rTfYpahfe7', password=None)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('tb1qm2eh4787lwanrzr6pf0ekf5c7jnmghm2y9k529')
# bootstrap wallet_online
funding_tx = Transaction('01000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400')
funding_txid = funding_tx.txid()
self.assertEqual('0a08ea26a49e2b80f253796d605b69e2d0403fac64bdf6f7db82ada4b7bb6b62', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1quk7ahlhr3qmjndy0uvu9y9hxfesrtahtta9ghm', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325340
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100710100000001626bbbb7a4ad82dbf7f6bd64ac3f40d0e2695b606d7953f2802b9ea426ea080a0000000000fdffffff02a025260000000000160014e5bddbfee3883729b48fe3385216e64e6035f6eb585d720000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a1c391400000100fd200101000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('f8039bd85279f2b5698f15d47f2e338d067d09af391bd8a19467aa94d03f280c', tx_copy.txid())
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('f8039bd85279f2b5698f15d47f2e338d067d09af391bd8a19467aa94d03f280c', tx.txid())
self.assertEqual('3b7cc3c3352bbb43ddc086487ac696e09f2863c3d9e8636721851b8008a83ffa', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_xprv_online_addr_p2pkh(self, mock_save_db): # compressed pubkey
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39: "qwe", der: m/44'/1'/0'
keystore.from_xprv('tprv8gfKwjuAaqtHgqxMh1tosAQ28XvBMkcY5NeFRA3pZMpz6MR4H4YZ3MJM4fvNPnRKeXR1Td2vQGgjorNXfo94WvT5CYDsPAqjHxSn436G1Eu'),
gap_limit=4,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('mg2jk6S5WGDhUPA8mLSxDLWpUoQnX1zzoG')
# bootstrap wallet_online
funding_tx = Transaction('01000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400')
funding_txid = funding_tx.txid()
self.assertEqual('0a08ea26a49e2b80f253796d605b69e2d0403fac64bdf6f7db82ada4b7bb6b62', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1quk7ahlhr3qmjndy0uvu9y9hxfesrtahtta9ghm', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325340
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100740100000001626bbbb7a4ad82dbf7f6bd64ac3f40d0e2695b606d7953f2802b9ea426ea080a0100000000fdffffff02a025260000000000160014e5bddbfee3883729b48fe3385216e64e6035f6eb585d7200000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac1c391400000100fd200101000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(None, tx_copy.txid()) # not segwit
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertFalse(tx.is_segwit())
self.assertEqual('e56da664631b8c666c6df38ec80c954c4ac3c4f56f040faf0070e4681e937fc4', tx.txid())
self.assertEqual('e56da664631b8c666c6df38ec80c954c4ac3c4f56f040faf0070e4681e937fc4', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_xprv_online_addr_p2wpkh_p2sh(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39: "qwe", der: m/49'/1'/0'
keystore.from_xprv('uprv8zHHrMQMQ26utWwNJ5MK2SXpB9hbmy7pbPaneii69xT8cZTyFpxQFxkknGWKP8dxBTZhzy7yP6cCnLrRCQjzJDk3G61SjZpxhFQuB2NR8a5'),
gap_limit=4,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('2NA2JbUVK7HGWUCK5RXSVNHrkgUYF8d9zV8')
# bootstrap wallet_online
funding_tx = Transaction('01000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400')
funding_txid = funding_tx.txid()
self.assertEqual('0a08ea26a49e2b80f253796d605b69e2d0403fac64bdf6f7db82ada4b7bb6b62', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1quk7ahlhr3qmjndy0uvu9y9hxfesrtahtta9ghm', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325340
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100720100000001626bbbb7a4ad82dbf7f6bd64ac3f40d0e2695b606d7953f2802b9ea426ea080a0200000000fdffffff02a025260000000000160014e5bddbfee3883729b48fe3385216e64e6035f6eb585d72000000000017a914b808938a8007bc54509cd946944c479c0fa6554f871c391400000100fd200101000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(None, tx_copy.txid()) # redeem script not available
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('7642816d051aa3b333b6564bb6e44fe3a5885bfe7db9860dfbc9973a5c9a6562', tx.txid())
self.assertEqual('9bb9949974954613945756c48ca5525cd5cba1b667ccb10c7a53e1ed076a1117', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_xprv_online_addr_p2wpkh(self, mock_save_db):
wallet_offline = WalletIntegrityHelper.create_standard_wallet(
# bip39: "qwe", der: m/84'/1'/0'
keystore.from_xprv('vprv9K9hbuA23Bidgj1KRSHUZMa59jJLeZBpXPVn4RP7sBLArNhZxJjw4AX7aQmVTErDt4YFC11ptMLjbwxgrsH8GLQ1cx77KggWeVPeDBjr9xM'),
gap_limit=4,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('tb1qm2eh4787lwanrzr6pf0ekf5c7jnmghm2y9k529')
# bootstrap wallet_online
funding_tx = Transaction('01000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400')
funding_txid = funding_tx.txid()
self.assertEqual('0a08ea26a49e2b80f253796d605b69e2d0403fac64bdf6f7db82ada4b7bb6b62', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('tb1quk7ahlhr3qmjndy0uvu9y9hxfesrtahtta9ghm', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325340
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff0100710100000001626bbbb7a4ad82dbf7f6bd64ac3f40d0e2695b606d7953f2802b9ea426ea080a0000000000fdffffff02a025260000000000160014e5bddbfee3883729b48fe3385216e64e6035f6eb585d720000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a1c391400000100fd200101000000000101197a89cff51096b9dd4214cdee0eb90cb27a25477e739521d728a679724042730100000000fdffffff048096980000000000160014dab37af8fefbbb31887a0a5f9b2698f4a7b45f6a80969800000000001976a91405a20074ef7eb42c7c6fcd4f499faa699742783288ac809698000000000017a914b808938a8007bc54509cd946944c479c0fa6554f87131b2c0400000000160014a04dfdb9a9aeac3b3fada6f43c2a66886186e2440247304402204f5dbb9dda65eab26179f1ca7c37c8baf028153815085dd1bbb2b826296e3b870220379fcd825742d6e2bdff772f347b629047824f289a5499a501033f6c3495594901210363c9c98740fe0455c646215cea9b13807b758791c8af7b74e62968bef57ff8ae1e391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('f8039bd85279f2b5698f15d47f2e338d067d09af391bd8a19467aa94d03f280c', tx_copy.txid())
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx
tx = wallet_offline.sign_transaction(tx_copy, password=None)
self.assertTrue(tx.is_complete())
self.assertTrue(tx.is_segwit())
self.assertEqual('f8039bd85279f2b5698f15d47f2e338d067d09af391bd8a19467aa94d03f280c', tx.txid())
self.assertEqual('3b7cc3c3352bbb43ddc086487ac696e09f2863c3d9e8636721851b8008a83ffa', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_hd_multisig_online_addr_p2sh(self, mock_save_db):
# 2-of-3 legacy p2sh multisig
wallet_offline1 = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('blast uniform dragon fiscal ensure vast young utility dinosaur abandon rookie sure', '', True),
keystore.from_xpub('tpubD6NzVbkrYhZ4YTPEgwk4zzr8wyo7pXGmbbVUnfYNtx6SgAMF5q3LN3Kch58P9hxGNsTmP7Dn49nnrmpE6upoRb1Xojg12FGLuLHkVpVtS44'),
keystore.from_xpub('tpubD6NzVbkrYhZ4XJzYkhsCbDCcZRmDAKSD7bXi9mdCni7acVt45fxbTVZyU6jRGh29ULKTjoapkfFsSJvQHitcVKbQgzgkkYsAmaovcro7Mhf')
],
'2of3', gap_limit=2,
config=self.config
)
wallet_offline2 = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('cycle rocket west magnet parrot shuffle foot correct salt library feed song', '', True),
keystore.from_xpub('tpubD6NzVbkrYhZ4YTPEgwk4zzr8wyo7pXGmbbVUnfYNtx6SgAMF5q3LN3Kch58P9hxGNsTmP7Dn49nnrmpE6upoRb1Xojg12FGLuLHkVpVtS44'),
keystore.from_xpub('tpubD6NzVbkrYhZ4YARFMEZPckrqJkw59GZD1PXtQnw14ukvWDofR7Z1HMeSCxfYEZVvg4VdZ8zGok5VxHwdrLqew5cMdQntWc5mT7mh1CSgrnX')
],
'2of3', gap_limit=2,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('2N4z38eTKcWTZnfugCCfRyXtXWMLnn8HDfw')
# bootstrap wallet_online
funding_tx = Transaction('010000000001016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc3927050301000000171600147a4fc8cdc1c2cf7abbcd88ef6d880e59269797acfdffffff02809698000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e48870d0916020000000017a914703f83ef20f3a52d908475dcad00c5144164d5a2870247304402203b1a5cb48cadeee14fa6c7bbf2bc581ca63104762ec5c37c703df778884cc5b702203233fa53a2a0bfbd85617c636e415da72214e359282cce409019319d031766c50121021112c01a48cc7ea13cba70493c6bffebb3e805df10ff4611d2bf559d26e25c04bf391400')
funding_txid = funding_tx.txid()
self.assertEqual('c59913a1fa9b1ef1f6928f0db490be67eeb9d7cb05aa565ee647e859642f3532', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('2MuCQQHJNnrXzQzuqfUCfAwAjPqpyEHbgue', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325503
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff010073010000000132352f6459e847e65e56aa05cbd7b9ee67be90b40d8f92f6f11e9bfaa11399c50000000000fdffffff02a02526000000000017a9141567b2578f300fa618ef0033611fd67087aff6d187585d72000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e4887bf391400000100f7010000000001016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc3927050301000000171600147a4fc8cdc1c2cf7abbcd88ef6d880e59269797acfdffffff02809698000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e48870d0916020000000017a914703f83ef20f3a52d908475dcad00c5144164d5a2870247304402203b1a5cb48cadeee14fa6c7bbf2bc581ca63104762ec5c37c703df778884cc5b702203233fa53a2a0bfbd85617c636e415da72214e359282cce409019319d031766c50121021112c01a48cc7ea13cba70493c6bffebb3e805df10ff4611d2bf559d26e25c04bf391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(None, tx_copy.txid()) # not segwit
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx - first
tx = wallet_offline1.sign_transaction(tx_copy, password=None)
self.assertFalse(tx.is_complete())
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff010073010000000132352f6459e847e65e56aa05cbd7b9ee67be90b40d8f92f6f11e9bfaa11399c50000000000fdffffff02a02526000000000017a9141567b2578f300fa618ef0033611fd67087aff6d187585d72000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e4887bf391400000100f7010000000001016207d958dc46508d706e4cd7d3bc46c5c2b02160e2578e5fad2efafc3927050301000000171600147a4fc8cdc1c2cf7abbcd88ef6d880e59269797acfdffffff02809698000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e48870d0916020000000017a914703f83ef20f3a52d908475dcad00c5144164d5a2870247304402203b1a5cb48cadeee14fa6c7bbf2bc581ca63104762ec5c37c703df778884cc5b702203233fa53a2a0bfbd85617c636e415da72214e359282cce409019319d031766c50121021112c01a48cc7ea13cba70493c6bffebb3e805df10ff4611d2bf559d26e25c04bf391400220202afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f284730440220451f77cb18224adcb4981492d9be2c3fa7537f94f4b29eb405992dbdd5df04aa022071e6759d40dde810caa01ca7f16bad3cb742d64428c419c8fb4bad6f1c3f718101010469522102afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f2821030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf2103e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce53ae220602afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f280c0036e9ac00000000000000002206030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf0c48adc7a00000000000000000220603e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce0cdb69242700000000000000000000010069522102afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f2821030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf2103e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce53ae220202afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f280c0036e9ac00000000000000002202030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf0c48adc7a00000000000000000220203e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce0cdb692427000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
# sign tx - second
tx = wallet_offline2.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
tx = tx_from_any(tx.serialize())
self.assertEqual('010000000132352f6459e847e65e56aa05cbd7b9ee67be90b40d8f92f6f11e9bfaa11399c500000000fc004730440220451f77cb18224adcb4981492d9be2c3fa7537f94f4b29eb405992dbdd5df04aa022071e6759d40dde810caa01ca7f16bad3cb742d64428c419c8fb4bad6f1c3f718101473044022052980154bdf2e43d6bd8775316cc220ef5ae13b4b9574a7a904a691ee3c5efd3022069b3eddf904cc645bd8fc8b2aaa7aaf7eb5bbfb7bbbd3b6e6cd89b37dfb2856c014c69522102afb4af9a91264e1c6dce3ebe5312801723270ac0ba8134b7b49129328fcb0f2821030b482838721a38d94847699fed8818b5c5f56500ef72f13489e365b65e5749cf2103e5db7969ae2f2576e6a061bf3bb2db16571e77ffb41e0b27170734359235cbce53aefdffffff02a02526000000000017a9141567b2578f300fa618ef0033611fd67087aff6d187585d72000000000017a91480c2353f6a7bc3c71e99e062655b19adb3dd2e4887bf391400',
str(tx))
self.assertEqual('0e8fdc8257a85ebe7eeab14a53c2c258c61a511f64176b7f8fc016bc2263d307', tx.txid())
self.assertEqual('0e8fdc8257a85ebe7eeab14a53c2c258c61a511f64176b7f8fc016bc2263d307', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_hd_multisig_online_addr_p2wsh_p2sh(self, mock_save_db):
# 2-of-2 p2sh-embedded segwit multisig
wallet_offline1 = WalletIntegrityHelper.create_multisig_wallet(
[
# bip39: finish seminar arrange erosion sunny coil insane together pretty lunch lunch rose, der: m/1234'/1'/0', p2wsh-p2sh multisig
keystore.from_xprv('Uprv9CvELvByqm8k2dpecJVjgLMX1z5DufEjY4fBC5YvdGF5WjGCa7GVJJ2fYni1tyuF7Hw83E6W2ZBjAhaFLZv2ri3rEsubkCd5avg4EHKoDBN'),
keystore.from_xpub('Upub5Qb8ik4Cnu8g97KLXKgVXHqY6tH8emQvqtBncjSKsyfTZuorPtTZgX7ovKKZHuuVGBVd1MTTBkWez1XXt2weN1sWBz6SfgRPQYEkNgz81QF')
],
'2of2', gap_limit=2,
config=self.config
)
wallet_offline2 = WalletIntegrityHelper.create_multisig_wallet(
[
# bip39: square page wood spy oil story rebel give milk screen slide shuffle, der: m/1234'/1'/0', p2wsh-p2sh multisig
keystore.from_xprv('Uprv9BbnKEXJxXaNvdEsRJ9VA9toYrSeFJh5UfGBpM2iKe8Uh7UhrM9K8ioL53s8gvCoGfirHHaqpABDAE7VUNw8LNU1DMJKVoWyeNKu9XcDC19'),
keystore.from_xpub('Upub5RuakRisg8h3F7u7iL2k3UJFa1uiK7xauHamzTxYBbn4PXbM7eajr6M9Q2VCr6cVGhfhqWQqxnABvtSATuVM1xzxk4nA189jJwzaMn1QX7V')
],
'2of2', gap_limit=2,
config=self.config
)
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('2MsHQRm1pNi6VsmXYRxYMcCTdPu7Xa1RyFe')
# bootstrap wallet_online
funding_tx = Transaction('0100000000010118d494d28e5c3bf61566ca0313e22c3b561b888a317d689cc8b47b947adebd440000000017160014aec84704ea8508ddb94a3c6e53f0992d33a2a529fdffffff020f0925000000000017a91409f7aae0265787a02de22839d41e9c927768230287809698000000000017a91400698bd11c38f887f17c99846d9be96321fbf989870247304402206b906369f4075ebcfc149f7429dcfc34e11e1b7bbfc85d1185d5e9c324be0d3702203ce7fc12fd3131920fbcbb733250f05dbf7d03e18a4656232ee69d5c54dd46bd0121028a4b697a37f3f57f6e53f90db077fa9696095b277454fda839c211d640d48649c0391400')
funding_txid = funding_tx.txid()
self.assertEqual('54356de9e156b85c8516fd4d51bdb68b5513f58b4a6147483978ae254627ee3e', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('2N8CtJRwxb2GCaiWWdSHLZHHLoZy53CCyxf', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325504
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007301000000013eee274625ae78394847614a8bf513558bb6bd514dfd16855cb856e1e96d35540100000000fdffffff02a02526000000000017a914a4189ef02c95cfe36f8e880c6cb54dff0837b22687585d72000000000017a91400698bd11c38f887f17c99846d9be96321fbf98987c0391400000100f70100000000010118d494d28e5c3bf61566ca0313e22c3b561b888a317d689cc8b47b947adebd440000000017160014aec84704ea8508ddb94a3c6e53f0992d33a2a529fdffffff020f0925000000000017a91409f7aae0265787a02de22839d41e9c927768230287809698000000000017a91400698bd11c38f887f17c99846d9be96321fbf989870247304402206b906369f4075ebcfc149f7429dcfc34e11e1b7bbfc85d1185d5e9c324be0d3702203ce7fc12fd3131920fbcbb733250f05dbf7d03e18a4656232ee69d5c54dd46bd0121028a4b697a37f3f57f6e53f90db077fa9696095b277454fda839c211d640d48649c0391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual(None, tx_copy.txid()) # redeem script not available
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx - first
tx = wallet_offline1.sign_transaction(tx_copy, password=None)
self.assertFalse(tx.is_complete())
self.assertEqual('6a58a51591142429203b62b6ddf6b799a6926882efac229998c51bee6c3573eb', tx.txid())
partial_tx = tx.serialize_as_bytes().hex()
# note re PSBT: online wallet had put a NON-WITNESS UTXO for input0, as they did not know if it was segwit.
# offline wallet now replaced this with a WITNESS-UTXO.
# this switch is needed to interop with bitcoin core... https://github.com/bitcoin/bitcoin/blob/fba574c908bb61eff1a0e83c935f3526ba9035f2/src/psbt.cpp#L163
self.assertEqual("70736274ff01007301000000013eee274625ae78394847614a8bf513558bb6bd514dfd16855cb856e1e96d35540100000000fdffffff02a02526000000000017a914a4189ef02c95cfe36f8e880c6cb54dff0837b22687585d72000000000017a91400698bd11c38f887f17c99846d9be96321fbf98987c0391400000100f70100000000010118d494d28e5c3bf61566ca0313e22c3b561b888a317d689cc8b47b947adebd440000000017160014aec84704ea8508ddb94a3c6e53f0992d33a2a529fdffffff020f0925000000000017a91409f7aae0265787a02de22839d41e9c927768230287809698000000000017a91400698bd11c38f887f17c99846d9be96321fbf989870247304402206b906369f4075ebcfc149f7429dcfc34e11e1b7bbfc85d1185d5e9c324be0d3702203ce7fc12fd3131920fbcbb733250f05dbf7d03e18a4656232ee69d5c54dd46bd0121028a4b697a37f3f57f6e53f90db077fa9696095b277454fda839c211d640d48649c0391400220202d3f47041b424a84898e315cc8ef58190f6aec79c178c12de0790890ba7166e9c4730440220234f6648c5741eb195f0f4cd645298a10ce02f6ef557d05df93331e21c4f58cb022058ce2af0de1c238c4a8dd3b3c7a9a0da6e381ddad7593cddfc0480f9fe5baadf0101042200206ee8d4bb1277b7dbe1d4e49b880993aa993f417a9101cb23865c7c7258732704010547522102975c00f6af579f9a1d283f1e5a43032deadbab2308aef30fb307c0cfe54777462102d3f47041b424a84898e315cc8ef58190f6aec79c178c12de0790890ba7166e9c52ae220602975c00f6af579f9a1d283f1e5a43032deadbab2308aef30fb307c0cfe54777460c17cea9140000000001000000220602d3f47041b424a84898e315cc8ef58190f6aec79c178c12de0790890ba7166e9c0cd1dbcc210000000001000000000001002200206ee8d4bb1277b7dbe1d4e49b880993aa993f417a9101cb23865c7c7258732704010147522102975c00f6af579f9a1d283f1e5a43032deadbab2308aef30fb307c0cfe54777462102d3f47041b424a84898e315cc8ef58190f6aec79c178c12de0790890ba7166e9c52ae220202975c00f6af579f9a1d283f1e5a43032deadbab2308aef30fb307c0cfe54777460c17cea9140000000001000000220202d3f47041b424a84898e315cc8ef58190f6aec79c178c12de0790890ba7166e9c0cd1dbcc21000000000100000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
# sign tx - second
tx = wallet_offline2.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
tx = tx_from_any(tx.serialize())
self.assertEqual('010000000001013eee274625ae78394847614a8bf513558bb6bd514dfd16855cb856e1e96d355401000000232200206ee8d4bb1277b7dbe1d4e49b880993aa993f417a9101cb23865c7c7258732704fdffffff02a02526000000000017a914a4189ef02c95cfe36f8e880c6cb54dff0837b22687585d72000000000017a91400698bd11c38f887f17c99846d9be96321fbf98987040047304402205a9dd9eb5676196893fb08f60079a2e9f567ee39614075d8c5d9fab0f11cbbc7022039640855188ebb7bccd9e3f00b397a888766d42d00d006f1ca7457c15449285f014730440220234f6648c5741eb195f0f4cd645298a10ce02f6ef557d05df93331e21c4f58cb022058ce2af0de1c238c4a8dd3b3c7a9a0da6e381ddad7593cddfc0480f9fe5baadf0147522102975c00f6af579f9a1d283f1e5a43032deadbab2308aef30fb307c0cfe54777462102d3f47041b424a84898e315cc8ef58190f6aec79c178c12de0790890ba7166e9c52aec0391400',
str(tx))
self.assertEqual('6a58a51591142429203b62b6ddf6b799a6926882efac229998c51bee6c3573eb', tx.txid())
self.assertEqual('96d0bca1001778c54e4c3a07929fab5562c5b5a23fd1ca3aa3870cc5df2bf97d', tx.wtxid())
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_sending_offline_hd_multisig_online_addr_p2wsh(self, mock_save_db):
# 2-of-3 p2wsh multisig
wallet_offline1 = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('bitter grass shiver impose acquire brush forget axis eager alone wine silver', '', True),
keystore.from_xpub('Vpub5fcdcgEwTJmbmqAktuK8Kyq92fMf7sWkcP6oqAii2tG47dNbfkGEGUbfS9NuZaRywLkHE6EmUksrqo32ZL3ouLN1HTar6oRiHpDzKMAF1tf'),
keystore.from_xpub('Vpub5fjkKyYnvSS4wBuakWTkNvZDaBM2vQ1MeXWq368VJHNr2eT8efqhpmZ6UUkb7s2dwCXv2Vuggjdhk4vZVyiAQTwUftvff73XcUGq2NQmWra')
],
'2of3', gap_limit=2,
config=self.config
)
wallet_offline2 = WalletIntegrityHelper.create_multisig_wallet(
[
keystore.from_seed('snow nest raise royal more walk demise rotate smooth spirit canyon gun', '', True),
keystore.from_xpub('Vpub5fjkKyYnvSS4wBuakWTkNvZDaBM2vQ1MeXWq368VJHNr2eT8efqhpmZ6UUkb7s2dwCXv2Vuggjdhk4vZVyiAQTwUftvff73XcUGq2NQmWra'),
keystore.from_xpub('Vpub5gSKXzxK7FeKQedu2q1z9oJWxqvX72AArW3HSWpEhc8othDH8xMDu28gr7gf17sp492BuJod8Tn7anjvJrKpETwqnQqX7CS8fcYyUtedEMk')
],
'2of3', gap_limit=2,
config=self.config
)
# ^ third seed: hedgehog sunset update estate number jungle amount piano friend donate upper wool
wallet_online = WalletIntegrityHelper.create_imported_wallet(privkeys=False, config=self.config)
wallet_online.import_address('tb1q83p6eqxkuvq4eumcha46crpzg4nj84s9p0hnynkxg8nhvfzqcc7q4erju6')
# bootstrap wallet_online
funding_tx = Transaction('0100000000010132352f6459e847e65e56aa05cbd7b9ee67be90b40d8f92f6f11e9bfaa11399c501000000171600142e5d579693b2a7679622935df94d9f3c84909b24fdffffff0280969800000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63c83717d010000000017a91441b772909ad301b41b76f4a3c5058888a7fe6f9a8702483045022100de54689f74b8efcce7fdc91e40761084686003bcd56c886ee97e75a7e803526102204dea51ae5e7d01bd56a8c336c64841f7fe02a8b101fa892e13f2d079bb14e6bf012102024e2f73d632c49f4b821ccd3b6da66b155427b1e5b1c4688cefd5a4b4bfa404c1391400')
funding_txid = funding_tx.txid()
self.assertEqual('643a7ab9083d0227dd9df314ce56b18d279e6018ff975079dfaab82cd7a66fa3', funding_txid)
wallet_online.receive_tx_callback(funding_txid, funding_tx, TX_HEIGHT_UNCONFIRMED)
# create unsigned tx
outputs = [PartialTxOutput.from_address_and_value('2MyoZVy8T1t94yLmyKu8DP1SmbWvnxbkwRA', 2500000)]
tx = wallet_online.mktx(outputs=outputs, password=None, fee=5000)
tx.set_rbf(True)
tx.locktime = 1325505
tx.version = 1
self.assertFalse(tx.is_complete())
self.assertEqual(1, len(tx.inputs()))
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007e0100000001a36fa6d72cb8aadf795097ff18609e278db156ce14f39ddd27023d08b97a3a640000000000fdffffff02a02526000000000017a91447ee5a659f6ffb53f7e3afc1681b6415f3c00fa187585d7200000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63cc1391400000100fd03010100000000010132352f6459e847e65e56aa05cbd7b9ee67be90b40d8f92f6f11e9bfaa11399c501000000171600142e5d579693b2a7679622935df94d9f3c84909b24fdffffff0280969800000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63c83717d010000000017a91441b772909ad301b41b76f4a3c5058888a7fe6f9a8702483045022100de54689f74b8efcce7fdc91e40761084686003bcd56c886ee97e75a7e803526102204dea51ae5e7d01bd56a8c336c64841f7fe02a8b101fa892e13f2d079bb14e6bf012102024e2f73d632c49f4b821ccd3b6da66b155427b1e5b1c4688cefd5a4b4bfa404c1391400000000",
partial_tx)
tx_copy = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
self.assertTrue(wallet_online.is_mine(wallet_online.get_txin_address(tx_copy.inputs()[0])))
self.assertEqual('32e946761b4e718c1fa8d044db9e72d5831f6395eb284faf2fb5c4af0743e501', tx_copy.txid())
self.assertEqual(tx.txid(), tx_copy.txid())
# sign tx - first
tx = wallet_offline1.sign_transaction(tx_copy, password=None)
self.assertFalse(tx.is_complete())
self.assertEqual('32e946761b4e718c1fa8d044db9e72d5831f6395eb284faf2fb5c4af0743e501', tx.txid())
partial_tx = tx.serialize_as_bytes().hex()
self.assertEqual("70736274ff01007e0100000001a36fa6d72cb8aadf795097ff18609e278db156ce14f39ddd27023d08b97a3a640000000000fdffffff02a02526000000000017a91447ee5a659f6ffb53f7e3afc1681b6415f3c00fa187585d7200000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63cc1391400000100fd03010100000000010132352f6459e847e65e56aa05cbd7b9ee67be90b40d8f92f6f11e9bfaa11399c501000000171600142e5d579693b2a7679622935df94d9f3c84909b24fdffffff0280969800000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63c83717d010000000017a91441b772909ad301b41b76f4a3c5058888a7fe6f9a8702483045022100de54689f74b8efcce7fdc91e40761084686003bcd56c886ee97e75a7e803526102204dea51ae5e7d01bd56a8c336c64841f7fe02a8b101fa892e13f2d079bb14e6bf012102024e2f73d632c49f4b821ccd3b6da66b155427b1e5b1c4688cefd5a4b4bfa404c139140022020223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa4730440220629d89626585f563202e6b38ceddc26ccd00737e0b7ee4239b9266ef9174ea2f02200b74828399a2e35ed46c9b484af4817438d5fea890606ebb201b821944db1fdc0101056952210223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa210273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e2102aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae94153ae22060223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa10b2e35a7d01000080000000000000000022060273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e1053b77ddb010000800000000000000000220602aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae9411043067d63010000800000000000000000000001016952210223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa210273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e2102aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae94153ae22020223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa10b2e35a7d01000080000000000000000022020273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e1053b77ddb010000800000000000000000220202aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae9411043067d6301000080000000000000000000",
partial_tx)
tx = tx_from_any(partial_tx) # simulates moving partial txn between cosigners
# sign tx - second
tx = wallet_offline2.sign_transaction(tx, password=None)
self.assertTrue(tx.is_complete())
tx = tx_from_any(tx.serialize())
self.assertEqual('01000000000101a36fa6d72cb8aadf795097ff18609e278db156ce14f39ddd27023d08b97a3a640000000000fdffffff02a02526000000000017a91447ee5a659f6ffb53f7e3afc1681b6415f3c00fa187585d7200000000002200203c43ac80d6e3015cf378bf6bac0c22456723d6050bef324ec641e7762440c63c04004730440220629d89626585f563202e6b38ceddc26ccd00737e0b7ee4239b9266ef9174ea2f02200b74828399a2e35ed46c9b484af4817438d5fea890606ebb201b821944db1fdc0147304402205d1a59c84c419992069e9764a7992abca6a812cc5dfd4f0d6515d4283e660ce802202597a38899f31545aaf305629bd488f36bf54e4a05fe983932cafbb3906efb8f016952210223f815ab09f6bfc8519165c5232947ae89d9d43d678fb3486f3b28382a2371fa210273c529c2c9a99592f2066cebc2172a48991af2b471cb726b9df78c6497ce984e2102aa8fc578b445a1e4257be6b978fcece92980def98dce0e1eb89e7364635ae94153aec1391400',
str(tx))
self.assertEqual('32e946761b4e718c1fa8d044db9e72d5831f6395eb284faf2fb5c4af0743e501', tx.txid())
self.assertEqual('4376fa5f1f6cb37b1f3956175d3bd4ef6882169294802b250a3c672f3ff431c1', tx.wtxid())
class TestWalletHistory_SimpleRandomOrder(TestCaseForTestnet):
transactions = {
"0f4972c84974b908a58dda2614b68cf037e6c03e8291898c719766f213217b67": "01000000029d1bdbe67f0bd0d7bd700463f5c29302057c7b52d47de9e2ca5069761e139da2000000008b483045022100a146a2078a318c1266e42265a369a8eef8993750cb3faa8dd80754d8d541d5d202207a6ab8864986919fd1a7fd5854f1e18a8a0431df924d7a878ec3dc283e3d75340141045f7ba332df2a7b4f5d13f246e307c9174cfa9b8b05f3b83410a3c23ef8958d610be285963d67c7bc1feb082f168fa9877c25999963ff8b56b242a852b23e25edfeffffff9d1bdbe67f0bd0d7bd700463f5c29302057c7b52d47de9e2ca5069761e139da2010000008a47304402201c7fa37b74a915668b0244c01f14a9756bbbec1031fb69390bcba236148ab37e02206151581f9aa0e6758b503064c1e661a726d75c6be3364a5a121a8c12cf618f64014104dc28da82e141416aaf771eb78128d00a55fdcbd13622afcbb7a3b911e58baa6a99841bfb7b99bcb7e1d47904fda5d13fdf9675cdbbe73e44efcc08165f49bac6feffffff02b0183101000000001976a914ca14915184a2662b5d1505ce7142c8ca066c70e288ac005a6202000000001976a9145eb4eeaefcf9a709f8671444933243fbd05366a388ac54c51200",
"2791cdc98570cc2b6d9d5b197dc2d002221b074101e3becb19fab4b79150446d": "010000000132201ff125888a326635a2fc6e971cd774c4d0c1a757d742d0f6b5b020f7203a050000006a47304402201d20bb5629a35b84ff9dd54788b98e265623022894f12152ac0e6158042550fe02204e98969e1f7043261912dd0660d3da64e15acf5435577fc02a00eccfe76b323f012103a336ad86546ab66b6184238fe63bb2955314be118b32fa45dd6bd9c4c5875167fdffffff0254959800000000001976a9148d2db0eb25b691829a47503006370070bc67400588ac80969800000000001976a914f96669095e6df76cfdf5c7e49a1909f002e123d088ace8ca1200",
"2d216451b20b6501e927d85244bcc1c7c70598332717df91bb571359c358affd": "010000000001036cdf8d2226c57d7cc8485636d8e823c14790d5f24e6cf38ba9323babc7f6db2901000000171600143fc0dbdc2f939c322aed5a9c3544468ec17f5c3efdffffff507dce91b2a8731636e058ccf252f02b5599489b624e003435a29b9862ccc38c0200000017160014c50ff91aa2a790b99aa98af039ae1b156e053375fdffffff6254162cf8ace3ddfb3ec242b8eade155fa91412c5bde7f55decfac5793743c1010000008b483045022100de9599dcd7764ca8d4fcbe39230602e130db296c310d4abb7f7ae4d139c4d46402200fbfd8e6dc94d90afa05b0c0eab3b84feb465754db3f984fbf059447282771c30141045eecefd39fabba7b0098c3d9e85794e652bdbf094f3f85a3de97a249b98b9948857ea1e8209ee4f196a6bbcfbad103a38698ee58766321ba1cdee0cbfb60e7b2fdffffff01e85af70100000000160014e8d29f07cd5f813317bec4defbef337942d85d74024730440220218049aee7bbd34a7fa17f972a8d24a0469b0131d943ef3e30860401eaa2247402203495973f006e6ee6ae74a83228623029f238f37390ee4b587d95cdb1d1aaee9901210392ba263f3a2b260826943ff0df25e9ca4ef603b98b0a916242c947ae0626575f02473044022002603e5ceabb4406d11aedc0cccbf654dd391ce68b6b2228a40e51cf8129310d0220533743120d93be8b6c1453973935b911b0a2322e74708d23e8b5f90e74b0f192012103221b4ee0f508ba595fc1b9c2252ed9d03e99c73b97344dae93263c68834f034800ed161300",
"31494e7e9f42f4bd736769b07cc602e2a1019617b2c72a03ec945b667aada78f": "0100000000010454022b1b4d3b45e7fcac468de2d6df890a9f41050c05d80e68d4b083f728e76a000000008b483045022100ea8fe74db2aba23ad36ac66aaa481bad2b4d1b3c331869c1d60a28ce8cfad43c02206fa817281b33fbf74a6dd7352bdc5aa1d6d7966118a4ad5b7e153f37205f1ae80141045f7ba332df2a7b4f5d13f246e307c9174cfa9b8b05f3b83410a3c23ef8958d610be285963d67c7bc1feb082f168fa9877c25999963ff8b56b242a852b23e25edfdffffff54022b1b4d3b45e7fcac468de2d6df890a9f41050c05d80e68d4b083f728e76a01000000171600146dfe07e12af3db7c715bf1c455f8517e19c361e7fdffffff54022b1b4d3b45e7fcac468de2d6df890a9f41050c05d80e68d4b083f728e76a020000006a47304402200b1fb89e9a772a8519294acd61a53a29473ce76077165447f49a686f1718db5902207466e2e8290f84114dc9d6c56419cb79a138f03d7af8756de02c810f19e4e03301210222bfebe09c2638cfa5aa8223fb422fe636ba9675c5e2f53c27a5d10514f49051fdffffff54022b1b4d3b45e7fcac468de2d6df890a9f41050c05d80e68d4b083f728e76a0300000000fdffffff018793140d000000001600144b3e27ddf4fc5f367421ee193da5332ef351b700000247304402207ba52959938a3853bcfd942d8a7e6a181349069cde3ea73dbde43fa9669b8d5302207a686b92073863203305cb5d5550d88bdab0d21b9e9761ba4a106ea3970e08d901210265c1e014112ed19c9f754143fb6a2ff89f8630d62b33eb5ae708c9ea576e61b50002473044022029e868a905aa3ecae6eafcbd5959aefff0e5f39c1fc7a131a174828806e74e5202202f0aaa7c3cb3d9a9d526e5428ce37c0f0af0d774aa30b09ded8bc2230e7ffaf2012102fe0104455dc52b1689bba130664e452642180eb865217acfc6997260b7d946ae22c71200",
"336eee749da7d1c537fd5679157fae63005bfd4bb8cf47ae73600999cbc9beaa": "0100000000010232201ff125888a326635a2fc6e971cd774c4d0c1a757d742d0f6b5b020f7203a020000006a4730440220198c0ba2b2aefa78d8cca01401d408ecdebea5ac05affce36f079f6e5c8405ca02200eabb1b9a01ff62180cf061dfacedba6b2e07355841b9308de2d37d83489c7b80121031c663e5534fe2a6de816aded6bb9afca09b9e540695c23301f772acb29c64a05fdfffffffb28ff16811d3027a2405be68154be8fdaff77284dbce7a2314c4107c2c941600000000000fdffffff015e104f01000000001976a9146dfd56a0b5d0c9450d590ad21598ecfeaa438bd788ac000247304402207d6dc521e3a4577685535f098e5bac4601aa03658b924f30bf7afef1850e437e022045b76771d8b6ca1939352d6b759fca31029e5b2edffa44dc747fe49770e746cd012102c7f36d4ceed353b90594ebaf3907972b6d73289bdf4707e120de31ec4e1eb11679f31200",
"3a6ed17d34c49dfdf413398e113cf5f71710d59e9f4050bbc601d513a77eb308": "010000000168091e76227e99b098ef8d6d5f7c1bb2a154dd49103b93d7b8d7408d49f07be0000000008a47304402202f683a63af571f405825066bd971945a35e7142a75c9a5255d364b25b7115d5602206c59a7214ae729a519757e45fdc87061d357813217848cf94df74125221267ac014104aecb9d427e10f0c370c32210fe75b6e72ccc4f415076cf1a6318fbed5537388862c914b29269751ab3a04962df06d96f5f4f54e393a0afcbfa44b590385ae61afdffffff0240420f00000000001976a9145f917fd451ca6448978ebb2734d2798274daf00b88aca8063d00000000001976a914e1232622a96a04f5e5a24ca0792bb9c28b089d6e88ace9ca1200",
"475c149be20c8a73596fad6cb8861a5af46d4fcf8e26a9dbf6cedff7ff80b70d": "01000000013a7e6f19a963adc7437d2f3eb0936f1fc9ef4ba7e083e19802eb1111525a59c2000000008b483045022100958d3931051306489d48fe69b32561e0a16e82a2447c07be9d1069317084b5e502202f70c2d9be8248276d334d07f08f934ffeea83977ad241f9c2de954a2d577f94014104d950039cec15ad10ad4fb658873bc746148bc861323959e0c84bf10f8633104aa90b64ce9f80916ab0a4238e025dcddf885b9a2dd6e901fe043a433731db8ab4fdffffff02a086010000000000160014bbfab2cc3267cea2df1b68c392cb3f0294978ca922940d00000000001976a914760f657c67273a06cad5b1d757a95f4ed79f5a4b88ac4c8d1300",
"56a65810186f82132cea35357819499468e4e376fca685c023700c75dc3bd216": "01000000000101614b142aeeb827d35d2b77a5b11f16655b6776110ddd9f34424ff49d85706cf90200000000fdffffff02784a4c00000000001600148464f47f35cbcda2e4e5968c5a3a862c43df65a1404b4c00000000001976a914c9efecf0ecba8b42dce0ae2b28e3ea0573d351c988ac0247304402207d8e559ed1f56cb2d02c4cb6c95b95c470f4b3cb3ce97696c3a58e39e55cd9b2022005c9c6f66a7154032a0bb2edc1af1f6c8f488bec52b6581a3a780312fb55681b0121024f83b87ac3440e9b30cec707b7e1461ecc411c2f45520b45a644655528b0a68ae9ca1200",
"6ae728f783b0d4680ed8050c05419f0a89dfd6e28d46acfce7453b4d1b2b0254": "0100000000010496941b9f18710b39bacde890e39a7fa401e6bf49985857cb7adfb8a45147ef1e000000001716001441aec99157d762708339d7faf7a63a8c479ed84cfdffffff96941b9f18710b39bacde890e39a7fa401e6bf49985857cb7adfb8a45147ef1e0100000000fdffffff1a5d1e4ca513983635b0df49fd4f515c66dd26d7bff045cfbd4773aa5d93197f000000006a4730440220652145460092ef42452437b942cb3f563bf15ad90d572d0b31d9f28449b7a8dd022052aae24f58b8f76bd2c9cf165cc98623f22870ccdbef1661b6dbe01c0ef9010f01210375b63dd8e93634bbf162d88b25d6110b5f5a9638f6fe080c85f8b21c2199a1fdfdffffff1a5d1e4ca513983635b0df49fd4f515c66dd26d7bff045cfbd4773aa5d93197f010000008a47304402207517c52b241e6638a84b05385e0b3df806478c2e444f671ca34921f6232ee2e70220624af63d357b83e3abe7cdf03d680705df0049ec02f02918ee371170e3b4a73d014104de408e142c00615294813233cdfe9e7774615ae25d18ba4a1e3b70420bb6666d711464518457f8b947034076038c6f0cfc8940d85d3de0386e0ad88614885c7cfdffffff0480969800000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac809698000000000017a914f2a76207d7b54bd34282281205923841341d9e1f87002d3101000000001976a914b8d4651937cd7db5bcf5fc98e6d2d8cfa131e85088ac743db20a00000000160014c7d0df09e03173170aed0247243874c6872748ed02483045022100b932cda0aeb029922e126568a48c05d79317747dcd77e61dce44e190e140822002202d13f84338bb272c531c4086277ac11e166c59612f4aefa6e20f78455bdc09970121028e6808a8ac1e9ede621aaabfcad6f86662dbe0ace0236f078eb23c24bc88bd5e02483045022100d74a253262e3898626c12361ba9bb5866f9303b42eec0a55ced0578829e2e61e022059c08e61d90cd63c84de61c796c9d1bc1e2f8217892a7c07b383af357ddd7a730121028641e89822127336fc12ff99b1089eb1a124847639a0e98d17ff03a135ad578b000020c71200",
"72419d187c61cfc67a011095566b374dc2c01f5397e36eafe68e40fc44474112": "0100000002677b2113f26697718c8991823ec0e637f08cb61426da8da508b97449c872490f000000008b4830450221009c50c0f56f34781dfa7b3d540ac724436c67ffdc2e5b2d5a395c9ebf72116ef802205a94a490ea14e4824f36f1658a384aeaecadd54839600141eb20375a49d476d1014104c291245c2ee3babb2a35c39389df56540867f93794215f743b9aa97f5ba114c4cdee8d49d877966728b76bc649bb349efd73adef1d77452a9aac26f8c51ae1ddfdffffff677b2113f26697718c8991823ec0e637f08cb61426da8da508b97449c872490f010000008b483045022100ae0b286493491732e7d3f91ab4ac4cebf8fe8a3397e979cb689e62d350fdcf2802206cf7adf8b29159dd797905351da23a5f6dab9b9dbf5028611e86ccef9ff9012e014104c62c4c4201d5c6597e5999f297427139003fdb82e97c2112e84452d1cfdef31f92dd95e00e4d31a6f5f9af0dadede7f6f4284b84144e912ff15531f36358bda7fdffffff019f7093030000000022002027ce908c4ee5f5b76b4722775f23e20c5474f459619b94040258290395b88afb6ec51200",
"76bcf540b27e75488d95913d0950624511900ae291a37247c22d996bb7cde0b4": "0100000001f4ba9948cdc4face8315c7f0819c76643e813093ffe9fbcf83d798523c7965db000000006a473044022061df431a168483d144d4cffe1c5e860c0a431c19fc56f313a899feb5296a677c02200208474cc1d11ad89b9bebec5ec00b1e0af0adaba0e8b7f28eed4aaf8d409afb0121039742bf6ab70f12f6353e9455da6ed88f028257950450139209b6030e89927997fdffffff01d4f84b00000000001976a9140b93db89b6bf67b5c2db3370b73d806f458b3d0488ac0a171300",
"7f19935daa7347bdcf45f0bfd726dd665c514ffd49dfb035369813a54c1e5d1a": "01000000000102681b6a8dd3a406ee10e4e4aece3c2e69f6680c02f53157be6374c5c98322823a00000000232200209adfa712053a06cc944237148bcefbc48b16eb1dbdc43d1377809bcef1bea9affdffffff681b6a8dd3a406ee10e4e4aece3c2e69f6680c02f53157be6374c5c98322823a0100000023220020f40ed2e3fbffd150e5b74f162c3ce5dae0dfeba008a7f0f8271cf1cf58bfb442fdffffff02801d2c04000000001976a9140cc01e19090785d629cdcc98316f328df554de4f88ac6d455d05000000001976a914b9e828990a8731af4527bcb6d0cddf8d5ffe90ce88ac040047304402206eb65bd302eefae24eea05781e8317503e68584067d35af028a377f0751bb55b0220226453d00db341a4373f1bcac2391f886d3a6e4c30dd15133d1438018d2aad24014730440220343e578591fab0236d28fb361582002180d82cb1ba79eec9139a7a9519fca4260220723784bd708b4a8ed17bb4b83a5fd2e667895078e80eec55119015beb3592fd2016952210222eca5665ed166d090a5241d9a1eb27a92f85f125aaf8df510b2b5f701f3f534210227bca514c22353a7ae15c61506522872afecf10df75e599aabe4d562d0834fce2103601d7d49bada5a57a4832eafe4d1f1096d7b0b051de4a29cd5fc8ad62865e0a553ae0400483045022100b15ea9daacd809eb4d783a1449b7eb33e2965d4229e1a698db10869299dddc670220128871ffd27037a3e9dac6748ce30c14b145dd7f9d56cc9dcde482461fb6882601483045022100cb659e1de65f8b87f64d1b9e62929a5d565bbd13f73a1e6e9dd5f4efa024b6560220667b13ce2e1a3af2afdcedbe83e2120a6e8341198a79efb855b8bc5f93b4729f0169522102d038600af253cf5019f9d5637ca86763eca6827ed7b2b7f8cc6326dffab5eb68210315cdb32b7267e9b366fb93efe29d29705da3db966e8c8feae0c8eb51a7cf48e82103f0335f730b9414acddad5b3ee405da53961796efd8c003e76e5cd306fcc8600c53ae1fc71200",
"9de08bcafc602a3d2270c46cbad1be0ef2e96930bec3944739089f960652e7cb": "010000000001013409c10fd732d9e4b3a9a1c4beb511fa5eb32bc51fd169102a21aa8519618f800000000000fdffffff0640420f00000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac40420f00000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac40420f00000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac80841e00000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac64064a000000000016001469825d422ca80f2a5438add92d741c7df45211f280969800000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac02483045022100b4369b18bccb74d72b6a38bd6db59122a9e8af3356890a5ecd84bdb8c7ffe317022076a5aa2b817be7b3637d179106fccebb91acbc34011343c8e8177acc2da4882e0121033c8112bbf60855f4c3ae489954500c4b8f3408665d8e1f63cf3216a76125c69865281300",
"a29d131e766950cae2e97dd4527b7c050293c2f5630470bdd7d00b7fe6db1b9d": "010000000400899af3606e93106a5d0f470e4e2e480dfc2fd56a7257a1f0f4d16fd5961a0f000000006a47304402205b32a834956da303f6d124e1626c7c48a30b8624e33f87a2ae04503c87946691022068aa7f936591fb4b3272046634cf526e4f8a018771c38aff2432a021eea243b70121034bb61618c932b948b9593d1b506092286d9eb70ea7814becef06c3dfcc277d67fdffffff4bc2dcc375abfc7f97d8e8c482f4c7b8bc275384f5271678a32c35d955170753000000006b483045022100de775a580c6cb47061d5a00c6739033f468420c5719f9851f32c6992610abd3902204e6b296e812bb84a60c18c966f6166718922780e6344f243917d7840398eb3db0121025d7317c6910ad2ad3d29a748c7796ddf01e4a8bc5e3bf2a98032f0a20223e4aafdffffff4bc2dcc375abfc7f97d8e8c482f4c7b8bc275384f5271678a32c35d955170753010000006a4730440220615a26f38bf6eb7043794c08fb81f273896b25783346332bec4de8dfaf7ed4d202201c2bc4515fc9b07ded5479d5be452c61ce785099f5e33715e9abd4dbec410e11012103caa46fcb1a6f2505bf66c17901320cc2378057c99e35f0630c41693e97ebb7cffdffffff4bc2dcc375abfc7f97d8e8c482f4c7b8bc275384f5271678a32c35d955170753030000006b483045022100c8fba762dc50041ee3d5c7259c01763ed913063019eefec66678fb8603624faa02200727783ccbdbda8537a6201c63e30c0b2eb9afd0e26cb568d885e6151ef2a8540121027254a862a288cfd98853161f575c49ec0b38f79c3ef0bf1fb89986a3c36a8906fdffffff0240787d01000000001976a9149cd3dfb0d87a861770ae4e268e74b45335cf00ab88ac3bfc1502000000001976a914c30f2af6a79296b6531bf34dba14c8419be8fb7d88ac52c51200",
"c1433779c5faec5df5e7bdc51214a95f15deeab842c23efbdde3acf82c165462": "0100000003aabec9cb99096073ae47cfb84bfd5b0063ae7f157956fd37c5d1a79d74ee6e33000000008b4830450221008136fc880d5e24fdd9d2a43f5085f374fef013b814f625d44a8075104981d92a0220744526ec8fc7887c586968f22403f0180d54c9b7ff8db9b553a3c4497982e8250141047b8b4c91c5a93a1f2f171c619ca41770427aa07d6de5130c3ba23204b05510b3bd58b7a1b35b9c4409104cfe05e1677fc8b51c03eac98b206e5d6851b31d2368fdffffff16d23bdc750c7023c085a6fc76e3e468944919783535ea2c13826f181058a656010000008a47304402204148410f2d796b1bb976b83904167d28b65dcd7c21b3876022b4fa70abc86280022039ea474245c3dc8cd7e5a572a155df7a6a54496e50c73d9fed28e76a1cf998c00141044702781daed201e35aa07e74d7bda7069e487757a71e3334dc238144ad78819de4120d262e8488068e16c13eea6092e3ab2f729c13ef9a8c42136d6365820f7dfdffffff68091e76227e99b098ef8d6d5f7c1bb2a154dd49103b93d7b8d7408d49f07be0010000008b4830450221008228af51b61a4ee09f58b4a97f204a639c9c9d9787f79b2fc64ea54402c8547902201ed81fca828391d83df5fbd01a3fa5dd87168c455ed7451ba8ccb5bf06942c3b0141046fcdfab26ac08c827e68328dbbf417bbe7577a2baaa5acc29d3e33b3cc0c6366df34455a9f1754cb0952c48461f71ca296b379a574e33bcdbb5ed26bad31220bfdffffff0210791c00000000001976a914a4b991e7c72996c424fe0215f70be6aa7fcae22c88ac80c3c901000000001976a914b0f6e64ea993466f84050becc101062bb502b4e488ac7af31200",
"c2595a521111eb0298e183e0a74befc91f6f93b03e2f7d43c7ad63a9196f7e3a": "01000000018557003cb450f53922f63740f0f77db892ef27e15b2614b56309bfcee96a0ad3010000006a473044022041923c905ae4b5ed9a21aa94c60b7dbcb8176d58d1eb1506d9fb1e293b65ce01022015d6e9d2e696925c6ad46ce97cc23dec455defa6309b839abf979effc83b8b160121029332bf6bed07dcca4be8a5a9d60648526e205d60c75a21291bffcdefccafdac3fdffffff01c01c0f00000000001976a914a2185918aa1006f96ed47897b8fb620f28a1b09988ac01171300",
"e07bf0498d40d7b8d7933b1049dd54a1b21b7c5f6d8def98b0997e22761e0968": "01000000016d445091b7b4fa19cbbee30141071b2202d0c27d195b9d6d2bcc7085c9cd9127010000008b483045022100daf671b52393af79487667eddc92ebcc657e8ae743c387b25d1c1a2e19c7a4e7022015ef2a52ea7e94695de8898821f9da539815775516f18329896e5fc52a3563b30141041704a3daafaace77c8e6e54cf35ed27d0bf9bb8bcd54d1b955735ff63ec54fe82a80862d455c12e739108b345d585014bf6aa0cbd403817c89efa18b3c06d6b5fdffffff02144a4c00000000001976a9148942ac692ace81019176c4fb0ac408b18b49237f88ac404b4c00000000001976a914dd36d773acb68ac1041bc31b8a40ee504b164b2e88ace9ca1200",
"e453e7346693b507561691b5ea73f8eba60bfc8998056226df55b2fac88ba306": "010000000125af87b0c2ebb9539d644e97e6159ccb8e1aa80fe986d01f60d2f3f37f207ae8010000008b483045022100baed0747099f7b28a5624005d50adf1069120356ac68c471a56c511a5bf6972b022046fbf8ec6950a307c3c18ca32ad2955c559b0d9bbd9ec25b64f4806f78cadf770141041ea9afa5231dc4d65a2667789ebf6806829b6cf88bfe443228f95263730b7b70fb8b00b2b33777e168bcc7ad8e0afa5c7828842794ce3814c901e24193700f6cfdffffff02a0860100000000001976a914ade907333744c953140355ff60d341cedf7609fd88ac68830a00000000001976a9145d48feae4c97677e4ca7dcd73b0d9fd1399c962b88acc9cc1300",
"e87a207ff3f3d2601fd086e90fa81a8ecb9c15e6974e649d53b9ebc2b087af25": "01000000010db780fff7dfcef6dba9268ecf4f6df45a1a86b86cad6f59738a0ce29b145c47010000008a47304402202887ec6ec200e4e2b4178112633011cbdbc999e66d398b1ff3998e23f7c5541802204964bd07c0f18c48b7b9c00fbe34c7bc035efc479e21a4fa196027743f06095f0141044f1714ed25332bb2f74be169784577d0838aa66f2374f5d8cbbf216063626822d536411d13cbfcef1ff3cc1d58499578bc4a3c4a0be2e5184b2dd7963ef67713fdffffff02a0860100000000001600145bbdf3ba178f517d4812d286a40c436a9088076e6a0b0c00000000001976a9143fc16bef782f6856ff6638b1b99e4d3f863581d388acfbcb1300"
}
txid_list = sorted(list(transactions))
def setUp(self):
super().setUp()
self.config = SimpleConfig({'electrum_path': self.electrum_path})
def create_old_wallet(self):
ks = keystore.from_old_mpk('e9d4b7866dd1e91c862aebf62a49548c7dbf7bcc6e4b7b8c9da820c7737968df9c09d5a3e271dc814a29981f81b3faaf2737b551ef5dcc6189cf0f8252c442b3')
# seed words: powerful random nobody notice nothing important anyway look away hidden message over
w = WalletIntegrityHelper.create_standard_wallet(ks, gap_limit=20, config=self.config)
# some txns are beyond gap limit:
w.create_new_address(for_change=True)
return w
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_restoring_old_wallet_txorder1(self, mock_save_db):
w = self.create_old_wallet()
for i in [2, 12, 7, 9, 11, 10, 16, 6, 17, 1, 13, 15, 5, 8, 4, 0, 14, 18, 3]:
tx = Transaction(self.transactions[self.txid_list[i]])
w.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual(27633300, sum(w.get_balance()))
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_restoring_old_wallet_txorder2(self, mock_save_db):
w = self.create_old_wallet()
for i in [9, 18, 2, 0, 13, 3, 1, 11, 4, 17, 7, 14, 12, 15, 10, 8, 5, 6, 16]:
tx = Transaction(self.transactions[self.txid_list[i]])
w.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual(27633300, sum(w.get_balance()))
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_restoring_old_wallet_txorder3(self, mock_save_db):
w = self.create_old_wallet()
for i in [5, 8, 17, 0, 9, 10, 12, 3, 15, 18, 2, 11, 14, 7, 16, 1, 4, 6, 13]:
tx = Transaction(self.transactions[self.txid_list[i]])
w.receive_tx_callback(tx.txid(), tx, TX_HEIGHT_UNCONFIRMED)
self.assertEqual(27633300, sum(w.get_balance()))
class TestWalletHistory_EvilGapLimit(TestCaseForTestnet):
transactions = {
# txn A:
"511a35e240f4c8855de4c548dad932d03611a37e94e9203fdb6fc79911fe1dd4": "010000000001018aacc3c8f98964232ebb74e379d8ff4e800991eecfcf64bd1793954f5e50a8790100000000fdffffff0340420f0000000000160014dbf321e905d544b54b86a2f3ed95b0ac66a3ddb0ff0514000000000016001474f1c130d3db22894efb3b7612b2c924628d0d7e80841e000000000016001488492707677190c073b6555fb08d37e91bbb75d802483045022100cf2904e09ea9d2670367eccc184d92fcb8a9b9c79a12e4efe81df161077945db02203530276a3401d944cf7a292e0660f36ee1df4a1c92c131d2c0d31d267d52524901210215f523a412a5262612e1a5ef9842dc864b0d73dc61fb4c6bfd480a867bebb1632e181400",
# txn B:
"fde0b68938709c4979827caa576e9455ded148537fdb798fd05680da64dc1b4f": "01000000000101a317998ac6cc717de17213804e1459900fe257b9f4a3b9b9edd29806728277530100000000fdffffff03c0c62d00000000001600149543301687b1ca2c67718d55fbe10413c73ddec200093d00000000001600141bc12094a4475dcfbf24f9920dafddf9104ca95b3e4a4c0000000000160014b226a59f2609aa7da4026fe2c231b5ae7be12ac302483045022100f1082386d2ce81612a3957e2801803938f6c0066d76cfbd853918d4119f396df022077d05a2b482b89707a8a600013cb08448cf211218a462f2a23c2c0d80a8a0ca7012103f4aac7e189de53d95e0cb2e45d3c0b2be18e93420734934c61a6a5ad88dd541033181400",
# txn C:
"268fce617aaaa4847835c2212b984d7b7741fdab65de22813288341819bc5656": "010000000001014f1bdc64da8056d08f79db7f5348d1de55946e57aa7c8279499c703889b6e0fd0100000000fdffffff0260e316000000000016001445e9879cf7cd5b4a15df7ddcaf5c6dca0e1508bacc242600000000001600141bc12094a4475dcfbf24f9920dafddf9104ca95b02483045022100ae3618912f341fefee11b67e0047c47c88c4fa031561c3fafe993259dd14d846022056fa0a5b5d8a65942fa68bcc2f848fd71fa455ba42bc2d421b67eb49ba62aa4e01210394d8f4f06c2ea9c569eb050c897737a7315e7f2104d9b536b49968cc89a1f11033181400",
}
def setUp(self):
super().setUp()
self.config = SimpleConfig({
'electrum_path': self.electrum_path,
'skipmerklecheck': True, # needed for Synchronizer to generate new addresses without SPV
})
def create_wallet(self):
ks = keystore.from_xpub('vpub5Vhmk4dEJKanDTTw6immKXa3thw45u3gbd1rPYjREB6viP13sVTWcH6kvbR2YeLtGjradr6SFLVt9PxWDBSrvw1Dc1nmd3oko3m24CQbfaJ')
# seed words: nephew work weather maze pyramid employ check permit garment scene kiwi smooth
w = WalletIntegrityHelper.create_standard_wallet(ks, gap_limit=20, config=self.config)
return w
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_restoring_wallet_txorder1(self, mock_save_db):
w = self.create_wallet()
w.db.put('stored_height', 1316917 + 100)
for txid in self.transactions:
tx = Transaction(self.transactions[txid])
w.add_transaction(tx)
# txn A is an external incoming txn paying to addr (3) and (15)
# txn B is an external incoming txn paying to addr (4) and (25)
# txn C is an internal transfer txn from addr (25) -- to -- (1) and (25)
w.receive_history_callback('tb1qgh5c088he4d559wl0hw27hrdeg8p2z96pefn4q', # HD index 1
[('268fce617aaaa4847835c2212b984d7b7741fdab65de22813288341819bc5656', 1316917)],
{})
w.synchronize()
w.receive_history_callback('tb1qm0ejr6g964zt2jux5te7m9ds43n28hdsdz9ull', # HD index 3
[('511a35e240f4c8855de4c548dad932d03611a37e94e9203fdb6fc79911fe1dd4', 1316912)],
{})
w.synchronize()
w.receive_history_callback('tb1qj4pnq958k89zcem3342lhcgyz0rnmhkzl6x0cl', # HD index 4
[('fde0b68938709c4979827caa576e9455ded148537fdb798fd05680da64dc1b4f', 1316917)],
{})
w.synchronize()
w.receive_history_callback('tb1q3pyjwpm8wxgvquak240mprfhaydmkawcsl25je', # HD index 15
[('511a35e240f4c8855de4c548dad932d03611a37e94e9203fdb6fc79911fe1dd4', 1316912)],
{})
w.synchronize()
w.receive_history_callback('tb1qr0qjp99ygawul0eylxfqmt7alygye22mj33vej', # HD index 25
[('fde0b68938709c4979827caa576e9455ded148537fdb798fd05680da64dc1b4f', 1316917),
('268fce617aaaa4847835c2212b984d7b7741fdab65de22813288341819bc5656', 1316917)],
{})
w.synchronize()
self.assertEqual(9999788, sum(w.get_balance()))
class TestWalletHistory_DoubleSpend(TestCaseForTestnet):
transactions = {
# txn A:
"a3849040f82705151ba12a4389310b58a17b78025d81116a3338595bdefa1625": "020000000001011b7eb29921187b40209c234344f57a3365669c8883a3d511fbde5155f11f64d10000000000fdffffff024c400f0000000000160014b50d21483fb5e088db90bf766ea79219fb377fef40420f0000000000160014aaf5fc4a6297375c32403a9c2768e7029c8dbd750247304402206efd510954b289829f8f778163b98a2a4039deb93c3b0beb834b00cd0add14fd02201c848315ddc52ced0350a981fe1a7f3cbba145c7a43805db2f126ed549eaa500012103083a50d63264743456a3e812bfc91c11bd2a673ba4628c09f02d78f62157e56d788d1700",
# txn B:
"0e2182ead6660790290371516cb0b80afa8baebd30dad42b5e58a24ceea17f1c": "020000000001012516fade5b5938336a11815d02787ba1580b3189432aa11b150527f8409084a30100000000fdffffff02a086010000000000160014cb893c9fbb565363556fb18a3bcdda6f20af0bf8d8ba0d0000000000160014478902f02c2b6cd405bb6bd1f90e9860bec173e20247304402206940671b5bdb230a9721aa57396af73d399fb210d795e7dbb8ec1977e101a5470220625505de035d4006b72bd6dfcf09468d1e8da53071080b37b16b0dbbf776db78012102254b5b20ed21c3bba75ec2a9ff230257d13a2493f6b7da066d8195dcdd484310788d1700",
# txn C:
"2c9aa33d9c8ec649f9bfb84af027a5414b760be5231fe9eca4a95b9eb3f8a017": "020000000001012516fade5b5938336a11815d02787ba1580b3189432aa11b150527f8409084a30100000000fdffffff01d2410f00000000001600147880a7c79744b908a5f6d6235f2eb46c174c84f002483045022100974d27c872f09115e57c6acb674cd4da6d0b26656ad967ddb2678ff409714b9502206d91b49cf778ced6ca9e40b4094fb57b86c86fac09ce46ce53aea4afa68ff311012102254b5b20ed21c3bba75ec2a9ff230257d13a2493f6b7da066d8195dcdd484310788d1700",
}
def setUp(self):
super().setUp()
self.config = SimpleConfig({'electrum_path': self.electrum_path})
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_restoring_wallet_without_manual_delete(self, mock_save_db):
w = restore_wallet_from_text("small rapid pattern language comic denial donate extend tide fever burden barrel",
path='if_this_exists_mocking_failed_648151893',
gap_limit=5,
config=self.config)['wallet'] # type: Abstract_Wallet
for txid in self.transactions:
tx = Transaction(self.transactions[txid])
w.add_transaction(tx)
# txn A is an external incoming txn funding the wallet
# txn B is an outgoing payment to an external address
# txn C is double-spending txn B, to a wallet address
self.assertEqual(999890, sum(w.get_balance()))
@mock.patch.object(wallet.Abstract_Wallet, 'save_db')
def test_restoring_wallet_with_manual_delete(self, mock_save_db):
w = restore_wallet_from_text("small rapid pattern language comic denial donate extend tide fever burden barrel",
path='if_this_exists_mocking_failed_648151893',
gap_limit=5,
config=self.config)['wallet'] # type: Abstract_Wallet
# txn A is an external incoming txn funding the wallet
txA = Transaction(self.transactions["a3849040f82705151ba12a4389310b58a17b78025d81116a3338595bdefa1625"])
w.add_transaction(txA)
# txn B is an outgoing payment to an external address
txB = Transaction(self.transactions["0e2182ead6660790290371516cb0b80afa8baebd30dad42b5e58a24ceea17f1c"])
w.add_transaction(txB)
# now the user manually deletes txn B to attempt the double spend
# txn C is double-spending txn B, to a wallet address
# rationale1: user might do this with opt-in RBF transactions
# rationale2: this might be a local transaction, in which case the GUI even allows it
w.remove_transaction(txB.txid())
txC = Transaction(self.transactions["2c9aa33d9c8ec649f9bfb84af027a5414b760be5231fe9eca4a95b9eb3f8a017"])
w.add_transaction(txC)
self.assertEqual(999890, sum(w.get_balance()))
| 116.837687
| 7,390
| 0.864096
| 14,683
| 313,125
| 18.180617
| 0.095553
| 0.028995
| 0.002899
| 0.005125
| 0.537176
| 0.524417
| 0.522083
| 0.512036
| 0.509122
| 0.505829
| 0
| 0.442938
| 0.093333
| 313,125
| 2,679
| 7,391
| 116.881299
| 0.497055
| 0.028497
| 0
| 0.687199
| 0
| 0.001925
| 0.659261
| 0.643738
| 0
| 1
| 0
| 0
| 0.341193
| 1
| 0.036574
| false
| 0.033686
| 0.02358
| 0
| 0.072185
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
6a731a4aa14d6aa20a9a8ea65de57c8f4f4f6412
| 36,932
|
py
|
Python
|
common/quantization.py
|
davidstutz/random-bit-error-robustness
|
59d8533c8db87ba1b220a64032cf929e5d67fbfa
|
[
"Unlicense"
] | null | null | null |
common/quantization.py
|
davidstutz/random-bit-error-robustness
|
59d8533c8db87ba1b220a64032cf929e5d67fbfa
|
[
"Unlicense"
] | null | null | null |
common/quantization.py
|
davidstutz/random-bit-error-robustness
|
59d8533c8db87ba1b220a64032cf929e5d67fbfa
|
[
"Unlicense"
] | null | null | null |
"""
Fixed-point quantization schemes.
"""
import torch
import numpy
import common.torch
EPSILON = 0.001
def quantize(quantization, mixed, quantized_mixed=None, contexts=None, layers=None):
"""
Quantize a model or tensor.
:param quantization: quantizer
:type quantization: common.quantization.Quantization
:param mixed: model or tensor
:type mixed: torch.nn.Module or torch.Tensor
:param quantized_mixed: quantized model or tensor
:type quantized_mixed: torch.nn.Module or torch.Tensor or None
:param contexts: context from past quantzation
:type contexts: mixed
:return: quantized object
:rtype: torch.nn.Module or torch.Tensor
"""
if isinstance(mixed, torch.Tensor):
if quantized_mixed is None:
quantized_mixed = torch.zeros_like(mixed)
quantized_tensor, quantized_context = quantization.quantize(mixed.data, context=contexts)
quantized_mixed.data = quantization.dequantize(quantized_tensor, quantized_context)
return quantized_mixed, quantized_context
elif isinstance(mixed, torch.nn.Module):
if quantized_mixed is None:
quantized_mixed = common.torch.clone(mixed)
parameters = list(mixed.parameters())
quantized_parameters = list(quantized_mixed.parameters())
if layers is None:
layers = list(range(len(parameters)))
assert contexts is None or len(contexts) == len(parameters)
if contexts is None:
contexts = [None] * len(parameters)
quantized_contexts = []
for i in range(len(parameters)):
if i in layers:
quantized_weights, quantized_context = quantization.quantize(parameters[i].data, context=contexts[i])
quantized_parameters[i].data = quantization.dequantize(quantized_weights, quantized_context)
quantized_contexts.append(quantized_context)
else:
quantized_parameters[i].data = parameters[i].data
quantized_contexts.append(None)
return quantized_mixed, quantized_contexts
else:
raise NotImplementedError
def error(original, quantized, ord=2):
"""
Compute quantization error.
:param original: original, unquantized object
:type original: mixed
:param quantized: quantized objective
:type quantized: mixed
:param ord: norm
:type ord: float
:return: error
:rtype: float
"""
if isinstance(original, torch.Tensor):
assert isinstance(quantized, torch.Tensor)
return torch.norm(original - quantized, p=ord).item()
elif isinstance(original, torch.nn.Module):
assert isinstance(quantized, torch.nn.Module)
original_parameters = list(original.parameters())
quantized_parameters = list(quantized.parameters())
assert len(original_parameters) == len(quantized_parameters)
original_weights = None
quantized_weights = None
for i in range(len(original_parameters)):
original_weights = common.torch.concatenate(original_weights, original_parameters[i].view(-1))
quantized_weights = common.torch.concatenate(quantized_weights, quantized_parameters[i].view(-1))
return torch.norm(original_weights - quantized_weights, p=ord).item()
else:
raise NotImplementedError
class Quantization:
"""
Simple quantization interface.
"""
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
assert isinstance(tensor, torch.Tensor)
#assert not isinstance(tensor, torch.autograd.Variable) # tensor = autograd now
assert context is None or isinstance(context, dict)
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
assert isinstance(tensor, torch.Tensor)
#assert not isinstance(tensor, torch.autograd.Variable)
assert context is None or isinstance(context, dict)
class AlternativeFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
def __init__(self, max_abs_range, precision, double=False, correct=False):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
assert max_abs_range > 0
assert precision in [8, 16, 32]
self.max_abs_range = max_abs_range
""" (float) maximum absolute value to represent. """
self.type_precision = precision
""" (int) Type precision. """
self.repr_precision = precision
""" (int) Representation precision. """
self.epsilon = EPSILON
""" (float) Epsilon. """
self.delta = (max_abs_range + self.epsilon) / (2**(precision - 1) - 1)
""" (float) One over decimal range. """
self.protected_bits = [0] * precision
""" ([int]) Protected bits. """
self.round = None
""" (callable) Round. """
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(AlternativeFixedPointQuantization, self).quantize(tensor, context)
assert context is None
quantized_tensor = torch.clamp(tensor, min=-self.max_abs_range, max=self.max_abs_range)
quantized_tensor = quantized_tensor / self.delta
if self.round is not None:
quantized_tensor = self.round(quantized_tensor)
if self.type_precision == 32:
quantized_tensor = quantized_tensor.to(torch.int32)
elif self.type_precision == 16:
quantized_tensor = quantized_tensor.to(torch.int16)
elif self.type_precision == 8:
quantized_tensor = quantized_tensor.to(torch.int8)
else:
raise NotImplementedError()
return quantized_tensor, None
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(AlternativeFixedPointQuantization, self).dequantize(tensor, context)
assert context is None
dequantized_tensor = torch.clamp(tensor.to(torch.float32) * self.delta, min=-self.max_abs_range, max=self.max_abs_range)
return dequantized_tensor
class AdaptiveAlternativeFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
def __init__(self, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
assert precision in [8, 16, 32]
self.type_precision = precision
""" (int) Type precision. """
self.repr_precision = precision
""" (int) Representation precision. """
self.epsilon = EPSILON
""" (float) Minimum range. """
self.protected_bits = [0] * precision
""" ([int]) Protected bits. """
self.round = None
""" (callable) Round. """
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(AdaptiveAlternativeFixedPointQuantization, self).quantize(tensor, context)
if context is not None:
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys()
if context is not None:
max_val = context['max_abs_range']
else:
max_val = torch.max(torch.abs(tensor)).item() + self.epsilon
delta = max_val / (2**(self.repr_precision - 1) - 1)
if context is not None:
assert numpy.isclose(delta, context['delta'])
quantized_tensor = torch.clamp(tensor, min=-max_val, max=max_val)
quantized_tensor = quantized_tensor / delta
if self.round is not None:
quantized_tensor = self.round(quantized_tensor)
if self.type_precision == 32:
quantized_tensor = quantized_tensor.to(torch.int32)
elif self.type_precision == 16:
quantized_tensor = quantized_tensor.to(torch.int16)
elif self.type_precision == 8:
quantized_tensor = quantized_tensor.to(torch.int8)
else:
raise NotImplementedError()
context = {
'max_abs_range': max_val,
'delta': delta
}
return quantized_tensor, context
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(AdaptiveAlternativeFixedPointQuantization, self).dequantize(tensor, context)
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys()
dequantized_tensor = torch.clamp(tensor.to(torch.float32) * context['delta'], min=-context['max_abs_range'], max=context['max_abs_range'])
return dequantized_tensor
class ClippedAdaptiveAlternativeFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
def __init__(self, max_abs_range, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
assert precision in [8, 16, 32]
self.type_precision = precision
""" (int) Type precision. """
self.repr_precision = precision
""" (int) Representation precision. """
self.max_abs_range = max_abs_range
""" (float) Clip. """
self.epsilon = EPSILON
""" (float) Minimum range. """
self.protected_bits = [0] * precision
""" ([int]) Protected bits. """
self.round = None
""" (callable) Round. """
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(ClippedAdaptiveAlternativeFixedPointQuantization, self).quantize(tensor, context)
if context is not None:
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys()
assert numpy.isclose(context['max_abs_range_'], self.max_abs_range), (context['max_abs_range_'], self.max_abs_range)
assert context['max_abs_range'] <= self.max_abs_range + 1e-6, (context['max_abs_range'], self.max_abs_range)
if context is not None:
max_val = context['max_abs_range']
else:
max_val = torch.max(torch.abs(tensor)).item() + self.epsilon
# ! main difference to adaptive
max_val = min(max_val, self.max_abs_range)
delta = max_val / (2 ** (self.repr_precision - 1) - 1)
if context is not None:
assert numpy.isclose(delta, context['delta'])
quantized_tensor = torch.clamp(tensor, min=-max_val, max=max_val)
quantized_tensor = quantized_tensor / delta
if self.round is not None:
quantized_tensor = self.round(quantized_tensor)
if self.type_precision == 32:
quantized_tensor = quantized_tensor.to(torch.int32)
elif self.type_precision == 16:
quantized_tensor = quantized_tensor.to(torch.int16)
elif self.type_precision == 8:
quantized_tensor = quantized_tensor.to(torch.int8)
else:
raise NotImplementedError()
context = {
'max_abs_range_': self.max_abs_range,
'max_abs_range': max_val,
'delta': delta,
}
return quantized_tensor, context
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(ClippedAdaptiveAlternativeFixedPointQuantization, self).dequantize(tensor, context)
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys() and 'max_abs_range_' in context.keys()
assert numpy.isclose(context['max_abs_range_'], self.max_abs_range), (context['max_abs_range_'], self.max_abs_range)
dequantized_tensor = torch.clamp(tensor.to(torch.float32) * context['delta'], min=-context['max_abs_range'], max=context['max_abs_range'])
return dequantized_tensor
class AlternativeUnsymmetricFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeFixedPointQuantization
def __init__(self, min_range, max_range, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
self.quantization = self.quantization_class(max_abs_range=1, precision=precision)
""" (Quantization) Quantization. """
self.min_range = min_range
""" (float) Min of quantization range. """
self.max_range = max_range
""" (float) Max of quantization range. """
# avoid overwriting __get_attr__
self.type_precision = self.quantization.type_precision
self.repr_precision = self.quantization.repr_precision
self.protected_bits = self.quantization.protected_bits
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(AlternativeUnsymmetricFixedPointQuantization, self).quantize(tensor, context)
quantized_tensor = torch.clamp(tensor, min=self.min_range, max=self.max_range)
quantized_tensor = (quantized_tensor - self.min_range)/(self.max_range - self.min_range)
quantized_tensor = quantized_tensor*2 - 1
quantized_tensor, _ = self.quantization.quantize(quantized_tensor, context=None)
assert _ is None
context = None
return quantized_tensor, context
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(AlternativeUnsymmetricFixedPointQuantization, self).dequantize(tensor, context)
dequantized_tensor = self.quantization.dequantize(tensor, context=None)
dequantized_tensor = (dequantized_tensor + 1) / 2
dequantized_tensor = dequantized_tensor*(self.max_range - self.min_range) + self.min_range
dequantized_tensor = torch.clamp(dequantized_tensor, min=self.min_range, max=self.max_range)
return dequantized_tensor
class AdaptiveAlternativeUnsymmetricFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeFixedPointQuantization
def __init__(self, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
self.quantization = self.quantization_class(max_abs_range=1, precision=precision)
""" (Quantization) Quantization. """
# avoid overwriting __get_attr__
self.type_precision = self.quantization.type_precision
self.repr_precision = self.quantization.repr_precision
self.protected_bits = self.quantization.protected_bits
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(AdaptiveAlternativeUnsymmetricFixedPointQuantization, self).quantize(tensor, context)
if context is not None:
assert isinstance(context, dict)
assert 'max_val' in context.keys() and 'min_val' in context.keys()
if context is not None:
max_val = context['max_val']
min_val = context['min_val']
else:
max_val = torch.max(tensor).item()
min_val = torch.min(tensor).item()
quantized_tensor = torch.clamp(tensor, min=min_val, max=max_val)
quantized_tensor = (quantized_tensor - min_val)/(max_val - min_val)
quantized_tensor = quantized_tensor*2 - 1
quantized_tensor, _ = self.quantization.quantize(quantized_tensor, context=None)
assert _ is None
context = {
'max_val': max_val,
'min_val': min_val
}
return quantized_tensor, context
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(AdaptiveAlternativeUnsymmetricFixedPointQuantization, self).dequantize(tensor, context)
assert isinstance(context, dict)
assert 'max_val' in context.keys() and 'min_val' in context.keys()
max_val = context['max_val']
min_val = context['min_val']
dequantized_tensor = self.quantization.dequantize(tensor, context=None)
dequantized_tensor = (dequantized_tensor + 1) / 2
dequantized_tensor = dequantized_tensor*(max_val - min_val) + min_val
dequantized_tensor = torch.clamp(dequantized_tensor, min=min_val, max=max_val)
return dequantized_tensor
class ClippedAdaptiveAlternativeUnsymmetricFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeFixedPointQuantization
def __init__(self, max_abs_range, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
self.max_abs_range = max_abs_range
""" (float) Max abs range. """
self.quantization = self.quantization_class(max_abs_range=1, precision=precision)
""" (Quantization) Quantization. """
# avoid overwriting __get_attr__
self.type_precision = self.quantization.type_precision
self.repr_precision = self.quantization.repr_precision
self.protected_bits = self.quantization.protected_bits
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(ClippedAdaptiveAlternativeUnsymmetricFixedPointQuantization, self).quantize(tensor, context)
if context is not None:
assert isinstance(context, dict)
assert 'max_val' in context.keys() and 'min_val' in context.keys() and 'max_abs_range_' in context.keys()
assert numpy.isclose(self.max_abs_range, context['max_abs_range_'])
quantized_tensor = torch.clamp(tensor, min=-self.max_abs_range, max=self.max_abs_range)
if context is not None:
max_val = context['max_val']
min_val = context['min_val']
else:
max_val = torch.max(quantized_tensor).item()
min_val = torch.min(quantized_tensor).item()
quantized_tensor = torch.clamp(quantized_tensor, min=min_val, max=max_val)
quantized_tensor = (quantized_tensor - min_val) / (max_val - min_val)
quantized_tensor = quantized_tensor * 2 - 1
quantized_tensor, _ = self.quantization.quantize(quantized_tensor, context=None)
assert _ is None
context = {
'max_val': max_val,
'min_val': min_val,
'max_abs_range_': self.max_abs_range,
}
return quantized_tensor, context
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(ClippedAdaptiveAlternativeUnsymmetricFixedPointQuantization, self).dequantize(tensor, context)
assert isinstance(context, dict)
assert 'max_val' in context.keys() and 'min_val' in context.keys() and 'max_abs_range_' in context.keys()
assert numpy.isclose(self.max_abs_range, context['max_abs_range_'])
max_val = context['max_val']
min_val = context['min_val']
assert abs(max_val) <= self.max_abs_range + 1e-6
assert abs(min_val) <= self.max_abs_range + 1e-6
dequantized_tensor = self.quantization.dequantize(tensor, context=None)
dequantized_tensor = (dequantized_tensor + 1) / 2
dequantized_tensor = dequantized_tensor * (max_val - min_val) + min_val
dequantized_tensor = torch.clamp(dequantized_tensor, min=min_val, max=max_val)
return dequantized_tensor
class AlternativeUnsignedFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
def __init__(self, max_abs_range, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
assert precision >= 2
self.type_precision = 8
""" (int) Type precision. """
self.repr_precision = precision
""" (int) Representation precision. """
self.max_abs_range = max_abs_range
""" (float) Max abs range. """
self.epsilon = EPSILON
""" (float) Epsilon. """
self.delta = (self.max_abs_range + self.epsilon) / (2**(self.repr_precision - 1) - 1)
""" (float) Delta. """
self.protected_bits = [0] * precision + [1] * (8 - precision)
""" ([int]) Protected bits. """
assert len(self.protected_bits) == 8
self.round = None
""" (callable) Round. """
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(AlternativeUnsignedFixedPointQuantization, self).quantize(tensor, context)
assert context is None
quantized_tensor = torch.clamp(tensor, min=-self.max_abs_range, max=self.max_abs_range)
quantized_tensor = quantized_tensor / self.delta
quantized_tensor += 2 ** (self.repr_precision - 1) # -1
quantized_tensor = torch.clamp(quantized_tensor, max=2 ** self.repr_precision - 1)
if self.round is not None:
quantized_tensor = self.round(quantized_tensor)
if self.type_precision == 8:
quantized_tensor = quantized_tensor.to(torch.uint8)
else:
raise NotImplementedError()
return quantized_tensor, None
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(AlternativeUnsignedFixedPointQuantization, self).dequantize(tensor, context)
assert context is None
#assert torch.all(tensor <= 2 ** self.repr_precision - 1)
dequantized_tensor = torch.clamp(tensor.to(torch.float32), min=0, max=2 ** self.repr_precision - 1) - 2**(self.repr_precision - 1) # to shield from unwanted bit flips in the unwanted bits for precision < 8
dequantized_tensor = torch.clamp(dequantized_tensor * self.delta, min=-self.max_abs_range, max=self.max_abs_range)
return dequantized_tensor
class AdaptiveAlternativeUnsignedFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
def __init__(self, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
assert precision >= 2
assert precision <= 8
self.type_precision = 8
""" (int) Type precision. """
self.repr_precision = precision
""" (int) Representation precision. """
self.epsilon = EPSILON
""" (float) Minimum range. """
self.protected_bits = [0] * precision + [1] * (8 - precision)
""" ([int]) Protected bits. """
assert len(self.protected_bits) == 8
self.round = None
""" (callable) Round. """
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(AdaptiveAlternativeUnsignedFixedPointQuantization, self).quantize(tensor, context)
if context is not None:
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys()
if context is not None:
max_val = context['max_abs_range']
else:
max_val = torch.max(torch.abs(tensor)).item() + self.epsilon
delta = max_val / (2**(self.repr_precision - 1) - 1)
if context is not None:
assert numpy.isclose(delta, context['delta'])
quantized_tensor = torch.clamp(tensor, min=-max_val, max=max_val)
quantized_tensor = quantized_tensor / delta
quantized_tensor += 2 ** (self.repr_precision - 1)
quantized_tensor = torch.clamp(quantized_tensor, max=2 ** self.repr_precision - 1)
if self.round is not None:
quantized_tensor = self.round(quantized_tensor)
if self.type_precision == 8:
quantized_tensor = quantized_tensor.to(torch.uint8)
else:
raise NotImplementedError()
context = {
'max_abs_range': max_val,
'delta': delta
}
return quantized_tensor, context
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(AdaptiveAlternativeUnsignedFixedPointQuantization, self).dequantize(tensor, context)
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys()
#assert torch.all(tensor <= 2 ** self.repr_precision - 1)
dequantized_tensor = torch.clamp(tensor.to(torch.float32), min=0, max=2 ** self.repr_precision - 1) - 2**(self.repr_precision - 1)# to shield from unwanted bit flips in the unwanted bits for precision < 8
dequantized_tensor = torch.clamp(dequantized_tensor * context['delta'], min=-context['max_abs_range'], max=context['max_abs_range'])
return dequantized_tensor
class ClippedAdaptiveAlternativeUnsignedFixedPointQuantization(Quantization):
"""
Simple float to fixed point quantization.
"""
def __init__(self, max_abs_range, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
assert precision >= 2
self.type_precision = 8
""" (int) Type precision. """
self.repr_precision = precision
""" (int) Representation precision. """
self.max_abs_range = max_abs_range
""" (float) Clip. """
self.epsilon = EPSILON
""" (float) Minimum range. """
self.protected_bits = [0] * precision + [1] * (8 - precision)
""" ([int]) Protected bits. """
assert len(self.protected_bits) == 8
self.round = None
""" (callable) Round. """
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
super(ClippedAdaptiveAlternativeUnsignedFixedPointQuantization, self).quantize(tensor, context)
if context is not None:
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys()
if context is not None:
max_val = context['max_abs_range']
else:
max_val = torch.max(torch.abs(tensor)).item() + self.epsilon
# ! main difference to adaptive
max_val = min(max_val, self.max_abs_range)
delta = max_val / (2 ** (self.repr_precision - 1) - 1)
if context is not None:
assert numpy.isclose(delta, context['delta'])
quantized_tensor = torch.clamp(tensor, min=-max_val, max=max_val)
quantized_tensor = quantized_tensor / delta
quantized_tensor += 2 ** (self.repr_precision - 1)
# assert torch.all(quantized_tensor <= 2 ** self.repr_precision - 1), quantized_tensor
quantized_tensor = torch.clamp(quantized_tensor, min=0, max=2 ** self.repr_precision - 1)
if self.round is not None:
quantized_tensor = self.round(quantized_tensor)
if self.type_precision == 8:
quantized_tensor = quantized_tensor.to(torch.uint8)
else:
raise NotImplementedError()
context = {
'max_abs_range': max_val,
'delta': delta
}
return quantized_tensor, context
def dequantize(self, tensor, context):
"""
De-quantize quantized tensor.
:param tensor: input quantized tensor
:type tensor: torch.Tensor
:param context: additional context such as range
:type context: mixed
:return: de-quantized tensor
:rtype: torch:Tensor
"""
super(ClippedAdaptiveAlternativeUnsignedFixedPointQuantization, self).dequantize(tensor, context)
assert isinstance(context, dict)
assert 'max_abs_range' in context.keys() and 'delta' in context.keys()
#assert torch.all(tensor <= 2 ** self.repr_precision - 1)
dequantized_tensor = torch.clamp(tensor.to(torch.float32), min=0, max=2 ** self.repr_precision - 1) - 2**(self.repr_precision - 1)# to shield from unwanted bit flips in the unwanted bits for precision < 8
dequantized_tensor = torch.clamp(dequantized_tensor * context['delta'], min=-context['max_abs_range'], max=context['max_abs_range'])
return dequantized_tensor
class ClippedAdaptiveAlternativeUnsignedRoundedFixedPointQuantization(ClippedAdaptiveAlternativeUnsignedFixedPointQuantization):
"""
Simple float to fixed point quantization.
"""
def __init__(self, max_abs_range, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
super(ClippedAdaptiveAlternativeUnsignedRoundedFixedPointQuantization, self).__init__(max_abs_range, precision)
self.round = torch.round
def quantize(self, tensor, context=None):
"""
Quantize tensor.
:param tensor: input tensor
:type tensor: torch.Tensor
:param context: quantization context;
allows to use the same context as in past quantization independent of new tensor
:type context: mixed
:return: quantized tensor
:rtype: torch:Tensor
"""
assert self.round is not None
return super(ClippedAdaptiveAlternativeUnsignedRoundedFixedPointQuantization, self).quantize(tensor, context)
class AlternativeUnsymmetricUnsignedFixedPointQuantization(AlternativeUnsymmetricFixedPointQuantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeUnsignedFixedPointQuantization
class AdaptiveAlternativeUnsymmetricUnsignedFixedPointQuantization(AdaptiveAlternativeUnsymmetricFixedPointQuantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeUnsignedFixedPointQuantization
class ClippedAdaptiveAlternativeUnsymmetricUnsignedFixedPointQuantization(ClippedAdaptiveAlternativeUnsymmetricFixedPointQuantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeUnsignedFixedPointQuantization
class AdaptiveAlternativeUnsymmetricUnsignedRoundedFixedPointQuantization(AdaptiveAlternativeUnsymmetricFixedPointQuantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeUnsignedFixedPointQuantization
def __init__(self, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
super(AdaptiveAlternativeUnsymmetricUnsignedRoundedFixedPointQuantization, self).__init__(precision)
self.quantization.round = torch.round
class ClippedAdaptiveAlternativeUnsymmetricUnsignedRoundedFixedPointQuantization(ClippedAdaptiveAlternativeUnsymmetricFixedPointQuantization):
"""
Simple float to fixed point quantization.
"""
quantization_class = AlternativeUnsignedFixedPointQuantization
def __init__(self, max_abs_range, precision):
"""
Constructor.
:param precision: precision to quantized in
:type precision: int
"""
super(ClippedAdaptiveAlternativeUnsymmetricUnsignedRoundedFixedPointQuantization, self).__init__(max_abs_range, precision)
self.quantization.round = torch.round
| 33.483228
| 213
| 0.647135
| 3,896
| 36,932
| 5.971766
| 0.041581
| 0.09155
| 0.041606
| 0.023855
| 0.843119
| 0.836113
| 0.821542
| 0.801083
| 0.74899
| 0.743789
| 0
| 0.006308
| 0.261697
| 36,932
| 1,103
| 214
| 33.483228
| 0.846958
| 0.219945
| 0
| 0.728111
| 0
| 0
| 0.029188
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 1
| 0.080645
| false
| 0
| 0.006912
| 0
| 0.195853
| 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
|
6a765a02fd00f45c580eaa113c09ece9fbe05edb
| 2,846
|
py
|
Python
|
region.py
|
AbdoulayeDiop/Regression-Tree
|
176f87110ae4b76ad222cb08cb79706519ac5457
|
[
"Apache-2.0"
] | null | null | null |
region.py
|
AbdoulayeDiop/Regression-Tree
|
176f87110ae4b76ad222cb08cb79706519ac5457
|
[
"Apache-2.0"
] | null | null | null |
region.py
|
AbdoulayeDiop/Regression-Tree
|
176f87110ae4b76ad222cb08cb79706519ac5457
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
from anytree.node import node
class Region1(node.Node):
def __init__(self, model, j, s, parent=None, elements=[], getlabel=None):
if getlabel:
name = getlabel(j) + "\n <= " + str(s)
else:
name = str(j) + "\n <= " + str(s)
super().__init__(name, parent=parent) if parent else super().__init__(name)
self.model = model
self.j = j
self.s = s
if parent:
self.population = np.array([elt for elt in parent.getPopulation() if elt[j] <= s])
else:
self.population = np.array([elt for elt in elements if elt[j] <= s])
self.name += "\n nb : " + str(self.getSize())
self.value = self.getMean()
self.name += "\n" + str(self.value)
def getPopulation(self):
return self.population
def getSize(self):
return len(self.population)
def getMean(self):
return sum(
[self.model.eval(elt) for elt in self.getPopulation()]) / self.getSize() if self.getSize() != 0 else 0
def getElementSize(self):
return len(self.getPopulation()[0])
def getLoss(self, val):
return sum([self.model.norm(self.model.eval(elt) - val) for elt in self.getPopulation()])
def getLeaves(self):
return np.array(self.leaves)
def __repr__(self):
return self.name
class Region2(node.Node):
def __init__(self, model, j, s, parent=None, elements=[], getlabel=None):
if getlabel:
name = getlabel(j) + "\n > " + str(s)
else:
name = str(j) + "\n > " + str(s)
super().__init__(name, parent=parent) if parent else super().__init__(name)
self.model = model
self.j = j
self.s = s
if parent:
self.population = np.array([elt for elt in parent.getPopulation() if elt[j] > s])
else:
self.population = np.array([elt for elt in elements if elt[j] > s])
self.name += "\n nb : " + str(self.getSize())
self.value = self.getMean()
self.name += "\n" + str(self.value)
def getPopulation(self):
return self.population
def getSize(self):
return len(self.population)
def getSize(self):
return len(self.population)
def getMean(self):
return sum(
[self.model.eval(elt) for elt in self.getPopulation()]) / self.getSize() if self.getSize() != 0 else 0
def getElementSize(self):
return len(self.getPopulation()[0])
def getLoss(self, val):
return sum([self.model.norm(self.model.eval(elt) - val) for elt in self.getPopulation()])
def getLeaves(self):
return np.array(self.leaves)
def __repr__(self):
return self.name
| 31.622222
| 115
| 0.556922
| 362
| 2,846
| 4.290055
| 0.132597
| 0.083709
| 0.041211
| 0.042498
| 0.958789
| 0.958789
| 0.958789
| 0.958789
| 0.958789
| 0.958789
| 0
| 0.004061
| 0.3078
| 2,846
| 89
| 116
| 31.977528
| 0.784264
| 0
| 0
| 0.823529
| 0
| 0
| 0.015234
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.029412
| 0.220588
| 0.529412
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 10
|
6aab53d9b08b227d43f9179f0fe8dcbe8ee66f2f
| 3,297
|
py
|
Python
|
z2/part2/interactive/jm/random_fuzzy_arrows_1/996225190.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 1
|
2020-04-16T12:13:47.000Z
|
2020-04-16T12:13:47.000Z
|
z2/part2/interactive/jm/random_fuzzy_arrows_1/996225190.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 18
|
2020-03-06T17:50:15.000Z
|
2020-05-19T14:58:30.000Z
|
z2/part2/interactive/jm/random_fuzzy_arrows_1/996225190.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 18
|
2020-03-06T17:45:13.000Z
|
2020-06-09T19:18:31.000Z
|
from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 996225190
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 4, 5, 5)
assert board is not None
assert gamma_move(board, 1, 3, 2) == 1
assert gamma_move(board, 1, 3, 0) == 1
assert gamma_move(board, 2, 1, 2) == 1
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 2, 2) == 1
assert gamma_move(board, 4, 0, 1) == 1
assert gamma_move(board, 4, 1, 3) == 1
assert gamma_move(board, 5, 3, 0) == 0
assert gamma_free_fields(board, 5) == 14
assert gamma_move(board, 1, 3, 2) == 0
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_golden_possible(board, 1) == 1
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_busy_fields(board, 2) == 2
assert gamma_move(board, 3, 1, 2) == 0
assert gamma_move(board, 3, 1, 3) == 0
assert gamma_free_fields(board, 3) == 13
assert gamma_move(board, 4, 4, 0) == 1
assert gamma_move(board, 5, 3, 4) == 0
assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 1, 1, 1) == 0
assert gamma_move(board, 2, 3, 4) == 0
assert gamma_move(board, 2, 2, 2) == 0
assert gamma_busy_fields(board, 2) == 2
assert gamma_move(board, 3, 3, 2) == 0
assert gamma_move(board, 4, 3, 4) == 0
assert gamma_move(board, 4, 2, 2) == 0
assert gamma_move(board, 5, 3, 4) == 0
assert gamma_move(board, 5, 4, 0) == 0
assert gamma_move(board, 1, 0, 1) == 0
assert gamma_golden_possible(board, 1) == 1
board963775519 = gamma_board(board)
assert board963775519 is not None
assert board963775519 == (".4...\n"
".231.\n"
"42...\n"
"1..14\n")
del board963775519
board963775519 = None
assert gamma_move(board, 2, 2, 3) == 1
assert gamma_busy_fields(board, 2) == 3
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 2, 3) == 0
assert gamma_move(board, 3, 1, 1) == 0
assert gamma_move(board, 4, 3, 4) == 0
assert gamma_move(board, 4, 4, 1) == 1
assert gamma_move(board, 5, 1, 3) == 0
assert gamma_free_fields(board, 5) == 9
assert gamma_move(board, 1, 4, 3) == 1
assert gamma_move(board, 1, 1, 3) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 1, 3) == 0
assert gamma_move(board, 4, 2, 0) == 1
assert gamma_move(board, 4, 0, 3) == 1
assert gamma_move(board, 5, 3, 2) == 0
assert gamma_golden_move(board, 5, 2, 1) == 0
assert gamma_move(board, 1, 2, 4) == 0
assert gamma_move(board, 2, 2, 0) == 0
assert gamma_move(board, 3, 3, 0) == 0
assert gamma_move(board, 5, 1, 2) == 0
assert gamma_move(board, 1, 3, 3) == 1
assert gamma_move(board, 1, 2, 3) == 0
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 3, 2, 2) == 0
assert gamma_move(board, 3, 0, 0) == 0
assert gamma_busy_fields(board, 3) == 1
assert gamma_move(board, 4, 0, 3) == 0
assert gamma_move(board, 1, 2, 4) == 0
assert gamma_move(board, 2, 2, 4) == 0
assert gamma_move(board, 2, 2, 2) == 0
assert gamma_move(board, 3, 1, 1) == 0
assert gamma_busy_fields(board, 3) == 1
assert gamma_move(board, 4, 0, 1) == 0
assert gamma_free_fields(board, 4) == 5
assert gamma_move(board, 5, 2, 0) == 0
assert gamma_move(board, 5, 3, 2) == 0
gamma_delete(board)
| 31.701923
| 46
| 0.659084
| 603
| 3,297
| 3.437811
| 0.064677
| 0.36083
| 0.383502
| 0.511336
| 0.817656
| 0.783406
| 0.709117
| 0.502653
| 0.377713
| 0.377713
| 0
| 0.116946
| 0.185623
| 3,297
| 103
| 47
| 32.009709
| 0.655121
| 0
| 0
| 0.258427
| 0
| 0
| 0.008725
| 0
| 0
| 0
| 0
| 0
| 0.797753
| 1
| 0
| false
| 0
| 0.011236
| 0
| 0.011236
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0acf7ac08d28367e502a8f75873a4c1b743f10c2
| 64,440
|
py
|
Python
|
library/scrollphathd/fonts/font5x7.py
|
Kisty/scroll-phat-hd
|
74a16305574ecd708f3a1c8ce667bf114675c5c7
|
[
"MIT"
] | 155
|
2017-02-28T15:33:17.000Z
|
2021-12-15T15:53:52.000Z
|
library/scrollphathd/fonts/font5x7.py
|
Kisty/scroll-phat-hd
|
74a16305574ecd708f3a1c8ce667bf114675c5c7
|
[
"MIT"
] | 59
|
2017-03-02T23:46:13.000Z
|
2022-02-09T17:44:27.000Z
|
library/scrollphathd/fonts/font5x7.py
|
Kisty/scroll-phat-hd
|
74a16305574ecd708f3a1c8ce667bf114675c5c7
|
[
"MIT"
] | 75
|
2017-02-28T10:22:00.000Z
|
2022-02-04T12:59:50.000Z
|
data = {
0x00000000: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00]],
0x00000001: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00]],
0x00000002: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0x00,0xff,0xff,0x00,0xff]],
0x00000003: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000004: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00]],
0x00000005: [[0x00,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0xff,0x00],
[0xff,0xff,0xff],
[0xff,0xff,0x00],
[0xff,0x00,0x00]],
0x00000006: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00]],
0x00000007: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000008: [[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0xff],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00]],
0x00000009: [[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff]],
0x0000000a: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0xff],
[0xff,0x00,0xff],
[0xff,0xff,0xff]],
0x0000000b: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff],
[0x00,0xff,0x00]],
0x0000000c: [[0x00],
[0x00],
[0x00],
[0x00],
[0xff]],
0x0000000d: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00]],
0x0000000e: [[0xff,0xff,0x00],
[0x00,0x00,0xff],
[0xff,0xff,0x00],
[0x00,0x00,0xff],
[0xff,0xff,0x00]],
0x0000000f: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0x00,0x00,0x00],
[0xff,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0x00],
[0xff,0xff,0x00,0x00,0x00],
[0xff,0xff,0x00,0x00,0x00]],
0x00000010: [[0x00,0x00,0xff,0xff,0xff],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000011: [[0x00,0x00,0x00,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff]],
0x00000012: [[0xff,0xff,0x00],
[0x00,0x00,0xff],
[0x00,0xff,0x00],
[0xff,0x00,0x00],
[0xff,0xff,0xff]],
0x00000013: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x00000014: [[0x00,0xff,0xff,0x00],
[0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff],
[0x00,0xff,0xff,0x00]],
0x00000015: [[0xff,0x00,0xff,0xff],
[0xff,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00]],
0x00000016: [[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00]],
0x00000017: [[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0x00],
[0x00,0x00,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x00000018: [[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00]],
0x00000019: [[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0xff],
[0x00,0xff,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x0000001a: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0xff]],
0x0000001b: [[0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff]],
0x0000001c: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x0000001d: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0xff]],
0x0000001e: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x0000001f: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000020: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00]],
0x00000021: [[0xff],
[0xff],
[0xff],
[0xff],
[0x00],
[0xff],
[0xff]],
0x00000022: [[0xff,0x00,0xff],
[0xff,0x00,0xff],
[0xff,0x00,0xff]],
0x00000023: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00]],
0x00000024: [[0xff,0x00,0x00],
[0xff,0x00,0xff],
[0xff,0xff,0xff],
[0x00,0x00,0xff],
[0x00,0x00,0xff]],
0x00000025: [[0xff,0xff,0x00,0x00,0x00],
[0xff,0xff,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0xff,0xff],
[0x00,0x00,0x00,0xff,0xff]],
0x00000026: [[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0x00,0xff]],
0x00000027: [[0xff],
[0xff],
[0xff]],
0x00000028: [[0x00,0x00,0xff],
[0x00,0xff,0x00],
[0xff,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0x00,0x00],
[0x00,0xff,0x00],
[0x00,0x00,0xff]],
0x00000029: [[0xff,0x00,0x00],
[0x00,0xff,0x00],
[0x00,0x00,0xff],
[0x00,0x00,0xff],
[0x00,0x00,0xff],
[0x00,0xff,0x00],
[0xff,0x00,0x00]],
0x0000002a: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0x00,0xff,0x00,0x00]],
0x0000002b: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x0000002c: [[0x00,0x00],
[0x00,0x00],
[0x00,0x00],
[0x00,0x00],
[0xff,0xff],
[0x00,0xff],
[0xff,0x00]],
0x0000002d: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x0000002e: [[0x00,0x00],
[0x00,0x00],
[0x00,0x00],
[0x00,0x00],
[0x00,0x00],
[0xff,0xff],
[0xff,0xff]],
0x0000002f: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x00000030: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000031: [[0x00,0xff,0x00],
[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x00000032: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x00000033: [[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000034: [[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff,0x00]],
0x00000035: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000036: [[0x00,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000037: [[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00]],
0x00000038: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000039: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0x00,0x00]],
0x0000003a: [[0x00,0x00],
[0xff,0xff],
[0xff,0xff],
[0x00,0x00],
[0xff,0xff],
[0xff,0xff]],
0x0000003b: [[0x00,0x00],
[0xff,0xff],
[0xff,0xff],
[0x00,0x00],
[0xff,0xff],
[0x00,0xff],
[0xff,0x00]],
0x0000003c: [[0x00,0x00,0x00,0xff],
[0x00,0x00,0xff,0x00],
[0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff]],
0x0000003d: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x0000003e: [[0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff],
[0x00,0x00,0xff,0x00],
[0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00]],
0x0000003f: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000040: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0xff],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0xff]],
0x00000041: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x00000042: [[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00]],
0x00000043: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000044: [[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00]],
0x00000045: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x00000046: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x00000047: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x00000048: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x00000049: [[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x0000004a: [[0x00,0x00,0xff,0xff,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0x00,0x00]],
0x0000004b: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0xff,0x00,0x00,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff]],
0x0000004c: [[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x0000004d: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0x00,0xff,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x0000004e: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x0000004f: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000050: [[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x00000051: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0x00,0xff]],
0x00000052: [[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff]],
0x00000053: [[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00]],
0x00000054: [[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000055: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000056: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000057: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00]],
0x00000058: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x00000059: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x0000005a: [[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x0000005b: [[0xff,0xff],
[0xff,0x00],
[0xff,0x00],
[0xff,0x00],
[0xff,0x00],
[0xff,0x00],
[0xff,0xff]],
0x0000005c: [[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff]],
0x0000005d: [[0xff,0xff],
[0x00,0xff],
[0x00,0xff],
[0x00,0xff],
[0x00,0xff],
[0x00,0xff],
[0xff,0xff]],
0x0000005e: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff]],
0x0000005f: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x00000060: [[0xff,0x00],
[0xff,0x00],
[0x00,0xff]],
0x00000061: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x00000062: [[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00]],
0x00000063: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000064: [[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x00000065: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00]],
0x00000066: [[0x00,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00]],
0x00000067: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000068: [[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x00000069: [[0x00,0xff,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x0000006a: [[0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0xff],
[0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff],
[0x00,0xff,0xff,0x00]],
0x0000006b: [[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00],
[0xff,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff]],
0x0000006c: [[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x0000006d: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0x00,0xff,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x0000006e: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x0000006f: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x00000070: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x00000071: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff]],
0x00000072: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x00000073: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00]],
0x00000074: [[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0x00,0xff,0xff,0x00]],
0x00000075: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0x00,0xff,0xff,0x00,0xff]],
0x00000076: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x00000077: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00]],
0x00000078: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff]],
0x00000079: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x0000007a: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x0000007b: [[0x00,0x00,0xff,0xff],
[0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0xff]],
0x0000007c: [[0xff],
[0xff],
[0xff],
[0xff],
[0xff],
[0xff],
[0xff]],
0x0000007d: [[0xff,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff],
[0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00],
[0xff,0xff,0x00,0x00]],
0x0000007e: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00]],
0x0000007f: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0xff,0xff]],
0x00000080: [[0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff]],
0x00000081: [[0x00,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0xff,0x00],
[0xff,0xff,0xff],
[0xff,0xff,0x00],
[0xff,0x00,0x00]],
0x00000082: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x00000083: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0x00,0x00,0x00,0x00]],
0x00000084: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0xff]],
0x00000085: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x00000086: [[0xff,0xff,0xff,0xff,0xff],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x00000087: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0x00,0x00]],
0x00000088: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00]],
0x00000089: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x0000008a: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0xff,0x00,0xff,0xff]],
0x0000008b: [[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff]],
0x0000008c: [[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x0000008d: [[0xff,0x00,0xff],
[0x00,0xff,0x00],
[0xff,0x00,0xff]],
0x0000008e: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0x00,0xff]],
0x0000008f: [[0x00,0x00,0x00],
[0x00,0x00,0xff],
[0x00,0xff,0xff],
[0xff,0xff,0xff],
[0x00,0xff,0xff],
[0x00,0x00,0xff]],
0x00000090: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0xff],
[0xff,0xff,0xff],
[0xff,0xff,0xff]],
0x00000091: [[0x00,0x00,0xff],
[0x00,0x00,0xff],
[0x00,0x00,0xff],
[0x00,0xff,0x00],
[0xff,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0x00,0x00]],
0x00000092: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0xff]],
0x00000093: [[0xff,0xff,0xff],
[0x00,0x00,0xff],
[0xff,0xff,0xff],
[0xff,0x00,0x00],
[0xff,0xff,0xff]],
0x00000094: [[0xff,0xff,0xff],
[0xff,0x00,0xff],
[0xff,0xff,0xff]],
0x00000095: [[0xff,0xff,0x00],
[0x00,0x00,0xff],
[0x00,0xff,0x00],
[0x00,0x00,0xff],
[0xff,0xff,0x00]],
0x00000096: [[0x3b,0x3b,0x3b,0x3b,0x3b],
[0x3b,0x3b,0x3b,0x3b,0x3b],
[0x3b,0x3b,0x3b,0x3b,0x3b],
[0x3b,0x3b,0x3b,0x3b,0x3b],
[0x3b,0x3b,0x3b,0x3b,0x3b],
[0x3b,0x3b,0x3b,0x3b,0x3b],
[0x3b,0x3b,0x3b,0x3b,0x3b]],
0x00000097: [[0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0x00],
[0xff,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff],
[0x00,0x00,0xff,0x00]],
0x00000098: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x00000099: [[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff]],
0x0000009a: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0xff,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x0000009b: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0x00,0x00]],
0x0000009c: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0x00,0x00],
[0xff,0xff,0xff]],
0x0000009d: [[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0xff,0xff,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x0000009e: [[0xff,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0xff],
[0x00,0x00,0xff,0x00,0xff],
[0x00,0x00,0xff,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0x00,0xff,0x00,0x00]],
0x0000009f: [[0x00,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00],
[0xff,0xff,0xff,0x00],
[0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00]],
0x000000a0: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00]],
0x000000a1: [[0xff],
[0xff],
[0x00],
[0xff],
[0xff],
[0xff],
[0xff]],
0x000000a2: [[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000a3: [[0x00,0xff,0xff,0x00],
[0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff]],
0x000000a4: [[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff]],
0x000000a5: [[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x000000a6: [[0xff],
[0xff],
[0xff],
[0x00],
[0xff],
[0xff],
[0xff]],
0x000000a7: [[0x00,0x00,0xff,0xff,0xff],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0xff,0xff,0xff,0x00,0x00]],
0x000000a8: [[0xff,0x00,0xff]],
0x000000a9: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0xff,0xff],
[0xff,0x00,0xff,0xff,0xff],
[0xff,0x00,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000aa: [[0xff,0xff,0xff],
[0x00,0x00,0xff],
[0xff,0xff,0xff],
[0xff,0x00,0xff],
[0xff,0xff,0xff],
[0x00,0x00,0x00],
[0xff,0xff,0xff]],
0x000000ab: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff,0x00],
[0x00,0xff,0x00,0x00,0xff]],
0x000000ac: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff]],
0x000000ad: [[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000ae: [[0xff,0xff,0xff,0xff,0xff]],
0x000000af: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00]],
0x000000b0: [[0x00,0xff,0xff,0x00],
[0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff],
[0x00,0xff,0xff,0x00]],
0x000000b1: [[0x00,0xff,0x00],
[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0xff]],
0x000000b2: [[0x00,0xff,0xff,0x00],
[0xff,0x00,0x00,0xff],
[0x00,0x00,0xff,0x00],
[0x00,0xff,0x00,0x00],
[0xff,0xff,0xff,0xff]],
0x000000b3: [[0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0x00],
[0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0x00]],
0x000000b4: [[0x00,0xff],
[0xff,0x00]],
0x000000b5: [[0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0x00],
[0xff,0x00,0xff,0x00],
[0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00]],
0x000000b6: [[0x00,0xff,0xff,0xff,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0x00,0xff,0xff,0x00]],
0x000000b7: [[0x00,0x00],
[0x00,0x00],
[0xff,0xff],
[0xff,0xff]],
0x000000b8: [[0x00],
[0x00],
[0x00],
[0x00],
[0x00],
[0xff],
[0xff]],
0x000000b9: [[0x00,0xff,0x00],
[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000ba: [[0xff,0xff,0xff],
[0xff,0x00,0xff],
[0xff,0xff,0xff],
[0x00,0x00,0x00],
[0xff,0xff,0xff]],
0x000000bb: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0xff,0x00]],
0x000000bc: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff]],
0x000000bd: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff]],
0x000000be: [[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff]],
0x000000bf: [[0x00,0x00],
[0x00,0xff],
[0x00,0x00],
[0x00,0xff],
[0xff,0x00],
[0xff,0x00],
[0x00,0xff]],
0x000000c0: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x000000c1: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x000000c2: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x000000c3: [[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x000000c4: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x000000c5: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x000000c6: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0xff,0xff],
[0x00,0xff,0xff,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0x00,0xff,0xff,0xff]],
0x000000c7: [[0x00,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff],
[0x00,0x00,0xff,0x00],
[0x00,0xff,0x00,0x00]],
0x000000c8: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x000000c9: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x000000ca: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x000000cb: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff]],
0x000000cc: [[0x00,0xff,0x00],
[0x00,0x00,0xff],
[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000cd: [[0x00,0xff,0x00],
[0xff,0x00,0x00],
[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000ce: [[0x00,0xff,0x00],
[0xff,0x00,0xff],
[0x00,0x00,0x00],
[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000cf: [[0x00,0x00,0x00],
[0xff,0x00,0xff],
[0x00,0x00,0x00],
[0xff,0xff,0xff],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000d0: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0xff,0x00,0x00,0xff],
[0xff,0xff,0xff,0x00,0xff],
[0x00,0xff,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000d1: [[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0x00,0x00,0xff,0xff]],
0x000000d2: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000d3: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000d4: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000d5: [[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000d6: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000d7: [[0x00,0x00,0x00],
[0x00,0x00,0x00],
[0xff,0x00,0xff],
[0x00,0xff,0x00],
[0xff,0x00,0xff]],
0x000000d8: [[0x00,0x00,0x00,0x00,0xff],
[0x00,0x00,0xff,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x000000d9: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000da: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000db: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000dc: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000dd: [[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x000000de: [[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0xff],
[0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00]],
0x000000df: [[0x00,0xff,0xff,0x00,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0x00,0xff,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0xff,0xff,0x00]],
0x000000e0: [[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x000000e1: [[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x000000e2: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x000000e3: [[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x000000e4: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x000000e5: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0xff]],
0x000000e6: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0xff,0x00,0x00],
[0xff,0xff,0x00,0xff,0xff]],
0x000000e7: [[0x00,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff],
[0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0xff]],
0x000000e8: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00]],
0x000000e9: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00]],
0x000000ea: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00]],
0x000000eb: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0xff],
[0xff,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00]],
0x000000ec: [[0xff,0x00,0x00],
[0x00,0xff,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000ed: [[0x00,0x00,0xff],
[0x00,0xff,0x00],
[0x00,0x00,0x00],
[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000ee: [[0x00,0xff,0x00],
[0xff,0x00,0xff],
[0x00,0x00,0x00],
[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000ef: [[0x00,0x00,0x00],
[0xff,0x00,0xff],
[0x00,0x00,0x00],
[0xff,0xff,0x00],
[0x00,0xff,0x00],
[0x00,0xff,0x00],
[0xff,0xff,0xff]],
0x000000f0: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000f1: [[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff]],
0x000000f2: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000f3: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000f4: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000f5: [[0x00,0xff,0xff,0x00,0xff],
[0xff,0x00,0xff,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000f6: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000f7: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0xff,0xff,0xff,0xff],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00]],
0x000000f8: [[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0xff,0x00,0xff],
[0xff,0xff,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x000000f9: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000fa: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000fb: [[0x00,0x00,0xff,0x00,0x00],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000fc: [[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0xff,0xff,0x00]],
0x000000fd: [[0x00,0x00,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0xff,0x00,0x00,0x00]],
0x000000fe: [[0xff,0x00,0x00,0x00,0x00],
[0xff,0x00,0xff,0xff,0x00],
[0xff,0xff,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0x00,0x00,0x00,0xff],
[0xff,0xff,0xff,0xff,0x00],
[0xff,0x00,0x00,0x00,0x00]],
0x000000ff: [[0x00,0xff,0x00,0x00,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0x00,0x00,0x00,0x00,0x00],
[0xff,0x00,0x00,0x00,0xff],
[0x00,0xff,0x00,0xff,0x00],
[0x00,0x00,0xff,0x00,0x00],
[0xff,0xff,0x00,0x00,0x00]],
}
width = 5
height = 7
| 33.354037
| 41
| 0.501319
| 7,693
| 64,440
| 4.199272
| 0.034317
| 0.671846
| 0.625909
| 0.47844
| 0.918991
| 0.917753
| 0.91701
| 0.912676
| 0.910447
| 0.904009
| 0
| 0.418704
| 0.319491
| 64,440
| 1,931
| 42
| 33.37131
| 0.317979
| 0
| 0
| 0.833433
| 0
| 0
| 0
| 0
| 0
| 0
| 0.501055
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
7c0ff00588a10b4cbe44f15b03260b91e2a1efb6
| 24,268
|
py
|
Python
|
sdks/python/appcenter_sdk/api/gdpr_api.py
|
Brantone/appcenter-sdks
|
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
|
[
"MIT"
] | null | null | null |
sdks/python/appcenter_sdk/api/gdpr_api.py
|
Brantone/appcenter-sdks
|
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
|
[
"MIT"
] | 6
|
2019-10-23T06:38:53.000Z
|
2022-01-22T07:57:58.000Z
|
sdks/python/appcenter_sdk/api/gdpr_api.py
|
Brantone/appcenter-sdks
|
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
|
[
"MIT"
] | 2
|
2019-10-23T06:31:05.000Z
|
2021-08-21T17:32:47.000Z
|
# coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from appcenter_sdk.api_client import ApiClient
class gdprApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def DataSubjectRight_CancelExportRequest(self, token, **kwargs): # noqa: E501
"""DataSubjectRight_CancelExportRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_CancelExportRequest(token, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.DataSubjectRight_CancelExportRequest_with_http_info(token, **kwargs) # noqa: E501
else:
(data) = self.DataSubjectRight_CancelExportRequest_with_http_info(token, **kwargs) # noqa: E501
return data
def DataSubjectRight_CancelExportRequest_with_http_info(self, token, **kwargs): # noqa: E501
"""DataSubjectRight_CancelExportRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_CancelExportRequest_with_http_info(token, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['token'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method DataSubjectRight_CancelExportRequest" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'token' is set
if ('token' not in params or
params['token'] is None):
raise ValueError("Missing the required parameter `token` when calling `DataSubjectRight_CancelExportRequest`") # noqa: E501
collection_formats = {}
path_params = {}
if 'token' in params:
path_params['token'] = params['token'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json', 'application/json', 'application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data', 'application/json-patch+json']) # noqa: E501
# Authentication setting
auth_settings = ['APIToken'] # noqa: E501
return self.api_client.call_api(
'/v0.1/user/dsr/export/{token}/cancel', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ErrorResponse', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def DataSubjectRight_ExportStatusRequest(self, token, **kwargs): # noqa: E501
"""DataSubjectRight_ExportStatusRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_ExportStatusRequest(token, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.DataSubjectRight_ExportStatusRequest_with_http_info(token, **kwargs) # noqa: E501
else:
(data) = self.DataSubjectRight_ExportStatusRequest_with_http_info(token, **kwargs) # noqa: E501
return data
def DataSubjectRight_ExportStatusRequest_with_http_info(self, token, **kwargs): # noqa: E501
"""DataSubjectRight_ExportStatusRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_ExportStatusRequest_with_http_info(token, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['token'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method DataSubjectRight_ExportStatusRequest" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'token' is set
if ('token' not in params or
params['token'] is None):
raise ValueError("Missing the required parameter `token` when calling `DataSubjectRight_ExportStatusRequest`") # noqa: E501
collection_formats = {}
path_params = {}
if 'token' in params:
path_params['token'] = params['token'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json', 'application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data', 'application/json-patch+json']) # noqa: E501
# Authentication setting
auth_settings = ['APIToken'] # noqa: E501
return self.api_client.call_api(
'/v0.1/user/dsr/export/{token}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ErrorResponse', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def DataSubjectRight_ExportRequest(self, **kwargs): # noqa: E501
"""DataSubjectRight_ExportRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_ExportRequest(async=True)
>>> result = thread.get()
:param async bool
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.DataSubjectRight_ExportRequest_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.DataSubjectRight_ExportRequest_with_http_info(**kwargs) # noqa: E501
return data
def DataSubjectRight_ExportRequest_with_http_info(self, **kwargs): # noqa: E501
"""DataSubjectRight_ExportRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_ExportRequest_with_http_info(async=True)
>>> result = thread.get()
:param async bool
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method DataSubjectRight_ExportRequest" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json', 'application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data', 'application/json-patch+json']) # noqa: E501
# Authentication setting
auth_settings = ['APIToken'] # noqa: E501
return self.api_client.call_api(
'/v0.1/user/dsr/export', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ErrorResponse', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def DataSubjectRight_CancelDeleteRequest(self, token, **kwargs): # noqa: E501
"""DataSubjectRight_CancelDeleteRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_CancelDeleteRequest(token, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:param object body:(optional)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.DataSubjectRight_CancelDeleteRequest_with_http_info(token, **kwargs) # noqa: E501
else:
(data) = self.DataSubjectRight_CancelDeleteRequest_with_http_info(token, **kwargs) # noqa: E501
return data
def DataSubjectRight_CancelDeleteRequest_with_http_info(self, token, **kwargs): # noqa: E501
"""DataSubjectRight_CancelDeleteRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_CancelDeleteRequest_with_http_info(token, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:param object body:(optional)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['token', 'body'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method DataSubjectRight_CancelDeleteRequest" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'token' is set
if ('token' not in params or
params['token'] is None):
raise ValueError("Missing the required parameter `token` when calling `DataSubjectRight_CancelDeleteRequest`") # noqa: E501
collection_formats = {}
path_params = {}
if 'token' in params:
path_params['token'] = params['token'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json', 'application/json', 'application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['APIToken'] # noqa: E501
return self.api_client.call_api(
'/v0.1/user/dsr/delete/{token}/cancel', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ErrorResponse', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def DataSubjectRight_DeleteStatusRequest(self, token, email, **kwargs): # noqa: E501
"""DataSubjectRight_DeleteStatusRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_DeleteStatusRequest(token, email, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:param string email: Email used for delete with x-authz-bypass headers (required)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.DataSubjectRight_DeleteStatusRequest_with_http_info(token, email, **kwargs) # noqa: E501
else:
(data) = self.DataSubjectRight_DeleteStatusRequest_with_http_info(token, email, **kwargs) # noqa: E501
return data
def DataSubjectRight_DeleteStatusRequest_with_http_info(self, token, email, **kwargs): # noqa: E501
"""DataSubjectRight_DeleteStatusRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_DeleteStatusRequest_with_http_info(token, email, async=True)
>>> result = thread.get()
:param async bool
:param string token: Unique request ID (GUID) (required)
:param string email: Email used for delete with x-authz-bypass headers (required)
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['token', 'email'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method DataSubjectRight_DeleteStatusRequest" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'token' is set
if ('token' not in params or
params['token'] is None):
raise ValueError("Missing the required parameter `token` when calling `DataSubjectRight_DeleteStatusRequest`") # noqa: E501
# verify the required parameter 'email' is set
if ('email' not in params or
params['email'] is None):
raise ValueError("Missing the required parameter `email` when calling `DataSubjectRight_DeleteStatusRequest`") # noqa: E501
collection_formats = {}
path_params = {}
if 'token' in params:
path_params['token'] = params['token'] # noqa: E501
query_params = []
if 'email' in params:
query_params.append(('email', params['email'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json', 'application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data', 'application/json-patch+json']) # noqa: E501
# Authentication setting
auth_settings = ['APIToken'] # noqa: E501
return self.api_client.call_api(
'/v0.1/user/dsr/delete/{token}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ErrorResponse', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def DataSubjectRight_DeleteRequest(self, **kwargs): # noqa: E501
"""DataSubjectRight_DeleteRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_DeleteRequest(async=True)
>>> result = thread.get()
:param async bool
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.DataSubjectRight_DeleteRequest_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.DataSubjectRight_DeleteRequest_with_http_info(**kwargs) # noqa: E501
return data
def DataSubjectRight_DeleteRequest_with_http_info(self, **kwargs): # noqa: E501
"""DataSubjectRight_DeleteRequest # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.DataSubjectRight_DeleteRequest_with_http_info(async=True)
>>> result = thread.get()
:param async bool
:return: ErrorResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method DataSubjectRight_DeleteRequest" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json', 'application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'multipart/form-data', 'application/json-patch+json']) # noqa: E501
# Authentication setting
auth_settings = ['APIToken'] # noqa: E501
return self.api_client.call_api(
'/v0.1/user/dsr/delete', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ErrorResponse', # noqa: E501
auth_settings=auth_settings,
async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 38.891026
| 136
| 0.614678
| 2,549
| 24,268
| 5.634366
| 0.070224
| 0.052917
| 0.023395
| 0.030079
| 0.933018
| 0.923757
| 0.918674
| 0.915263
| 0.910249
| 0.904122
| 0
| 0.017713
| 0.292772
| 24,268
| 623
| 137
| 38.953451
| 0.819088
| 0.061357
| 0
| 0.80303
| 0
| 0
| 0.195922
| 0.070792
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.012121
| 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
|
7c1dec1e269e0802a3f7cb5fda47829456708d42
| 17,762
|
py
|
Python
|
tests/tests_recipe.py
|
pndemo/yummy-recipes
|
c58071ba325a0bc5299682562781b7b3d72854ed
|
[
"MIT"
] | null | null | null |
tests/tests_recipe.py
|
pndemo/yummy-recipes
|
c58071ba325a0bc5299682562781b7b3d72854ed
|
[
"MIT"
] | 5
|
2017-10-19T21:52:57.000Z
|
2020-01-06T18:49:02.000Z
|
tests/tests_recipe.py
|
pndemo/yummy-recipes
|
c58071ba325a0bc5299682562781b7b3d72854ed
|
[
"MIT"
] | 1
|
2017-10-20T08:51:33.000Z
|
2017-10-20T08:51:33.000Z
|
""" Recipe module tests """
import unittest
from app import app, users, categories, recipes
class RecipeTests(unittest.TestCase):
""" Recipe tests """
def setUp(self):
app.testing = True
app.config['WTF_CSRF_ENABLED'] = False
with app.app_context():
app.test_client().get('/logout')
del users[:]
del categories[:]
del recipes[:]
self.client = app.test_client
self.register_data = {'username': 'ExampleUser', 'email': 'example@domain.com', \
'password': 'Bootcamp17', 'confirm_password': 'Bootcamp17'}
self.login_data = {'username': 'ExampleUser', 'password': 'Bootcamp17'}
self.category_data = {'category_name': 'Breakfast'}
self.recipe_data = {'recipe_name': 'Espresso Esiri', 'ingredients': '1) 1 tbsp plus \
1 or 2 tsp (20-25 ml) Espresso, 2) 2 tbsp (30 ml) Benedictine, 3) Approx. \
3 tbsp (40 ml) fresh heavy cream, 4) Unsweetened cocoa powder, 5) Ice cubes', \
'directions': '1) Prepare the Espresso in a small cup. 2) Fill the mixing glass \
3/4 full with ice cubes. Add the Benedictine and the Espresso. Cool, mixing the \
ingredients with the mixing spoon. 3) Pour into the glass, filtering the ice with \
a strainer. 4) Shake the cream, which should be very cold, in the mini shaker \
until it becomes quite thick. 5) Rest the cream on the surface of the cocktail, \
making it run down the back of the mixing spoon. 6) Garnish with a light dusting \
of cocoa, and serve.'}
def test_create_successful(self):
""" Test for successful recipe creation """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
def test_create_empty_field(self):
""" Test for unsuccessful recipe creation with empty field """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
self.recipe_data['recipe_name'] = ''
self.recipe_data['ingredients'] = ''
self.recipe_data['directions'] = ''
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 200)
self.assertIn(b'Please enter recipe name', response.data)
self.assertIn(b'Please enter ingredients', response.data)
self.assertIn(b'Please enter directions', response.data)
def test_create_invalid_name(self):
""" Test for unsuccessful recipe creation with invalid recipe name """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
self.recipe_data['recipe_name'] = 'Espresso E#%@h'
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 200)
self.assertIn(b'Please enter a valid recipe name', response.data)
def test_create_registered_name(self):
""" Test for unsuccessful recipe creation with already registered recipe name """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 200)
self.assertIn(b'A recipe with this recipe name is already available', response.data)
def test_create_non_existent_category(self):
""" Test for unsuccessful recipe creation with non existent category """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/create_recipe')
self.assertEqual(response.status_code, 404)
response = self.client().get('/create_recipe?category_id=1')
self.assertEqual(response.status_code, 404)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/create_recipe?category_id=2')
self.assertEqual(response.status_code, 404)
def test_get_recipes(self):
""" Test for display of created recipes """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/recipes?category_id=1')
self.assertEqual(response.status_code, 200)
self.assertIn(b'Espresso Esiri', response.data)
response = self.client().get('/recipes')
self.assertEqual(response.status_code, 404)
response = self.client().get('/recipes?category_id=20')
self.assertEqual(response.status_code, 404)
def test_get_specific_recipe(self):
""" Test for display of specific created recipe """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/recipe_details?category_id=1&recipe_id=1')
self.assertEqual(response.status_code, 200)
self.assertIn(b'Espresso Esiri', response.data)
response = self.client().get('/recipe_details')
self.assertEqual(response.status_code, 404)
response = self.client().get('/recipe_details?category_id=2&recipe_id=1')
self.assertEqual(response.status_code, 404)
response = self.client().get('/recipe_details?category_id=1&recipe_id=2')
self.assertEqual(response.status_code, 404)
def test_get_categories(self):
""" Test for display of created categories """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/home')
self.assertEqual(response.status_code, 200)
self.assertIn(b'Breakfast', response.data)
def test_update_successful(self):
""" Test for successful recipe update """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/update_recipe?category_id=1&recipe_id=1')
self.assertEqual(response.status_code, 200)
self.recipe_data['recipe_name'] = 'Espresso Classic'
self.recipe_data['ingredients'] = '1) 2 tbsp (30 ml) Espresso, 2) 2 tbsp (30 ml) \
Benedictine, 3) Approx. 3 tbsp (40 ml) fresh heavy cream, 4) Ice cubes'
self.recipe_data['directions'] = '1) Prepare the Espresso in a small cup. 2) Fill the \
mixing glass 3/4 full with ice cubes and add the Benedictine. Cool, mixing the \
ingredients with the mixing spoon. 3) Pour into the glass, filtering the ice with \
a strainer. 4) Shake the cream, in the mini shaker until it becomes quite thick. \
5) Rest the cream on the surface of the cocktail, making it run down the back of \
the mixing spoon. 6) Garnish with a light dusting of cocoa, and serve.'
response = self.client().post('/update_recipe?category_id=1&recipe_id=1', \
data=self.recipe_data)
self.assertEqual(response.status_code, 302)
def test_update_empty_fields(self):
""" Test for unsuccessful recipe update with empty fields """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
self.recipe_data['recipe_name'] = ''
self.recipe_data['ingredients'] = ''
self.recipe_data['directions'] = ''
response = self.client().post('/update_recipe?category_id=1&recipe_id=1', \
data=self.recipe_data)
self.assertEqual(response.status_code, 200)
self.assertIn(b'Please enter recipe name', response.data)
self.assertIn(b'Please enter ingredients', response.data)
self.assertIn(b'Please enter directions', response.data)
def test_update_invalid_name(self):
""" Test for unsuccessful recipe update with invalid recipe name """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
self.recipe_data['recipe_name'] = 'Espresso E#%@h'
response = self.client().post('/update_recipe?category_id=1&recipe_id=1', \
data=self.recipe_data)
self.assertEqual(response.status_code, 200)
self.assertIn(b'Please enter a valid recipe name', response.data)
def test_update_registered_name(self):
""" Test for unsuccessful recipe update with already registered recipe name """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
self.recipe_data['recipe_name'] = 'Espresso Classic'
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
self.recipe_data['recipe_name'] = 'Espresso Esiri'
response = self.client().post('/update_recipe?category_id=1&recipe_id=2', \
data=self.recipe_data)
self.assertEqual(response.status_code, 200)
self.assertIn(b'A recipe with this recipe name is already available', response.data)
def test_update_non_existent_recipe(self):
""" Test for unsuccessful recipe update with non existent category / recipe """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/update_recipe')
self.assertEqual(response.status_code, 404)
response = self.client().get('/update_recipe?category_id=1&recipe_id=1')
self.assertEqual(response.status_code, 404)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/update_recipe?category_id=2&recipe_id=1')
self.assertEqual(response.status_code, 404)
response = self.client().get('/update_recipe?category_id=1&recipe_id=2')
self.assertEqual(response.status_code, 404)
def test_delete_recipe(self):
""" Test for successful recipe deletion """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
self.recipe_data['recipe_name'] = 'Espresso Classic'
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/delete_recipe?category_id=1&recipe_id=2')
self.assertEqual(response.status_code, 200)
response = self.client().post('/delete_recipe?category_id=1&recipe_id=2')
self.assertEqual(response.status_code, 302)
def test_delete_non_existent_recipe(self):
""" Test for unsuccessful recipe deletion with non existent category / recipe """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/delete_recipe')
self.assertEqual(response.status_code, 404)
response = self.client().get('/delete_recipe?category_id=1&recipe_id=1')
self.assertEqual(response.status_code, 404)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().get('/delete_recipe?category_id=2&recipe_id=1')
self.assertEqual(response.status_code, 404)
response = self.client().get('/delete_recipe?category_id=1&recipe_id=2')
self.assertEqual(response.status_code, 404)
def test_delete_category(self):
""" Test for successful category deletion """
response = self.client().post('/register', data=self.register_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/login', data=self.login_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_category', data=self.category_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/create_recipe?category_id=1', data=self.recipe_data)
self.assertEqual(response.status_code, 302)
response = self.client().post('/delete_category?category_id=1')
self.assertEqual(response.status_code, 302)
if __name__ == '__main__':
unittest.main()
| 58.81457
| 99
| 0.67712
| 2,226
| 17,762
| 5.243935
| 0.072327
| 0.095948
| 0.140324
| 0.226077
| 0.921271
| 0.909021
| 0.896428
| 0.873983
| 0.844599
| 0.83646
| 0
| 0.026601
| 0.195755
| 17,762
| 301
| 100
| 59.009967
| 0.79055
| 0.050783
| 0
| 0.726236
| 0
| 0.003802
| 0.154985
| 0.072955
| 0
| 0
| 0
| 0
| 0.395437
| 1
| 0.064639
| false
| 0.007605
| 0.007605
| 0
| 0.076046
| 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
|
7c352438ea24f5d7b9bf12ab78f5d80779b06369
| 54,977
|
py
|
Python
|
tests/api/test_views.py
|
dkrichards86/aggrep-api
|
b5238406c43711e462b278b0a31c879fb63d9da8
|
[
"MIT"
] | null | null | null |
tests/api/test_views.py
|
dkrichards86/aggrep-api
|
b5238406c43711e462b278b0a31c879fb63d9da8
|
[
"MIT"
] | 2
|
2021-03-31T19:25:23.000Z
|
2021-12-13T20:27:54.000Z
|
tests/api/test_views.py
|
dkrichards86/aggrep-api
|
b5238406c43711e462b278b0a31c879fb63d9da8
|
[
"MIT"
] | null | null | null |
"""Model unit tests."""
from unittest import mock
import pytest
from flask_jwt_extended import create_access_token
from aggrep.models import (
Bookmark,
Category,
Feed,
Post,
PostAction,
PostView,
Source,
Status,
)
from aggrep.utils import now
from tests.factories import CategoryFactory, PostFactory, SourceFactory
@pytest.mark.usefixtures("db")
class TestFollowRedirect:
"""Test the click follower endpoint."""
def test_endpoint(self, app, client, post):
"""Test a successful request."""
instance = PostFactory()
instance.save()
url = "/{}".format(instance.uid)
rv = client.get(url)
assert rv.status_code == 302
@mock.patch("aggrep.api.views.register_click")
def test_endpoint_click(self, mock_click, app, client, post):
"""Test a successful request."""
instance = PostFactory()
instance.save()
url = "/{}".format(instance.uid)
client.get(url)
assert mock_click.call_count == 1
@pytest.mark.usefixtures("db")
class TestAllPosts:
"""Test all posts endpoint."""
def test_endpoint_defaults(self, app, client):
"""Test a successful request."""
for instance in PostFactory.create_batch(25):
instance.save()
rv = client.get("/v1/posts")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts"
assert len(json_data["items"]) == 20
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 2
assert json_data["total_items"] == 25
def test_endpoint_sort(self, app, client):
"""Test a successful request with sort argument."""
for instance in PostFactory.create_batch(25):
instance.save()
rv = client.get("/v1/posts?sort=latest")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Latest Posts"
assert len(json_data["items"]) == 20
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 2
assert json_data["total_items"] == 25
def test_endpoint_per_page(self, app, client):
"""Test a successful request with per_page argument."""
for instance in PostFactory.create_batch(25):
instance.save()
rv = client.get("/v1/posts?per_page=10")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts"
assert len(json_data["items"]) == 10
assert json_data["page"] == 1
assert json_data["per_page"] == 10
assert json_data["total_pages"] == 3
assert json_data["total_items"] == 25
def test_endpoint_page(self, app, client):
"""Test a successful request with oagr argument."""
for instance in PostFactory.create_batch(25):
instance.save()
rv = client.get("/v1/posts?page=2")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts"
assert len(json_data["items"]) == 5
assert json_data["page"] == 2
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 2
assert json_data["total_items"] == 25
def test_endpoint_user_excludes(self, app, client, user):
"""Test a successful request."""
excluded_sources = []
excluded_categories = []
for instance in PostFactory.create_batch(25):
if instance.id % 10 == 0:
# Pick 2 categories to exclude.
excluded_categories.append(instance.feed.category)
elif instance.id % 5 == 0:
# Pick 3 sources to exclude.
excluded_sources.append(instance.feed.source)
instance.save()
user.excluded_sources = excluded_sources
user.excluded_categories = excluded_categories
user.save()
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get("/v1/posts", headers={"Authorization": token})
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts"
assert len(json_data["items"]) == 20
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 1
assert json_data["total_items"] == 20
@mock.patch("aggrep.api.views.register_impression")
def test_endpoint_impressions(self, mock_impression, app, client):
"""Test a successful request."""
for instance in PostFactory.create_batch(20):
instance.save()
rv = client.get("/v1/posts")
assert rv.status_code == 200
assert mock_impression.call_count == 20
@pytest.mark.usefixtures("db")
class TestSourcePosts:
"""Test source posts endpoint."""
def test_endpoint_defaults(self, app, client):
"""Test a successful request."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/source/source")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts by Test Source"
assert len(json_data["items"]) == 5
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 1
assert json_data["total_items"] == 5
def test_source_doesnt_exist(self, app, client):
"""Test invalid source."""
rv = client.get("/v1/source/doesnt-exist")
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Source 'doesnt-exist' does not exist."
def test_endpoint_sort(self, app, client):
"""Test a successful request with sort argument."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/source/source?sort=latest")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Latest Posts by Test Source"
assert len(json_data["items"]) == 5
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 1
assert json_data["total_items"] == 5
def test_endpoint_per_page(self, app, client):
"""Test a successful request with per_page argument."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/source/source?per_page=2")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts by Test Source"
assert len(json_data["items"]) == 2
assert json_data["page"] == 1
assert json_data["per_page"] == 2
assert json_data["total_pages"] == 3
assert json_data["total_items"] == 5
def test_endpoint_page(self, app, client):
"""Test a successful request with oagr argument."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/source/source?per_page=2&page=2")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts by Test Source"
assert len(json_data["items"]) == 2
assert json_data["page"] == 2
assert json_data["per_page"] == 2
assert json_data["total_pages"] == 3
assert json_data["total_items"] == 5
@pytest.mark.usefixtures("db")
class TestCategoryPosts:
"""Test category posts endpoint."""
def test_endpoint_defaults(self, app, client):
"""Test a successful request."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/category/category")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts in Test Category"
assert len(json_data["items"]) == 5
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 1
assert json_data["total_items"] == 5
def test_category_doesnt_exist(self, app, client):
"""Test invalid category."""
rv = client.get("/v1/category/doesnt-exist")
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Category 'doesnt-exist' does not exist."
def test_endpoint_sort(self, app, client):
"""Test a successful request with sort argument."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/category/category?sort=latest")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Latest Posts in Test Category"
assert len(json_data["items"]) == 5
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 1
assert json_data["total_items"] == 5
def test_endpoint_per_page(self, app, client):
"""Test a successful request with per_page argument."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/category/category?per_page=2")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts in Test Category"
assert len(json_data["items"]) == 2
assert json_data["page"] == 1
assert json_data["per_page"] == 2
assert json_data["total_pages"] == 3
assert json_data["total_items"] == 5
def test_endpoint_page(self, app, client):
"""Test a successful request with oagr argument."""
src = Source.create(slug="source", title="Test Source")
cat = Category.create(slug="category", title="Test Category")
feed = Feed.create(source=src, category=cat, url="feed.com")
for i, instance in enumerate(PostFactory.create_batch(25)):
if i % 5 == 0:
instance.feed = feed
instance.save()
rv = client.get("/v1/category/category?per_page=2&page=2")
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Popular Posts in Test Category"
assert len(json_data["items"]) == 2
assert json_data["page"] == 2
assert json_data["per_page"] == 2
assert json_data["total_pages"] == 3
assert json_data["total_items"] == 5
@pytest.mark.usefixtures("db")
class TestSearch:
"""Test search endpoint."""
def test_endpoint(self, app, client, feed):
"""Test a successful request."""
posts = [
"Jived fox nymph grabs quick waltz.",
"Glib jocks quiz nymph to vex dwarf.",
"Sphinx of black quartz, judge my vow.",
"How vexingly quick daft zebras jump.",
"Jackdaws love my big sphinx of quartz.",
]
for i, post in enumerate(posts):
p = Post.create(
feed=feed, title=post, desc=post, link="link{}.com".format(i)
)
PostAction.create(post_id=p.id, clicks=0, impressions=0, ctr=0)
rv = client.get("/v1/search?query=nymph")
json_data = rv.get_json()
assert json_data["total_items"] == 2
rv = client.get("/v1/search?query=nymph dwarf")
json_data = rv.get_json()
assert json_data["total_items"] == 1
rv = client.get("/v1/search?query=quartz")
json_data = rv.get_json()
assert json_data["total_items"] == 2
def test_missing_term(self, app, client, feed):
"""Test a missing search term."""
rv = client.get("/v1/search")
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "No search terms provided."
@pytest.mark.usefixtures("db")
class TestSimilar:
"""Test similar posts endpoint."""
def test_endpoint(self, app, client):
"""Test a successful request."""
posts = []
for instance in PostFactory.create_batch(5):
posts.append(instance)
instance.save()
rv = client.get("/v1/similar/{}".format(posts[0].uid))
assert rv.status_code == 200
@pytest.mark.usefixtures("db")
class TestBookmarkedPosts:
"""Test bookmarked posts endpoint."""
def test_endpoint(self, app, user, client):
"""Test a successful request."""
for i, instance in enumerate(PostFactory.create_batch(25)):
instance.save()
if i % 5 == 0:
Bookmark.create(user_id=user.id, post_id=instance.id)
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get("/v1/bookmarks", headers={"Authorization": token})
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Bookmarked Posts"
assert len(json_data["items"]) == 5
assert json_data["page"] == 1
assert json_data["per_page"] == 20
assert json_data["total_pages"] == 1
assert json_data["total_items"] == 5
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
rv = client.get("/v1/bookmarks")
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestBookmarkedIDs:
"""Test bookmark IDs endpoint."""
def test_endpoint(self, app, user, client):
"""Test a successful request."""
for i, instance in enumerate(PostFactory.create_batch(25)):
instance.save()
if i % 5 == 0:
Bookmark.create(user_id=user.id, post_id=instance.id)
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get("/v1/bookmarks/ids", headers={"Authorization": token})
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["bookmarks"]) == 5
def test_post_view(self, app, post, user, client):
"""Test a successful POST request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/bookmarks/ids",
json=dict(uid=post.uid),
headers={"Authorization": token},
)
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Bookmark saved!"
assert len(json_data["bookmarks"]) == 1
assert user.bookmarks.count() == 1
def test_post_view_no_uid(self, app, post, user, client):
"""Test an unsuccessful POST request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
Bookmark.create(user_id=user.id, post_id=post.id)
rv = client.post(
"/v1/bookmarks/ids", json=dict(), headers={"Authorization": token}
)
assert rv.status_code == 400
def test_post_view_invalid_uid(self, app, post, user, client):
"""Test an unsuccessful POST request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/bookmarks/ids",
json=dict(uid="mmmmmm"),
headers={"Authorization": token},
)
assert rv.status_code == 400
def test_post_view_duplicate_id(self, app, post, user, client):
"""Test a successful POST request."""
with app.app_context():
Bookmark.create(user_id=user.id, post_id=post.id)
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/bookmarks/ids",
json=dict(uid=post.uid),
headers={"Authorization": token},
)
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["bookmarks"]) == 1
assert user.bookmarks.count() == 1
def test_delete_view(self, app, post, user, client):
"""Test a successful DELETE request."""
with app.app_context():
Bookmark.create(user_id=user.id, post_id=post.id)
token = "Bearer {}".format(create_access_token(user.email))
rv = client.delete(
"/v1/bookmarks/ids",
json=dict(uid=post.uid),
headers={"Authorization": token},
)
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Bookmark removed!"
assert len(json_data["bookmarks"]) == 0
assert user.bookmarks.count() == 0
def test_delete_view_no_uid(self, app, post, user, client):
"""Test an unsuccessful DELETE request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
Bookmark.create(user_id=user.id, post_id=post.id)
rv = client.delete(
"/v1/bookmarks/ids", json=dict(), headers={"Authorization": token}
)
assert rv.status_code == 400
def test_delete_view_invalid_uid(self, app, post, user, client):
"""Test an unsuccessful DELETE request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.delete(
"/v1/bookmarks/ids",
json=dict(uid="mmmmmm"),
headers={"Authorization": token},
)
assert rv.status_code == 400
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
rv = client.get("/v1/bookmarks/ids")
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestViewedPosts:
"""Test viewed posts endpoint."""
def test_endpoint(self, app, user, client):
"""Test a successful request."""
for i, instance in enumerate(PostFactory.create_batch(25)):
instance.save()
if i % 5 == 0:
PostView.create(user_id=user.id, post_id=instance.id)
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get("/v1/views", headers={"Authorization": token})
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["title"] == "Recently Viewed Posts"
assert len(json_data["items"]) == 5
assert json_data["page"] == 1
assert json_data["per_page"] == 10
assert json_data["total_pages"] == 1
assert json_data["total_items"] == 5
def test_post_view(self, app, post, user, client):
"""Test a successful POST request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/views", json=dict(uid=post.uid), headers={"Authorization": token}
)
assert rv.status_code == 200
assert user.post_views.count() == 1
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
rv = client.get("/v1/views")
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestSources:
"""Test sources endpoint."""
def test_endpoint(self, app, client):
"""Test a successful request."""
cat = Category.create(slug="category", title="Test Category")
src1 = Source.create(slug="source", title="Test Source")
src2 = Source.create(slug="source2", title="Test Source 2")
f1 = Feed.create(source=src1, category=cat, url="feed1.com")
f2 = Feed.create(source=src1, category=cat, url="feed2.com")
f3 = Feed.create(source=src2, category=cat, url="feed3.com")
Status.create(
feed_id=f1.id, update_datetime=now(), update_frequency=3, active=True
)
Status.create(
feed_id=f2.id, update_datetime=now(), update_frequency=3, active=True
)
Status.create(
feed_id=f3.id, update_datetime=now(), update_frequency=3, active=True
)
rv = client.get("/v1/sources")
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["sources"]) == 2
def test_endpoint_with_inactive(self, app, client):
"""Test a successful request."""
cat = Category.create(slug="category", title="Test Category")
src1 = Source.create(slug="source", title="Test Source")
src2 = Source.create(slug="source2", title="Test Source 2")
f1 = Feed.create(source=src1, category=cat, url="feed1.com")
f2 = Feed.create(source=src1, category=cat, url="feed2.com")
f3 = Feed.create(source=src2, category=cat, url="feed3.com")
Status.create(
feed_id=f1.id, update_datetime=now(), update_frequency=3, active=True
)
Status.create(
feed_id=f2.id, update_datetime=now(), update_frequency=3, active=False
)
Status.create(
feed_id=f3.id, update_datetime=now(), update_frequency=3, active=True
)
rv = client.get("/v1/sources")
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["sources"]) == 2
def test_endpoint_with_all_inactive(self, app, client):
"""Test a successful request."""
cat = Category.create(slug="category", title="Test Category")
src1 = Source.create(slug="source", title="Test Source")
src2 = Source.create(slug="source2", title="Test Source 2")
f1 = Feed.create(source=src1, category=cat, url="feed1.com")
f2 = Feed.create(source=src1, category=cat, url="feed2.com")
f3 = Feed.create(source=src2, category=cat, url="feed3.com")
Status.create(
feed_id=f1.id, update_datetime=now(), update_frequency=3, active=True
)
Status.create(
feed_id=f2.id, update_datetime=now(), update_frequency=3, active=True
)
Status.create(
feed_id=f3.id, update_datetime=now(), update_frequency=3, active=False
)
rv = client.get("/v1/sources")
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["sources"]) == 1
@pytest.mark.usefixtures("db")
class TestCategories:
"""Test categories endpoint."""
def test_endpoint(self, app, client):
"""Test a successful request."""
for instance in CategoryFactory.create_batch(8):
instance.save()
rv = client.get("/v1/categories")
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["categories"]) == 8
@pytest.mark.usefixtures("db")
class TestManageCategories:
"""Test manage categories endpoint."""
def test_endpoint_get(self, app, client, user):
"""Test a successful request."""
included_category_ids = []
excluded_category_ids = []
for i, instance in enumerate(CategoryFactory.create_batch(5)):
if i == 0:
excluded_category_ids.append(instance.id)
else:
included_category_ids.append(instance.id)
instance.save()
user.excluded_categories = Category.query.filter(
Category.id.in_(excluded_category_ids)
).all()
user.save()
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get("/v1/manage/categories", headers={"Authorization": token})
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["included_categories"]) == len(included_category_ids)
assert sorted(json_data["included_categories"]) == sorted(included_category_ids)
assert len(json_data["excluded_categories"]) == len(excluded_category_ids)
assert sorted(json_data["excluded_categories"]) == sorted(excluded_category_ids)
def test_endpoint_post(self, app, client, user):
"""Test a successful request."""
included_category_ids = []
excluded_category_ids = []
for i, instance in enumerate(CategoryFactory.create_batch(5)):
if i == 0:
excluded_category_ids.append(instance.id)
else:
included_category_ids.append(instance.id)
instance.save()
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
payload = dict(excluded_categories=excluded_category_ids)
rv = client.post(
"/v1/manage/categories", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["included_categories"]) == len(included_category_ids)
assert sorted(json_data["included_categories"]) == sorted(included_category_ids)
assert len(json_data["excluded_categories"]) == len(excluded_category_ids)
assert sorted(json_data["excluded_categories"]) == sorted(excluded_category_ids)
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
rv = client.get("/v1/manage/categories")
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestManageSources:
"""Test manage sources endpoint."""
def test_endpoint_get(self, app, client, user):
"""Test a successful request."""
included_source_ids = []
excluded_source_ids = []
for i, instance in enumerate(SourceFactory.create_batch(5)):
if i == 0:
excluded_source_ids.append(instance.id)
else:
included_source_ids.append(instance.id)
instance.save()
user.excluded_sources = Source.query.filter(
Source.id.in_(excluded_source_ids)
).all()
user.save()
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get("/v1/manage/sources", headers={"Authorization": token})
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["included_sources"]) == len(included_source_ids)
assert sorted(json_data["included_sources"]) == sorted(included_source_ids)
assert len(json_data["excluded_sources"]) == len(excluded_source_ids)
assert sorted(json_data["excluded_sources"]) == sorted(excluded_source_ids)
def test_endpoint_post(self, app, client, user):
"""Test a successful request."""
included_source_ids = []
excluded_source_ids = []
for i, instance in enumerate(SourceFactory.create_batch(5)):
if i == 0:
excluded_source_ids.append(instance.id)
else:
included_source_ids.append(instance.id)
instance.save()
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
payload = dict(excluded_sources=excluded_source_ids)
rv = client.post(
"/v1/manage/sources", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 200
json_data = rv.get_json()
assert len(json_data["included_sources"]) == len(included_source_ids)
assert sorted(json_data["included_sources"]) == sorted(included_source_ids)
assert len(json_data["excluded_sources"]) == len(excluded_source_ids)
assert sorted(json_data["excluded_sources"]) == sorted(excluded_source_ids)
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
rv = client.get("/v1/manage/sources")
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestAuthTokenConfirm:
"""Test the auth token confirmation endpoint."""
def test_endpoint(self, app, client, user):
"""Test a successful request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get("/v1/auth/token/confirm", headers={"Authorization": token})
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Token verification successful!"
assert "access_token" in json_data
assert "user" in json_data
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
rv = client.get("/v1/auth/token/confirm")
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.post("/v1/auth/token/confirm")
assert rv.status_code == 405
@pytest.mark.usefixtures("db")
class TestAuthLogin:
"""Test the login endpoint."""
def test_endpoint(self, app, client, user):
"""Test a successful request."""
rv = client.post(
"/v1/auth/login", json=dict(email=user.email, password="foobar")
)
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Login Successful"
assert "access_token" in json_data
assert "user" in json_data
def test_incorrect_email(self, app, client, user):
"""Test a request with an incorrect email."""
rv = client.post(
"/v1/auth/login", json=dict(email="foo@bar.com", password="foobar")
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid email address or password"
def test_incorrect_password(self, app, client, user):
"""Test a request with an incorrect password."""
rv = client.post(
"/v1/auth/login", json=dict(email="foo@bar.com", password="foobaz")
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid email address or password"
def test_missing_email(self, app, client, user):
"""Test a request with no email."""
rv = client.post("/v1/auth/login", json=dict(password="foobar"))
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete login."
def test_missing_password(self, app, client, user):
"""Test a request with no password."""
rv = client.post("/v1/auth/login", json=dict(email=user.email))
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete login."
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.get("/v1/auth/login")
assert rv.status_code == 405
def test_already_logged_in(self, app, client, user):
"""Test a request with a logged in user."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post("/v1/auth/login", headers={"Authorization": token})
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "You are already logged in."
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
rv = client.post("/v1/auth/login")
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
@pytest.mark.usefixtures("db")
class TestAuthRegister:
"""Test the registration endpoint."""
@mock.patch("aggrep.api.views.send_email")
def test_endpoint(self, mock_email, app, client):
"""Test a successful request."""
payload = dict(
email="foo@bar.com", password="foobar", password_confirm="foobar"
)
rv = client.post("/v1/auth/register", json=payload)
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Registration Successful!"
assert "access_token" in json_data
assert "user" in json_data
assert mock_email.called_once
def test_different_passwords(self, app, client):
"""Test a request with no email."""
payload = dict(
email="foo@bar.com", password="foobar", password_confirm="foobaz"
)
rv = client.post("/v1/auth/register", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete registration."
def test_missing_email(self, app, client):
"""Test a request with no email."""
payload = dict(password="foobar", password_confirm="foobar")
rv = client.post("/v1/auth/register", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete registration."
def test_missing_password(self, app, client, user):
"""Test a request with no password."""
payload = dict(email="foo@bar.com", password_confirm="foobar")
rv = client.post("/v1/auth/register", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete registration."
def test_missing_password_confirm(self, app, client, user):
"""Test a request with no password."""
payload = dict(email="foo@bar.com", password="foobar")
rv = client.post("/v1/auth/register", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete registration."
def test_already_logged_in(self, app, client, user):
"""Test a request with a logged in user."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post("/v1/auth/register", headers={"Authorization": token})
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "You are already registered."
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.get("/v1/auth/register")
assert rv.status_code == 405
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
rv = client.post("/v1/auth/login")
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
@pytest.mark.usefixtures("db")
class TestAuthEmailUpdate:
"""Test the email update endpoint."""
@mock.patch("aggrep.api.views.send_email")
def test_endpoint(self, mock_email, app, client, user):
"""Test a successful request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
payload = dict(email="foo@bar.com")
rv = client.post(
"/v1/auth/email/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 200
json_data = rv.get_json()
msg = "Your email has been updated. Please check your email for a confirmation link."
assert json_data["msg"] == msg
assert "access_token" in json_data["auth"]
assert "user" in json_data["auth"]
assert mock_email.called_once
def test_missing_email(self, app, client, user):
"""Test a request with no email."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/auth/email/update", json=dict(), headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to update email."
def test_email_already_exists(self, app, client, user):
"""Test a request with a used email."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
payload = dict(email=user.email)
rv = client.post(
"/v1/auth/email/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to update email."
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.get("/v1/auth/email/update")
assert rv.status_code == 405
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post("/v1/auth/email/update", headers={"Authorization": token})
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
payload = dict(email="foo@bar.com")
rv = client.post("/v1/auth/email/update", json=payload)
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestAuthEmailConfirmRequest:
"""Test the email confirmation request endpoint."""
@mock.patch("aggrep.api.views.send_email")
def test_endpoint(self, mock_email, app, client, user):
"""Test a successful request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/auth/email/confirm/request",
json=dict(),
headers={"Authorization": token},
)
assert rv.status_code == 200
json_data = rv.get_json()
msg = "A confirmation email has been sent to your email address."
assert json_data["msg"] == msg
assert mock_email.called_once
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.get("/v1/auth/email/confirm/request")
assert rv.status_code == 405
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/auth/email/confirm/request", headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
payload = dict(email="foo@bar.com")
rv = client.post("/v1/auth/email/confirm/request", json=payload)
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestAuthEmailConfirmToken:
"""Test the email confirmation request endpoint."""
def test_endpoint(self, app, client, user):
"""Test a successful request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
reset_token = user.get_email_confirm_token()
payload = dict(token=reset_token)
rv = client.post(
"/v1/auth/email/confirm/token",
json=payload,
headers={"Authorization": token},
)
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Your email address has been confirmed."
def test_endpoint_bad_token(self, app, client, user):
"""Test a request with a bad token."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
reset_token = "THIS.SHOULDNT.WORK"
payload = dict(token=reset_token)
rv = client.post(
"/v1/auth/email/confirm/token",
json=payload,
headers={"Authorization": token},
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Confirmation token is invalid."
def test_endpoint_bad_payload(self, app, client, user):
"""Test a request with a bad payload."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
payload = dict()
rv = client.post(
"/v1/auth/email/confirm/token",
json=payload,
headers={"Authorization": token},
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to verify the email account."
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.get("/v1/auth/email/confirm/token")
assert rv.status_code == 405
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post(
"/v1/auth/email/confirm/token", headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
@pytest.mark.usefixtures("db")
class TestAuthPasswordUpdate:
"""Test the password update endpoint."""
@mock.patch("aggrep.api.views.send_email")
def test_endpoint(self, mock_email, app, client, user):
"""Test a successful request."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
user.set_password("password")
payload = dict(
curr_password="password", new_password="foobar", password_confirm="foobar"
)
rv = client.post(
"/v1/auth/password/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Your password has been updated."
assert mock_email.called_once
def test_endpoint_incorrect_password(self, app, client, user):
"""Test a request with a missing token."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
payload = dict(
curr_password="password", new_password="foobar", password_confirm="foobar"
)
rv = client.post(
"/v1/auth/password/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Password incorrect."
def test_endpoint_no_curr_pass(self, app, client, user):
"""Test a request with a missing token."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
payload = dict(new_password="foobar", password_confirm="foobar")
rv = client.post(
"/v1/auth/password/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to update your password."
def test_endpoint_no_password(self, app, client, user):
"""Test a request with a missing password."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
user.set_password("password")
payload = dict(curr_password="password", password_confirm="foobar")
rv = client.post(
"/v1/auth/password/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to update your password."
def test_endpoint_no_password_confirm(self, app, client, user):
"""Test a request with a missing password confirmation."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
user.set_password("password")
payload = dict(curr_password="password", new_password="foobar")
rv = client.post(
"/v1/auth/password/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to update your password."
def test_endpoint_no_password_match(self, app, client, user):
"""Test a request with a different passwords."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
user.set_password("password")
payload = dict(
curr_password="password", new_password="foobar", password_confirm="foobaz"
)
rv = client.post(
"/v1/auth/password/update", json=payload, headers={"Authorization": token}
)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to update your password."
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.get(
"/v1/auth/email/confirm/token", headers={"Authorization": token}
)
assert rv.status_code == 405
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post("/v1/auth/email/update", headers={"Authorization": token})
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
def test_no_auth(self, app, client, user):
"""Test a request with no auth token."""
user.set_password("password")
payload = dict(
curr_password="password", new_password="foobar", password_confirm="foobar"
)
rv = client.post("/v1/auth/password/update", json=payload)
assert rv.status_code == 401
json_data = rv.get_json()
assert json_data["msg"] == "Missing Authorization Header"
@pytest.mark.usefixtures("db")
class TestAuthPasswordReset:
"""Test the email confirmation request endpoint."""
@mock.patch("aggrep.api.views.send_email")
def test_endpoint(self, mock_email, app, client, user):
"""Test a successful request."""
payload = dict(email=user.email)
rv = client.post("/v1/auth/password/reset", json=payload)
assert rv.status_code == 200
json_data = rv.get_json()
msg = "A password reset link has been sent to your email address."
assert json_data["msg"] == msg
assert mock_email.called_once
def test_endpoint_invalid_email(self, app, client):
"""Test an unsuccessful request."""
payload = dict(email="foo@bar.com")
rv = client.post("/v1/auth/password/reset", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "The email address provided does not exist."
def test_endpoint_no_data(self, app, client):
"""Test an unsuccessful request."""
payload = dict()
rv = client.post("/v1/auth/password/reset", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Request Unsuccessful"
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.get("/v1/auth/password/reset")
assert rv.status_code == 405
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
with app.app_context():
token = "Bearer {}".format(create_access_token(user.email))
rv = client.post("/v1/auth/password/reset", headers={"Authorization": token})
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
@pytest.mark.usefixtures("db")
class TestAuthPasswordResetConfirm:
"""Test the email confirmation request endpoint."""
@mock.patch("aggrep.api.views.send_email")
def test_endpoint(self, mock_email, app, client, user):
"""Test a successful request."""
with app.app_context():
reset_token = user.get_reset_password_token()
payload = dict(
token=reset_token, new_password="foobar", password_confirm="foobar"
)
rv = client.post("/v1/auth/password/reset/confirm", json=payload)
assert rv.status_code == 200
json_data = rv.get_json()
assert json_data["msg"] == "Your password has been updated."
assert mock_email.called_once
def test_endpoint_no_token(self, app, client, user):
"""Test a request with a missing token."""
payload = dict(new_password="foobar", password_confirm="foobar")
rv = client.post("/v1/auth/password/reset/confirm", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete password update."
def test_endpoint_no_password(self, app, client, user):
"""Test a request with a missing password."""
with app.app_context():
reset_token = user.get_reset_password_token()
payload = dict(token=reset_token, password_confirm="foobar")
rv = client.post("/v1/auth/password/reset/confirm", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete password update."
def test_endpoint_no_password_confirm(self, app, client, user):
"""Test a request with a missing password confirmation."""
with app.app_context():
reset_token = user.get_reset_password_token()
payload = dict(token=reset_token, new_password="foobar")
rv = client.post("/v1/auth/password/reset/confirm", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete password update."
def test_endpoint_no_password_match(self, app, client, user):
"""Test a request with a different passwords."""
with app.app_context():
reset_token = user.get_reset_password_token()
payload = dict(
token=reset_token, new_password="foobar", password_confirm="foobaz"
)
rv = client.post("/v1/auth/password/reset/confirm", json=payload)
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Unable to complete password update."
def test_invalid_method(self, app, client, user):
"""Test a request with an invalid HTTP method."""
rv = client.get("/v1/auth/email/confirm/token")
assert rv.status_code == 405
def test_bad_request(self, app, client, user):
"""Test a request with no body."""
rv = client.post("/v1/auth/email/confirm/token")
assert rv.status_code == 400
json_data = rv.get_json()
assert json_data["msg"] == "Invalid request."
| 36.384514
| 93
| 0.607163
| 6,792
| 54,977
| 4.750442
| 0.041078
| 0.065706
| 0.058144
| 0.054672
| 0.920192
| 0.906338
| 0.890965
| 0.879808
| 0.875686
| 0.867596
| 0
| 0.016009
| 0.261455
| 54,977
| 1,510
| 94
| 36.408609
| 0.778637
| 0.076668
| 0
| 0.754006
| 0
| 0
| 0.152777
| 0.033124
| 0
| 0
| 0
| 0
| 0.27427
| 1
| 0.094251
| false
| 0.072573
| 0.005655
| 0
| 0.120641
| 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
|
7c4256a10fa8be787549c99038b5fcaf08ed29da
| 25,400
|
gyp
|
Python
|
binding.gyp
|
ngokevin/exokit
|
80fff2183d51c1b501b5cee1798255aa31c538a7
|
[
"MIT"
] | 2
|
2018-10-15T18:32:39.000Z
|
2019-04-10T09:06:03.000Z
|
binding.gyp
|
ngokevin/exokit
|
80fff2183d51c1b501b5cee1798255aa31c538a7
|
[
"MIT"
] | 1
|
2019-03-19T10:04:14.000Z
|
2019-03-20T19:14:20.000Z
|
binding.gyp
|
ngokevin/exokit
|
80fff2183d51c1b501b5cee1798255aa31c538a7
|
[
"MIT"
] | 1
|
2019-03-18T05:07:07.000Z
|
2019-03-18T05:07:07.000Z
|
{
'targets': [
{
'target_name': 'exokit',
'conditions': [
['OS=="win"', {
'sources': [
'main.cpp',
'deps/exokit-bindings/bindings/src/*.cc',
'deps/exokit-bindings/util/src/*.cc',
'deps/exokit-bindings/canvas/src/*.cpp',
'deps/exokit-bindings/nanosvg/src/*.cpp',
'deps/exokit-bindings/canvascontext/src/*.cc',
'deps/exokit-bindings/webglcontext/src/*.cc',
'deps/exokit-bindings/platform/windows/src/*.cpp',
'deps/exokit-bindings/webaudiocontext/src/*.cpp',
'deps/exokit-bindings/videocontext/src/*.cpp',
'deps/exokit-bindings/videocontext/src/win/*.cpp',
'deps/exokit-bindings/glfw/src/*.cc',
'deps/openvr/src/*.cpp',
'deps/exokit-bindings/leapmotion/src/*.cc',
],
'include_dirs': [
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/core')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/config')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/gpu')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/effects')\")",
"<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/headers')\")",
"<!(node -e \"console.log(require.resolve('leapmotion').slice(0, -9) + '/include')\")",
'<(module_root_dir)/deps/exokit-bindings',
'<(module_root_dir)/deps/exokit-bindings/utf8',
'<(module_root_dir)/deps/exokit-bindings/node',
'<(module_root_dir)/deps/exokit-bindings/native_app_glue',
'<(module_root_dir)/deps/exokit-bindings/util/include',
'<(module_root_dir)/deps/exokit-bindings/bindings/include',
'<(module_root_dir)/deps/exokit-bindings/canvas/include',
'<(module_root_dir)/deps/exokit-bindings/nanosvg/include',
'<(module_root_dir)/deps/exokit-bindings/canvascontext/include',
'<(module_root_dir)/deps/exokit-bindings/webglcontext/include',
'<(module_root_dir)/deps/exokit-bindings/webaudiocontext/include',
'<(module_root_dir)/deps/exokit-bindings/videocontext/include',
'<(module_root_dir)/deps/exokit-bindings/glfw/include',
'<(module_root_dir)/deps/openvr/include',
'<(module_root_dir)/deps/exokit-bindings/leapmotion/include',
],
'library_dirs': [
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/windows/glew')\")",
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/windows/glfw')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/lib/windows')\")",
"<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/lib/windows')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win')\")",
"<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/lib/win64')\")",
"<!(node -e \"console.log(require.resolve('leapmotion').slice(0, -9) + '/lib/win')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64')\")",
],
'libraries': [
'opengl32.lib',
'glew32.lib',
'glfw3dll.lib',
'gdiplus.lib',
'skia.lib',
'LabSound.lib',
'avformat.lib',
'avcodec.lib',
'avutil.lib',
'avdevice.lib',
'swscale.lib',
'swresample.lib',
'openvr_api.lib',
'Leap.lib',
],
'copies': [
{
'destination': '<(module_root_dir)/build/Release/',
'files': [
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/windows/glew/glew32.dll')\")",
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/windows/glfw/glfw3.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/avformat-58.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/avcodec-58.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/avutil-56.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/avdevice-58.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/avfilter-7.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/postproc-55.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/swscale-5.dll')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/win/swresample-3.dll')\")",
"<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/bin/win64/openvr_api.dll')\")",
"<!(node -e \"console.log(require.resolve('leapmotion').slice(0, -9) + '/lib/win/Leap.dll')\")",
]
}
],
'defines': [
'NOMINMAX',
],
'conditions': [
['"<!(echo %MAGICLEAP%)" != "%MAGICLEAP%"', {
'sources': [
'deps/exokit-bindings/magicleap/src/*.cc',
],
'include_dirs': [
'<(module_root_dir)/deps/exokit-bindings/magicleap/include',
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/include')\")",
],
'libraries': [
'ml_app_analytics.lib',
'ml_audio.lib',
'ml_camera.lib',
'ml_camera_metadata.lib',
'ml_dispatch.lib',
'ml_ext_logging.lib',
'ml_graphics.lib',
'ml_identity.lib',
'ml_input.lib',
'ml_lifecycle.lib',
'ml_mediacodec.lib',
'ml_mediacodeclist.lib',
'ml_mediacrypto.lib',
'ml_mediadrm.lib',
'ml_mediaerror.lib',
'ml_mediaextractor.lib',
'ml_mediaformat.lib',
'ml_mediaplayer.lib',
'ml_musicservice.lib',
'ml_musicservice_provider.lib',
'ml_perception_client.lib',
'ml_privileges.lib',
'ml_purchase.lib',
'ml_screens.lib',
'ml_secure_storage.lib',
'ml_sharedfile.lib',
'ml_virtual_device.lib',
],
'copies': [
{
'destination': '<(module_root_dir)/build/Release/',
'files': [
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/EyeTrackingStateMixer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/GesturesMixer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/HeadStateMixer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/InputControllerMixer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/OrientationMixer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/PassthroughMixer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/PositionMixer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/assimp-vc140-mt.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/glfw3.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_app_analytics.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_audio.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_camera.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_camera_metadata.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_dispatch.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_ext_logging.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_graphics.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_identity.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_input.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_lifecycle.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediacodec.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediacodeclist.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediacrypto.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediadrm.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediaerror.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediaextractor.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediaformat.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_mediaplayer.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_musicservice.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_musicservice_provider.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_perception_client.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_privileges.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_purchase.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_screens.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_secure_storage.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_sharedfile.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/ml_virtual_device.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/portaudio_x64.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/protobuf-cpp-full.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/z.dll')\")",
"<!(node -e \"console.log(require.resolve('magicleap').slice(0, -9) + '/lib/win64/zmq.dll')\")",
],
}
],
'defines': [
'MAGICLEAP=$(MAGICLEAP)',
],
}],
],
}],
['OS=="linux"', {
'sources': [
'main.cpp',
'<!@(ls -1 deps/exokit-bindings/bindings/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/util/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/canvas/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/nanosvg/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/canvascontext/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/webglcontext/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/webaudiocontext/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/videocontext/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/videocontext/src/linux/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/glfw/src/*.cc)',
'<!@(ls -1 deps/openvr/src/*.cpp)',
],
'include_dirs': [
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/core')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/config')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/gpu')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/effects')\")",
"<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/headers')\")",
'<(module_root_dir)/deps/exokit-bindings',
'<(module_root_dir)/deps/exokit-bindings/utf8',
'<(module_root_dir)/deps/exokit-bindings/node',
'<(module_root_dir)/deps/exokit-bindings/native_app_glue',
'<(module_root_dir)/deps/exokit-bindings/util/include',
'<(module_root_dir)/deps/exokit-bindings/bindings/include',
'<(module_root_dir)/deps/exokit-bindings/canvas/include',
'<(module_root_dir)/deps/exokit-bindings/nanosvg/include',
'<(module_root_dir)/deps/exokit-bindings/canvascontext/include',
'<(module_root_dir)/deps/exokit-bindings/webglcontext/include',
'<(module_root_dir)/deps/exokit-bindings/webaudiocontext/include',
'<(module_root_dir)/deps/exokit-bindings/videocontext/include',
'<(module_root_dir)/deps/exokit-bindings/glfw/include',
'<(module_root_dir)/deps/openvr/include',
],
'library_dirs': [
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/linux/glew')\")",
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/linux/glfw')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/lib/linux')\")",
"<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/lib/linux')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavformat')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavcodec')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavutil')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavdevice')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavfilter')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libswscale')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libswresample')\")",
"<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/lib/linux64')\")",
],
'libraries': [
'-lGL',
'-lGLU',
'-lX11',
'-lGLEW',
'-lglfw3',
'-lfontconfig',
'-lfreetype',
'-lpng16',
'-lskia',
'-lLabSound',
'-lavformat',
'-lavcodec',
'-lavutil',
'-lavdevice',
'-lswscale',
'-lswresample',
'-lopenvr_api',
'-luuid',
'-lXcursor',
'-lXinerama',
'-lXxf86vm',
'-lXrandr',
'-lXi',
'-lasound',
'-lexpat',
],
'ldflags': [
'-Wl,-Bsymbolic', # required for ffmpeg asm linkage
'-Wl,--no-as-needed', # required to prevent elision of shared object linkage
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/linux/glew')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/linux/glfw')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/lib/linux')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/lib/linux')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavformat')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavcodec')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavutil')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavdevice')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libavfilter')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libswscale')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/linux/libswresample')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/bin/linux64')\")",
],
'defines': [
'NOMINMAX',
],
}],
['OS=="mac"', {
'sources': [
'main.cpp',
'<!@(ls -1 deps/exokit-bindings/bindings/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/util/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/canvas/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/nanosvg/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/canvascontext/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/webglcontext/src/*.cc)',
'<!@(ls -1 deps/exokit-bindings/webaudiocontext/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/videocontext/src/*.cpp)',
'<!@(ls -1 deps/exokit-bindings/videocontext/src/mac/*.mm)',
'<!@(ls -1 deps/exokit-bindings/glfw/src/*.cc)',
'<!@(ls -1 deps/openvr/src/*.cpp)',
],
'include_dirs': [
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/core')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/config')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/gpu')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/include/effects')\")",
"<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/include')\")",
"<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/headers')\")",
'<(module_root_dir)/deps/exokit-bindings',
'<(module_root_dir)/deps/exokit-bindings/utf8',
'<(module_root_dir)/deps/exokit-bindings/node',
'<(module_root_dir)/deps/exokit-bindings/native_app_glue',
'<(module_root_dir)/deps/exokit-bindings/util/include',
'<(module_root_dir)/deps/exokit-bindings/bindings/include',
'<(module_root_dir)/deps/exokit-bindings/canvas/include',
'<(module_root_dir)/deps/exokit-bindings/nanosvg/include',
'<(module_root_dir)/deps/exokit-bindings/canvascontext/include',
'<(module_root_dir)/deps/exokit-bindings/webglcontext/include',
'<(module_root_dir)/deps/exokit-bindings/webaudiocontext/include',
'<(module_root_dir)/deps/exokit-bindings/videocontext/include',
'<(module_root_dir)/deps/exokit-bindings/glfw/include',
'<(module_root_dir)/deps/openvr/include',
],
'library_dirs': [
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/macos/glew')\")",
"<!(node -e \"console.log(require.resolve('native-graphics-deps').slice(0, -9) + '/lib/macos/glfw')\")",
"<!(node -e \"console.log(require.resolve('native-canvas-deps').slice(0, -9) + '/lib/macos')\")",
"<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/lib/macos')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos')\")",
],
'libraries': [
'-framework OpenGL',
'-framework Cocoa',
'-lGLEW',
'-lglfw3',
'-lskia',
'-framework CoreAudio',
'-framework AVFoundation',
'-framework AudioUnit',
'-framework AudioToolbox',
'-llabsound',
'-lavformat.58',
'-lavcodec.58',
'-lavutil.56',
'-lavdevice.58',
'-lavfilter.7',
'-lswscale.5',
'-lswresample.3',
'-lpostproc.55',
"-F <!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/bin/osx64')\")",
'-framework OpenVR',
],
'link_settings': {
'libraries': [
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-audio-deps').slice(0, -9) + '/lib/macos')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos')\")",
"-Wl,-rpath,<!(node -e \"console.log(require.resolve('native-openvr-deps').slice(0, -9) + '/bin/osx64')\")",
'-framework OpenVR',
],
},
'copies': [
{
'destination': '<(module_root_dir)/build/Release/',
'files': [
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libavformat.58.dylib')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libavcodec.58.dylib')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libavutil.56.dylib')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libavdevice.58.dylib')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libavfilter.7.dylib')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libswscale.5.dylib')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libswresample.3.dylib')\")",
"<!(node -e \"console.log(require.resolve('native-video-deps').slice(0, -9) + '/lib/macos/libpostproc.55.dylib')\")",
]
}
],
}],
],
},
],
}
| 65.803109
| 137
| 0.527283
| 2,790
| 25,400
| 4.735484
| 0.07491
| 0.048441
| 0.116258
| 0.145322
| 0.84832
| 0.844308
| 0.822813
| 0.813503
| 0.812292
| 0.811762
| 0
| 0.022654
| 0.242283
| 25,400
| 385
| 138
| 65.974026
| 0.663826
| 0.003307
| 0
| 0.416667
| 0
| 0
| 0.471418
| 0.231857
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.002604
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7c927e7bc58310b16b3fcfb8430dd6c590627988
| 79
|
py
|
Python
|
upwork_rss/__init__.py
|
DSAdv/python-upwork-rss
|
3478b4dae4c7e987e995501fad56fbc36056f443
|
[
"Apache-2.0"
] | null | null | null |
upwork_rss/__init__.py
|
DSAdv/python-upwork-rss
|
3478b4dae4c7e987e995501fad56fbc36056f443
|
[
"Apache-2.0"
] | null | null | null |
upwork_rss/__init__.py
|
DSAdv/python-upwork-rss
|
3478b4dae4c7e987e995501fad56fbc36056f443
|
[
"Apache-2.0"
] | null | null | null |
from upwork_rss.client import UpworkRSS
from upwork_rss.dto import JobPosition
| 26.333333
| 39
| 0.873418
| 12
| 79
| 5.583333
| 0.666667
| 0.298507
| 0.38806
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101266
| 79
| 2
| 40
| 39.5
| 0.943662
| 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
|
7cb6b5b3d82998ccafad97801cd86247b4222e14
| 2,948
|
py
|
Python
|
share/qc_examples/google_quantum_supremacy.py
|
omarcostahamido/qis_job
|
ad6fe6d8e6a276a68a724b3c78a66b05c3051b83
|
[
"Apache-2.0"
] | null | null | null |
share/qc_examples/google_quantum_supremacy.py
|
omarcostahamido/qis_job
|
ad6fe6d8e6a276a68a724b3c78a66b05c3051b83
|
[
"Apache-2.0"
] | null | null | null |
share/qc_examples/google_quantum_supremacy.py
|
omarcostahamido/qis_job
|
ad6fe6d8e6a276a68a724b3c78a66b05c3051b83
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Google Quantum Supremacy Circuit
https://quantum-circuit.com/app_details/about/3SQoZgKdJ6oqaX5gq
https://quantum-circuit.com/api/get/circuit/GuavdH643Wbeusuww?format=qiskit
Created on Sat Nov 2 05:39:58 2019
Intended to be loaded and run from qis_job
@author: jax
"""
import numpy as np
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
qc = QuantumCircuit()
q = QuantumRegister(5, 'q')
c = ClassicalRegister(5, 'c')
qc.add_register(q)
qc.add_register(c)
qc.rx(np.pi / 2, q[0])
qc.ry(np.pi / 2, q[1])
qc.rx(np.pi / 2, q[2])
qc.ry(np.pi / 2, q[3])
qc.rx(np.pi / 2, q[4])
qc.u3(0, 0, -(np.pi / 2), q[1])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.cz(q[2], q[1])
qc.swap(q[2], q[1])
qc.cu1(np.pi / 6, q[2], q[1])
qc.ry(np.pi / 2, q[0])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[1])
qc.ry(np.pi / 2, q[2])
qc.rx(np.pi / 2, q[3])
qc.ry(np.pi / 2, q[4])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.u3(0, 0, -(np.pi / 2), q[3])
qc.cz(q[2], q[3])
qc.swap(q[2], q[3])
qc.cu1(np.pi / 6, q[2], q[3])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[0])
qc.rx(np.pi / 2, q[1])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[2])
qc.rx(np.pi / 2, q[3])
qc.ry(np.pi / 2, q[4])
qc.u3(0, 0, -(np.pi / 2), q[0])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.cz(q[2], q[0])
qc.swap(q[2], q[0])
qc.cu1(np.pi / 6, q[2], q[0])
qc.rx(np.pi / 2, q[0])
qc.ry(np.pi / 2, q[1])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[2])
qc.rx(np.pi / 2, q[3])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[4])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.u3(0, 0, -(np.pi / 2), q[4])
qc.cz(q[2], q[4])
qc.swap(q[2], q[4])
qc.cu1(np.pi / 6, q[2], q[4])
qc.rx(np.pi / 2, q[0])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[1])
qc.ry(np.pi / 2, q[2])
qc.rx(np.pi / 2, q[3])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[4])
qc.u3(0, 0, -(np.pi / 2), q[0])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.cz(q[2], q[0])
qc.swap(q[2], q[0])
qc.cu1(np.pi / 6, q[2], q[0])
qc.ry(np.pi / 2, q[0])
qc.rx(np.pi / 2, q[1])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[2])
qc.rx(np.pi / 2, q[3])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[4])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.u3(0, 0, -(np.pi / 2), q[4])
qc.cz(q[2], q[4])
qc.swap(q[2], q[4])
qc.cu1(np.pi / 6, q[2], q[4])
qc.ry(np.pi / 2, q[0])
qc.rx(np.pi / 2, q[1])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[2])
qc.rx(np.pi / 2, q[3])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[4])
qc.u3(0, 0, -(np.pi / 2), q[1])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.cz(q[2], q[1])
qc.swap(q[2], q[1])
qc.cu1(np.pi / 6, q[2], q[1])
qc.rx(np.pi / 2, q[0])
qc.ry(np.pi / 2, q[1])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[2])
qc.ry(np.pi / 2, q[3])
qc.u3(np.pi / 2, -(np.pi / 4), np.pi / 4, q[4])
qc.u3(0, 0, -(np.pi / 2), q[2])
qc.u3(0, 0, -(np.pi / 2), q[3])
qc.cz(q[2], q[3])
qc.swap(q[2], q[3])
qc.cu1(np.pi / 6, q[2], q[3])
qc.measure(q[0], c[0])
qc.measure(q[1], c[1])
qc.measure(q[2], c[2])
qc.measure(q[3], c[3])
qc.measure(q[4], c[4])
| 27.296296
| 75
| 0.510176
| 777
| 2,948
| 1.930502
| 0.087516
| 0.24
| 0.186667
| 0.172
| 0.690667
| 0.690667
| 0.689333
| 0.689333
| 0.686667
| 0.682
| 0
| 0.11898
| 0.161805
| 2,948
| 107
| 76
| 27.551402
| 0.488062
| 0.104817
| 0
| 0.836957
| 0
| 0
| 0.00076
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.021739
| 0
| 0.021739
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7cbfb3761c1d3c3eed54cb4a3cfde72e0b6953a8
| 33,837
|
py
|
Python
|
src/kerasadf/layers/pooling.py
|
jmaces/keras-adf
|
e86cde14fd09a6c6cdaa5b5eebb5ae725bedc76d
|
[
"MIT"
] | 11
|
2020-01-18T00:28:45.000Z
|
2022-01-11T09:09:29.000Z
|
src/kerasadf/layers/pooling.py
|
jmaces/keras-adf
|
e86cde14fd09a6c6cdaa5b5eebb5ae725bedc76d
|
[
"MIT"
] | 2
|
2020-06-05T18:07:58.000Z
|
2020-10-26T15:38:02.000Z
|
src/kerasadf/layers/pooling.py
|
jmaces/keras-adf
|
e86cde14fd09a6c6cdaa5b5eebb5ae725bedc76d
|
[
"MIT"
] | 2
|
2020-01-18T00:28:48.000Z
|
2020-04-11T14:15:43.000Z
|
import numpy as np
import tensorflow.keras.backend as K
from tensorflow.python.framework import tensor_shape
from tensorflow.python.keras.engine.base_layer import InputSpec
from tensorflow.python.keras.utils import conv_utils
from tensorflow.python.ops import nn
from tensorflow.python.util import nest
from .core import ADFLayer
class Pooling1D(ADFLayer):
"""Pooling layer for arbitrary pooling functions, for 1D inputs.
Assumed Density Filtering (ADF) version of the abstract Keras ``Pooling1D``
layer.
This class only exists for code reuse. It will never be an exposed API.
Parameters
----------
pool_function : callable
The pooling function to apply, e.g. ``tf.nn.max_pool2d``.
pool_size : int or tuple of int
An integer or tuple/list of a single integer, representing the size of
the pooling window.
strides : int or tuple of int or `None`, optional
An integer or tuple/list of a single integer, specifying the strides of
the pooling operation. If `None`, the ``pool_size`` will be used.
Default is `None`.
padding : {"valid", "same"}, optional
The padding method. Case-insensitive. Default is "valid".
data_format : {"channels_last", "channels_first"}, optional
The ordering of the dimensions in the inputs.
"channels_last" corresponds to inputs with shape
``(batch, steps, features)`` while "channels_first" corresponds to
inputs with shape ``(batch, features, steps)``.
It defaults to the ``image_data_format`` value found in your
Keras config file at ``~/.keras/keras.json``.
If you never set it, then it will be "channels_last".
"""
def __init__(
self,
pool_function,
pool_size,
strides,
padding="valid",
data_format=None,
**kwargs
):
super(Pooling1D, self).__init__(**kwargs)
if data_format is None:
data_format = K.image_data_format()
if strides is None:
strides = pool_size
self.pool_function = pool_function
self.pool_size = conv_utils.normalize_tuple(pool_size, 1, "pool_size")
self.strides = conv_utils.normalize_tuple(strides, 1, "strides")
self.padding = conv_utils.normalize_padding(padding)
self.data_format = conv_utils.normalize_data_format(data_format)
self.supports_masking = False
if self.mode == "diag":
self.input_spec = [InputSpec(ndim=3), InputSpec(ndim=3)]
elif self.mode == "half":
self.input_spec = [InputSpec(ndim=3), InputSpec(ndim=4)]
elif self.mode == "full":
self.input_spec = [InputSpec(ndim=3), InputSpec(ndim=5)]
def call(self, inputs):
raise NotImplementedError(
"Pooling1D can not be called directly. The core functionality "
"has to be implemented by a derived class."
)
def compute_output_shape(self, input_shape):
input_shape[0] = tensor_shape.TensorShape(input_shape[0]).as_list()
input_shape[1] = tensor_shape.TensorShape(input_shape[1]).as_list()
if self.data_format == "channels_first":
mean_steps = input_shape[0][2]
if self.mode == "diag":
cov_steps = input_shape[1][2]
elif self.mode == "half":
cov_steps = input_shape[1][3]
elif self.mode == "full":
cov_steps = input_shape[1][2]
else:
mean_steps = input_shape[0][1]
if self.mode == "diag":
cov_steps = input_shape[1][1]
elif self.mode == "half":
cov_steps = input_shape[1][2]
elif self.mode == "full":
cov_steps = input_shape[1][1]
out_mean_steps = conv_utils.conv_output_length(
mean_steps, self.pool_size[0], self.padding, self.strides[0]
)
out_cov_steps = conv_utils.conv_output_length(
cov_steps, self.pool_size[0], self.padding, self.strides[0]
)
if self.data_format == "channels_first":
if self.mode == "diag":
return [
tensor_shape.TensorShape(
[input_shape[0][0], input_shape[0][1], out_mean_steps]
),
tensor_shape.TensorShape(
[input_shape[1][0], input_shape[1][1], out_cov_steps]
),
]
elif self.mode == "half":
return [
tensor_shape.TensorShape(
[input_shape[0][0], input_shape[0][1], out_mean_steps]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
input_shape[1][1],
input_shape[1][2],
out_cov_steps,
]
),
]
elif self.mode == "full":
return [
tensor_shape.TensorShape(
[input_shape[0][0], input_shape[0][1], out_mean_steps]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
input_shape[1][1],
out_cov_steps,
input_shape[1][3],
out_cov_steps,
]
),
]
else:
if self.mode == "diag":
return [
tensor_shape.TensorShape(
[input_shape[0][0], out_mean_steps, input_shape[0][2]]
),
tensor_shape.TensorShape(
[input_shape[1][0], out_cov_steps, input_shape[1][2]]
),
]
elif self.mode == "half":
return [
tensor_shape.TensorShape(
[input_shape[0][0], out_mean_steps, input_shape[0][2]]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
input_shape[1][1],
out_cov_steps,
input_shape[1][3],
]
),
]
elif self.mode == "full":
return [
tensor_shape.TensorShape(
[input_shape[0][0], out_mean_steps, input_shape[0][2]]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
out_cov_steps,
input_shape[1][2],
out_cov_steps,
input_shape[1][4],
]
),
]
def get_config(self):
config = {
"pool_size": self.pool_size,
"padding": self.padding,
"strides": self.strides,
"data_format": self.data_format,
}
base_config = super(Pooling1D, self).get_config()
return dict(list(base_config.items()) + list(config.items()))
class MaxPooling1D(Pooling1D):
"""Max pooling layer for 1D inputs.
Assumed Density Filtering (ADF) version of `keras.layers.MaxPooling1D`.
Parameters
----------
pool_size : int or tuple of int
An integer or tuple/list of a single integer, representing the size of
the pooling window. Default is 2.
strides : int or tuple of int or `None`, optional
An integer or tuple/list of a single integer, specifying the strides of
the pooling operation. If `None`, the ``pool_size`` will be used.
Default is `None`.
padding : {"valid", "same"}, optional
The padding method. Case-insensitive. Default is "valid".
data_format : {"channels_last", "channels_first"}, optional
The ordering of the dimensions in the inputs.
"channels_last" corresponds to inputs with shape
``(batch, steps, features)`` while "channels_first" corresponds to
inputs with shape ``(batch, features, steps)``.
It defaults to the ``image_data_format`` value found in your
Keras config file at ``~/.keras/keras.json``.
If you never set it, then it will be "channels_last".
Notes
-----
Input shape
3D tensor with shape ``(batch_size, steps, features)`` if
``data_format`` is "channels_last" or shape
``(batch_size, features, steps)`` if ``data_format`` is
"channels_first".
Output shape
3D tensor with shape ``(batch_size, pooled_steps, features)`` if
``data_format`` is "channels_last" or shape
``(batch_size, features, pooled_steps)`` if ``data_format`` is
"channels_first".
"""
def __init__(
self,
pool_size=2,
strides=None,
padding="valid",
data_format=None,
**kwargs
):
raise NotImplementedError(
"MaxPooling1D has not been implemented as an ADF layer yet."
)
# super(MaxPooling1D, self).__init__(
# nn.max_pool,
# pool_size=pool_size, strides=strides,
# padding=padding, data_format=data_format, mode='half', **kwargs)
def call(self, inputs):
raise NotImplementedError(
"MaxPooling1D has not been implemented as an ADF layer yet."
)
class AveragePooling1D(Pooling1D):
"""Average pooling layer for 1D inputs.
Assumed Density Filtering (ADF) version of `keras.layers.AveragePooling1D`.
Parameters
----------
pool_size : int or tuple of int
An integer or tuple/list of a single integer, representing the size of
the pooling window. Default is 2.
strides : int or tuple of int or `None`, optional
An integer or tuple/list of a single integer, specifying the strides of
the pooling operation. If `None`, the ``pool_size`` will be used.
Default is `None`.
padding : {"valid", "same"}, optional
The padding method. Case-insensitive. Default is "valid".
data_format : {"channels_last", "channels_first"}, optional
The ordering of the dimensions in the inputs.
"channels_last" corresponds to inputs with shape
``(batch, steps, features)`` while "channels_first" corresponds to
inputs with shape ``(batch, features, steps)``.
It defaults to the ``image_data_format`` value found in your
Keras config file at ``~/.keras/keras.json``.
If you never set it, then it will be "channels_last".
Notes
-----
Input shape
3D tensor with shape ``(batch_size, steps, features)`` if
``data_format`` is "channels_last" or shape
``(batch_size, features, steps)`` if ``data_format`` is
"channels_first".
Output shape
3D tensor with shape ``(batch_size, pooled_steps, features)`` if
``data_format`` is "channels_last" or shape
``(batch_size, features, pooled_steps)`` if ``data_format`` is
"channels_first".
"""
def __init__(
self,
pool_size=2,
strides=None,
padding="valid",
data_format=None,
**kwargs
):
super(AveragePooling1D, self).__init__(
nn.avg_pool, # no 1d pooling until tf-1.14, we use 2d instead
pool_size=pool_size,
strides=strides,
padding=padding,
data_format=data_format,
**kwargs
)
def call(self, inputs):
input_shapes = nest.map_structure(lambda x: x.shape, inputs)
output_shapes = self.compute_output_shape(input_shapes)
means, covariances = inputs
# there is no 1d pooling until tf-1.14, so we use 2d pooling instead
if self.data_format == "channels_last":
means = K.expand_dims(means, 1)
if self.mode == "diag":
covariances = K.expand_dims(covariances, 1)
elif self.mode == "half":
covariances = K.expand_dims(covariances, 2)
elif self.mode == "full":
covariances = K.expand_dims(covariances, 1)
covariances = K.expand_dims(covariances, 4)
pool_shape = list((1,) + self.pool_size)
strides = list((1,) + self.strides)
data_format = "NHWC"
else:
means = K.expand_dims(means, 2)
if self.mode == "diag":
covariances = K.expand_dims(covariances, 2)
elif self.mode == "half":
covariances = K.expand_dims(covariances, 3)
elif self.mode == "full":
covariances = K.expand_dims(covariances, 2)
covariances = K.expand_dims(covariances, 5)
pool_shape = list((1,) + self.pool_size)
strides = list((1,) + self.strides)
data_format = "NCHW"
outputs = [[], []]
outputs[0] = K.reshape(
self.pool_function(
means,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=data_format,
),
[-1] + output_shapes[0].as_list()[1:],
)
if self.mode == "diag":
outputs[1] = K.reshape(
self.pool_function(
covariances / np.prod(pool_shape),
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=data_format,
),
[-1] + output_shapes[1].as_list()[1:],
)
elif self.mode == "half":
cov_shape = covariances.get_shape().as_list()
covariances = K.reshape(covariances, [-1] + cov_shape[2:])
outputs[1] = K.reshape(
self.pool_function(
covariances,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=data_format,
),
[-1] + output_shapes[1].as_list()[1:],
)
elif self.mode == "full":
cov_shape = covariances.get_shape().as_list()
out_shape = output_shapes[1].as_list()
if self.data_format == "channels_last":
out_shape = (
out_shape[:1] + [1] + out_shape[1:3] + [1] + out_shape[3:]
)
elif self.data_format == "channels_first":
out_shape = (
out_shape[:2] + [1] + out_shape[2:4] + [1] + out_shape[4:]
)
covariances = K.reshape(covariances, [-1] + cov_shape[4:])
covariances = K.reshape(
self.pool_function(
covariances,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=data_format,
),
([-1] + cov_shape[1:4] + out_shape[-3:]),
)
covariances = K.permute_dimensions(
covariances, ([0] + list(range(4, 7)) + list(range(1, 4))),
)
covariances = K.reshape(covariances, [-1] + cov_shape[1:4])
covariances = K.reshape(
self.pool_function(
covariances,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=data_format,
),
([-1] + out_shape[-3:] + out_shape[1:4]),
)
outputs[1] = K.reshape(
K.permute_dimensions(
covariances, ([0] + list(range(4, 7)) + list(range(1, 4))),
),
[-1] + output_shapes[1].as_list()[1:],
)
return outputs
class Pooling2D(ADFLayer):
"""Pooling layer for arbitrary pooling functions, for 2D inputs.
Assumed Density Filtering (ADF) version of the abstract Keras ``Pooling2D``
layer.
This class only exists for code reuse. It will never be an exposed API.
Parameters
----------
pool_function : callable
The pooling function to apply, e.g. ``tf.nn.max_pool2d``.
pool_size : int or tuple of int
An integer or tuple/list of two integers, ``(pool_height, pool_width)``
specifying the size of the pooling window. Can be a single integer to
specify the same value for all spatial dimensions.
strides : int or tuple of int or `None`
An integer or tuple/list of two integers, specifying the strides of
the pooling operation. Can be a single integer to specify the same
value for all spatial dimensions. If `None`, the ``pool_size`` will be
used. Default is `None`.
padding : {"valid", "same"}, optional
The padding method. Case-insensitive. Default is "valid".
data_format : {"channels_last", "channels_first"}, optional
The ordering of the dimensions in the inputs.
"channels_last" corresponds to inputs with shape
``(batch, height, width, channels)`` while "channels_first" corresponds
to inputs with shape ``(batch, channels, height, width)``.
It defaults to the ``image_data_format`` value found in your
Keras config file at ``~/.keras/keras.json``.
If you never set it, then it will be "channels_last".
"""
def __init__(
self,
pool_function,
pool_size,
strides,
padding="valid",
data_format=None,
**kwargs
):
super(Pooling2D, self).__init__(**kwargs)
if data_format is None:
data_format = K.image_data_format()
if strides is None:
strides = pool_size
self.pool_function = pool_function
self.pool_size = conv_utils.normalize_tuple(pool_size, 2, "pool_size")
self.strides = conv_utils.normalize_tuple(strides, 2, "strides")
self.padding = conv_utils.normalize_padding(padding)
self.data_format = conv_utils.normalize_data_format(data_format)
self.supports_masking = False
if self.mode == "diag":
self.input_spec = [InputSpec(ndim=4), InputSpec(ndim=4)]
elif self.mode == "half":
self.input_spec = [InputSpec(ndim=4), InputSpec(ndim=5)]
elif self.mode == "full":
self.input_spec = [InputSpec(ndim=4), InputSpec(ndim=7)]
def call(self, inputs):
raise NotImplementedError(
"Pooling2D can not be called directly. The core functionality "
"has to be implemented by a derived class."
)
def compute_output_shape(self, input_shape):
input_shape[0] = tensor_shape.TensorShape(input_shape[0]).as_list()
input_shape[1] = tensor_shape.TensorShape(input_shape[1]).as_list()
if self.data_format == "channels_first":
mean_rows = input_shape[0][2]
mean_cols = input_shape[0][3]
if self.mode == "diag":
cov_rows = input_shape[1][2]
cov_cols = input_shape[1][3]
elif self.mode == "half":
cov_rows = input_shape[1][3]
cov_cols = input_shape[1][4]
elif self.mode == "full":
cov_rows = input_shape[1][2]
cov_cols = input_shape[1][3]
else:
mean_rows = input_shape[0][1]
mean_cols = input_shape[0][2]
if self.mode == "diag":
cov_rows = input_shape[1][1]
cov_cols = input_shape[1][2]
elif self.mode == "half":
cov_rows = input_shape[1][2]
cov_cols = input_shape[1][3]
elif self.mode == "full":
cov_rows = input_shape[1][1]
cov_cols = input_shape[1][2]
out_mean_rows = conv_utils.conv_output_length(
mean_rows, self.pool_size[0], self.padding, self.strides[0]
)
out_mean_cols = conv_utils.conv_output_length(
mean_cols, self.pool_size[1], self.padding, self.strides[1]
)
out_cov_rows = conv_utils.conv_output_length(
cov_rows, self.pool_size[0], self.padding, self.strides[0]
)
out_cov_cols = conv_utils.conv_output_length(
cov_cols, self.pool_size[1], self.padding, self.strides[1]
)
if self.data_format == "channels_first":
if self.mode == "diag":
return [
tensor_shape.TensorShape(
[
input_shape[0][0],
input_shape[0][1],
out_mean_rows,
out_mean_cols,
]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
input_shape[1][1],
out_cov_rows,
out_cov_cols,
]
),
]
elif self.mode == "half":
return [
tensor_shape.TensorShape(
[
input_shape[0][0],
input_shape[0][1],
out_mean_rows,
out_mean_cols,
]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
input_shape[1][1],
input_shape[1][2],
out_cov_rows,
out_cov_cols,
]
),
]
elif self.mode == "full":
return [
tensor_shape.TensorShape(
[
input_shape[0][0],
input_shape[0][1],
out_mean_rows,
out_mean_cols,
]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
input_shape[1][1],
out_cov_rows,
out_cov_cols,
input_shape[1][4],
out_cov_rows,
out_cov_cols,
]
),
]
else:
if self.mode == "diag":
return [
tensor_shape.TensorShape(
[
input_shape[0][0],
out_mean_rows,
out_mean_cols,
input_shape[0][3],
]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
out_cov_rows,
out_cov_cols,
input_shape[1][3],
]
),
]
elif self.mode == "half":
return [
tensor_shape.TensorShape(
[
input_shape[0][0],
out_mean_rows,
out_mean_cols,
input_shape[0][3],
]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
input_shape[1][1],
out_cov_rows,
out_cov_cols,
input_shape[1][4],
]
),
]
elif self.mode == "full":
return [
tensor_shape.TensorShape(
[
input_shape[0][0],
out_mean_rows,
out_mean_cols,
input_shape[0][3],
]
),
tensor_shape.TensorShape(
[
input_shape[1][0],
out_cov_rows,
out_cov_cols,
input_shape[1][3],
out_cov_rows,
out_cov_cols,
input_shape[1][6],
]
),
]
def get_config(self):
config = {
"pool_size": self.pool_size,
"padding": self.padding,
"strides": self.strides,
"data_format": self.data_format,
}
base_config = super(Pooling2D, self).get_config()
return dict(list(base_config.items()) + list(config.items()))
class MaxPooling2D(Pooling2D):
"""Max pooling layer for 2D inputs.
Assumed Density Filtering (ADF) version of `keras.layers.MaxPooling2D`.
Parameters
----------
pool_size : int or tuple of int, optional
An integer or tuple/list of two integers, ``(pool_height, pool_width)``
specifying the size of the pooling window. Can be a single integer to
specify the same value for all spatial dimensions.
Default is ``(2,2)``.
strides : int or tuple of int or `None`
An integer or tuple/list of two integers, specifying the strides of
the pooling operation. Can be a single integer to specify the same
value for all spatial dimensions. If `None`, the ``pool_size`` will be
used. Default is `None`.
padding : {"valid", "same"}, optional
The padding method. Case-insensitive. Default is "valid".
data_format : {"channels_last", "channels_first"}, optional
The ordering of the dimensions in the inputs.
"channels_last" corresponds to inputs with shape
``(batch, height, width, channels)`` while "channels_first" corresponds
to inputs with shape ``(batch, channels, height, width)``.
It defaults to the ``image_data_format`` value found in your
Keras config file at ``~/.keras/keras.json``.
If you never set it, then it will be "channels_last".
Notes
-----
Input shape
4D tensor with shape ``(batch_size, rows, cols, channels)`` if
``data_format`` is "channels_last" or shape
``(batch_size, channels, rows, cols)`` if ``data_format`` is
"channels_first".
Output shape
4D tensor with shape
``(batch_size, pooled_rows, pooled_cols, channels)`` if ``data_format``
is "channels_last" or shape
``(batch_size, channels, pooled_rows, pooled_cols)`` if ``data_format``
is "channels_first".
"""
def __init__(
self,
pool_size=(2, 2),
strides=None,
padding="valid",
data_format=None,
**kwargs
):
raise NotImplementedError(
"MaxPooling2D has not been implemented as an ADF layer yet."
)
# super(MaxPooling2D, self).__init__(
# nn.max_pool,
# pool_size=pool_size, strides=strides,
# padding=padding, data_format=data_format, mode='half', **kwargs)
def call(self, inputs):
raise NotImplementedError(
"MaxPooling2D has not been implemented as an ADF layer yet."
)
class AveragePooling2D(Pooling2D):
"""Average pooling layer for 2D inputs.
Assumed Density Filtering (ADF) version of `keras.layers.AveragePooling2D`.
Parameters
----------
pool_size : int or tuple of int, optional
An integer or tuple/list of two integers, ``(pool_height, pool_width)``
specifying the size of the pooling window. Can be a single integer to
specify the same value for all spatial dimensions.
Default is ``(2,2)``.
strides : int or tuple of int or `None`
An integer or tuple/list of two integers, specifying the strides of
the pooling operation. Can be a single integer to specify the same
value for all spatial dimensions. If `None`, the ``pool_size`` will be
used. Default is `None`.
padding : {"valid", "same"}, optional
The padding method. Case-insensitive. Default is "valid".
data_format : {"channels_last", "channels_first"}, optional
The ordering of the dimensions in the inputs.
"channels_last" corresponds to inputs with shape
``(batch, height, width, channels)`` while "channels_first" corresponds
to inputs with shape ``(batch, channels, height, width)``.
It defaults to the ``image_data_format`` value found in your
Keras config file at ``~/.keras/keras.json``.
If you never set it, then it will be "channels_last".
Notes
-----
Input shape
4D tensor with shape ``(batch_size, rows, cols, channels)`` if
``data_format`` is "channels_last" or shape
``(batch_size, channels, rows, cols)`` if ``data_format`` is
"channels_first".
Output shape
4D tensor with shape
``(batch_size, pooled_rows, pooled_cols, channels)`` if ``data_format``
is "channels_last" or shape
``(batch_size, channels, pooled_rows, pooled_cols)`` if ``data_format``
is "channels_first".
"""
def __init__(
self,
pool_size=(2, 2),
strides=None,
padding="valid",
data_format=None,
**kwargs
):
super(AveragePooling2D, self).__init__(
nn.avg_pool,
pool_size=pool_size,
strides=strides,
padding=padding,
data_format=data_format,
**kwargs
)
def call(self, inputs):
input_shapes = nest.map_structure(lambda x: x.shape, inputs)
output_shapes = self.compute_output_shape(input_shapes)
means, covariances = inputs
if self.data_format == "channels_last":
pool_shape = list(self.pool_size)
strides = list(self.strides)
else:
pool_shape = list(self.pool_size)
strides = list(self.strides)
outputs = [[], []]
outputs[0] = self.pool_function(
means,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=conv_utils.convert_data_format(self.data_format, 4),
)
if self.mode == "diag":
outputs[1] = self.pool_function(
covariances / np.prod(pool_shape),
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=conv_utils.convert_data_format(
self.data_format, 4
),
)
elif self.mode == "half":
cov_shape = covariances.get_shape().as_list()
covariances = K.reshape(covariances, [-1] + cov_shape[2:])
outputs[1] = K.reshape(
self.pool_function(
covariances,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=conv_utils.convert_data_format(
self.data_format, 4
),
),
[-1] + output_shapes[1].as_list()[1:],
)
elif self.mode == "full":
cov_shape = covariances.get_shape().as_list()
covariances = K.reshape(covariances, [-1] + cov_shape[4:])
covariances = K.reshape(
self.pool_function(
covariances,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=conv_utils.convert_data_format(
self.data_format, 4
),
),
([-1] + cov_shape[1:4] + output_shapes[1].as_list()[-3:]),
)
covariances = K.permute_dimensions(
covariances, ([0] + list(range(4, 7)) + list(range(1, 4))),
)
covariances = K.reshape(covariances, [-1] + cov_shape[1:4])
covariances = K.reshape(
self.pool_function(
covariances,
ksize=pool_shape,
strides=strides,
padding=self.padding.upper(),
data_format=conv_utils.convert_data_format(
self.data_format, 4
),
),
(
[-1]
+ output_shapes[1].as_list()[-3:]
+ output_shapes[1].as_list()[1:4]
),
)
outputs[1] = K.permute_dimensions(
covariances, ([0] + list(range(4, 7)) + list(range(1, 4))),
)
return outputs
| 38.626712
| 79
| 0.509235
| 3,601
| 33,837
| 4.586226
| 0.059706
| 0.056918
| 0.035967
| 0.045777
| 0.946412
| 0.928005
| 0.898638
| 0.895126
| 0.880048
| 0.829186
| 0
| 0.018067
| 0.391495
| 33,837
| 875
| 80
| 38.670857
| 0.784021
| 0.28324
| 0
| 0.742623
| 0
| 0
| 0.036307
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.02623
| false
| 0
| 0.013115
| 0
| 0.07541
| 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
|
6b02f899f150d3fa64787338b4f45a532af96e99
| 8,190
|
py
|
Python
|
baseStation/test/pathfinding/infrastructure/test_grassfirePathfinder.py
|
olgam4/design3
|
6e05d123a24deae7dda646df535844a158ef5cc0
|
[
"WTFPL"
] | null | null | null |
baseStation/test/pathfinding/infrastructure/test_grassfirePathfinder.py
|
olgam4/design3
|
6e05d123a24deae7dda646df535844a158ef5cc0
|
[
"WTFPL"
] | null | null | null |
baseStation/test/pathfinding/infrastructure/test_grassfirePathfinder.py
|
olgam4/design3
|
6e05d123a24deae7dda646df535844a158ef5cc0
|
[
"WTFPL"
] | null | null | null |
from unittest import TestCase
from pathfinding.domain.angle import Angle
from pathfinding.domain.coord import Coord
from pathfinding.domain.position import Position
from pathfinding.domain.table import Table
from pathfinding.infrastructure.grassfirePathfinder import GrassfirePathfinder
EXPECTED_PATH = [float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"),
float("inf"), 29, 29, 29, 28, 27, 26, 25, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, float("inf"),
float("inf"), 28, 28, 28, 28, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 22,
22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, float("inf"),
float("inf"), 27, 27, 27, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
float("inf"),
float("inf"), 26, 26, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
20, 20, 20, 20, 20, float("inf"),
float("inf"), 25, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), 20, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
19, 19, 19, 19, 19, float("inf"),
float("inf"), 24, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), 20, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 18, 18, 18, float("inf"),
float("inf"), 23, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), 20, 19, 18, 17, 17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 17, float("inf"),
float("inf"), 23, 22, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), 20, 19, 18, 17, 16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, float("inf"),
float("inf"), 23, 22, 21, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), 21, 20, 19, 18, 17, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
float("inf"),
float("inf"), 23, 22, 21, 20, float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 20,
20, 20, 19, 18, 17, 16, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, float("inf"),
float("inf"), 23, 22, 21, 20, 19, float("inf"), float("inf"), float("inf"), 19, 19, 19, 19, 19, 18, 17,
16, 15, 14, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 18, 18, 18, 18, 18, 18, 18, 18, float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), 12, 12, 12, 12, 12, 12, 12, 12, 12, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 17, 17, 17, 17, 17, 17, float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 11, 11, 11, 11, 11, 11, 11, 11,
float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 16, 16, 16, 16, float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 10, 10, 10, 10, 10,
10, 10, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 15, 15, float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 9, 9,
9, 9, 9, 9, 9, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 14, float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 8, 8,
8, 8, 8, 8, 8, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 7, 7,
7, 7, 7, 7, 7, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 6, 6, 6, 6, 6, 6,
6, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), 5, 5, 5, 5, 5, 5, 5, 5,
float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), 4, 4, 4, 4, 4, 4, 4, 4, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, float("inf"), float("inf"),
float("inf"), 5, 4, 3, 3, 3, 3, 3, 3, 3, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 2, 2, 2,
2, 3, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 1,
2, 3, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1,
2, 3, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 1,
2, 3, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 2, 2, 2,
2, 3, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 3, 3, 3, 3,
3, 3, 4, float("inf"),
float("inf"), 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 4, 4, 4, 4, 4,
4, 4, 4, float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"), float("inf"),
float("inf"), float("inf")]
class TestGrassfirePathfinder(TestCase):
def setUp(self) -> None:
table = Table(30, 30, -1, 5, Angle(0), 1)
self.grassfire_pathfinder = GrassfirePathfinder(table, [Coord(7, 7), Coord(17, 17)])
def test_when_pathing_to_some_point_then_gives_the_right_map(self) -> None:
path = self.grassfire_pathfinder.pathable_to(Position(Coord(24, 24), Angle(0)))
self.assertEqual(path.data, EXPECTED_PATH)
| 82.727273
| 120
| 0.465446
| 1,261
| 8,190
| 3.011102
| 0.054718
| 0.560442
| 0.742955
| 0.914406
| 0.843561
| 0.819858
| 0.801422
| 0.78404
| 0.769818
| 0.747696
| 0
| 0.193874
| 0.286447
| 8,190
| 98
| 121
| 83.571429
| 0.455852
| 0
| 0
| 0.215054
| 0
| 0
| 0.097436
| 0
| 0
| 0
| 0
| 0
| 0.010753
| 1
| 0.021505
| false
| 0
| 0.064516
| 0
| 0.096774
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 10
|
6b0c996fad5fc4ce764dbcd131693dfb5ed243cb
| 46,847
|
py
|
Python
|
python/dglke/tests/test_topk.py
|
zby123/dgl-ke
|
b4e57016d5715429377d5aab79e88c451dc543f5
|
[
"Apache-2.0"
] | 1
|
2021-12-12T16:34:30.000Z
|
2021-12-12T16:34:30.000Z
|
python/dglke/tests/test_topk.py
|
zby123/dgl-ke
|
b4e57016d5715429377d5aab79e88c451dc543f5
|
[
"Apache-2.0"
] | null | null | null |
python/dglke/tests/test_topk.py
|
zby123/dgl-ke
|
b4e57016d5715429377d5aab79e88c451dc543f5
|
[
"Apache-2.0"
] | 1
|
2021-11-21T01:50:07.000Z
|
2021-11-21T01:50:07.000Z
|
# -*- coding: utf-8 -*-
#
# test_topk.py
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
from pathlib import Path
import tempfile
import scipy as sp
import dgl
import numpy as np
import dgl.backend as F
import dgl
from models import InferModel
from models.infer import ScoreInfer, EmbSimInfer
from models import TransEModel, TransE_l2Model, TransE_l1Model, TransRModel, RotatEModel
from models import DistMultModel, ComplExModel, RESCALModel
from models import GNNModel
backend = os.environ.get('DGLBACKEND', 'pytorch')
if backend.lower() == 'mxnet':
import mxnet as mx
mx.random.seed(40)
np.random.seed(40)
from models.mxnet.tensor_models import InferEmbedding
from models.mxnet.tensor_models import norm
else:
import torch as th
th.manual_seed(42)
np.random.seed(42)
from models.pytorch.tensor_models import InferEmbedding
from models.pytorch.tensor_models import norm
def generate_rand_emb(func_name, num_entity, num_rels, dim, bcast):
if bcast == 'rel':
num_rels = 1
if bcast == 'head':
num_head = 1
if bcast == 'tail':
num_tail = 1
entity_emb = F.uniform((num_entity, dim), F.float32, F.cpu(), -1, 1)
rel_emb = F.uniform((num_rels, dim), F.float32, F.cpu(), -1, 1)
if func_name == 'RotatE':
rel_emb = F.uniform((num_rels, dim//2), F.float32, F.cpu(), -1, 1)
if func_name == 'RESCAL':
rel_emb = F.uniform((num_rels, dim * dim), F.float32, F.cpu(), -1, 1)
if func_name == 'TransE':
return entity_emb, rel_emb
elif func_name == 'TransE_l1':
return entity_emb, rel_emb
elif func_name == 'TransE_l2':
return entity_emb, rel_emb
elif func_name == 'RESCAL':
return entity_emb, rel_emb
elif func_name == 'RotatE':
return entity_emb, rel_emb
else:
return entity_emb, rel_emb
class FakeEdge:
def __init__(self, hemb, temb, remb):
data = {}
data['head_emb'] = hemb
data['tail_emb'] = temb
data['emb'] = remb
src = {}
src['emb'] = hemb
dst = {}
dst['emb'] = temb
self._src = src
self._dst = dst
self._data = data
@property
def src(self):
return self._src
@property
def dst(self):
return self._dst
@property
def data(self):
return self._data
def create_score_infer(model_name, entity_emb, rel_emb):
hidden_dim = entity_emb.shape[1]
score_model = ScoreInfer(-1, 'config', 'path', 'none')
if model_name == 'TransE' or \
model_name =='TransE_l1' or \
model_name == 'TransE_l2' or \
model_name == 'DistMult' or \
model_name == 'ComplEx':
model = InferModel('cpu', model_name, hidden_dim, batch_size=16)
elif model_name == 'RESCAL':
model = InferModel('cpu', model_name, hidden_dim)
elif model_name == 'RotatE':
model = InferModel('cpu', model_name, hidden_dim, double_entity_emb=True)
elif model_name == 'SimplE':
model = InferModel('cpu', model_name, hidden_dim, double_entity_emb=True, double_relation_emb=True)
model.entity_emb = InferEmbedding('cpu')
model.entity_emb.emb = entity_emb
model.relation_emb = InferEmbedding('cpu')
model.relation_emb.emb = rel_emb
score_model.model = model
score_func = model.score_func
return score_model, score_func
def check_topk_score(model_name):
hidden_dim = 32
gamma = 12.0
num_entity = 40
num_rels = 4
entity_emb, rel_emb = generate_rand_emb(model_name, num_entity, num_rels, hidden_dim, 'none')
score_model, score_func = create_score_infer(model_name, entity_emb, rel_emb)
head = F.arange(0, num_entity // 2)
rel = F.arange(0, num_rels)
tail = F.arange(num_entity // 2, num_entity)
# exec_model==triplet_wise
tw_rel = np.random.randint(0, num_rels, num_entity // 2)
tw_rel = F.tensor(tw_rel)
result1 = score_model.topK(head, tw_rel, tail, exec_mode='triplet_wise')
assert len(result1) == 1
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, tw_rel[i], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[i], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(tw_rel[i]))
tail_ids.append(F.asnumpy(tail[i]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_rel, r1_tail, r1_score = result1[0]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
# exec_mode==all
result1 = score_model.topK(head, rel, tail, k=20)
result2 = score_model.topK(head=head, tail=tail, k=20)
assert len(result1) == 1
assert len(result2) == 1
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
for j in range(rel.shape[0]):
for k in range(tail.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:20]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_rel, r1_tail, r1_score = result1[0]
r2_head, r2_rel, r2_tail, r2_score = result2[0]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
result1 = score_model.topK(head, rel, tail, exec_mode='batch_rel')
result2 = score_model.topK(head=head, tail=tail, exec_mode='batch_rel')
assert len(result1) == num_rels
assert len(result2) == num_rels
for j in range(rel.shape[0]):
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
for k in range(tail.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_rel, r1_tail, r1_score = result1[j]
r2_head, r2_rel, r2_tail, r2_score = result2[j]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
head = F.arange(0, num_entity)
rel = F.arange(0, num_rels)
tail = F.arange(0, num_entity)
result1 = score_model.topK(head, rel, tail, exec_mode='batch_head')
result2 = score_model.topK(exec_mode='batch_head')
assert len(result1) == num_entity
assert len(result2) == num_entity
for i in range(head.shape[0]):
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for j in range(rel.shape[0]):
for k in range(tail.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_rel, r1_tail, r1_score = result1[i]
r2_head, r2_rel, r2_tail, r2_score = result2[i]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
result1 = score_model.topK(head, rel, tail, exec_mode='batch_tail')
result2 = score_model.topK(exec_mode='batch_tail')
assert len(result1) == num_entity
assert len(result2) == num_entity
for k in range(tail.shape[0]):
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
for j in range(rel.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_rel, r1_tail, r1_score = result1[k]
r2_head, r2_rel, r2_tail, r2_score = result2[k]
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-6, atol=1e-6)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-6, atol=1e-6)
def test_topk_transe():
check_topk_score('TransE')
check_topk_score('TransE_l1')
check_topk_score('TransE_l2')
def test_topk_distmult():
check_topk_score('DistMult')
def test_topk_complex():
check_topk_score('ComplEx')
def test_topk_rescal():
check_topk_score('RESCAL')
def test_topk_rotate():
check_topk_score('RotatE')
def create_kge_emb_sim(emb, sfunc):
sim_infer = EmbSimInfer(-1, None, sfunc, 32)
sim_infer.emb = emb
return sim_infer
def test_topk_simple():
check_topk_score('SimplE')
def run_topk_emb(sfunc, sim_func, create_emb_sim=create_kge_emb_sim):
hidden_dim = 32
num_head = 40
num_tail = 40
num_emb = 80
emb = F.uniform((num_emb, hidden_dim), F.float32, F.cpu(), -1, 1)
head = F.arange(0, num_head)
tail = F.arange(num_head, num_head+num_tail)
sim_infer = create_emb_sim(emb, sfunc)
result1 = sim_infer.topK(head, tail, pair_ws=True)
scores = []
head_ids = []
tail_ids = []
for i in range(head.shape[0]):
j = i
hemb = F.take(emb, head[i], 0)
temb = F.take(emb, tail[j], 0)
score = sim_func(hemb, temb)
scores.append(F.asnumpy(score))
head_ids.append(F.asnumpy(head[i]))
tail_ids.append(F.asnumpy(tail[j]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_tail, r1_score = result1[0]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
print('pass pairwise')
head = F.arange(0, num_head)
tail = F.arange(num_head, num_head+num_tail)
result1 = sim_infer.topK(head, tail)
assert len(result1) == 1
scores = []
head_ids = []
tail_ids = []
for i in range(head.shape[0]):
for j in range(tail.shape[0]):
hemb = F.take(emb, head[i], 0)
temb = F.take(emb, tail[j], 0)
score = sim_func(hemb, temb)
scores.append(F.asnumpy(score))
head_ids.append(F.asnumpy(head[i]))
tail_ids.append(F.asnumpy(tail[j]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_tail, r1_score = result1[0]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
emb_ids = F.arange(0, num_emb)
result1 = sim_infer.topK(emb_ids, emb_ids, bcast=True)
result2 = sim_infer.topK(bcast=True)
assert len(result1) == emb_ids.shape[0]
assert len(result2) == emb_ids.shape[0]
for i in range(emb_ids.shape[0]):
scores = []
head_ids = []
tail_ids = []
for j in range(emb_ids.shape[0]):
hemb = F.take(emb, emb_ids[i], 0)
temb = F.take(emb, emb_ids[j], 0)
score = sim_func(hemb, temb)
score = F.asnumpy(score)
scores.append(score)
tail_ids.append(F.asnumpy(emb_ids[j]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = np.full((10,), F.asnumpy(emb_ids[i]))
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_tail, r1_score = result1[i]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
r2_head, r2_tail, r2_score = result2[i]
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
print('pass all')
def test_cosine_topk_emb(create_emb_sim=create_kge_emb_sim):
def cosine_func(x, y):
score = F.sum(x * y, dim=0)
x_norm2 = F.sum(x * x, dim=0) ** (1/2)
y_norm2 = F.sum(y * y, dim=0) ** (1/2)
return score / (x_norm2 * y_norm2)
run_topk_emb('cosine', cosine_func, create_emb_sim=create_emb_sim)
def test_l2_topk_emb(create_emb_sim=create_kge_emb_sim):
def l2_func(x, y):
score = x - y
return -F.sum(score * score, dim=0) ** (1/2)
run_topk_emb('l2', l2_func, create_emb_sim=create_emb_sim)
def test_l1_topk_emb(create_emb_sim=create_kge_emb_sim):
def l1_func(x, y):
score = x - y
return -norm(score, p=1)
run_topk_emb('l1', l1_func, create_emb_sim=create_emb_sim)
def test_dot_topk_emb(create_emb_sim=create_kge_emb_sim):
def dot_func(x, y):
return F.sum(x * y, dim=0)
run_topk_emb('dot', dot_func)
def test_extended_jaccard_topk_emb(create_emb_sim=create_kge_emb_sim):
def extended_jaccard_func(x, y):
score = F.sum(x * y, dim=0)
x = F.sum(x * x, dim=0)
y = F.sum(y * y, dim=0)
return score / (x + y - score)
run_topk_emb('ext_jaccard', extended_jaccard_func, create_emb_sim=create_emb_sim)
############################# BasicGEModel ##############################
def create_emb_file(path, filename, emb):
np.save(os.path.join(path, filename), emb)
def check_topk_score2(score_model, exclude_mode):
num_entity = 40
num_rels = 4
src = F.arange(0, num_entity)
dst1 = src + 1
dst1[num_entity-1] = 0
dst2 = src - 1
dst2[0] = num_entity-1
src = F.cat([src, src], dim=0)
dst = F.cat([dst1, dst2], dim=0)
src = F.cat([src, src, src, src], dim=0)
dst = F.cat([dst, dst, dst, dst], dim=0)
etype = F.cat([th.full((num_entity*2,), 0, dtype=th.long),
th.full((num_entity*2,), 1, dtype=th.long),
th.full((num_entity*2,), 2, dtype=th.long),
th.full((num_entity*2,), 3, dtype=th.long)],
dim=0)
g = dgl.graph((src, dst))
g.edata['tid'] = etype
_check_topk_score2(score_model, g, num_entity, num_rels, exclude_mode)
def _check_topk_score2(score_model, g, num_entity, num_rels, exclude_mode):
hidden_dim = 32
num_entity = 40
num_rels = 4
with tempfile.TemporaryDirectory() as tmpdirname:
entity_emb, rel_emb = generate_rand_emb(score_model.model_name, num_entity, num_rels, hidden_dim, 'none')
create_emb_file(Path(tmpdirname), 'entity.npy', entity_emb.numpy())
create_emb_file(Path(tmpdirname), 'relation.npy', rel_emb.numpy())
score_model.load(Path(tmpdirname))
score_model.attach_graph(g)
score_func = score_model._score_func
head = F.arange(0, num_entity // 2)
rel = F.arange(0, num_rels)
tail = F.arange(num_entity // 2, num_entity)
# exec_model==triplet_wise
tw_rel = np.random.randint(0, num_rels, num_entity // 2)
tw_rel = F.tensor(tw_rel)
result1 = score_model.link_predict(head, tw_rel, tail, exec_mode='triplet_wise', exclude_mode=exclude_mode, batch_size=16)
assert len(result1) == 1
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, tw_rel[i], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[i], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(tw_rel[i]))
tail_ids.append(F.asnumpy(tail[i]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
if exclude_mode is None or exclude_mode == 'mask':
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
if exclude_mode == 'mask':
mask = np.zeros((10,))
for i in range(10):
if (head_ids[i] + 1) % num_entity == tail_ids[i] or \
(head_ids[i] - 1) % num_entity == tail_ids[i]:
mask[i] = 1
else:
c_head_idx = []
c_rel_idx = []
c_tail_idx = []
c_score_topk = []
cur_idx = 0
while len(c_head_idx) < 10:
c_idx = idx[cur_idx]
cur_idx += 1
if (head_ids[c_idx] + 1) % num_entity == tail_ids[c_idx] or \
(head_ids[c_idx] - 1) % num_entity == tail_ids[c_idx]:
continue
c_head_idx.append(head_ids[c_idx])
c_tail_idx.append(tail_ids[c_idx])
c_rel_idx.append(rel_ids[c_idx])
c_score_topk.append(scores[c_idx])
head_ids = F.tensor(c_head_idx)
rel_ids = F.tensor(c_rel_idx)
tail_ids = F.tensor(c_tail_idx)
score_topk = F.tensor(c_score_topk)
r1_head, r1_rel, r1_tail, r1_score, r1_mask = result1[0]
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
if exclude_mode == 'mask':
np.testing.assert_allclose(r1_mask, mask)
else:
assert r1_mask is None
# exec_mode==all
result1 = score_model.link_predict(head, rel, tail, topk=20, exclude_mode=exclude_mode, batch_size=16)
result2 = score_model.link_predict(head=head, tail=tail, topk=20, exclude_mode=exclude_mode, batch_size=16)
assert len(result1) == 1
assert len(result2) == 1
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
for j in range(rel.shape[0]):
for k in range(tail.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
if exclude_mode is None or exclude_mode == 'mask':
idx = idx[:20]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
if exclude_mode == 'mask':
mask = np.zeros((20,))
for i in range(20):
if (head_ids[i] + 1) % num_entity == tail_ids[i] or \
(head_ids[i] - 1) % num_entity == tail_ids[i]:
mask[i] = 1
else:
c_head_idx = []
c_rel_idx = []
c_tail_idx = []
c_score_topk = []
cur_idx = 0
while len(c_head_idx) < 20:
c_idx = idx[cur_idx]
cur_idx += 1
if (head_ids[c_idx] + 1) % num_entity == tail_ids[c_idx] or \
(head_ids[c_idx] - 1) % num_entity == tail_ids[c_idx]:
continue
c_head_idx.append(head_ids[c_idx])
c_tail_idx.append(tail_ids[c_idx])
c_rel_idx.append(rel_ids[c_idx])
c_score_topk.append(scores[c_idx])
head_ids = F.tensor(c_head_idx)
rel_ids = F.tensor(c_rel_idx)
tail_ids = F.tensor(c_tail_idx)
score_topk = F.tensor(c_score_topk)
r1_head, r1_rel, r1_tail, r1_score, r1_mask = result1[0]
r2_head, r2_rel, r2_tail, r2_score, r2_mask = result2[0]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
if exclude_mode == 'mask':
np.testing.assert_allclose(r1_mask, mask)
np.testing.assert_allclose(r2_mask, mask)
else:
assert r1_mask is None
assert r2_mask is None
result1 = score_model.link_predict(head, rel, tail, exec_mode='batch_rel', exclude_mode=exclude_mode, batch_size=16)
result2 = score_model.link_predict(head=head, tail=tail, exec_mode='batch_rel', exclude_mode=exclude_mode, batch_size=16)
assert len(result1) == num_rels
assert len(result2) == num_rels
for j in range(rel.shape[0]):
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
for k in range(tail.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
if exclude_mode is None or exclude_mode == 'mask':
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
if exclude_mode == 'mask':
mask = np.full((10,), False)
for i in range(10):
if (head_ids[i] + 1) % num_entity == tail_ids[i] or \
(head_ids[i] - 1) % num_entity == tail_ids[i]:
mask[i] = True
else:
c_head_idx = []
c_rel_idx = []
c_tail_idx = []
c_score_topk = []
cur_idx = 0
while len(c_head_idx) < 10:
c_idx = idx[cur_idx]
cur_idx += 1
if (head_ids[c_idx] + 1) % num_entity == tail_ids[c_idx] or \
(head_ids[c_idx] - 1) % num_entity == tail_ids[c_idx]:
continue
c_head_idx.append(head_ids[c_idx])
c_tail_idx.append(tail_ids[c_idx])
c_rel_idx.append(rel_ids[c_idx])
c_score_topk.append(scores[c_idx])
head_ids = F.tensor(c_head_idx)
rel_ids = F.tensor(c_rel_idx)
tail_ids = F.tensor(c_tail_idx)
score_topk = F.tensor(c_score_topk)
r1_head, r1_rel, r1_tail, r1_score, r1_mask = result1[j]
r2_head, r2_rel, r2_tail, r2_score, r2_mask = result2[j]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
if exclude_mode == 'mask':
np.testing.assert_allclose(r1_mask, mask)
np.testing.assert_allclose(r2_mask, mask)
else:
assert r1_mask is None
assert r2_mask is None
head = F.arange(0, num_entity)
rel = F.arange(0, num_rels)
tail = F.arange(0, num_entity)
result1 = score_model.link_predict(head, rel, tail, exec_mode='batch_head', exclude_mode=exclude_mode, batch_size=16)
result2 = score_model.link_predict(exec_mode='batch_head', exclude_mode=exclude_mode, batch_size=16)
assert len(result1) == num_entity
assert len(result2) == num_entity
for i in range(head.shape[0]):
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for j in range(rel.shape[0]):
for k in range(tail.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
if exclude_mode is None or exclude_mode == 'mask':
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
if exclude_mode == 'mask':
mask = np.full((10,), False)
for l in range(10):
if (head_ids[l] + 1) % num_entity == tail_ids[l] or \
(head_ids[l] - 1) % num_entity == tail_ids[l]:
mask[l] = True
else:
c_head_idx = []
c_rel_idx = []
c_tail_idx = []
c_score_topk = []
cur_idx = 0
while len(c_head_idx) < 10:
c_idx = idx[cur_idx]
cur_idx += 1
if (head_ids[c_idx] + 1) % num_entity == tail_ids[c_idx] or \
(head_ids[c_idx] - 1) % num_entity == tail_ids[c_idx]:
continue
c_head_idx.append(head_ids[c_idx])
c_tail_idx.append(tail_ids[c_idx])
c_rel_idx.append(rel_ids[c_idx])
c_score_topk.append(scores[c_idx])
head_ids = F.tensor(c_head_idx)
rel_ids = F.tensor(c_rel_idx)
tail_ids = F.tensor(c_tail_idx)
score_topk = F.tensor(c_score_topk)
r1_head, r1_rel, r1_tail, r1_score, r1_mask = result1[i]
r2_head, r2_rel, r2_tail, r2_score, r2_mask = result2[i]
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
if exclude_mode == 'mask':
np.testing.assert_allclose(r1_mask, mask)
np.testing.assert_allclose(r2_mask, mask)
else:
assert r1_mask is None
assert r2_mask is None
result1 = score_model.link_predict(head, rel, tail, exec_mode='batch_tail', exclude_mode=exclude_mode)
result2 = score_model.link_predict(exec_mode='batch_tail', exclude_mode=exclude_mode)
assert len(result1) == num_entity
assert len(result2) == num_entity
for k in range(tail.shape[0]):
scores = []
head_ids = []
rel_ids = []
tail_ids = []
for i in range(head.shape[0]):
for j in range(rel.shape[0]):
hemb = F.take(entity_emb, head[i], 0)
remb = F.take(rel_emb, rel[j], 0)
temb = F.unsqueeze(F.take(entity_emb, tail[k], 0), dim=0)
edge = FakeEdge(hemb, temb, remb)
score = F.asnumpy(score_func.edge_func(edge)['score'])
scores.append(score)
head_ids.append(F.asnumpy(head[i]))
rel_ids.append(F.asnumpy(rel[j]))
tail_ids.append(F.asnumpy(tail[k]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
rel_ids = np.asarray(rel_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
if exclude_mode is None or exclude_mode == 'mask':
idx = idx[:10]
head_ids = head_ids[idx]
rel_ids = rel_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
if exclude_mode == 'mask':
mask = np.full((10,), False)
for l in range(10):
if (head_ids[l] + 1) % num_entity == tail_ids[l] or \
(head_ids[l] - 1) % num_entity == tail_ids[l]:
mask[l] = True
else:
c_head_idx = []
c_rel_idx = []
c_tail_idx = []
c_score_topk = []
cur_idx = 0
while len(c_head_idx) < 10:
c_idx = idx[cur_idx]
cur_idx += 1
if (head_ids[c_idx] + 1) % num_entity == tail_ids[c_idx] or \
(head_ids[c_idx] - 1) % num_entity == tail_ids[c_idx]:
continue
c_head_idx.append(head_ids[c_idx])
c_tail_idx.append(tail_ids[c_idx])
c_rel_idx.append(rel_ids[c_idx])
c_score_topk.append(scores[c_idx])
head_ids = F.tensor(c_head_idx)
rel_ids = F.tensor(c_rel_idx)
tail_ids = F.tensor(c_tail_idx)
score_topk = F.tensor(c_score_topk)
r1_head, r1_rel, r1_tail, r1_score, r1_mask = result1[k]
r2_head, r2_rel, r2_tail, r2_score, r2_mask = result2[k]
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r1_rel, rel_ids)
np.testing.assert_allclose(r2_rel, rel_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
if exclude_mode == 'mask':
np.testing.assert_allclose(r1_mask, mask)
np.testing.assert_allclose(r2_mask, mask)
else:
assert r1_mask is None
assert r2_mask is None
def test_transe_model_topk(device='cpu'):
gamma = 12.0
transe_model = TransEModel(device, gamma)
check_topk_score2(transe_model, exclude_mode=None)
check_topk_score2(transe_model, exclude_mode='mask')
check_topk_score2(transe_model, exclude_mode='exclude')
transe_model = TransE_l2Model(device, gamma)
check_topk_score2(transe_model, exclude_mode=None)
check_topk_score2(transe_model, exclude_mode='mask')
check_topk_score2(transe_model, exclude_mode='exclude')
transe_model = TransE_l1Model(device, gamma)
check_topk_score2(transe_model, exclude_mode=None)
check_topk_score2(transe_model, exclude_mode='mask')
check_topk_score2(transe_model, exclude_mode='exclude')
def test_distmult_model_topk(device='cpu'):
model = DistMultModel(device)
check_topk_score2(model, exclude_mode=None)
check_topk_score2(model, exclude_mode='mask')
check_topk_score2(model, exclude_mode='exclude')
def test_complex_model_topk(device='cpu'):
model = ComplExModel(device)
check_topk_score2(model, exclude_mode=None)
check_topk_score2(model, exclude_mode='mask')
check_topk_score2(model, exclude_mode='exclude')
def test_rescal_model_topk(device='cpu'):
model = RESCALModel(device)
check_topk_score2(model, exclude_mode=None)
check_topk_score2(model, exclude_mode='mask')
check_topk_score2(model, exclude_mode='exclude')
def test_rotate_model_topk(device='cpu'):
gamma = 12.0
model = RotatEModel(device, gamma)
check_topk_score2(model, exclude_mode=None)
check_topk_score2(model, exclude_mode='mask')
check_topk_score2(model, exclude_mode='exclude')
def test_gnn_model_topk(device='cpu'):
gamma = 12.0
model = GNNModel(device, 'TransE', gamma)
check_topk_score2(model, exclude_mode=None)
check_topk_score2(model, exclude_mode='mask')
check_topk_score2(model, exclude_mode='exclude')
model = GNNModel(device, 'TransE_l1', gamma)
check_topk_score2(model, exclude_mode=None)
check_topk_score2(model, exclude_mode='mask')
check_topk_score2(model, exclude_mode='exclude')
model = GNNModel(device, 'DistMult')
check_topk_score2(model, exclude_mode=None)
check_topk_score2(model, exclude_mode='mask')
check_topk_score2(model, exclude_mode='exclude')
def run_topk_emb2(sfunc, sim_func, emb_model):
hidden_dim = 32
num_head = 40
num_tail = 40
num_emb = 80
with tempfile.TemporaryDirectory() as tmpdirname:
emb = F.uniform((num_emb, hidden_dim), F.float32, F.cpu(), -1, 1)
create_emb_file(Path(tmpdirname), 'entity.npy', emb.numpy())
create_emb_file(Path(tmpdirname), 'relation.npy', emb.numpy())
emb_model.load(Path(tmpdirname))
head = F.arange(0, num_head)
tail = F.arange(num_head, num_head+num_tail)
result1 = emb_model.embed_sim(head, tail, 'entity', sfunc=sfunc, pair_ws=True)
scores = []
head_ids = []
tail_ids = []
for i in range(head.shape[0]):
j = i
hemb = F.take(emb, head[i], 0)
temb = F.take(emb, tail[j], 0)
score = sim_func(hemb, temb)
scores.append(F.asnumpy(score))
head_ids.append(F.asnumpy(head[i]))
tail_ids.append(F.asnumpy(tail[j]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_tail, r1_score = result1[0]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
print('pass pair wise')
head = F.arange(0, num_head)
tail = F.arange(num_head, num_head+num_tail)
result1 = emb_model.embed_sim(head, tail, 'entity', sfunc=sfunc)
assert len(result1) == 1
scores = []
head_ids = []
tail_ids = []
for i in range(head.shape[0]):
for j in range(tail.shape[0]):
hemb = F.take(emb, head[i], 0)
temb = F.take(emb, tail[j], 0)
score = sim_func(hemb, temb)
scores.append(F.asnumpy(score))
head_ids.append(F.asnumpy(head[i]))
tail_ids.append(F.asnumpy(tail[j]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
head_ids = np.asarray(head_ids)
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = head_ids[idx]
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_tail, r1_score = result1[0]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
emb_ids = F.arange(0, num_emb)
result1 = emb_model.embed_sim(emb_ids, emb_ids, 'entity', sfunc=sfunc, bcast=True)
result2 = emb_model.embed_sim(embed_type='entity', sfunc=sfunc, bcast=True)
assert len(result1) == emb_ids.shape[0]
assert len(result2) == emb_ids.shape[0]
for i in range(emb_ids.shape[0]):
scores = []
head_ids = []
tail_ids = []
for j in range(emb_ids.shape[0]):
hemb = F.take(emb, emb_ids[i], 0)
temb = F.take(emb, emb_ids[j], 0)
score = sim_func(hemb, temb)
score = F.asnumpy(score)
scores.append(score)
tail_ids.append(F.asnumpy(emb_ids[j]))
scores = np.asarray(scores)
scores = scores.reshape(scores.shape[0])
tail_ids = np.asarray(tail_ids)
idx = np.argsort(scores)
idx = idx[::-1]
idx = idx[:10]
head_ids = np.full((10,), F.asnumpy(emb_ids[i]))
tail_ids = tail_ids[idx]
score_topk = scores[idx]
r1_head, r1_tail, r1_score = result1[i]
np.testing.assert_allclose(r1_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r1_head, head_ids)
np.testing.assert_allclose(r1_tail, tail_ids)
r2_head, r2_tail, r2_score = result2[i]
np.testing.assert_allclose(r2_score, score_topk, rtol=1e-5, atol=1e-5)
np.testing.assert_allclose(r2_head, head_ids)
np.testing.assert_allclose(r2_tail, tail_ids)
print('pass all')
def test_cosine_topk_emb2(emb_model):
def cosine_func(x, y):
score = F.sum(x * y, dim=0)
x_norm2 = F.sum(x * x, dim=0) ** (1/2)
y_norm2 = F.sum(y * y, dim=0) ** (1/2)
return score / (x_norm2 * y_norm2)
run_topk_emb2('cosine', cosine_func, emb_model=emb_model)
def test_l2_topk_emb2(emb_model):
def l2_func(x, y):
score = x - y
return -F.sum(score * score, dim=0) ** (1/2)
run_topk_emb2('l2', l2_func, emb_model=emb_model)
def test_l1_topk_emb2(emb_model):
def l1_func(x, y):
score = x - y
return -norm(score, p=1)
run_topk_emb2('l1', l1_func, emb_model=emb_model)
def test_dot_topk_emb2(emb_model):
def dot_func(x, y):
return F.sum(x * y, dim=0)
run_topk_emb2('dot', dot_func, emb_model=emb_model)
def test_extended_jaccard_topk_emb2(emb_model):
def extended_jaccard_func(x, y):
score = F.sum(x * y, dim=0)
x = F.sum(x * x, dim=0)
y = F.sum(y * y, dim=0)
return score / (x + y - score)
run_topk_emb2('ext_jaccard', extended_jaccard_func, emb_model=emb_model)
def test_transe_model_topk_emb(device='cpu'):
gamma = 12.0
transe_model = TransEModel(device, gamma)
test_cosine_topk_emb2(transe_model)
transe_model = TransE_l2Model(device, gamma)
test_cosine_topk_emb2(transe_model)
transe_model = TransE_l1Model(device, gamma)
test_cosine_topk_emb2(transe_model)
def test_distmult_model_topk_emb(device='cpu'):
model = DistMultModel(device)
test_l2_topk_emb2(model)
def test_complex_model_topk_emb(device='cpu'):
model = ComplExModel(device)
test_l1_topk_emb2(model)
def test_rescal_model_topk_emb(device='cpu'):
model = RESCALModel(device)
test_dot_topk_emb2(model)
def test_rotate_model_topk_emb(device='cpu'):
gamma = 12.0
model = RotatEModel(device, gamma)
test_extended_jaccard_topk_emb2(model)
def test_gnn_model_topk_emb(device='cpu'):
gamma = 12.0
model = GNNModel(device, 'TransE', gamma)
test_cosine_topk_emb2(model)
model = GNNModel(device, 'TransE_l1', gamma)
test_l2_topk_emb2(model)
model = GNNModel(device, 'DistMult')
test_l1_topk_emb2(model)
if __name__ == '__main__':
test_topk_transe()
test_topk_distmult()
test_topk_complex()
test_topk_rescal()
#test_topk_transr()
test_topk_simple()
test_topk_rotate()
test_cosine_topk_emb()
test_l2_topk_emb()
test_l1_topk_emb()
test_dot_topk_emb()
test_extended_jaccard_topk_emb()
test_transe_model_topk()
test_distmult_model_topk()
test_complex_model_topk()
test_rescal_model_topk()
#test_transr_model_topk()
test_rotate_model_topk()
test_gnn_model_topk()
test_transe_model_topk_emb()
test_distmult_model_topk_emb()
test_complex_model_topk_emb()
test_rescal_model_topk_emb()
#test_transr_model_topk_emb()
test_rotate_model_topk_emb()
test_gnn_model_topk_emb()
test_transe_model_topk(device=0)
test_distmult_model_topk(device=0)
test_complex_model_topk(device=0)
test_rescal_model_topk(device=0)
#test_transr_model_topk()
test_rotate_model_topk(device=0)
test_gnn_model_topk(device=0)
test_transe_model_topk_emb(device=0)
test_distmult_model_topk_emb(device=0)
test_complex_model_topk_emb(device=0)
test_rescal_model_topk_emb(device=0)
#test_transr_model_topk_emb()
test_rotate_model_topk_emb(device=0)
test_gnn_model_topk_emb(device=0)
| 37.0625
| 126
| 0.618823
| 6,988
| 46,847
| 3.871923
| 0.039353
| 0.039324
| 0.05821
| 0.089256
| 0.884429
| 0.849762
| 0.816499
| 0.79303
| 0.770965
| 0.749603
| 0
| 0.027395
| 0.257434
| 46,847
| 1,264
| 127
| 37.0625
| 0.750395
| 0.018016
| 0
| 0.770136
| 0
| 0
| 0.018991
| 0
| 0
| 0
| 0
| 0
| 0.124887
| 1
| 0.046154
| false
| 0.00362
| 0.017195
| 0.004525
| 0.083258
| 0.00362
| 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
|
6b244aad1d7bd1b03df1d494be1c3c58e585c774
| 63,740
|
py
|
Python
|
the_app/routes.py
|
naporium/Cisco_Web_Services-master
|
9ad45c68f40a1543f273e4d2016a7aa049fba499
|
[
"MIT"
] | null | null | null |
the_app/routes.py
|
naporium/Cisco_Web_Services-master
|
9ad45c68f40a1543f273e4d2016a7aa049fba499
|
[
"MIT"
] | null | null | null |
the_app/routes.py
|
naporium/Cisco_Web_Services-master
|
9ad45c68f40a1543f273e4d2016a7aa049fba499
|
[
"MIT"
] | null | null | null |
#from the_app import app
from json import dumps, dump
from flask import request, jsonify, request, Blueprint, current_app, make_response
from datetime import datetime
from the_app.request_data import get_http_request_info, request_data, InvalidUsage
from the_app.manage_logs import NetworkAutomateLogs
from the_app.connect import ConnectToDevice
from flask import current_app
# HOW TO USE THIS
from werkzeug.exceptions import HTTPException, InternalServerError
"""
This file contains the Views/routes
Existing Views:
/
/index
/add_list_of_commands
/add_command_raw
/add_command_raw_not_privileged
/save_running_configurations
/configure_multiple_devices
"""
# TODO: WE have to DECIDE IF WE WANT TO LOG ALL print(messages) in "debug" or "info" mode
# - In view add_raw_command, the logger were used in 'info' mode. In other Views We did not setup the logger.
# (write to log)
# rationale:
# 1. We will use LOGS/NetworkAutomateJsonlog.log to reveal just the operation status.
# - if a response to a request on webservice was on status: Failure or Success
# 2. The file LOGS/NetworkAutomate.log will have just th info and warnings.
# 3. on INFO mode only ...
# The file LOGS/debug_NetworkAutomate.log will have all the operations being done on requests when
# FLASK_ENV=development
# TODO: WE NEED TO LEARN:
# - HOW USE SETUP TOOLS
# - USE THE FLASK APPLICATION FACTORY PATTERN .... DONE OK!
# - Deploy on Gunicorn. Source: https://gunicorn.org/ DONE OK! --> done in Centos7 Server
# - WEB proxy nginx. DONE OK! --> done in Centos7 Server
# - Deploy APP on DOCKER.
# - Do more unittesting.
# CREATE A BLUEPRINT
api = Blueprint("api", __name__)
# register the in the blueprint
@api.errorhandler(InvalidUsage)
def handle_invalid_usage(error):
response = jsonify(error.to_dict())
response.status_code = error.status_code
return response
# https://flask.palletsprojects.com/en/1.1.x/errorhandling/
# It is possible to register error handlers for very generic base classes such as HTTPException or even Exception.
# However, be aware that these will catch more than you might expect.
# An error handler for HTTPException might be useful for turning the default HTML errors pages into JSON, for example.
# HOW TO MAKE THIS GLOBAL
# SINCE THIS A HTTP ERROR FOR OUR FLASK APP we will register the errors in the __init__ file and not in the blueprint
#@api.errorhandler(HTTPException)
def handle_exception(e):
"""Return JSON instead of HTML for HTTP errors."""
# start with the correct headers and status code from the error
response = e.get_response()
# replace the body with JSON
response.data = dumps({
"code": e.code,
"name": e.name,
"description": e.description,
})
error_dict ={"code": e.code,
"name": e.name,
"description": e.description,
}
response.content_type = "application/json"
# CREATE ERROR OBJECT for logging in the: >>> .json file and .log file
client_info = get_http_request_info(request)
start_time = end_time = datetime.now()
logger_obj = NetworkAutomateLogs(start_time=start_time, end_time=end_time, elapsed_time=0, client_info=client_info,
logger_engine=current_app.logger,
user_data_for_logging=None)
logger_obj.http_errors_met(error_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
return response
#@api.errorhandler(Exception)
def internal_server_error(error):
"""Return JSON instead of HTML for Internal Server Errors."""
if isinstance(error, HTTPException):
client_info = get_http_request_info(request)
current_app.logger.error(client_info)
# start with the correct headers and status code from the error
response = error.get_response()
# replace the body with JSON
response.data = dumps({
"code": error.code, #
"name": error.name,
"description": error.description,
})
error_dict = {"code": error.code,
"name": error.name,
"description": error.description,
}
response.content_type = "application/json"
# CREATE ERROR OBJECT for logging in the: >>> .json file and .log file
client_info = get_http_request_info(request)
start_time = end_time = datetime.now()
logger_obj = NetworkAutomateLogs(start_time=start_time, end_time=end_time, elapsed_time=0, client_info=client_info,
logger_engine = current_app.logger,
user_data_for_logging=None)
logger_obj.http_errors_met(error_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
return response
# NOT AN HTTP ERROR. HERE WE WILL CAUGHT 501 internal server errors
print(dir(error))
print(type(error))
print(error)
client_info = get_http_request_info(request)
current_app.logger.error(client_info)
error_dict = {"code": 500,
"name": "INTERNAL SERVER ERROR",
"description": str(error),
}
response_to_client_dict = {"code": 500,
"name": "INTERNAL SERVER ERROR",
"description": "Sorry, We can't continue. Try again later or contact System Admin.",
}
response = {'NETWORK_AUTOMATE_RESPONSE': response_to_client_dict}
#response_to_client = {"NETWORK_AUTOMATE_RESPONSE": error_dict}
# CREATE ERROR OBJECT for logging in the: >>> .json file and .log file
client_info = get_http_request_info(request)
start_time = end_time = datetime.now()
logger_obj = NetworkAutomateLogs(start_time=start_time, end_time=end_time, elapsed_time=0, client_info=client_info,
logger_engine=current_app.logger,
user_data_for_logging=None)
logger_obj.http_errors_met(error_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
return response_to_client_dict, 500
# DEACTIVATE THIS ROUTES ON PRODUCTION
@api.route('/')
def index():
"""
# just a testing VIEW
:return:
"""
data = {"app_name": "NETWORKAUTOMATE",
"status": "Development",
"author":'Nuno Moura',
"email": "nm.10000.testes@gmail.com",
"coordination": ["Alexandre Santos", "Pedro Vapi"],
"copyright": None
}
return dumps(data, indent=4)
@api.route("/add_command_raw", methods=["POST"])
def controller_add_raw_commands():
"""
This view allows a client to send a raw command to a cisco device in PRIVILEGED mode
:return: <dict> result of the operation. check documentation for details
"""
print("OUTPUT - Entering function: controller_add_raw_commands")
current_app.logger.info("OUTPUT - Entering function: controller_add_raw_commands")
# START COUNTING TIME FOR LOGGING PURPOSES
start_time = datetime.now()
# GETTING CLIENT INFO, FOR LOGGING
client_info = get_http_request_info(request)
# OUTPUT MESSAGES IN DEBUG MODE- ( WE CAN CREATE A DEBUG MODE FOR LOGGING )
message = "OUTPUT - WEBSERVICE URI: \t'{}'".format(client_info["REQUEST_URI"])
current_app.logger.debug(message)
message = ("OUTPUT - REQUEST_INFORMATION " + str(client_info))
current_app.logger.debug(message)
current_app.logger.debug("OUTPUT - Let´s request data from client - CHECK IF DATA IS VALID")
data = request_data(client_info)
# CHECK request_data output for detail--> we will try to find here: ERROR 1, 2, 3
current_app.logger.debug("OUTPUT - data: {} ".format(data))
if isinstance(data[0], dict):
if data[0]["STATUS"] == "Failure":
current_app.logger.debug("OUTPUT - WE HAVE FOUND AN ERROR......")
end_time = datetime.now()
total_time = end_time - start_time
if data[0]["ERROR"] == "1":
current_app.logger.debug("OUTPUT - ERROR 1. LETS RAISE INVALID_USAGE function amd inform client ")
current_app.logger.debug("OUTPUT - data: {}".format(data))
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging= None)
# CALL METHOD FOR ERROR 1 ( CHECK ERROR-CATALOG.txt for details )
logger_obj.error_1_json_data(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "2":
current_app.logger.debug("OUTPUT - ERROR 2. LETS RAISE INVALID_USAGE function amd inform client ")
current_app.logger.debug("OUTPUT - data: {}".format(data))
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 2 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_2_fundamental_data_required(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "3":
current_app.logger.debug("OUTPUT - ERROR 3. LETS RAISE INVALID_USAGE function amd inform client ")
current_app.logger.debug("OUTPUT - data: {}".format(data))
# CREATE ERROR OBJECT
#EXAMPLE HOW DATA SHOULD BE :OUTPUT - \
# data ({'STATUS': 'Failure', 'ERROR': '3', 'TYPE': 'WEBSERVICE DATA FAILURE', 'MESSAGE':
# 'Please, send an ip key in your dictionary'}, {'ips': '192.168.7.1'}) ------ ------- is a tuple
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 3 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_webservice_data_failure(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
# SINCE ERROR 1, 2 and 3 were not found it means data is OK!
line = "=" * 79
current_app.logger.debug(line)
current_app.logger.debug("OUTPUT - data is OK! ")
current_app.logger.debug("OUTPUT - data[0]: {}".format(data[0]))
current_app.logger.debug("OUTPUT - data[1]: {}".format(data[1]))
current_app.logger.debug(line)
# CHECK IF IS PORT
# MAKE A COPY OF CLIENT DATA for logging purposes
user_data_for_logging = dict((k, v) for k, v in data[2].items())
current_app.logger.debug("OUTPUT - user_data_for_logging: {}".format(user_data_for_logging))
# LETS REMOVE THE KEYS, VLAN_ID AND VLAN_NAME AND STORE THEIR VALUES ON NEW VARIABLES. Construct a dictionary with
# vlan_id an vlan_name send later. there are a case where client doesn 't send to US vlan_name and we
# have to process theses kind of behavior
command_to_send = data[1].pop("command_to_send")
current_app.logger.debug("OUTPUT - command_list_to_send: {}".format(command_to_send))
# CHECK IF CLIENT WANTS A SPECIFIC PORT FOR CONNECTION to device. SET TO NONE if not
if isinstance(data[1], dict):
if 'port' in data[1].keys():
port = data[1].pop("port")
else:
port = None
if data[0]["CONNECTIONS"] == "both":
current_app.logger.debug("OUTPUT - CLIENT WANT US TO PERFORM A TRY, ON BOTH CONNECTIONS: TELNET AND SSH")
# ------- first try a telnet connection ---------------
current_app.logger.debug("OUTPUT - first try a telnet connection")
connection = ConnectToDevice(data[1], connection_type="TELNET", port=port)
current_app.logger.debug("OUTPUT - LETS START CONFIGURING")
# LETS START CONFIGURING
result = connection.configure_add_raw_commands(command_to_send=command_to_send)
current_app.logger.debug("OUTPUT - result of telnet connection: {}".format(result))
current_app.logger.debug("OUTPUT - type(result): {}".format(type(result)))
current_app.logger.debug("OUTPUT - result is a list with one dictionary unstructured data")
result_telnet = result
end_time = datetime.now()
total_time = end_time - start_time
# - ------- At these point we should check if telnet was successful ---------------------
if isinstance(result_telnet, dict):
if result_telnet["STATUS"] == "Failure":
del connection
current_app.logger.debug("OUTPUT - Perform a ssh connection because telnet failed ")
# -- ------ Perform a ssh connection because telnet failed ----------
connection_new = ConnectToDevice(data[1], connection_type="SSH", port=port)
# LETS START CONFIGURING
result = connection_new .configure_add_raw_commands(command_to_send=command_to_send)
result_ssh = result
current_app.logger.debug("OUTPUT - result of ssh connection: {} ".format(result))
current_app.logger.debug("OUTPUT - type(result): ".format(type(result)))
current_app.logger.debug("OUTPUT - result is a list with one dictionary unstructured data")
if isinstance(result, dict):
# ---- Check if ssh connection was successful. if not, inform client of both fails and log
if result["STATUS"] == "Failure":
# Expecting here to appear error 4 -------- HANDLE ERROR
# first handle error 4
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info,
current_app.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR BOTH CONNECTION ERROR
logger_obj.error_both_connection_fails("Failed connection to device", result_ssh, result_telnet)
# CREATE A JSON LOG
logger_obj.create_json_log()
current_app.logger.debug("OUTPUT - result: {}".format(result))
raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# Error 8 FOR NOW THESE ERROR DOESN`T EXIST YET - LATER WE MAY NEED IT
# if result["ERROR"] == "8":
# CREATE ERROR OBJECT
# logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, logger_engine,
# user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
# logger_obj.error_operation_error(result)
# CREATE A JSON LOG
# logger_obj.create_json_log()
# raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# ----- ----- connection to device Successful. ------ Build log and return info to client ----
# Connection to device:Successful. OPERATION SUCCESSFUL ------ Build log and return interface config to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "Check results. Whenever possible, we will try to output Structured and Unstructured "
"data "
"captured from de Network Device CLI. We have to be careful on what commands we are "
"trying to send, because we are not in privileged mode, and sometimes we are not "
"authorized to run them on the device and the output will be something like: e.g.( "
" ^\n% Invalid input detected at '^' marker.\n )",
"STRUCTURED_RESULT": result[0],
"UNSTRUCTURED_RESULT": result[1]
}
current_app.logger.debug("OUTPUT - returning... RESPONSE TO CLIENT")
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE TO VIEW, for client
return final_dict
# What differ a ssh or telnet connection is only the device driver used by netmiko, so the first thing we should do,
# is to know which connection the client want us to perform.
# ------ we will pass these choice to the class "ConnectToDevice". it will handle the choice for us
current_app.logger.debug("OUTPUT - CLIENT WANT US TO PERFOR A SPECIFIC CONNECTION- it will be telnet or ssh")
if data[0]["CONNECTIONS"] == "telnet":
current_app.logger.debug("OUTPUT - force telnet")
connection = ConnectToDevice(data=data[1], connection_type="TELNET", port=port)
if data[0]["CONNECTIONS"] == "ssh":
current_app.logger.debug("OUTPUT - force ssh")
connection = ConnectToDevice(data=data[1], connection_type="SSH", port=port)
# LETS START CONFIGURING
current_app.logger.debug("OUTPUT - Starting to configure")
result = connection.configure_add_raw_commands(command_to_send=command_to_send)
# "OUTPUT - result[0] is a list with one dictionary with structured data and a dictionary with unstructured data")
current_app.logger.debug("OUTPUT - configure_add_raw_commands ended ....")
current_app.logger.debug(line)
current_app.logger.debug("OUTPUT - result: {}".format(result))
current_app.logger.debug("OUTPUT - type(result): {} ".format(type(result)))
# TIME FOR LOGGING PURPOSES
end_time = datetime.now()
total_time = end_time - start_time
# ---- At these point, if the connection object return an error ( like connection error or other ) we should
# report these and inform client
if isinstance(result, dict):
if result["STATUS"] == "Failure":
# if status is failure , we are EXPECTING HERE ERROR 4
# first Error 4
current_app.logger.debug("OUTPUT - FOUND A ERROR --> result: {}".format(result))
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
logger_obj. error_netmiko(result)
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=512, payload=logger_obj.error_dict)
# Connection to device:Successful. OPERATION SUCCESSFUL ------ Build log and return interface config to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "Check results. Whenever possible, we will try to output Structured and Unstructured data"
" captured from de Network Device CLI. We have to be careful on what commands we are "
"trying to send, because we are not in privileged mode, and sometimes we are not "
"authorized to run them on the device and the output will be something like: e.g.( "
" ^\n% Invalid input detected at '^' marker.\n )",
"STRUCTURED_RESULT": result[0],
"UNSTRUCTURED_RESULT": result[1]
}
current_app.logger.debug("OUTPUT - operation successful - returning data to client")
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE to client
return final_dict
@api.route("/add_list_of_commands", methods=["POST"])
def controller_add_list_off_commands_to_device():
"""
Allows a client to send list of commands to cisco network device.
:return: <dictionary> result of the operation . Check documentation for more details
"""
# TODO: convert print screens to app.logger.debug("message")
print("OUTPUT - Entering function: controller_add_list_off_commands_to_device")
# START COUNTING TIME FOR LOGGING PURPOSES
start_time = datetime.now()
# GETTING CLIENT INFO, FOR LOGGING
client_info = get_http_request_info(request)
# OUTPUT MESSAGES IN DEBUG MODE- ( WE CAN CREATE A DEBUG MODE FOR LOGGING )
message = "OUTPUT - WEBSERVICE URI: \t'{}'".format(client_info["REQUEST_URI"])
print(message)
message = ("OUTPUT - REQUEST_INFORMATION " + str(client_info))
# ----- --- Below line is just to remember us that we could create a debug mode log with messages like these one.
# logger_engine.debug(message)
print("OUTPUT - starting time: {}".format(start_time))
print(message)
print("OUTPUT - Let´s request data from client - CHECK IF DATA IS VALID")
data = request_data(client_info)
print("OUTPUT - data: ", data)
if isinstance(data[0], dict):
if data[0]["STATUS"] == "Failure":
print("OUTPUT - WE HAVE FOUND AN ERROR......")
end_time = datetime.now()
total_time = end_time - start_time
if data[0]["ERROR"] == "1":
print("OUTPUT - ERROR 1. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging= None)
# CALL METHOD FOR ERROR 1 ( CHECK ERROR-CATALOG.txt for details )
logger_obj.error_1_json_data(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "2":
print("OUTPUT - ERROR 2. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 2 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_2_fundamental_data_required(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "3":
print("OUTPUT - ERROR 3. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
#EXAMPLE HOW DATA SHOULD BE :OUTPUT - \
# data ({'STATUS': 'Failure', 'ERROR': '3', 'TYPE': 'WEBSERVICE DATA FAILURE', 'MESSAGE':
# 'Please, send an ip key in your dictionary'}, {'ips': '192.168.7.1'}) ------ ------- is a tuple
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 3 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_webservice_data_failure(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
print("=" * 79)
print("OUTPUT - data is OK! ")
print("OUTPUT - data[0]", data[0]) # OUTPUT - data[0]: {'STATUS': 'Success', 'CONNECTIONS': 'both'}
print("OUTPUT - data[1]", data[1]) # OUTPUT - data[1]: {'ip': '192.168.2.245'}
print("=" * 79)
# CHECK IF IS PORT
# MAKE A COPY OF CLIENT DATA for logging purposes
user_data_for_logging = dict((k, v) for k, v in data[2].items())
print("OUTPUT - user_data_for_logging:", user_data_for_logging)
# LETS REMOVE THE KEYS, VLAN_ID AND VLAN_NAME AND STORE THEIR VALUES ON NEW VARIABLES. Construct a dictionary with
# vlan_id an vlan_name send later. there are a case where client doesn 't send to US vlan_name and we
# have to process theses kind of behavior
command_list_to_send = data[1].pop("commands_list")
print("OUTPUT - command_list_to_send: {}".format(command_list_to_send))
# CHECK IF CLIENT WANTS A SPECIFIC PORT FOR CONNECTION to device. SET TO NONE if not
if isinstance(data[1], dict):
if 'port' in data[1].keys():
port = data[1].pop("port")
else:
port = None
if data[0]["CONNECTIONS"] == "both":
# ------- first try a telnet connection ---------------
connection = ConnectToDevice(data[1], connection_type="TELNET", port=port)
# LETS START CONFIGURING
result = connection.configure_add_commands_list(commands_list=command_list_to_send)
# result = connection.get_show_run()
print("OUTPUT - result of telnet connection: ", result)
print("OUTPUT - type(result): ", type(result))
print("OUTPUT - result is a list with one dictionary unstructured data")
result_telnet = result
end_time = datetime.now()
total_time = end_time - start_time
# - ------- At these point we should check if telnet was successful ---------------------
if isinstance(result_telnet, dict):
if result_telnet["STATUS"] == "Failure":
del connection
# -- ------ Perform a ssh connection because telnet failed ----------
connection = ConnectToDevice(data[1], connection_type="SSH", port=port)
# LETS START CONFIGURING
result = connection.configure_add_commands_list(commands_list=command_list_to_send)
print("OUTPUT - result of ssh connection: ", result)
print("OUTPUT - type(result): ", type(result))
print("OUTPUT - result is a list with one dictionary unstructured data")
result_ssh = result
if isinstance(result, dict):
# ---- Check if ssh connection was successful. if not, inform client of both fails and log
if result["STATUS"] == "Failure":
# Expecting here to appear error 4 -------- HANDLE ERROR
# first handle error 4
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info,
current_app.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR BOTH CONNECTION ERROR
logger_obj.error_both_connection_fails("Failed connection to device", result_ssh, result_telnet)
# CREATE A JSON LOG
logger_obj.create_json_log()
print("OUTPUT - result: {}".format(result))
raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# Error 8 FOR NOW THESE ERROR DOESN EXIST YET - LATER WE MAY NEED IT
# if result["ERROR"] == "8":
# CREATE ERROR OBJECT
# logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, logger_engine,
# user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
# logger_obj.error_operation_error(result)
# CREATE A JSON LOG
# logger_obj.create_json_log()
# raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# ----- ----- connection to device Successful. ------ Build log and return info to client ----
# Connection to device:Successful. OPERATION SUCCESSFUL ------ Build log and return interface config to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "We sent commands to device .Check network device cli to confirm. Since there "
"a multiple commands and multiple outputs its difficult to search for a pattern "
"error. Check network device cli to confirm that the commands did not result in "
"errors. ",
"RESULT_OUTPUT_CLI": result
}
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE TO VIEW, for client
return final_dict
# What differ a ssh or telnet connection is only the device driver used by netmiko, so the first thing we should do,
# is to know which connection the client want us to perform.
# ------ we will pass these choice to the class "ConnectToDevice". ---------------
if data[0]["CONNECTIONS"] == "telnet":
connection = ConnectToDevice(data=data[1], connection_type="TELNET", port=port)
if data[0]["CONNECTIONS"] == "ssh":
connection = ConnectToDevice(data=data[1], connection_type="SSH", port=port)
# LETS START CONFIGURING
result = connection.configure_add_commands_list(commands_list=command_list_to_send)
print("OUTPUT - configure_add_raw_commands ended ....")
print("="*79)
print("OUTPUT - result: ", result)
print("OUTPUT - type(result): ", type(result))
# "OUTPUT - result[0] is a list with one dictionary with structured data and a dictionary with unstructured data")
# TIME FOR LOGGING PURPOSES
end_time = datetime.now()
total_time = end_time - start_time
# ---- At these point, if the connection object return an error ( like connection error or other ) we should
# report these and inform client
if isinstance(result, dict):
if result["STATUS"] == "Failure":
# if status is failure , we are EXPECTING HERE ERROR 4, 3 or 6
# first Error 4
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
logger_obj. error_netmiko(result)
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=512, payload=logger_obj.error_dict)
# Error 8 FOR NOW THESE ERROR DOESN EXIST YET - LATER WE MAY NEED IT
#if result["ERROR"] == "8":
# CREATE ERROR OBJECT
# logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, logger_engine,
# user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
# logger_obj.error_operation_error(result)
# CREATE A JSON LOG
# logger_obj.create_json_log()
# raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# Connection to device:Successful. OPERATION SUCCESSFUL ------ Build log and return interface config to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "Check network device cli output to confirm.",
"RESULT_OUTPUT_CLI": result
}
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE TO VIEW, for client
return final_dict
@api.route('/save_running_configurations', methods=["POST"])
def save_run_conf():
"""
This view allows a client to save the running configurations to strartup configgurations on a cisco netwrkdevice
:return: <dictionary> result of the operation. Check documentation for more details.
"""
# TODO: convert print screens to app.logger.debug("message")
print("OUTPUT - Entering function: SaveRunning_config")
# START COUNTING TIME FOR LOGGING PURPOSES
start_time = datetime.now()
# GETTING CLIENT INFO, FOR LOGGING
client_info = get_http_request_info(request)
# OUTPUT MESSAGES IN DEBUG MODE- ( WE CAN CREATE A DEBUG MODE FOR LOGGING )
message = "OUTPUT - WEBSERVICE URI: \t'{}'".format(client_info["REQUEST_URI"])
print(message)
message = ("OUTPUT - REQUEST_INFORMATION " + str(client_info))
# ----- --- Below line is just to remember us that we could create a debug mode log with messages like these one.
# logger_engine.debug(message)
print("OUTPUT - starting time: {}".format(start_time))
print(message)
print("OUTPUT - Let´s request data from client - CHECK IF DATA IS VALID")
data = request_data(client_info)
print("OUTPUT - data: ", data)
if isinstance(data[0], dict):
if data[0]["STATUS"] == "Failure":
print("OUTPUT - WE HAVE FOUND AN ERROR......")
end_time = datetime.now()
total_time = end_time - start_time
if data[0]["ERROR"] == "1":
print("OUTPUT - ERROR 1. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=None)
# CALL METHOD FOR ERROR 1 ( CHECK ERROR-CATALOG.txt for details )
logger_obj.error_1_json_data(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "2":
print("OUTPUT - ERROR 2. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 2 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_2_fundamental_data_required(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "3":
print("OUTPUT - ERROR 3. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
# EXAMPLE HOW DATA SHOULD BE :OUTPUT - \
# data ({'STATUS': 'Failure', 'ERROR': '3', 'TYPE': 'WEBSERVICE DATA FAILURE', 'MESSAGE':
# 'Please, send an ip key in your dictionary'}, {'ips': '192.168.7.1'}) ------ ------- is a tuple
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 3 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_webservice_data_failure(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
print("=" * 79)
print("OUTPUT - data is OK! ")
print("OUTPUT - data[0]", data[0]) # OUTPUT - data[0]: {'STATUS': 'Success', 'CONNECTIONS': 'both'}
print("OUTPUT - data[1]", data[1]) # OUTPUT - data[1]: {'ip': '192.168.2.245'}
print("=" * 79)
# CHECK IF IS PORT
# MAKE A COPY OF CLIENT DATA for logging purposes
user_data_for_logging = dict((k, v) for k, v in data[2].items())
print("OUTPUT - user_data_for_logging:", user_data_for_logging)
# LETS REMOVE THE KEYS, VLAN_ID AND VLAN_NAME AND STORE THEIR VALUES ON NEW VARIABLES. Construct a dictionary with
# vlan_id an vlan_name send later. there are a case where client doesn 't send to US vlan_name and we
# have to process theses kind of behavior
#command_list_to_send = data[1].pop("commands_list")
#print("OUTPUT - command_list_to_send: {}".format(command_list_to_send))
# CHECK IF CLIENT WANTS A SPECIFIC PORT FOR CONNECTION to device. SET TO NONE if not
if isinstance(data[1], dict):
if 'port' in data[1].keys():
port = data[1].pop("port")
else:
port = None
if data[0]["CONNECTIONS"] == "both":
# ------- first try a telnet connection ---------------
connection = ConnectToDevice(data[1], connection_type="TELNET", port=port)
# LETS START CONFIGURING
result = connection.save_running_config()
# result = connection.get_show_run()
print("OUTPUT - result of telnet connection: ", result)
print("OUTPUT - type(result): ", type(result))
print("OUTPUT - result is a list with one dictionary unstructured data")
result_telnet = result
end_time = datetime.now()
total_time = end_time - start_time
# - ------- At these point we should check if telnet was successful ---------------------
if isinstance(result_telnet, dict):
if result_telnet["STATUS"] == "Failure":
del connection
# -- ------ Perform a ssh connection because telnet failed ----------
connection = ConnectToDevice(data[1], connection_type="SSH", port=port)
# LETS START CONFIGURING
result = connection.save_running_config()
print("OUTPUT - result of ssh connection: ", result)
print("OUTPUT - type(result): ", type(result))
print("OUTPUT - result is a list with one dictionary unstructured data")
result_ssh = result
if isinstance(result, dict):
# ---- Check if ssh connection was successful. if not, inform client of both fails and log
if result["STATUS"] == "Failure":
# Expecting here to appear error 4 -------- HANDLE ERROR
# first handle error 4
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info,
current_app.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR BOTH CONNECTION ERROR
logger_obj.error_both_connection_fails("Failed connection to device", result_ssh,
result_telnet)
# CREATE A JSON LOG
logger_obj.create_json_log()
print("OUTPUT - result: {}".format(result))
raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# Error 8 FOR NOW THESE ERROR DOESN EXIST YET - LATER WE MAY NEED IT
# if result["ERROR"] == "8":
# CREATE ERROR OBJECT
# logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, logger_engine,
# user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
# logger_obj.error_operation_error(result)
# CREATE A JSON LOG
# logger_obj.create_json_log()
# raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# ----- ----- connection to device Successful. ------ Build log and return info to client ----
# Connection to device:Successful. OPERATION SUCCESSFUL ------ Build log and return interface config to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "Check network device cli output to confirm.",
"RESULT_OUTPUT_CLI": result
}
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE TO VIEW, for client
return final_dict
# What differ a ssh or telnet connection is only the device driver used by netmiko, so the first thing we should do,
# is to know which connection the client want us to perform.
# ------ we will pass these choice to the class "ConnectToDevice". ---------------
if data[0]["CONNECTIONS"] == "telnet":
connection = ConnectToDevice(data=data[1], connection_type="TELNET", port=port)
if data[0]["CONNECTIONS"] == "ssh":
connection = ConnectToDevice(data=data[1], connection_type="SSH", port=port)
# LETS send order to save running config to device
result = connection.save_running_config()
print("OUTPUT - configure_add_raw_commands ended ....")
print("=" * 79)
print("OUTPUT - result: ", result)
print("OUTPUT - type(result): ", type(result))
# "OUTPUT - result[0] is a list with one dictionary with structured data and a dictionary with unstructured data")
# TIME FOR LOGGING PURPOSES
end_time = datetime.now()
total_time = end_time - start_time
# ---- At these point, if the connection object return an error ( like connection error or other ) we should
# report these and inform client
if isinstance(result, dict):
if result["STATUS"] == "Failure":
# if status is failure , we are EXPECTING HERE ERROR 4, 3 or 6
# first Error 4
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
logger_obj.error_netmiko(result)
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=512, payload=logger_obj.error_dict)
# Error 8 FOR NOW THESE ERROR DOESN EXIST YET - LATER WE MAY NEED IT
# if result["ERROR"] == "8":
# CREATE ERROR OBJECT
# logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, logger_engine,
# user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
# logger_obj.error_operation_error(result)
# CREATE A JSON LOG
# logger_obj.create_json_log()
# raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# Connection to device:Successful. OPERATION SUCCESSFUL ------ Build log and return interface config to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "Check network device cli output to confirm.",
"RESULT_OUTPUT_CLI": result
}
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE TO VIEW, for client
return final_dict
#return dumps({"message": "hello"})
@api.route("/add_command_raw_not_privileged", methods=["POST"])
def controller_add_raw_commands_not_privileged():
"""
This view allows a client to send a raw command to a CISCO device in not privileged EXEC mode
:return: <dict> result of the operation. check documentation for details
"""
# TODO: convert print screens to app.logger.debug("message")
print("OUTPUT - Entering function: controller_add_raw_commands_not_privileged")
# START COUNTING TIME FOR LOGGING PURPOSES
start_time = datetime.now()
# GETTING CLIENT INFO, FOR LOGGING
client_info = get_http_request_info(request)
# OUTPUT MESSAGES IN DEBUG MODE- ( WE CAN CREATE A DEBUG MODE FOR LOGGING )
message = "OUTPUT - WEBSERVICE URI: \t'{}'".format(client_info["REQUEST_URI"])
print(message)
message = ("OUTPUT - REQUEST_INFORMATION " + str(client_info))
# ----- --- Below line is just to remember us that we could create a debug mode log with messages like these one.
# logger_engine.debug(message)
print("OUTPUT - starting time: {}".format(start_time))
print(message)
print("OUTPUT - Let´s request data from client - CHECK IF DATA IS VALID")
data = request_data(client_info)
print("OUTPUT - data: ", data)
if isinstance(data[0], dict):
if data[0]["STATUS"] == "Failure":
print("OUTPUT - WE HAVE FOUND AN ERROR......")
end_time = datetime.now()
total_time = end_time - start_time
if data[0]["ERROR"] == "1":
print("OUTPUT - ERROR 1. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging= None)
# CALL METHOD FOR ERROR 1 ( CHECK ERROR-CATALOG.txt for details )
logger_obj.error_1_json_data(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "2":
print("OUTPUT - ERROR 2. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 2 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_2_fundamental_data_required(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
if data[0]["ERROR"] == "3":
print("OUTPUT - ERROR 3. LETS RAISE INVALID_USAGE function amd inform client ")
print("OUTPUT - data", data)
# CREATE ERROR OBJECT
#EXAMPLE HOW DATA SHOULD BE :OUTPUT - \
# data ({'STATUS': 'Failure', 'ERROR': '3', 'TYPE': 'WEBSERVICE DATA FAILURE', 'MESSAGE':
# 'Please, send an ip key in your dictionary'}, {'ips': '192.168.7.1'}) ------ ------- is a tuple
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=data[1])
# CALL METHOD FOR ERROR 3 ( CHECK ERROR-CATALOG.txt for details
logger_obj.error_webservice_data_failure(data[0])
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=400, payload=logger_obj.error_dict)
print("=" * 79)
print("OUTPUT - data is OK! ")
print("OUTPUT - data[0]", data[0])
print("OUTPUT - data[1]", data[1])
print("=" * 79)
# CHECK IF IS PORT
# MAKE A COPY OF CLIENT DATA for logging purposes
user_data_for_logging = dict((k, v) for k, v in data[2].items())
print("OUTPUT - user_data_for_logging:", user_data_for_logging)
# LETS REMOVE THE KEYS, VLAN_ID AND VLAN_NAME AND STORE THEIR VALUES ON NEW VARIABLES. Construct a dictionary with
# vlan_id an vlan_name send later. there are a case where client doesn 't send to US vlan_name and we
# have to process theses kind of behavior
command_to_send = data[1].pop("command_to_send")
print("OUTPUT - command_list_to_send: {}".format(command_to_send))
# CHECK IF CLIENT WANTS A SPECIFIC PORT FOR CONNECTION to device. SET TO NONE if not
if isinstance(data[1], dict):
if 'port' in data[1].keys():
port = data[1].pop("port")
else:
port = None
if data[0]["CONNECTIONS"] == "both":
# ------- first try a telnet connection ---------------
connection = ConnectToDevice(data[1], connection_type="TELNET", port=port)
# LETS START CONFIGURING
result = connection.configure_add_raw_commands_not_privileged(command_to_send=command_to_send)
# result = connection.get_show_run()
print("OUTPUT - result of telnet connection: ", result)
print("OUTPUT - type(result): ", type(result))
print("OUTPUT - result is a list with one dictionary unstructured data")
result_telnet = result
end_time = datetime.now()
total_time = end_time - start_time
# - ------- At these point we should check if telnet was successful ---------------------
if isinstance(result_telnet, dict):
if result_telnet["STATUS"] == "Failure":
del connection
print("OUTPUT - Perform a ssh connection because telnet failed ")
# -- ------ Perform a ssh connection because telnet failed ----------
connection_new = ConnectToDevice(data[1], connection_type="SSH", port=port)
# LETS START CONFIGURING
result = connection_new .configure_add_raw_commands_not_privileged(command_to_send=command_to_send)
print("OUTPUT - result of ssh connection: ", result)
print("OUTPUT - type(result): ", type(result))
print("OUTPUT - result is a list with one dictionary unstructured data")
result_ssh = result
if isinstance(result, dict):
# ---- Check if ssh connection was successful. if not, inform client of both fails and log
if result["STATUS"] == "Failure":
# Expecting here to appear error 4 -------- HANDLE ERROR
# first handle error 4
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info,
current_app.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR BOTH CONNECTION ERROR
logger_obj.error_both_connection_fails("Failed connection to device", result_ssh, result_telnet)
# CREATE A JSON LOG
logger_obj.create_json_log()
print("OUTPUT - result: {}".format(result))
raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# Error 8 FOR NOW THESE ERROR DOESN EXIST YET - LATER WE MAY NEED IT
# if result["ERROR"] == "8":
# CREATE ERROR OBJECT
# logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, logger_engine,
# user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
# logger_obj.error_operation_error(result)
# CREATE A JSON LOG
# logger_obj.create_json_log()
# raise InvalidUsage("Bad request!", status_code=513, payload=logger_obj.error_dict)
# ----- ----- connection to device Successful. ------ Build log and return info to client ----
# Connection to device:Successful. OPERATION SUCCESSFUL ------ Build log and return interface config to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "Check results. Whenever possible, we will try to output Structured and Unstructured "
"data "
"captured from de Network Device CLI. We have to be careful on what commands we are "
"trying to send, because we are not in privileged mode, and sometimes we are not "
"authorized to run them on the device and the output will be something like: e.g.( "
" ^\n% Invalid input detected at '^' marker.\n )",
"STRUCTURED_RESULT": result[0],
"UNSTRUCTURED_RESULT": result[1]
}
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE TO VIEW, for client
return final_dict
# What differ a ssh or telnet connection is only the device driver used by netmiko, so the first thing we should do,
# is to know which connection the client want us to perform.
# ------ we will pass these choice to the class "ConnectToDevice". ---------------
if data[0]["CONNECTIONS"] == "telnet":
connection = ConnectToDevice(data=data[1], connection_type="TELNET", port=port)
if data[0]["CONNECTIONS"] == "ssh":
connection = ConnectToDevice(data=data[1], connection_type="SSH", port=port)
# LETS START CONFIGURING
result = connection.configure_add_raw_commands_not_privileged(command_to_send=command_to_send)
print("OUTPUT - configure_add_raw_commands ended ....")
print("="*79)
print("OUTPUT - result: ", result)
print("OUTPUT - type(result): ", type(result))
# "OUTPUT - result[0] is a list with one dictionary with structured data and a dictionary with unstructured data")
# TIME FOR LOGGING PURPOSES
end_time = datetime.now()
total_time = end_time - start_time
# ---- At these point, if the connection object return an error ( like connection error or other ) we should
# report these and inform client
if isinstance(result, dict):
if result["STATUS"] == "Failure":
# if status is failure , we are EXPECTING HERE ERROR 4, 3 or 6
# first Error 4
if result["ERROR"] == "4":
# CREATE ERROR OBJECT
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
# CALL METHOD FOR ERROR
logger_obj. error_netmiko(result)
# CREATE A JSON LOG
logger_obj.create_json_log()
raise InvalidUsage("Bad request!", status_code=512, payload=logger_obj.error_dict)
# Connection to device: Successful. OPERATION SUCCESSFUL ------ Build log and return info to client ----
# --------- CREATE success LOG -------
logger_obj = NetworkAutomateLogs(start_time, end_time, total_time, client_info, current_app.logger,
user_data_for_logging=user_data_for_logging)
success_dict = {"STATUS": "Success",
"MESSAGE": "Check results. Whenever possible, we will try to output Structured and Unstructured data"
" captured from de Network Device CLI. We have to be careful on what commands we are "
"trying to send, because we are not in privileged mode, and sometimes we are not "
"authorized to run them on the device and the output will be something like: e.g.( "
" ^\n% Invalid input detected at '^' marker.\n )",
"STRUCTURED_RESULT": result[0],
"UNSTRUCTURED_RESULT": result[1]
}
final_dict = {"NETWORK AUTOMATE RESPONSE": success_dict}
# CALL METHOD FOR success messages
logger_obj.sucess_add_raw_commands(success_dict)
# CREATE A JSON LOG
logger_obj.create_json_log()
# GIVE RESPONSE TO Client
return final_dict
# THIS ROUTE SHOULD BE DEACTIVATED ON PRODUCTION. It exists just to force an Internal Server Error.
# Evaluate on how server response to errors, send email functionality and log behaviour
@api.route('/configure_multiple_devices', methods=["POST"])
def controller_multiple_devices():
"""
# We can put the logic of configure multiple devices at the same time using threading in the other tool.
:return:
"""
# devices_list_to_configure = ["192.168.2.100","192.168.2.254"]
# for device in devices_list_to_configure:
print("OUTPUT - Entering function: controller_multiple_devices")
print(this_var_doesnt_exist_and_force_server_error) # FORCE INTERNAL SERVER ERROR. ABOVE CODE SHOULD NOT RUN
# START COUNTING TIME FOR LOGGING PURPOSES
start_time = datetime.now()
# GETTING CLIENT INFO, FOR LOGGING
client_info = get_http_request_info(request)
# OUTPUT MESSAGES IN DEBUG MODE- ( WE CAN CREATE A DEBUG MODE FOR LOGGING )
message = "OUTPUT - WEBSERVICE URI: \t'{}'".format(client_info["REQUEST_URI"])
print(message)
message = ("OUTPUT - REQUEST_INFORMATION " + str(client_info))
# ----- --- Below line is just to remember us that we could create a debug mode log with messages like these one.
# logger_engine.debug(message)
print("OUTPUT - starting time: {}".format(start_time))
print(message)
# THIS WILL TRIGGER an Internal Server Error
print("OUTPUT - Let´s request data from client - CHECK IF DATA IS VALID")
data = request_data(client_info)
print("OUTPUT - data: ", data)
# this message will never be returned
return dumps({"message": "hello"})
| 54.571918
| 125
| 0.590006
| 7,451
| 63,740
| 4.866461
| 0.058918
| 0.034004
| 0.028958
| 0.035245
| 0.89738
| 0.882129
| 0.867402
| 0.859983
| 0.851048
| 0.843878
| 0
| 0.009507
| 0.316803
| 63,740
| 1,167
| 126
| 54.61868
| 0.823042
| 0.305397
| 0
| 0.827804
| 0
| 0
| 0.208024
| 0.013609
| 0
| 0
| 0
| 0.003428
| 0
| 1
| 0.014218
| false
| 0
| 0.012638
| 0
| 0.048973
| 0.167457
| 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
|
6b25e748d56954166a834432f67da3e53eb73a13
| 1,017,567
|
py
|
Python
|
raspberryjammod/mcpipy/fonts.py
|
roadt/raspberryjammod-minetest
|
86314d6d4b910ec1aa06c268e3f74427151ac6bb
|
[
"MIT"
] | 39
|
2015-10-13T19:48:59.000Z
|
2021-12-01T11:19:00.000Z
|
raspberryjammod/mcpipy/fonts.py
|
roadt/raspberryjammod-minetest
|
86314d6d4b910ec1aa06c268e3f74427151ac6bb
|
[
"MIT"
] | 10
|
2016-06-12T11:31:52.000Z
|
2021-05-07T22:50:18.000Z
|
raspberryjammod/mcpipy/fonts.py
|
roadt/raspberryjammod-minetest
|
86314d6d4b910ec1aa06c268e3f74427151ac6bb
|
[
"MIT"
] | 20
|
2017-01-12T21:05:36.000Z
|
2022-03-09T03:40:46.000Z
|
#Except for the public domain 8x8 font, these fonts are by Ron Buelow.
#The permission I requested was for use in Sharp Wizard software,
#but the permission given was blanket.
#
#Message-ID: <3CE41085.63359A28@ealoha.com>
#Date: Thu, 16 May 2002 10:03:17 -1000
#From: Ron Buelow <ron@ealoha.com>
#X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
#X-Accept-Language: en
#MIME-Version: 1.0
#To: "Alexander R. Pruss" <ap85@georgetown.edu>
#Subject: Re: coolfonts
#References: <000b01c1fc1b$38845e00$6f3ea18d@georgetown.edu>
#Content-Type: text/plain; charset=us-ascii
#Content-Transfer-Encoding: 7bit
#
#Hi Alex,
#
#Thanks for the note, use the fonts any way you wish,
#as always credit the source as applicable.
#
#Thanks, -Ron Buelow.
#
#"Alexander R. Pruss" wrote:
#
#> Dear Mr. Buelow,
#>
#> I downloaded your great CoolFonts package. I wanted to ask your
#> permission to make these fonts (or at least some of them) available, in a
#> different format, as fonts for the Sharp Wizard 7xx organizer on my software
#> website home.att.net/~apruss, as well as on www.ozdev.com and mywizard.com,
#> and also available for free redistribution.
#>
#> I maintain the C-based SDK for the Sharp 7xx units, and have just
#> extended the C library to allow one to use custom fonts. I have converted
#> some of your fonts to Sharp 7xx format by loading them into a Palm emulator,
#> entering a memo containing all the standard ASCII characters, taking a .bmp
#> screen image, and having written a program that converts appropriate .bmp
#> files into font files for the Wizard (doing also some cleanup with Windows
#> Paint, and some format conversion with ImageMagick).
#>
#> Ideally, I would want to have the fonts available for inclusion
#> within commercial/shareware programs, because I'd like them to be included
#> in the SDK, and as a matter of policy I try not to include things in the SDK
#> that have use restrictions. The SDK itself is freely available, of course.
#>
#> You can find more information on the Sharp 7xx unit at
#> www.ozdev.com. The development community for the 7xx is very small, and the
#> amount of shareware/commercial software for the unit is very small, too. In
#> fact, there is only one commercial program, namely my SecureEdit program
#> which netted, I think, total sales of about $100 (though there are also some
#> people who develop proprietary in-house applications for specific purposes).
#> There are a few shareware programs, and some of my programs ask for a
#> charitable donation (not to me), but it's nothing like the Palm scene.
#> Nonetheless, it would be really nice to have the permission for
#> shareware/commercial use. (Technically, for use within the U.S. permission
#> is not needed, because the copyright office has held that representations of
#> bitmapped fonts--as opposed to the programs that generate them--are not
#> copyrightable. But it's still nice to ask, and copyright law in other
#> countries may well be different, whereas the SDK has users in other
#> countries, as well.)
#>
#> I throw in two screenshots of my font browser displaying two of your (I
#> think) fonts.
#>
#> Thank you for all your hard work!
#>
#> Sincerely yours,
#> Alex Pruss
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 1
#nDescent 0
#fRectWidth 10
#fRectHeight 10
#ascent 8
#descent 2
#leading 0
#averageWidth 5.08
# format: width, offset, delta, (bitmap)
# To draw a glyph, first move by offset (typically 0 or negative), then draw a glyph of specified width,
# then update drawing position by delta.
FONTS = {}
FONTS['8x8'] = {
32 :(8,0,8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000
)),
33 :(8,0,8, (
0b00011000,
0b00111100,
0b00111100,
0b00011000,
0b00011000,
0b00000000,
0b00011000,
0b00000000
)),
34 :(8,0,8, (
0b01101100,
0b01101100,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
35 :(8,0,8, (
0b01101100,
0b01101100,
0b11111110,
0b01101100,
0b11111110,
0b01101100,
0b01101100,
0b00000000,
)),
36 :(8,0,8, (
0b00110000,
0b01111100,
0b11000000,
0b01111000,
0b00001100,
0b11111000,
0b00110000,
0b00000000,
)),
37 :(8,0,8, (
0b00000000,
0b11000110,
0b11001100,
0b00011000,
0b00110000,
0b01100110,
0b11000110,
0b00000000,
)),
38 :(8,0,8, (
0b00111000,
0b01101100,
0b00111000,
0b01110110,
0b11011100,
0b11001100,
0b01110110,
0b00000000,
)),
39 :(8,0,8, (
0b01100000,
0b01100000,
0b11000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
40 :(8,0,8, (
0b00011000,
0b00110000,
0b01100000,
0b01100000,
0b01100000,
0b00110000,
0b00011000,
0b00000000,
)),
41 :(8,0,8, (
0b01100000,
0b00110000,
0b00011000,
0b00011000,
0b00011000,
0b00110000,
0b01100000,
0b00000000,
)),
42 :(8,0,8, (
0b00000000,
0b01100110,
0b00111100,
0b11111111,
0b00111100,
0b01100110,
0b00000000,
0b00000000,
)),
43 :(8,0,8, (
0b00000000,
0b00110000,
0b00110000,
0b11111100,
0b00110000,
0b00110000,
0b00000000,
0b00000000,
)),
44 :(8,0,8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b01100000,
)),
45 :(8,0,8, (
0b00000000,
0b00000000,
0b00000000,
0b11111100,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
46 :(8,0,8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b00000000,
)),
47 :(8,0,8, (
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b01100000,
0b11000000,
0b10000000,
0b00000000,
)),
48 :(8,0,8, (
0b01111100,
0b11000110,
0b11001110,
0b11011110,
0b11110110,
0b11100110,
0b01111100,
0b00000000,
)),
49 :(8,0,8, (
0b00110000,
0b01110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b11111100,
0b00000000,
)),
50 :(8,0,8, (
0b01111000,
0b11001100,
0b00001100,
0b00111000,
0b01100000,
0b11001100,
0b11111100,
0b00000000,
)),
51 :(8,0,8, (
0b01111000,
0b11001100,
0b00001100,
0b00111000,
0b00001100,
0b11001100,
0b01111000,
0b00000000,
)),
52 :(8,0,8, (
0b00011100,
0b00111100,
0b01101100,
0b11001100,
0b11111110,
0b00001100,
0b00011110,
0b00000000,
)),
53 :(8,0,8, (
0b11111100,
0b11000000,
0b11111000,
0b00001100,
0b00001100,
0b11001100,
0b01111000,
0b00000000,
)),
54 :(8,0,8, (
0b00111000,
0b01100000,
0b11000000,
0b11111000,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
55 :(8,0,8, (
0b11111100,
0b11001100,
0b00001100,
0b00011000,
0b00110000,
0b00110000,
0b00110000,
0b00000000,
)),
56 :(8,0,8, (
0b01111000,
0b11001100,
0b11001100,
0b01111000,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
57 :(8,0,8, (
0b01111000,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b00011000,
0b01110000,
0b00000000,
)),
58 :(8,0,8, (
0b00000000,
0b00110000,
0b00110000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b00000000,
)),
59 :(8,0,8, (
0b00000000,
0b00110000,
0b00110000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b01100000,
)),
60 :(8,0,8, (
0b00011000,
0b00110000,
0b01100000,
0b11000000,
0b01100000,
0b00110000,
0b00011000,
0b00000000,
)),
61 :(8,0,8, (
0b00000000,
0b00000000,
0b11111100,
0b00000000,
0b00000000,
0b11111100,
0b00000000,
0b00000000,
)),
62 :(8,0,8, (
0b01100000,
0b00110000,
0b00011000,
0b00001100,
0b00011000,
0b00110000,
0b01100000,
0b00000000,
)),
63 :(8,0,8, (
0b01111000,
0b11001100,
0b00001100,
0b00011000,
0b00110000,
0b00000000,
0b00110000,
0b00000000,
)),
64 :(8,0,8, (
0b01111100,
0b11000110,
0b11011110,
0b11011110,
0b11011110,
0b11000000,
0b01111000,
0b00000000,
)),
65 :(8,0,8, (
0b00110000,
0b01111000,
0b11001100,
0b11001100,
0b11111100,
0b11001100,
0b11001100,
0b00000000,
)),
66 :(8,0,8, (
0b11111100,
0b01100110,
0b01100110,
0b01111100,
0b01100110,
0b01100110,
0b11111100,
0b00000000,
)),
67 :(8,0,8, (
0b00111100,
0b01100110,
0b11000000,
0b11000000,
0b11000000,
0b01100110,
0b00111100,
0b00000000,
)),
68 :(8,0,8, (
0b11111000,
0b01101100,
0b01100110,
0b01100110,
0b01100110,
0b01101100,
0b11111000,
0b00000000,
)),
69 :(8,0,8, (
0b11111110,
0b01100010,
0b01101000,
0b01111000,
0b01101000,
0b01100010,
0b11111110,
0b00000000,
)),
70 :(8,0,8, (
0b11111110,
0b01100010,
0b01101000,
0b01111000,
0b01101000,
0b01100000,
0b11110000,
0b00000000,
)),
71 :(8,0,8, (
0b00111100,
0b01100110,
0b11000000,
0b11000000,
0b11001110,
0b01100110,
0b00111110,
0b00000000,
)),
72 :(8,0,8, (
0b11001100,
0b11001100,
0b11001100,
0b11111100,
0b11001100,
0b11001100,
0b11001100,
0b00000000,
)),
73 :(8,0,8, (
0b01111000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
74 :(8,0,8, (
0b00011110,
0b00001100,
0b00001100,
0b00001100,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
75 :(8,0,8, (
0b11100110,
0b01100110,
0b01101100,
0b01111000,
0b01101100,
0b01100110,
0b11100110,
0b00000000,
)),
76 :(8,0,8, (
0b11110000,
0b01100000,
0b01100000,
0b01100000,
0b01100010,
0b01100110,
0b11111110,
0b00000000,
)),
77 :(8,0,8, (
0b11000110,
0b11101110,
0b11111110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
)),
78 :(8,0,8, (
0b11000110,
0b11100110,
0b11110110,
0b11011110,
0b11001110,
0b11000110,
0b11000110,
0b00000000,
)),
79 :(8,0,8, (
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
)),
80 :(8,0,8, (
0b11111100,
0b01100110,
0b01100110,
0b01111100,
0b01100000,
0b01100000,
0b11110000,
0b00000000,
)),
81 :(8,0,8, (
0b01111000,
0b11001100,
0b11001100,
0b11001100,
0b11011100,
0b01111000,
0b00011100,
0b00000000,
)),
82 :(8,0,8, (
0b11111100,
0b01100110,
0b01100110,
0b01111100,
0b01101100,
0b01100110,
0b11100110,
0b00000000,
)),
83 :(8,0,8, (
0b01111000,
0b11001100,
0b11100000,
0b01110000,
0b00011100,
0b11001100,
0b01111000,
0b00000000,
)),
84 :(8,0,8, (
0b11111100,
0b10110100,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
85 :(8,0,8, (
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11111100,
0b00000000,
)),
86 :(8,0,8, (
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00110000,
0b00000000,
)),
87 :(8,0,8, (
0b11000110,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
)),
88 :(8,0,8, (
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00111000,
0b01101100,
0b11000110,
0b00000000,
)),
89 :(8,0,8, (
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
90 :(8,0,8, (
0b11111110,
0b11000110,
0b10001100,
0b00011000,
0b00110010,
0b01100110,
0b11111110,
0b00000000,
)),
91 :(8,0,8, (
0b01111000,
0b01100000,
0b01100000,
0b01100000,
0b01100000,
0b01100000,
0b01111000,
0b00000000,
)),
92 :(8,0,8, (
0b11000000,
0b01100000,
0b00110000,
0b00011000,
0b00001100,
0b00000110,
0b00000010,
0b00000000,
)),
93 :(8,0,8, (
0b01111000,
0b00011000,
0b00011000,
0b00011000,
0b00011000,
0b00011000,
0b01111000,
0b00000000,
)),
94 :(8,0,8, (
0b00010000,
0b00111000,
0b01101100,
0b11000110,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
95 :(8,0,8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11111111,
)),
96 :(8,0,8, (
0b00110000,
0b00110000,
0b00011000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
97 :(8,0,8, (
0b00000000,
0b00000000,
0b01111000,
0b00001100,
0b01111100,
0b11001100,
0b01110110,
0b00000000,
)),
98 :(8,0,8, (
0b11100000,
0b01100000,
0b01100000,
0b01111100,
0b01100110,
0b01100110,
0b11011100,
0b00000000,
)),
99 :(8,0,8, (
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11000000,
0b11001100,
0b01111000,
0b00000000,
)),
100 :(8,0,8, (
0b00011100,
0b00001100,
0b00001100,
0b01111100,
0b11001100,
0b11001100,
0b01110110,
0b00000000,
)),
101 :(8,0,8, (
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11111100,
0b11000000,
0b01111000,
0b00000000,
)),
102 :(8,0,8, (
0b00111000,
0b01101100,
0b01100000,
0b11110000,
0b01100000,
0b01100000,
0b11110000,
0b00000000,
)),
103 :(8,0,8, (
0b00000000,
0b00000000,
0b01110110,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b11111000,
)),
104 :(8,0,8, (
0b11100000,
0b01100000,
0b01101100,
0b01110110,
0b01100110,
0b01100110,
0b11100110,
0b00000000,
)),
105 :(8,0,8, (
0b00110000,
0b00000000,
0b01110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
106 :(8,0,8, (
0b00001100,
0b00000000,
0b00001100,
0b00001100,
0b00001100,
0b11001100,
0b11001100,
0b01111000,
)),
107 :(8,0,8, (
0b11100000,
0b01100000,
0b01100110,
0b01101100,
0b01111000,
0b01101100,
0b11100110,
0b00000000,
)),
108 :(8,0,8, (
0b01110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
109 :(8,0,8, (
0b00000000,
0b00000000,
0b11001100,
0b11111110,
0b11111110,
0b11010110,
0b11000110,
0b00000000,
)),
110 :(8,0,8, (
0b00000000,
0b00000000,
0b11111000,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b00000000,
)),
111 :(8,0,8, (
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
112 :(8,0,8, (
0b00000000,
0b00000000,
0b11011100,
0b01100110,
0b01100110,
0b01111100,
0b01100000,
0b11110000,
)),
113 :(8,0,8, (
0b00000000,
0b00000000,
0b01110110,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b00011110,
)),
114 :(8,0,8, (
0b00000000,
0b00000000,
0b11011100,
0b01110110,
0b01100110,
0b01100000,
0b11110000,
0b00000000,
)),
115 :(8,0,8, (
0b00000000,
0b00000000,
0b01111100,
0b11000000,
0b01111000,
0b00001100,
0b11111000,
0b00000000,
)),
116 :(8,0,8, (
0b00010000,
0b00110000,
0b01111100,
0b00110000,
0b00110000,
0b00110100,
0b00011000,
0b00000000,
)),
117 :(8,0,8, (
0b00000000,
0b00000000,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b01110110,
0b00000000,
)),
118 :(8,0,8, (
0b00000000,
0b00000000,
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00110000,
0b00000000,
)),
119 :(8,0,8, (
0b00000000,
0b00000000,
0b11000110,
0b11010110,
0b11111110,
0b11111110,
0b01101100,
0b00000000,
)),
120 :(8,0,8, (
0b00000000,
0b00000000,
0b11000110,
0b01101100,
0b00111000,
0b01101100,
0b11000110,
0b00000000,
)),
121 :(8,0,8, (
0b00000000,
0b00000000,
0b11001100,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b11111000,
)),
122 :(8,0,8, (
0b00000000,
0b00000000,
0b11111100,
0b10011000,
0b00110000,
0b01100100,
0b11111100,
0b00000000,
)),
123 :(8,0,8, (
0b00011100,
0b00110000,
0b00110000,
0b11100000,
0b00110000,
0b00110000,
0b00011100,
0b00000000,
)),
124 :(8,0,8, (
0b00011000,
0b00011000,
0b00011000,
0b00000000,
0b00011000,
0b00011000,
0b00011000,
0b00000000,
)),
125 :(8,0,8, (
0b11100000,
0b00110000,
0b00110000,
0b00011100,
0b00110000,
0b00110000,
0b11100000,
0b00000000,
)),
126 :(8,0,8, (
0b01110110,
0b11011100,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 1
#nDescent 0
#fRectWidth 10
#fRectHeight 10
#ascent 8
#descent 2
#leading 0
#averageWidth 5.08
FONTS['10pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 8, 0, 8, (
0b01110000,
0b11111000,
0b10001000,
0b11111010,
0b01110100,
0b00110110,
0b00110100,
0b01110010,
0b01110000,
0b00000000
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100,
0b00000,
0b00000
)), 22:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 23:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 8, 0, 8, (
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)), 41:( 3, 0, 3, (
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)), 42:( 6, 0, 6, (
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 47:( 4, 0, 4, (
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000,
0b0000
)), 48:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100,
0b000
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 61:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 62:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)), 63:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10101010,
0b10010100,
0b01000000,
0b00111100,
0b00000000
)), 65:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 66:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 68:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 69:( 5, 0, 5, (
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 71:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b10000,
0b10110,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 72:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 73:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 5, 0, 5, (
0b00000,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)), 75:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 76:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 77:( 6, 0, 6, (
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 78:( 5, 0, 5, (
0b00000,
0b10010,
0b11010,
0b11010,
0b10110,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)), 79:( 5, 0, 5, (
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 80:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 81:( 5, 0, 5, (
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10110,
0b11100,
0b00010,
0b00000
)), 82:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 86:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 87:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b110110,
0b000000,
0b000000
)), 88:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 5, 0, 5, (
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 91:( 3, 0, 3, (
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 4, 0, 4, (
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000,
0b0000
)), 93:( 3, 0, 3, (
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 100:( 5, 0, 5, (
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b11100
)), 104:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 4, 0, 4, (
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100
)), 107:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b000000,
0b000000
)), 120:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b01100,
0b10000,
0b11110,
0b00000,
0b00000
)), 123:( 4, 0, 4, (
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 5, 0, 5, (
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)), 135:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)), 136:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0111111000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b0101110100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0110001100,
0b1001010010,
0b1000100010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000,
0b000000
)), 158:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 159:( 6, 0, 6, (
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 5, 0, 5, (
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)), 163:( 6, 0, 6, (
0b000000,
0b001100,
0b010010,
0b010000,
0b111100,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)), 167:( 5, 0, 5, (
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000,
0b00000
)), 182:( 6, 0, 6, (
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)), 191:( 5, 0, 5, (
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)), 192:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 193:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 194:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 195:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 196:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 197:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b01000,
0b00110,
0b01100,
0b00000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)), 209:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)), 210:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 211:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 212:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 213:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 214:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 218:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 219:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 220:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000
)), 223:( 6, 0, 6, (
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 225:( 5, 0, 5, (
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 226:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 227:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 229:( 5, 0, 5, (
0b00100,
0b01010,
0b00100,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b1100,
0b0000
)), 232:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 233:( 5, 0, 5, (
0b00010,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 234:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 236:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 237:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 243:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 244:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 245:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 253:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000
)), 255:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 10
#ascent 8
#descent 2
#leading 0
#averageWidth 5.94
FONTS['10ptbold'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000,
0b000000000
)), 21:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)), 34:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000,
0b000000
)), 37:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000,
0b000000000
)), 38:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000,
0b00000000
)), 39:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)), 40:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110,
0b00000
)), 41:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000,
0b00000
)), 42:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)), 64:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1101111100,
0b0110000000,
0b0011111000,
0b0000000000
)), 65:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 66:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)), 67:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1100000,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 68:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)), 69:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 71:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1101110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 72:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)), 75:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 80:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 81:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1101110,
0b0111100,
0b0000110,
0b0000000
)), 82:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b00000,
0b00000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b0111000,
0b0011100,
0b1100100,
0b0111000
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b111111110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000,
0b00000
)), 116:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b011111100,
0b001001000,
0b000000000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b11000,
0b11110,
0b00000,
0b00000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)), 128:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b1110000,
0b0000000,
0b0000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100,
0b00000
)), 136:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0100010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100010100,
0b0000000000,
0b0000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100,
0b000000,
0b000000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)), 140:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111110,
0b011011000,
0b110011110,
0b110011000,
0b011011000,
0b001111110,
0b000000000,
0b000000000
)), 141:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0001110000,
0b0110101100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)), 152:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)), 156:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)), 162:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b011000,
0b111110,
0b011000,
0b111110,
0b000000,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b0111100,
0b0011000,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b000
)), 167:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000,
0b000000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)), 188:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)), 189:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)), 190:( 9, 0, 9, (
0b111000000,
0b011001100,
0b011011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)), 192:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 193:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 194:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 195:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 196:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 197:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 198:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111110,
0b11011000,
0b11111110,
0b11011000,
0b11011110,
0b00000000,
0b00000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110110,
0b011100,
0b001100,
0b111000
)), 200:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000,
0b000000
)), 201:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000,
0b000000
)), 202:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000,
0b000000
)), 203:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b111110,
0b000000,
0b000000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b01100110,
0b11110110,
0b01100110,
0b01111100,
0b00000000,
0b00000000
)), 209:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b0000000,
0b0000000
)), 210:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 211:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 212:( 7, 0, 7, (
0b0010000,
0b0101000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 213:( 7, 0, 7, (
0b0011010,
0b0101100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 214:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)), 216:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 217:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 218:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 219:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 220:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)), 223:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b1100100,
0b1101000,
0b1101100,
0b1100010,
0b1101100,
0b0000000,
0b0000000
)), 224:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b011000,
0b100100,
0b011000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111101100,
0b001110110,
0b110111000,
0b111101110,
0b000000000,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 249:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 8
#kernMax 0
#nDescent 0
#fRectWidth 8
#fRectHeight 6
#ascent 5
#descent 1
#leading 0
#averageWidth 4.07
FONTS['6pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 10:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 11:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 12:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 13:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 14:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 15:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 16:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 17:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 18:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 19:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 20:( 6, 0, 6, (
0b111010,
0b111100,
0b010110,
0b010100,
0b011010,
0b000000
)), 21:( 3, 0, 3, (
0b010,
0b100,
0b110,
0b100,
0b010,
0b000
)), 22:( 6, 0, 6, (
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)), 23:( 5, 0, 5, (
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b00000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)), 34:( 4, 0, 4, (
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b001010,
0b111110,
0b010100,
0b111110,
0b101000,
0b000000
)), 36:( 4, 0, 4, (
0b0100,
0b1110,
0b1100,
0b0110,
0b1110,
0b0100
)), 37:( 8, 0, 8, (
0b01100100,
0b10101000,
0b11010110,
0b00101010,
0b01001100,
0b00000000
)), 38:( 6, 0, 6, (
0b011000,
0b100000,
0b010110,
0b100100,
0b011000,
0b000000
)), 39:( 2, 0, 2, (
0b10,
0b10,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b010,
0b100,
0b100,
0b100,
0b010,
0b000
)), 41:( 3, 0, 3, (
0b100,
0b010,
0b010,
0b010,
0b100,
0b000
)), 42:( 4, 0, 4, (
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000
)), 43:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)), 44:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1000
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)), 47:( 4, 0, 4, (
0b0010,
0b0010,
0b0100,
0b1000,
0b1000,
0b0000
)), 48:( 4, 0, 4, (
0b1110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 49:( 4, 0, 4, (
0b0100,
0b1100,
0b0100,
0b0100,
0b1110,
0b0000
)), 50:( 4, 0, 4, (
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000
)), 51:( 4, 0, 4, (
0b1110,
0b0010,
0b1110,
0b0010,
0b1110,
0b0000
)), 52:( 4, 0, 4, (
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000
)), 53:( 4, 0, 4, (
0b1110,
0b1000,
0b1110,
0b0010,
0b1110,
0b0000
)), 54:( 4, 0, 4, (
0b1110,
0b1000,
0b1110,
0b1010,
0b1110,
0b0000
)), 55:( 4, 0, 4, (
0b1110,
0b1010,
0b0010,
0b0010,
0b0010,
0b0000
)), 56:( 4, 0, 4, (
0b1110,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)), 57:( 4, 0, 4, (
0b1110,
0b1010,
0b1110,
0b0010,
0b1110,
0b0000
)), 58:( 2, 0, 2, (
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)), 60:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b010,
0b000,
0b000
)), 61:( 4, 0, 4, (
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)), 62:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b100,
0b000,
0b000
)), 63:( 4, 0, 4, (
0b1100,
0b0010,
0b0100,
0b0000,
0b0100,
0b0000
)), 64:( 7, 0, 7, (
0b0111100,
0b1011010,
0b1101010,
0b1011100,
0b0100010,
0b0011100
)), 65:( 4, 0, 4, (
0b0110,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 66:( 4, 0, 4, (
0b1100,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)), 67:( 4, 0, 4, (
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)), 68:( 4, 0, 4, (
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 69:( 4, 0, 4, (
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)), 70:( 4, 0, 4, (
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b0000
)), 71:( 4, 0, 4, (
0b0110,
0b1000,
0b1010,
0b1010,
0b1110,
0b0000
)), 72:( 4, 0, 4, (
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 73:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 74:( 4, 0, 4, (
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)), 75:( 4, 0, 4, (
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)), 76:( 4, 0, 4, (
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)), 77:( 5, 0, 5, (
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000
)), 78:( 4, 0, 4, (
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)), 79:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 80:( 4, 0, 4, (
0b1100,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)), 81:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0010
)), 82:( 4, 0, 4, (
0b1100,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)), 83:( 4, 0, 4, (
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000
)), 84:( 4, 0, 4, (
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 85:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 86:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 87:( 6, 0, 6, (
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b000000
)), 88:( 4, 0, 4, (
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)), 89:( 4, 0, 4, (
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)), 90:( 4, 0, 4, (
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)), 91:( 3, 0, 3, (
0b110,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 4, 0, 4, (
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b0000
)), 93:( 3, 0, 3, (
0b110,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000
)), 96:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)), 97:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1010,
0b0110,
0b0000
)), 98:( 4, 0, 4, (
0b1000,
0b1100,
0b1010,
0b1010,
0b1110,
0b0000
)), 99:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0000
)), 100:( 4, 0, 4, (
0b0010,
0b0110,
0b1010,
0b1010,
0b1110,
0b0000
)), 101:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1100,
0b0110,
0b0000
)), 102:( 3, 0, 3, (
0b010,
0b100,
0b110,
0b100,
0b100,
0b000
)), 103:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1110,
0b0010,
0b1100
)), 104:( 4, 0, 4, (
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)), 105:( 2, 0, 2, (
0b10,
0b00,
0b10,
0b10,
0b10,
0b00
)), 106:( 3, 0, 3, (
0b010,
0b000,
0b010,
0b010,
0b010,
0b100
)), 107:( 4, 0, 4, (
0b1000,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)), 108:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 109:( 6, 0, 6, (
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b000000
)), 110:( 4, 0, 4, (
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)), 111:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000
)), 112:( 4, 0, 4, (
0b0000,
0b1100,
0b1010,
0b1010,
0b1110,
0b1000
)), 113:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010
)), 114:( 4, 0, 4, (
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)), 115:( 4, 0, 4, (
0b0000,
0b0110,
0b1100,
0b0010,
0b1100,
0b0000
)), 116:( 4, 0, 4, (
0b0100,
0b1110,
0b0100,
0b0100,
0b0010,
0b0000
)), 117:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 118:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 119:( 6, 0, 6, (
0b000000,
0b101010,
0b101010,
0b101010,
0b110100,
0b000000
)), 120:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0100,
0b1010,
0b0000
)), 121:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b0110,
0b0100,
0b1000
)), 122:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b1000,
0b1110,
0b0000
)), 123:( 4, 0, 4, (
0b0110,
0b0100,
0b1000,
0b0100,
0b0110,
0b0000
)), 124:( 2, 0, 2, (
0b10,
0b10,
0b00,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b1100,
0b0100,
0b0010,
0b0100,
0b1100,
0b0000
)), 126:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000
)), 128:( 4, 0, 4, (
0b0110,
0b1000,
0b1110,
0b1100,
0b1000,
0b0110
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)), 131:( 4, 0, 4, (
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b1000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 4, 0, 4, (
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)), 135:( 4, 0, 4, (
0b0100,
0b1110,
0b0100,
0b1110,
0b0100,
0b0000
)), 136:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 8, 0, 8, (
0b01001000,
0b10110000,
0b01110100,
0b01101010,
0b10010100,
0b00000000
)), 138:( 4, 0, 4, (
0b1010,
0b0100,
0b0110,
0b1100,
0b0010,
0b1100
)), 139:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b010,
0b000,
0b000
)), 140:( 4, 0, 4, (
0b0111,
0b1010,
0b1011,
0b1010,
0b0111,
0b0000
)), 141:( 6, 0, 6, (
0b001000,
0b010100,
0b100010,
0b100010,
0b010100,
0b001000
)), 142:( 6, 0, 6, (
0b011100,
0b101010,
0b111110,
0b101010,
0b001000,
0b011100
)), 143:( 6, 0, 6, (
0b010100,
0b101010,
0b100010,
0b100010,
0b010100,
0b001000
)), 144:( 6, 0, 6, (
0b001000,
0b011100,
0b111110,
0b111110,
0b001000,
0b011100
)), 145:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)), 151:( 3, 0, 3, (
0b000,
0b000,
0b111,
0b000,
0b000,
0b000
)), 152:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000
)), 153:( 7, 0, 7, (
0b1111010,
0b0101110,
0b0101010,
0b0101010,
0b0000000,
0b0000000
)), 154:( 4, 0, 4, (
0b1010,
0b0100,
0b1110,
0b1000,
0b0110,
0b1110
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0010,
0b0100,
0b0000
)), 156:( 5, 0, 5, (
0b01110,
0b10100,
0b10110,
0b10100,
0b01110,
0b00000
)), 157:( 6, 0, 6, (
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)), 158:( 5, 0, 5, (
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b00000
)), 159:( 4, 0, 4, (
0b1010,
0b0000,
0b1010,
0b0100,
0b0100,
0b0000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b10,
0b00,
0b10,
0b10,
0b10
)), 162:( 5, 0, 5, (
0b00100,
0b01110,
0b10100,
0b01110,
0b00100,
0b00000
)), 163:( 5, 0, 5, (
0b00110,
0b01000,
0b11100,
0b01000,
0b11000,
0b00110
)), 164:( 5, 0, 5, (
0b10010,
0b01100,
0b10010,
0b01100,
0b10010,
0b00000
)), 165:( 4, 0, 4, (
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100
)), 166:( 2, 0, 2, (
0b10,
0b10,
0b00,
0b10,
0b10,
0b00
)), 167:( 4, 0, 4, (
0b0110,
0b1000,
0b0110,
0b1100,
0b0010,
0b1100
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 7, 0, 7, (
0b0111100,
0b1011010,
0b1010010,
0b1011010,
0b0111100,
0b0000000
)), 170:( 5, 0, 5, (
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000
)), 171:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b01010,
0b00000,
0b00000
)), 172:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0000,
0b0000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 174:( 7, 0, 7, (
0b0111100,
0b1011010,
0b1011010,
0b1010110,
0b0111100,
0b0000000
)), 175:( 4, 0, 4, (
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 176:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000
)), 177:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b0100,
0b1110,
0b0000
)), 178:( 4, 0, 4, (
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)), 181:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)), 182:( 5, 0, 5, (
0b01110,
0b11010,
0b11010,
0b01010,
0b01010,
0b01010
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b10,
0b10,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000
)), 187:( 5, 0, 5, (
0b00000,
0b10100,
0b01010,
0b10100,
0b00000,
0b00000
)), 188:( 4, 0, 4, (
0b1000,
0b1010,
0b0100,
0b1010,
0b0110,
0b0010
)), 189:( 5, 0, 5, (
0b10000,
0b10100,
0b01100,
0b10010,
0b00100,
0b01110
)), 190:( 5, 0, 5, (
0b11000,
0b01010,
0b11100,
0b01010,
0b10110,
0b00010
)), 191:( 4, 0, 4, (
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b0110
)), 192:( 4, 0, 4, (
0b1000,
0b0100,
0b0110,
0b1010,
0b1110,
0b1010
)), 193:( 4, 0, 4, (
0b0010,
0b0100,
0b0110,
0b1010,
0b1110,
0b1010
)), 194:( 4, 0, 4, (
0b0100,
0b1010,
0b0110,
0b1010,
0b1110,
0b1010
)), 195:( 4, 0, 4, (
0b0101,
0b1010,
0b0110,
0b1010,
0b1110,
0b1010
)), 196:( 4, 0, 4, (
0b1010,
0b0000,
0b0110,
0b1010,
0b1110,
0b1010
)), 197:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1010,
0b1110,
0b1010
)), 198:( 4, 0, 4, (
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)), 199:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0100
)), 200:( 4, 0, 4, (
0b1000,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)), 201:( 4, 0, 4, (
0b0010,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b1110,
0b1100,
0b1000,
0b1110
)), 203:( 4, 0, 4, (
0b1010,
0b0000,
0b1110,
0b1100,
0b1000,
0b1110
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b100,
0b100,
0b100,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b010,
0b010,
0b010,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b010,
0b010,
0b010,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b010,
0b010,
0b010,
0b000
)), 208:( 5, 0, 5, (
0b00000,
0b01100,
0b01010,
0b11110,
0b01010,
0b01100
)), 209:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b1101,
0b1011,
0b1001
)), 210:( 4, 0, 4, (
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)), 211:( 4, 0, 4, (
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)), 212:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 213:( 4, 0, 4, (
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 214:( 4, 0, 4, (
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)), 215:( 5, 0, 5, (
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000
)), 216:( 6, 0, 6, (
0b000010,
0b011100,
0b101010,
0b101010,
0b011100,
0b100000
)), 217:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b0110
)), 218:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0110
)), 219:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)), 220:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)), 221:( 4, 0, 4, (
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0100
)), 222:( 4, 0, 4, (
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000
)), 223:( 4, 0, 4, (
0b1100,
0b1010,
0b1100,
0b1010,
0b1001,
0b0010
)), 224:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b0110,
0b1010,
0b0110
)), 225:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0110,
0b1010,
0b0110
)), 226:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0110,
0b1010,
0b0110
)), 227:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0110,
0b1010,
0b0110
)), 228:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0110,
0b1010,
0b0110
)), 229:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0110,
0b1010,
0b0110
)), 230:( 4, 0, 4, (
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b0110,
0b0100
)), 232:( 4, 0, 4, (
0b0100,
0b0010,
0b0100,
0b1010,
0b1100,
0b0110
)), 233:( 4, 0, 4, (
0b0010,
0b0100,
0b0100,
0b1010,
0b1100,
0b0110
)), 234:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1010,
0b1100,
0b0110
)), 235:( 4, 0, 4, (
0b1010,
0b0000,
0b0100,
0b1010,
0b1100,
0b0110
)), 236:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010
)), 237:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b100,
0b100,
0b100
)), 238:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)), 239:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)), 240:( 4, 0, 4, (
0b1100,
0b1100,
0b0100,
0b1010,
0b1010,
0b0100
)), 241:( 4, 0, 4, (
0b1010,
0b0101,
0b0000,
0b1100,
0b1010,
0b1010
)), 242:( 4, 0, 4, (
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)), 243:( 4, 0, 4, (
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)), 244:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 245:( 4, 0, 4, (
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 246:( 4, 0, 4, (
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)), 247:( 4, 0, 4, (
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000
)), 248:( 6, 0, 6, (
0b000000,
0b000010,
0b011100,
0b101010,
0b011100,
0b100000
)), 249:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b0110
)), 250:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0110
)), 251:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)), 252:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)), 253:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b0100,
0b1000
)), 254:( 4, 0, 4, (
0b1000,
0b1100,
0b1010,
0b1100,
0b1000,
0b1000
)), 255:( 4, 0, 4, (
0b1010,
0b0000,
0b1010,
0b1010,
0b0100,
0b1000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 4
#kernMax 0
#nDescent 0
#fRectWidth 4
#fRectHeight 6
#ascent 6
#descent 1
#leading 0
#averageWidth 4.00
FONTS['6ptmono'] = {
9:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 10:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 11:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 12:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 13:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 14:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 15:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 16:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 17:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 18:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 19:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 20:( 4, 0, 4, (
0b1110,
0b1110,
0b0100,
0b0110,
0b0110,
0b0100
)), 21:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0110,
0b0100,
0b0010
)), 22:( 4, 0, 4, (
0b0000,
0b0000,
0b0001,
0b0010,
0b1100,
0b1100
)), 23:( 4, 0, 4, (
0b0010,
0b0101,
0b0101,
0b0010,
0b1101,
0b1101
)), 24:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b0000
)), 32:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 33:( 4, 0, 4, (
0b0100,
0b0100,
0b0100,
0b0000,
0b0100,
0b0000
)), 34:( 4, 0, 4, (
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 4, 0, 4, (
0b0110,
0b1111,
0b0110,
0b1111,
0b0110,
0b0000
)), 36:( 4, 0, 4, (
0b0100,
0b1110,
0b1100,
0b0110,
0b1110,
0b0100
)), 37:( 4, 0, 4, (
0b1010,
0b0010,
0b0100,
0b1000,
0b1010,
0b0000
)), 38:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1010,
0b1101,
0b0000
)), 39:( 4, 0, 4, (
0b0100,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)), 40:( 4, 0, 4, (
0b0010,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 41:( 4, 0, 4, (
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0000
)), 42:( 4, 0, 4, (
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000
)), 43:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)), 44:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1000
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 46:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0000
)), 47:( 4, 0, 4, (
0b0010,
0b0010,
0b0100,
0b1000,
0b1000,
0b0000
)), 48:( 4, 0, 4, (
0b1110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 49:( 4, 0, 4, (
0b0100,
0b1100,
0b0100,
0b0100,
0b1110,
0b0000
)), 50:( 4, 0, 4, (
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000
)), 51:( 4, 0, 4, (
0b1110,
0b0010,
0b1110,
0b0010,
0b1110,
0b0000
)), 52:( 4, 0, 4, (
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000
)), 53:( 4, 0, 4, (
0b1110,
0b1000,
0b1110,
0b0010,
0b1110,
0b0000
)), 54:( 4, 0, 4, (
0b1110,
0b1000,
0b1110,
0b1010,
0b1110,
0b0000
)), 55:( 4, 0, 4, (
0b1110,
0b1010,
0b0010,
0b0010,
0b0010,
0b0000
)), 56:( 4, 0, 4, (
0b1110,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)), 57:( 4, 0, 4, (
0b1110,
0b1010,
0b1110,
0b0010,
0b1110,
0b0000
)), 58:( 4, 0, 4, (
0b0000,
0b0100,
0b0000,
0b0000,
0b0100,
0b0000
)), 59:( 4, 0, 4, (
0b0000,
0b0100,
0b0000,
0b0000,
0b0100,
0b1000
)), 60:( 4, 0, 4, (
0b0000,
0b0100,
0b1000,
0b0100,
0b0000,
0b0000
)), 61:( 4, 0, 4, (
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)), 62:( 4, 0, 4, (
0b0000,
0b0100,
0b0010,
0b0100,
0b0000,
0b0000
)), 63:( 4, 0, 4, (
0b1100,
0b0010,
0b0100,
0b0000,
0b0100,
0b0000
)), 64:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b1000,
0b0111,
0b0000
)), 65:( 4, 0, 4, (
0b0110,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 66:( 4, 0, 4, (
0b1100,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)), 67:( 4, 0, 4, (
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)), 68:( 4, 0, 4, (
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 69:( 4, 0, 4, (
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)), 70:( 4, 0, 4, (
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b0000
)), 71:( 4, 0, 4, (
0b0110,
0b1000,
0b1010,
0b1010,
0b1110,
0b0000
)), 72:( 4, 0, 4, (
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 73:( 4, 0, 4, (
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0000
)), 74:( 4, 0, 4, (
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)), 75:( 4, 0, 4, (
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)), 76:( 4, 0, 4, (
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)), 77:( 4, 0, 4, (
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)), 78:( 4, 0, 4, (
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)), 79:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 80:( 4, 0, 4, (
0b1100,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)), 81:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0010
)), 82:( 4, 0, 4, (
0b1100,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)), 83:( 4, 0, 4, (
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)), 84:( 4, 0, 4, (
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 85:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 86:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 87:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b0000
)), 88:( 4, 0, 4, (
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)), 89:( 4, 0, 4, (
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)), 90:( 4, 0, 4, (
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)), 91:( 4, 0, 4, (
0b0110,
0b0100,
0b0100,
0b0100,
0b0110,
0b0000
)), 92:( 4, 0, 4, (
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b0000
)), 93:( 4, 0, 4, (
0b0110,
0b0010,
0b0010,
0b0010,
0b0110,
0b0000
)), 94:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110
)), 96:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 4, 0, 4, (
0b0110,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 98:( 4, 0, 4, (
0b1100,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)), 99:( 4, 0, 4, (
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)), 100:( 4, 0, 4, (
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 101:( 4, 0, 4, (
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)), 102:( 4, 0, 4, (
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b0000
)), 103:( 4, 0, 4, (
0b0110,
0b1000,
0b1010,
0b1010,
0b1110,
0b0000
)), 104:( 4, 0, 4, (
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 105:( 4, 0, 4, (
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0000
)), 106:( 4, 0, 4, (
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)), 107:( 4, 0, 4, (
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)), 108:( 4, 0, 4, (
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)), 109:( 4, 0, 4, (
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)), 110:( 4, 0, 4, (
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)), 111:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 112:( 4, 0, 4, (
0b1100,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)), 113:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0010
)), 114:( 4, 0, 4, (
0b1100,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)), 115:( 4, 0, 4, (
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)), 116:( 4, 0, 4, (
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 117:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 118:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 119:( 4, 0, 4, (
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b0000
)), 120:( 4, 0, 4, (
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)), 121:( 4, 0, 4, (
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)), 122:( 4, 0, 4, (
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)), 123:( 4, 0, 4, (
0b0110,
0b0100,
0b1000,
0b0100,
0b0110,
0b0000
)), 124:( 4, 0, 4, (
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 125:( 4, 0, 4, (
0b1100,
0b0100,
0b0010,
0b0100,
0b1100,
0b0000
)), 126:( 4, 0, 4, (
0b0000,
0b0000,
0b0101,
0b1010,
0b0000,
0b0000
)), 128:( 4, 0, 4, (
0b0110,
0b1000,
0b1110,
0b1100,
0b1000,
0b0110
)), 130:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1000
)), 131:( 4, 0, 4, (
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b1000
)), 132:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0101,
0b1010
)), 133:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b0000
)), 134:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100
)), 135:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100
)), 136:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 4, 0, 4, (
0b0000,
0b1010,
0b0010,
0b0100,
0b1000,
0b1011
)), 138:( 4, 0, 4, (
0b1010,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1000,
0b0100,
0b0000
)), 140:( 4, 0, 4, (
0b0000,
0b0111,
0b1010,
0b1011,
0b1010,
0b0111
)), 141:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0100,
0b0000
)), 142:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b1110
)), 143:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1110,
0b1110,
0b0100
)), 144:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b1110,
0b0100,
0b1110
)), 145:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)), 146:( 4, 0, 4, (
0b0100,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000
)), 147:( 4, 0, 4, (
0b1010,
0b0101,
0b0000,
0b0000,
0b0000,
0b0000
)), 148:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b1100,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000
)), 151:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000
)), 152:( 4, 0, 4, (
0b0000,
0b0000,
0b0101,
0b1010,
0b0000,
0b0000
)), 153:( 4, 0, 4, (
0b0000,
0b1111,
0b0111,
0b0101,
0b0000,
0b0000
)), 154:( 4, 0, 4, (
0b1010,
0b0100,
0b1110,
0b1000,
0b0110,
0b1110
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0010,
0b0100,
0b0000
)), 156:( 4, 0, 4, (
0b0000,
0b0111,
0b1010,
0b1011,
0b1010,
0b0111
)), 157:( 4, 0, 4, (
0b0000,
0b0000,
0b0001,
0b0010,
0b1100,
0b1100
)), 158:( 4, 0, 4, (
0b0010,
0b0101,
0b0101,
0b0010,
0b1101,
0b1101
)), 159:( 4, 0, 4, (
0b1010,
0b0000,
0b1010,
0b1010,
0b0100,
0b0100
)), 160:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 161:( 4, 0, 4, (
0b0000,
0b0100,
0b0000,
0b0100,
0b0100,
0b0100
)), 162:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b1000,
0b1110,
0b0100
)), 163:( 4, 0, 4, (
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b1111
)), 164:( 4, 0, 4, (
0b0000,
0b1001,
0b0110,
0b1001,
0b0110,
0b1001
)), 165:( 4, 0, 4, (
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100
)), 166:( 4, 0, 4, (
0b0000,
0b0100,
0b0100,
0b0000,
0b0100,
0b0100
)), 167:( 4, 0, 4, (
0b0110,
0b1000,
0b0100,
0b0100,
0b0010,
0b1100
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 4, 0, 4, (
0b1111,
0b1001,
0b1011,
0b1001,
0b1111,
0b0000
)), 170:( 4, 0, 4, (
0b0000,
0b0111,
0b1001,
0b0111,
0b0000,
0b0000
)), 171:( 4, 0, 4, (
0b0000,
0b0000,
0b0101,
0b1010,
0b0101,
0b0000
)), 172:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0000,
0b0000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000
)), 174:( 4, 0, 4, (
0b1111,
0b1001,
0b1001,
0b1010,
0b1111,
0b0000
)), 175:( 4, 0, 4, (
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 176:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000
)), 177:( 4, 0, 4, (
0b0000,
0b0100,
0b1110,
0b0100,
0b1110,
0b0000
)), 178:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000
)), 180:( 4, 0, 4, (
0b0100,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)), 182:( 4, 0, 4, (
0b0111,
0b1101,
0b1101,
0b0101,
0b0101,
0b0101
)), 183:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0000,
0b0000,
0b0000
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 4, 0, 4, (
0b0100,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)), 186:( 4, 0, 4, (
0b0110,
0b1001,
0b0110,
0b0000,
0b1111,
0b0000
)), 187:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0101,
0b1010,
0b0000
)), 188:( 4, 0, 4, (
0b1000,
0b1010,
0b0100,
0b1010,
0b0110,
0b0010
)), 189:( 4, 0, 4, (
0b1000,
0b1010,
0b0110,
0b1001,
0b0010,
0b0011
)), 190:( 4, 0, 4, (
0b1100,
0b0101,
0b1110,
0b0101,
0b1011,
0b0001
)), 191:( 4, 0, 4, (
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b0110
)), 192:( 4, 0, 4, (
0b1000,
0b0100,
0b1110,
0b1010,
0b1110,
0b1010
)), 193:( 4, 0, 4, (
0b0010,
0b0100,
0b1110,
0b1010,
0b1110,
0b1010
)), 194:( 4, 0, 4, (
0b0100,
0b1010,
0b1110,
0b1010,
0b1110,
0b1010
)), 195:( 4, 0, 4, (
0b0101,
0b1010,
0b1110,
0b1010,
0b1110,
0b1010
)), 196:( 4, 0, 4, (
0b1010,
0b0000,
0b1110,
0b1010,
0b1110,
0b1010
)), 197:( 4, 0, 4, (
0b0100,
0b1010,
0b1110,
0b1010,
0b1110,
0b1010
)), 198:( 4, 0, 4, (
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)), 199:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b1100
)), 200:( 4, 0, 4, (
0b1000,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)), 201:( 4, 0, 4, (
0b0010,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b1110,
0b1100,
0b1000,
0b1110
)), 203:( 4, 0, 4, (
0b1010,
0b0000,
0b1110,
0b1100,
0b1000,
0b1110
)), 204:( 4, 0, 4, (
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b0100
)), 205:( 4, 0, 4, (
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0100
)), 206:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0100,
0b0100,
0b0100
)), 207:( 4, 0, 4, (
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0100
)), 208:( 4, 0, 4, (
0b0000,
0b0110,
0b0101,
0b1111,
0b0101,
0b0110
)), 209:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b1101,
0b1011,
0b1001
)), 210:( 4, 0, 4, (
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)), 211:( 4, 0, 4, (
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)), 212:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 213:( 4, 0, 4, (
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 214:( 4, 0, 4, (
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)), 215:( 4, 0, 4, (
0b0000,
0b1001,
0b0110,
0b0110,
0b1001,
0b0000
)), 216:( 4, 0, 4, (
0b0001,
0b0111,
0b1011,
0b1101,
0b1110,
0b1000
)), 217:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b1110
)), 218:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1110
)), 219:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1110
)), 220:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1110
)), 221:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b0100,
0b0100
)), 222:( 4, 0, 4, (
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000
)), 223:( 4, 0, 4, (
0b0000,
0b1100,
0b1010,
0b1110,
0b1001,
0b1010
)), 224:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b0110,
0b1010,
0b1110
)), 225:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0110,
0b1010,
0b1110
)), 226:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0110,
0b1010,
0b1110
)), 227:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0110,
0b1010,
0b1110
)), 228:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0110,
0b1010,
0b1110
)), 229:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0110,
0b1010,
0b1110
)), 230:( 4, 0, 4, (
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)), 231:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0100
)), 232:( 4, 0, 4, (
0b0100,
0b0010,
0b0110,
0b1110,
0b1000,
0b0110
)), 233:( 4, 0, 4, (
0b0010,
0b0100,
0b0110,
0b1110,
0b1000,
0b0110
)), 234:( 4, 0, 4, (
0b0100,
0b1010,
0b0110,
0b1110,
0b1000,
0b0110
)), 235:( 4, 0, 4, (
0b1010,
0b0000,
0b0110,
0b1110,
0b1000,
0b0110
)), 236:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010
)), 237:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0100,
0b0100,
0b0100
)), 238:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)), 239:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)), 240:( 4, 0, 4, (
0b1100,
0b1100,
0b0100,
0b1010,
0b1010,
0b0100
)), 241:( 4, 0, 4, (
0b1010,
0b0101,
0b0000,
0b1100,
0b1010,
0b1010
)), 242:( 4, 0, 4, (
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)), 243:( 4, 0, 4, (
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)), 244:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 245:( 4, 0, 4, (
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)), 246:( 4, 0, 4, (
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)), 247:( 4, 0, 4, (
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100
)), 248:( 4, 0, 4, (
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b1000
)), 249:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b0110
)), 250:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0110
)), 251:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)), 252:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)), 253:( 4, 0, 4, (
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b1000
)), 254:( 4, 0, 4, (
0b1000,
0b1100,
0b1010,
0b1100,
0b1000,
0b1000
)), 255:( 4, 0, 4, (
0b1010,
0b0000,
0b1010,
0b1010,
0b0100,
0b1000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 7
#ascent 5
#descent 2
#leading 0
#averageWidth 4.85
FONTS['7pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b011100000
)), 21:( 5, 0, 5, (
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)), 22:( 7, 0, 7, (
0b0000000,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)), 23:( 5, 0, 5, (
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b11010,
0b00000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 25:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)), 34:( 4, 0, 4, (
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)), 37:( 8, 0, 8, (
0b00000000,
0b01100100,
0b10101000,
0b11010110,
0b00101010,
0b01001100,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0111000,
0b1000010,
0b0101100,
0b1000100,
0b0111000,
0b0000000
)), 39:( 2, 0, 2, (
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b100,
0b100,
0b010,
0b000
)), 41:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b010,
0b010,
0b100,
0b000
)), 42:( 5, 0, 5, (
0b00000,
0b10010,
0b01100,
0b11110,
0b01100,
0b10010,
0b00000
)), 43:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)), 47:( 5, 0, 5, (
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b01110,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b00100,
0b01000,
0b11110,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b11100,
0b00010,
0b01100,
0b00010,
0b11100,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00100,
0b01100,
0b10100,
0b11110,
0b00100,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b11110,
0b10000,
0b11100,
0b00010,
0b11100,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b01100,
0b10000,
0b11100,
0b10010,
0b01100,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01100,
0b10010,
0b01100,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01110,
0b00010,
0b01100,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)), 60:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)), 61:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)), 62:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)), 63:( 5, 0, 5, (
0b00000,
0b11100,
0b00010,
0b01100,
0b00000,
0b01000,
0b00000
)), 64:( 9, 0, 9, (
0b001111000,
0b010000100,
0b100110010,
0b101010010,
0b101111100,
0b010000000,
0b001111100
)), 65:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 66:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b11100,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000
)), 68:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)), 69:( 5, 0, 5, (
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b00000
)), 71:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b10110,
0b10010,
0b11110,
0b00000
)), 72:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 73:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 74:( 5, 0, 5, (
0b00000,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000
)), 75:( 5, 0, 5, (
0b00000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000
)), 76:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000
)), 77:( 6, 0, 6, (
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)), 78:( 5, 0, 5, (
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b00000
)), 79:( 5, 0, 5, (
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)), 80:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b11100,
0b10000,
0b10000,
0b00000
)), 81:( 5, 0, 5, (
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00110
)), 82:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b10010,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)), 85:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 86:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)), 87:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)), 88:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000
)), 89:( 5, 0, 5, (
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b00100,
0b00000
)), 90:( 5, 0, 5, (
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 5, 0, 5, (
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000
)), 96:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 98:( 5, 0, 5, (
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0000
)), 100:( 5, 0, 5, (
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10110,
0b11000,
0b01110,
0b00000
)), 102:( 4, 0, 4, (
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00010,
0b11100
)), 104:( 5, 0, 5, (
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)), 105:( 2, 0, 2, (
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)), 106:( 3, 0, 3, (
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b100
)), 107:( 5, 0, 5, (
0b10000,
0b10000,
0b10010,
0b11100,
0b10100,
0b10010,
0b00000
)), 108:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 109:( 6, 0, 6, (
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b01000,
0b11110,
0b01000,
0b01000,
0b00110,
0b00000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)), 120:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b11110,
0b00000
)), 123:( 3, 0, 3, (
0b000,
0b010,
0b010,
0b100,
0b010,
0b010,
0b000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 3, 0, 3, (
0b000,
0b100,
0b100,
0b010,
0b100,
0b100,
0b000
)), 126:( 6, 0, 6, (
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)), 128:( 8, 0, 8, (
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)), 131:( 5, 0, 5, (
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b10000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 4, 0, 4, (
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 135:( 4, 0, 4, (
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0100,
0b0000
)), 136:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 8, 0, 8, (
0b00000000,
0b01001000,
0b10110000,
0b01110100,
0b01101010,
0b10010100,
0b00000000
)), 138:( 4, 0, 4, (
0b1010,
0b0100,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100
)), 139:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)), 140:( 7, 0, 7, (
0b0000000,
0b0111110,
0b1001000,
0b1001110,
0b1001000,
0b0111110,
0b0000000
)), 141:( 8, 0, 8, (
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)), 142:( 8, 0, 8, (
0b00111000,
0b00111000,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100
)), 143:( 8, 0, 8, (
0b01101100,
0b10010010,
0b10000010,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)), 144:( 8, 0, 8, (
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000
)), 145:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)), 152:( 6, 0, 6, (
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)), 153:( 9, 0, 9, (
0b111010100,
0b010101010,
0b010101010,
0b000000000,
0b000000000,
0b000000000,
0b000000000
)), 154:( 4, 0, 4, (
0b1010,
0b0100,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100
)), 155:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000
)), 157:( 7, 0, 7, (
0b0000000,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)), 158:( 5, 0, 5, (
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b11010,
0b00000
)), 159:( 4, 0, 4, (
0b1010,
0b0000,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10
)), 162:( 5, 0, 5, (
0b00000,
0b00100,
0b01110,
0b10100,
0b01110,
0b00100,
0b00000
)), 163:( 5, 0, 5, (
0b00110,
0b01000,
0b11100,
0b01000,
0b11000,
0b00110,
0b00000
)), 164:( 6, 0, 6, (
0b101010,
0b011100,
0b100010,
0b100010,
0b011100,
0b101010,
0b000000
)), 165:( 6, 0, 6, (
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b000000
)), 166:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000
)), 170:( 6, 0, 6, (
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)), 178:( 4, 0, 4, (
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b10100,
0b10100,
0b10100,
0b11100,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000
)), 188:( 8, 0, 8, (
0b01000110,
0b01001100,
0b01011000,
0b00110100,
0b01101100,
0b11011110,
0b00000100
)), 189:( 8, 0, 8, (
0b01000110,
0b01001100,
0b01011000,
0b00111100,
0b01100010,
0b11000100,
0b00001110
)), 190:( 8, 0, 8, (
0b11100010,
0b01100110,
0b00101100,
0b11111010,
0b00110110,
0b01101110,
0b01000010
)), 191:( 5, 0, 5, (
0b00000,
0b00100,
0b00000,
0b01100,
0b10000,
0b01110,
0b00000
)), 192:( 5, 0, 5, (
0b01000,
0b00100,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)), 193:( 5, 0, 5, (
0b00100,
0b01000,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)), 194:( 5, 0, 5, (
0b00100,
0b01010,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)), 195:( 5, 0, 5, (
0b01010,
0b10100,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)), 196:( 5, 0, 5, (
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)), 197:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)), 198:( 7, 0, 7, (
0b0000000,
0b0111110,
0b1001000,
0b1111110,
0b1001000,
0b1001110,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b10000,
0b01110,
0b00010,
0b00100
)), 200:( 4, 0, 4, (
0b1000,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)), 201:( 4, 0, 4, (
0b0010,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)), 203:( 4, 0, 4, (
0b1010,
0b0000,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)), 204:( 2, 0, 2, (
0b10,
0b01,
0b10,
0b10,
0b10,
0b10,
0b00
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b01,
0b01,
0b01,
0b01,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b010,
0b010,
0b010,
0b010,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)), 208:( 6, 0, 6, (
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b011100,
0b000000
)), 209:( 5, 0, 5, (
0b01010,
0b10100,
0b10010,
0b11010,
0b10110,
0b10010,
0b00000
)), 210:( 5, 0, 5, (
0b01000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 211:( 5, 0, 5, (
0b00100,
0b01000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 212:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 213:( 5, 0, 5, (
0b01010,
0b10100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 214:( 5, 0, 5, (
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 215:( 5, 0, 5, (
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000
)), 216:( 7, 0, 7, (
0b0011010,
0b0100100,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000
)), 217:( 5, 0, 5, (
0b01000,
0b00100,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 218:( 5, 0, 5, (
0b00100,
0b01000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 219:( 5, 0, 5, (
0b00100,
0b01010,
0b10000,
0b10010,
0b10010,
0b01110,
0b00000
)), 220:( 5, 0, 5, (
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 221:( 4, 0, 4, (
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000
)), 222:( 5, 0, 5, (
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000
)), 223:( 6, 0, 6, (
0b111000,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000
)), 224:( 5, 0, 5, (
0b01000,
0b00100,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 225:( 5, 0, 5, (
0b00100,
0b01000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 226:( 5, 0, 5, (
0b00100,
0b01010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 227:( 5, 0, 5, (
0b01010,
0b10100,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 228:( 5, 0, 5, (
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 229:( 5, 0, 5, (
0b00100,
0b01010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0010,
0b0100
)), 232:( 5, 0, 5, (
0b01000,
0b00100,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 233:( 5, 0, 5, (
0b00100,
0b01000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 234:( 5, 0, 5, (
0b00100,
0b01010,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 235:( 5, 0, 5, (
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 236:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b000
)), 237:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b00
)), 238:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b000
)), 240:( 5, 0, 5, (
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 241:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b00000
)), 242:( 5, 0, 5, (
0b01000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 243:( 5, 0, 5, (
0b00100,
0b01000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 244:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 245:( 5, 0, 5, (
0b01010,
0b10100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 246:( 5, 0, 5, (
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 247:( 4, 0, 4, (
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000
)), 248:( 7, 0, 7, (
0b0000000,
0b0011010,
0b0100100,
0b0111100,
0b0100100,
0b1011000,
0b0000000
)), 249:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 250:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 251:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 253:( 5, 0, 5, (
0b00100,
0b01000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)), 254:( 5, 0, 5, (
0b00000,
0b10000,
0b11100,
0b10010,
0b11100,
0b10000,
0b00000
)), 255:( 5, 0, 5, (
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 9
#ascent 7
#descent 2
#leading 0
#averageWidth 4.92
FONTS['9pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000
)), 21:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)), 22:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)), 23:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 25:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01100100,
0b10101000,
0b11010110,
0b00101010,
0b01001100,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111000,
0b1000010,
0b0101100,
0b1000100,
0b0111000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010
)), 41:( 3, 0, 3, (
0b000,
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)), 42:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b01100,
0b11110,
0b01100,
0b10010,
0b00000,
0b00000
)), 43:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b01110,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b00100,
0b01000,
0b11110,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b00010,
0b01100,
0b00010,
0b11100,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00100,
0b01100,
0b10100,
0b11110,
0b00100,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b10000,
0b11100,
0b00010,
0b11100,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10000,
0b11100,
0b10010,
0b01100,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b10010,
0b01100,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b01110,
0b00010,
0b01100,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)), 61:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)), 62:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)), 63:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b00010,
0b01100,
0b00000,
0b01000,
0b00000
)), 64:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111000,
0b010000100,
0b100110010,
0b101010010,
0b101111100,
0b010000000,
0b001111100
)), 65:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 66:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b11100,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000
)), 68:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b00000
)), 71:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10110,
0b10010,
0b01110,
0b00000
)), 72:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000
)), 75:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000
)), 76:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000
)), 77:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)), 78:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b00000
)), 79:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)), 80:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b11100,
0b10000,
0b10000,
0b00000
)), 81:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00110
)), 82:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b10010,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)), 85:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 86:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)), 87:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)), 88:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000
)), 89:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b00100,
0b00000
)), 90:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000
)), 91:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110
)), 94:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111
)), 96:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0000
)), 100:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10110,
0b11000,
0b01110,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00010,
0b11100
)), 104:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b100
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b11100,
0b10100,
0b10010,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 109:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01000,
0b11110,
0b01000,
0b01000,
0b00110,
0b00000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)), 120:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b11110,
0b00000
)), 123:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0010
)), 124:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10
)), 125:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b1000
)), 126:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)), 131:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b10000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)), 135:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0100,
0b0000
)), 136:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b010001000,
0b101010000,
0b010101010,
0b001010101,
0b010001010,
0b000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b01100,
0b00110,
0b11100,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)), 140:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000
)), 141:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)), 142:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00111000,
0b01010100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b00000000
)), 143:( 8, 0, 8, (
0b00000000,
0b01000100,
0b10101010,
0b10010010,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)), 144:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b00000000
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000
)), 152:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)), 153:( 9, 0, 9, (
0b000000000,
0b000000000,
0b111010100,
0b010101010,
0b010100010,
0b000000000,
0b000000000,
0b000000000,
0b000000000
)), 154:( 4, 0, 4, (
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000
)), 157:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)), 158:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)), 159:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b00000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 162:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01110,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)), 163:( 5, 0, 5, (
0b00000,
0b00110,
0b01000,
0b01000,
0b11110,
0b01000,
0b11100,
0b00011,
0b00000
)), 164:( 6, 0, 6, (
0b000000,
0b000000,
0b101010,
0b011100,
0b100010,
0b100010,
0b011100,
0b101010,
0b000000
)), 165:( 6, 0, 6, (
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b00
)), 167:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 6, 0, 6, (
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010
)), 185:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 7, 0, 7, (
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0100100,
0b1001100,
0b0011110,
0b0000100,
0b0000000
)), 189:( 7, 0, 7, (
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0101100,
0b1000010,
0b0000100,
0b0001110,
0b0000000
)), 190:( 7, 0, 7, (
0b1110000,
0b0110010,
0b0010100,
0b1111000,
0b0010010,
0b0100110,
0b1001110,
0b0000010,
0b0000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001100,
0b000000,
0b011100,
0b110000,
0b011110,
0b000000
)), 192:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 193:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 194:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 195:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 196:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 197:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1111110,
0b1001000,
0b1001110,
0b0000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100000,
0b100000,
0b100000,
0b011100,
0b001000,
0b010000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 208:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b011100,
0b000000
)), 209:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11010,
0b10110,
0b10010,
0b00000
)), 210:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 211:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 212:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 213:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 214:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)), 216:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000
)), 217:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 218:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 219:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 220:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)), 221:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b00000
)), 222:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b100100,
0b101000,
0b100100,
0b100010,
0b101100,
0b000000
)), 224:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)), 225:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)), 226:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)), 227:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)), 229:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b01110010,
0b10011100,
0b11111110,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0010,
0b0100
)), 232:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 233:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 234:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b100,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)), 242:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 243:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 244:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 245:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 247:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b0111100,
0b0100100,
0b1011000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)), 253:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000
)), 255:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 9
#ascent 7
#descent 2
#leading 0
#averageWidth 5.78
FONTS['9ptbold'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000
)), 21:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 25:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000
)), 34:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111110,
0b10101000,
0b11010110,
0b00101010,
0b11001100,
0b00000000
)), 38:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111000,
0b11000010,
0b01101110,
0b11000100,
0b01111000,
0b00000000
)), 39:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000
)), 40:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110
)), 41:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 42:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b011110,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b001100,
0b011000,
0b111110,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011100,
0b000110,
0b111100,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b110000,
0b111100,
0b001110,
0b111100,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b011100,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b011000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b011100,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011100,
0b000000,
0b011000,
0b000000
)), 64:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111000,
0b010000100,
0b100110010,
0b101010010,
0b101111100,
0b010000000,
0b001111100
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b111100,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)), 69:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b000000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b110110,
0b110010,
0b011110,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 74:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000110,
0b000110,
0b000110,
0b110110,
0b011100,
0b000000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b00000000
)), 78:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100110,
0b110110,
0b111110,
0b110110,
0b110010,
0b000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b110110,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b111110,
0b000110,
0b111100,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11010110,
0b11111110,
0b01111100,
0b01101100,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000
)), 93:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111
)), 96:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b00000
)), 103:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b0111000,
0b1001100,
0b1111000
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b111111110,
0b110110110,
0b110110110,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b011110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000
)), 116:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b001110,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b011111100,
0b001001000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b11000,
0b11110,
0b00000
)), 123:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b00110
)), 124:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110
)), 125:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b11000
)), 126:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)), 128:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b1110000,
0b0000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b010001000,
0b101010000,
0b010101010,
0b001010101,
0b010001010,
0b000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b01100,
0b00110,
0b11100,
0b00000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000
)), 140:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111110,
0b011011000,
0b110011110,
0b110011000,
0b011011000,
0b001111110,
0b000000000
)), 141:( 9, 0, 9, (
0b000010000,
0b000111000,
0b001101100,
0b011000110,
0b110000011,
0b011000110,
0b001101100,
0b000111000,
0b000010000
)), 142:( 9, 0, 9, (
0b000111000,
0b001111100,
0b000111000,
0b011010110,
0b111111111,
0b111111111,
0b011010110,
0b000111000,
0b001111100
)), 143:( 9, 0, 9, (
0b011101110,
0b110111011,
0b100010001,
0b100000001,
0b110000011,
0b011000110,
0b001101100,
0b000111000,
0b000010000
)), 144:( 9, 0, 9, (
0b000010000,
0b000111000,
0b001111100,
0b011111110,
0b111111111,
0b111111111,
0b011010110,
0b000111000,
0b001111100
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000
)), 152:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)), 153:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b111010100,
0b010101010,
0b010100010,
0b000000000,
0b000000000,
0b000000000
)), 154:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000
)), 156:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b110110110,
0b110110110,
0b110111000,
0b011011110,
0b000000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b011000,
0b111110,
0b011000,
0b111110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b0111100,
0b0011000,
0b1111110,
0b0011000,
0b1111110,
0b0011000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110
)), 167:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0000000
)), 183:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b000
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000
)), 188:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000
)), 189:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000
)), 190:( 9, 0, 9, (
0b111000000,
0b011001100,
0b001011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001100,
0b000000,
0b011100,
0b110000,
0b011110,
0b000000
)), 192:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 195:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 197:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 198:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111110,
0b11011000,
0b11111110,
0b11011000,
0b11011110,
0b00000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b011110,
0b001100,
0b011000
)), 200:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)), 201:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)), 202:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)), 203:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b01100110,
0b11110110,
0b01100110,
0b01111100,
0b00000000
)), 209:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b0000000
)), 210:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 213:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)), 216:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b1101110,
0b1110110,
0b0100100,
0b1011000,
0b0000000
)), 217:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 223:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b1100100,
0b1101000,
0b1101100,
0b1100010,
0b1111100,
0b0000000
)), 224:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)), 229:( 6, 0, 6, (
0b011000,
0b100100,
0b011000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111101100,
0b001110110,
0b110111000,
0b111101110,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000
)), 249:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.63
FONTS['architectlg'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b011110000,
0b111111000,
0b100001000,
0b111111000,
0b011110010,
0b001100100,
0b001100000,
0b001101110,
0b011100000,
0b011100100,
0b001100010
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000,
0b00000000
)), 24:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000100100,
0b000100100,
0b011111110,
0b001001000,
0b111111100,
0b010010000,
0b010010000,
0b000000000,
0b000000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b011100,
0b001010,
0b101010,
0b011100,
0b001000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b0100,
0b0010,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0100,
0b1000,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b10000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b101010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011000,
0b001000,
0b001000,
0b001000,
0b001000,
0b011100,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b000010,
0b000010,
0b011100,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b000010,
0b000010,
0b001100,
0b000010,
0b000010,
0b111100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b100100,
0b100100,
0b100100,
0b111110,
0b000100,
0b000100,
0b000100,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b100000,
0b100000,
0b111100,
0b000010,
0b000010,
0b111100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100000,
0b100000,
0b111100,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b011110,
0b000010,
0b000010,
0b011100,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 6, 0, 6, (
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b010000,
0b001000,
0b000100,
0b000010,
0b000000,
0b000000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 6, 0, 6, (
0b000000,
0b000000,
0b010000,
0b001000,
0b000100,
0b000010,
0b000100,
0b001000,
0b010000,
0b000000,
0b000000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b000100,
0b001000,
0b000000,
0b001000,
0b000000,
0b000000
)), 64:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111000,
0b010000100,
0b100111010,
0b101001010,
0b101001010,
0b100110100,
0b010000000,
0b001111000,
0b000000000
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b100000,
0b100000,
0b100000,
0b100000,
0b100000,
0b011110,
0b000000,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)), 69:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b100000,
0b100000,
0b111100,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b100000,
0b100000,
0b111100,
0b100000,
0b100000,
0b100000,
0b000000,
0b000000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b100000,
0b100000,
0b101110,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100100,
0b101000,
0b110000,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b100000,
0b100000,
0b100000,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b10101010,
0b10101010,
0b10010010,
0b10010010,
0b10000010,
0b00000000,
0b00000000
)), 78:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100000,
0b100000,
0b100000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b101010,
0b011100,
0b000100,
0b000000
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b100000,
0b100000,
0b011100,
0b000010,
0b000010,
0b111100,
0b000000,
0b000000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10000010,
0b10010010,
0b10010010,
0b10101010,
0b10101010,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00000,
0b00000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000010,
0b000010,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)), 102:( 4, 0, 4, (
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000010,
0b111100
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b100000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000010,
0b000010
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 115:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100000,
0b111110,
0b000010,
0b111100,
0b000000,
0b000000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b000000,
0b000000
)), 119:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b01101100,
0b00000000,
0b00000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)), 122:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000100,
0b001000,
0b010000,
0b111110,
0b000000,
0b000000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01000,
0b01000,
0b01000,
0b10000,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b00100,
0b00100,
0b00100,
0b00010,
0b00100,
0b00100,
0b00100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0100010000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000,
0b00000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010000,
0b010000,
0b111000,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b000000,
0b001000,
0b010000,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 192:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 1
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.15
FONTS['architectsm'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b011110000,
0b111111000,
0b100001000,
0b111111000,
0b011110010,
0b001100100,
0b001100000,
0b001101110,
0b011100000,
0b011100100,
0b001100010
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 23:( 7, 0, 7, (
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 24:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)), 36:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b011000,
0b001100,
0b101010,
0b011100,
0b001000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)), 41:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01100,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010,
0b01100,
0b00000,
0b00000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 61:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 62:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)), 63:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10101010,
0b10010100,
0b01000000,
0b00111100,
0b00000000
)), 65:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 66:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 68:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 71:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10110,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 72:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)), 75:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 76:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 77:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 78:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 79:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 80:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 81:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10110,
0b11100,
0b00010,
0b00000
)), 82:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 86:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 87:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b110110,
0b000000,
0b000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b01100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 100:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b11100
)), 104:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b000000,
0b000000
)), 120:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b01100,
0b10000,
0b11110,
0b00000,
0b00000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0111111000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 158:( 7, 0, 7, (
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b010000,
0b111100,
0b010000,
0b111000,
0b000110,
0b000000,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)), 191:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)), 192:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 193:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 194:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 195:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 196:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 197:( 5, 0, 5, (
0b00100,
0b01010,
0b00100,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)), 209:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11010,
0b10110,
0b10110,
0b10010,
0b00000,
0b00000
)), 210:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 211:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 212:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 213:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 214:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 218:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 219:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 220:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000,
0b00000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 225:( 5, 0, 5, (
0b00000,
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 226:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 227:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 229:( 5, 0, 5, (
0b00100,
0b01010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 233:( 5, 0, 5, (
0b00000,
0b00010,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 234:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 243:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 244:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 245:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 253:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 17
#kernMax 0
#nDescent 0
#fRectWidth 17
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.94
FONTS['bigfoot'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 11, 0, 11, (
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000010,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)), 34:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)), 37:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011111110,
0b101001100,
0b101011000,
0b110110110,
0b001101010,
0b011001010,
0b011001100,
0b000000000,
0b000000000
)), 38:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001110000,
0b011011000,
0b001110000,
0b011110110,
0b110011100,
0b110011100,
0b011110110,
0b000000000,
0b000000000
)), 39:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 40:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01000,
0b11000,
0b11000,
0b11000,
0b01000,
0b01100,
0b00110,
0b00000
)), 41:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b00100,
0b00110,
0b00110,
0b00110,
0b00100,
0b01100,
0b11000,
0b00000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b000000,
0b000000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b001110,
0b011100,
0b111000,
0b110110,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b001100,
0b011100,
0b000110,
0b110110,
0b111110,
0b000000,
0b000000
)), 52:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0001100,
0b0011100,
0b0111100,
0b1101100,
0b1111110,
0b0001100,
0b0011110,
0b0000000,
0b0000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b111110,
0b000110,
0b110110,
0b111100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000110,
0b110110,
0b111110,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)), 64:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1101111100,
0b0110000000,
0b0011111100,
0b0000000000,
0b0000000000
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b111110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110000,
0b110000,
0b110000,
0b110110,
0b111110,
0b000000,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 69:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b110110,
0b110010,
0b110010,
0b011110,
0b000000,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b000110,
0b000110,
0b000110,
0b110110,
0b111100,
0b000000,
0b000000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110,
0b000000
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b011100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111110,
0b11101100,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b111110,
0b011100,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000,
0b000000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111011100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b11010,
0b01100,
0b10110,
0b11110,
0b00000,
0b00000
)), 116:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111110,
0b011001100,
0b000000000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 122:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 17, 0, 17, (
0b00000000000000000,
0b00000000000000000,
0b01110000100000000,
0b11011001100000000,
0b11011011000000000,
0b01110110111011100,
0b00001101101110110,
0b00011001101110110,
0b00110000111011100,
0b00000000000000000,
0b00000000000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 140:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 156:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000010,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)), 163:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000,
0b0000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 167:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 170:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)), 188:( 9, 0, 9, (
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)), 189:( 9, 0, 9, (
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)), 190:( 9, 0, 9, (
0b000000000,
0b111000000,
0b001001100,
0b011011000,
0b001110000,
0b111101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)), 192:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 198:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b001000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)), 209:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b110010,
0b111010,
0b111110,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)), 223:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)), 224:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001100,
0b010010,
0b001100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 249:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.31
FONTS['casual'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 10, 0, 10, (
0b0111100000,
0b1111110000,
0b1000010010,
0b1111110100,
0b0111101000,
0b0011000000,
0b0011011010,
0b0011000000,
0b0111001000,
0b0111000100,
0b0011000010
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00110000,
0b01001000,
0b00110000,
0b01010000,
0b10001010,
0b10001100,
0b01110110,
0b00000000,
0b00000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0110,
0b0100,
0b1100,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b0100,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b0100,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0110,
0b0100,
0b1100,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 47:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000,
0b0000
)), 48:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000,
0b00000,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b010,
0b100
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01000,
0b00100,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000,
0b00000
)), 63:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10110100,
0b01000000,
0b00111000,
0b00000000,
0b00000000
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 66:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 68:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b001000,
0b010000,
0b100110,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b000000,
0b010010,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 75:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 76:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 77:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1000010,
0b1000110,
0b1101010,
0b1010010,
0b1000010,
0b1000010,
0b1000100,
0b0000000,
0b0000000
)), 78:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)), 80:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b101010,
0b100100,
0b011010,
0b000000,
0b000000
)), 82:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11110,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100100,
0b101000,
0b010000,
0b000000,
0b000000
)), 87:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1000100,
0b1000010,
0b1000010,
0b1010010,
0b1011010,
0b1101100,
0b1000100,
0b0000000,
0b0000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000,
0b0000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11000,
0b10100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 100:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00110,
0b01010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0000,
0b0011,
0b0100,
0b0110,
0b1100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b100100,
0b100100,
0b011000,
0b000100,
0b100010,
0b011100
)), 104:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11100,
0b10010,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b10100110,
0b11011010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00100,
0b01010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11000,
0b10100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00110,
0b01010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b11100,
0b00010,
0b11100,
0b00000,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b01000,
0b01000,
0b01110,
0b11000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b111100,
0b000000,
0b000000
)), 120:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)), 132:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b010010,
0b100100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 6, 0, 6, (
0b000000,
0b010010,
0b100100,
0b110110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 148:( 6, 0, 6, (
0b000000,
0b110110,
0b010010,
0b100100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 9, 0, 9, (
0b000000000,
0b010000000,
0b111111100,
0b010101010,
0b011101010,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 158:( 7, 0, 7, (
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b1100,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001111,
0b00000010,
0b00000000,
0b00000000
)), 191:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)), 192:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b000100,
0b001010,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b001010,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b000100,
0b001010,
0b000100,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011100000,
0b010010000,
0b010001000,
0b111001000,
0b010001000,
0b010010000,
0b011100000,
0b000000000,
0b000000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 225:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 226:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 227:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 229:( 5, 0, 5, (
0b00100,
0b01010,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011001100,
0b000110010,
0b011111110,
0b100110000,
0b111111110,
0b000000000,
0b000000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)), 233:( 5, 0, 5, (
0b00000,
0b00010,
0b00100,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)), 234:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b000,
0b000
)), 238:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 239:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.75
FONTS['casualbold'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 19:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 20:( 10, 0, 10, (
0b0111100000,
0b1111110000,
0b1000010000,
0b1111110010,
0b0111100100,
0b0011001000,
0b0011000110,
0b0011001000,
0b0111000100,
0b0111000010,
0b0011000000
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)), 37:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011001000,
0b101001000,
0b101011000,
0b110110110,
0b001101010,
0b001001010,
0b001001100,
0b000000000,
0b000000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0110000,
0b1011010,
0b1001100,
0b1110110,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 6, 0, 6, (
0b000000,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b110000,
0b110000,
0b011000,
0b000000
)), 41:( 6, 0, 6, (
0b000000,
0b001100,
0b000110,
0b000110,
0b000110,
0b000110,
0b001100,
0b001100,
0b011000,
0b110000,
0b000000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100110,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)), 65:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110010,
0b110000,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110110,
0b110010,
0b110010,
0b011110,
0b000000,
0b000000
)), 72:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0110110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b11001100,
0b00000000,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1110110,
0b1101110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110,
0b000000
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110010,
0b011000,
0b001100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b011000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11001100,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111000,
0b110100,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b11010,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b001110,
0b010110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b1101100,
0b0111000,
0b0001100,
0b1100100,
0b0111000
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111000,
0b110100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001110,
0b010110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100,
0b000000,
0b000000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b00110,
0b00000,
0b00000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111100,
0b011000,
0b000000,
0b000000
)), 119:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111100,
0b00000000,
0b00000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111100,
0b01100010,
0b11111000,
0b01100000,
0b11110000,
0b01100010,
0b00111100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0110010000,
0b1010010000,
0b1010100000,
0b1101011110,
0b0010101010,
0b0100101010,
0b0100111100,
0b0000000000,
0b0000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011100,
0b110010,
0b011000,
0b001100,
0b100110,
0b011100,
0b000000,
0b000000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000,
0b0000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0110001100,
0b1111011110,
0b1001110010,
0b1000100010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011010,
0b011000,
0b111100,
0b011000,
0b011000,
0b111000,
0b001110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01111100,
0b01101100,
0b11000110,
0b01101100,
0b01111100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10100010,
0b10111010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10110010,
0b10101010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000,
0b00000000
)), 188:( 8, 0, 8, (
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00110100,
0b01101100,
0b11011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00111100,
0b01100010,
0b11000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000011,
0b00100110,
0b11101100,
0b00011010,
0b00110110,
0b01101111,
0b00000010,
0b00000000,
0b00000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 192:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 193:( 7, 0, 7, (
0b0000100,
0b0001000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 194:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 195:( 7, 0, 7, (
0b0010100,
0b0101000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 196:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 197:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0001000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 198:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01101100,
0b01101100,
0b01111110,
0b11101100,
0b01101100,
0b01101110,
0b00000000,
0b00000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01110,
0b11000,
0b10000,
0b10000,
0b11010,
0b01110,
0b00100,
0b01000
)), 200:( 5, 0, 5, (
0b01100,
0b00110,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00110,
0b01100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 204:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b0110010,
0b0110010,
0b1111010,
0b0110010,
0b0110010,
0b0111100,
0b0000000,
0b0000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b111010,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01111100,
0b11001110,
0b11010110,
0b11100110,
0b01111100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b111100,
0b110010,
0b110010,
0b110010,
0b111100,
0b110000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b110100,
0b110100,
0b111100,
0b110010,
0b110010,
0b110010,
0b000100,
0b000000
)), 224:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11111100,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)), 239:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b010100,
0b101000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b11100,
0b11010,
0b11010,
0b11010,
0b11100,
0b11000,
0b11000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.85
FONTS['macfont'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 11, 0, 11, (
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000110,
0b000001100,
0b000011000,
0b000110000,
0b111100000,
0b111000000,
0b111000000,
0b000000000,
0b000000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)), 37:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011111110,
0b101001100,
0b101011000,
0b110110110,
0b001101010,
0b011001010,
0b010001100,
0b000000000,
0b000000000
)), 38:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01110000,
0b11011000,
0b11000000,
0b01100010,
0b11001110,
0b11000100,
0b01111000,
0b00000000,
0b00000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011100,
0b000110,
0b100110,
0b011100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b001110,
0b010110,
0b100110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100110,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111100,
0b01100110,
0b11011010,
0b10101010,
0b10101010,
0b10111100,
0b11000000,
0b01111110,
0b00000000
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b000110,
0b000110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 76:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10000010,
0b11000110,
0b11101110,
0b11111110,
0b10111110,
0b10010110,
0b10000110,
0b00000000,
0b00000000
)), 78:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b110010,
0b111010,
0b111110,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000110,
0b000010
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b111110,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 87:( 9, 0, 9, (
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b111110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000,
0b110000
)), 122:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110000,
0b1110010,
0b1001110,
0b0001100,
0b0000000,
0b0000000,
0b0000000
)), 128:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b01111111000,
0b10100110000,
0b10101100000,
0b11011011110,
0b00110101010,
0b01100101010,
0b01100111100,
0b00000000000,
0b00000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 140:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110000,
0b1110010,
0b1001110,
0b0001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 156:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)), 157:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000110,
0b000001100,
0b000011000,
0b000110000,
0b111100000,
0b111000000,
0b111000000,
0b000000000,
0b000000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111000,
0b0110000,
0b0110010,
0b1111100,
0b0000000,
0b0000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 167:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10100010,
0b10111010,
0b10000010,
0b01111100,
0b00000000
)), 170:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10110010,
0b10101010,
0b10000010,
0b01111100,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)), 188:( 9, 0, 9, (
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)), 189:( 9, 0, 9, (
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)), 190:( 9, 0, 9, (
0b000000000,
0b111000000,
0b011001100,
0b001011000,
0b111110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011100,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 192:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 198:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011010,
0b110000,
0b110000,
0b110000,
0b011010,
0b001110,
0b000100,
0b001000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)), 209:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b100110,
0b110110,
0b111110,
0b111110,
0b110110,
0b110010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b011000,
0b001100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b001100,
0b011000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)), 223:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)), 224:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111100,
0b110111000,
0b111111110,
0b000000000,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 249:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000,
0b110000
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 17
#kernMax 0
#nDescent 0
#fRectWidth 17
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.99
FONTS['mactall'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 11, 0, 11, (
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b000,
0b000
)), 34:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)), 37:( 10, 0, 10, (
0b0000000000,
0b0111111110,
0b1001001100,
0b1001011000,
0b0110110000,
0b0001101100,
0b0011010010,
0b0110010010,
0b1100001100,
0b0000000000,
0b0000000000
)), 38:( 8, 0, 8, (
0b00000000,
0b01110000,
0b11011000,
0b11000000,
0b01100010,
0b01101110,
0b11000100,
0b11001100,
0b01111000,
0b00000000,
0b00000000
)), 39:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 40:( 4, 0, 4, (
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b001000,
0b101010,
0b010100,
0b101010,
0b001000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b010,
0b100
)), 45:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b10000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b111110,
0b000110,
0b001100,
0b011100,
0b000110,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b001110,
0b011110,
0b110110,
0b110110,
0b111110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b111110,
0b000110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b011100,
0b100110,
0b001100,
0b011000,
0b011000,
0b000000,
0b011000,
0b011000,
0b000000,
0b000000
)), 64:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)), 65:( 6, 0, 6, (
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 69:( 5, 0, 5, (
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 71:( 6, 0, 6, (
0b000000,
0b011100,
0b110010,
0b110000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 73:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 6, 0, 6, (
0b000000,
0b000110,
0b000110,
0b000110,
0b000110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 75:( 7, 0, 7, (
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1110000,
0b1110000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)), 76:( 5, 0, 5, (
0b00000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 77:( 8, 0, 8, (
0b00000000,
0b10000110,
0b11000110,
0b11101110,
0b11111110,
0b10111110,
0b10010110,
0b10000110,
0b10000110,
0b00000000,
0b00000000
)), 78:( 6, 0, 6, (
0b000000,
0b100010,
0b110010,
0b111010,
0b111110,
0b101110,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)), 79:( 6, 0, 6, (
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000111,
0b000111
)), 82:( 6, 0, 6, (
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b011100,
0b110010,
0b111000,
0b011100,
0b001110,
0b100110,
0b110110,
0b011100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 87:( 9, 0, 9, (
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)), 88:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 6, 0, 6, (
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 6, 0, 6, (
0b000000,
0b110000,
0b110000,
0b011000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000010,
0b000000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b11010,
0b11000,
0b11000,
0b11010,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)), 104:( 6, 0, 6, (
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b110000,
0b110000,
0b110010,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b111101100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b11010,
0b11100,
0b01110,
0b10110,
0b11100,
0b00000,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000,
0b00000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)), 122:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110000,
0b1110010,
0b1001110,
0b0001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b010,
0b100
)), 131:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)), 132:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b100100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 17, 0, 17, (
0b00000000000000000,
0b00000000000000000,
0b01110000100000000,
0b11011001100000000,
0b11011011000000000,
0b01110110111011100,
0b00001101101110110,
0b00011001101110110,
0b00110000111011100,
0b00000000000000000,
0b00000000000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 140:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000
)), 142:( 10, 0, 10, (
0b0000000000,
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000
)), 144:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 6, 0, 6, (
0b000000,
0b010010,
0b100100,
0b110110,
0b110110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 148:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b010010,
0b100100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 149:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b111110,
0b111110,
0b111110,
0b011100,
0b000000,
0b000000,
0b000000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0111100010,
0b0010110110,
0b0010101010,
0b0010100010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 156:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)), 157:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 161:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100
)), 162:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)), 163:( 7, 0, 7, (
0b0000000,
0b0011000,
0b0110100,
0b0110000,
0b1111000,
0b0110000,
0b0110000,
0b0110010,
0b1111100,
0b0000000,
0b0000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 167:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111100,
0b010000010,
0b010111010,
0b010100010,
0b010100010,
0b010111010,
0b010000010,
0b001111100,
0b000000000
)), 170:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111100,
0b010000010,
0b010111010,
0b010101010,
0b010110010,
0b010101010,
0b010000010,
0b001111100,
0b000000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b111110,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0110,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b1110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)), 182:( 8, 0, 8, (
0b00000000,
0b01111110,
0b11001010,
0b11001010,
0b01111010,
0b00001010,
0b00001010,
0b00001010,
0b00001010,
0b00000000,
0b00000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)), 188:( 9, 0, 9, (
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)), 189:( 9, 0, 9, (
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)), 190:( 9, 0, 9, (
0b000000000,
0b111000000,
0b011001100,
0b001011000,
0b111110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b001100,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110010,
0b011100,
0b000000,
0b000000
)), 192:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 198:( 9, 0, 9, (
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111100,
0b110011000,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011010,
0b110000,
0b110000,
0b110000,
0b011110,
0b000110,
0b000100,
0b001000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)), 209:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b100110,
0b110110,
0b111110,
0b111110,
0b110110,
0b110010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b011000,
0b001100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b001100,
0b011000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100000,
0b1111000,
0b1100100,
0b1100100,
0b1100100,
0b1111000,
0b1100000,
0b0000000,
0b0000000
)), 223:( 8, 0, 8, (
0b00000000,
0b01110000,
0b11001000,
0b11001000,
0b11010000,
0b11111100,
0b11000110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)), 224:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 240:( 9, 0, 9, (
0b000001000,
0b000010000,
0b011101110,
0b111111100,
0b111111100,
0b111111100,
0b111111110,
0b011111110,
0b011101100,
0b000000000,
0b000000000
)), 241:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 249:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 7
#ascent 6
#descent 1
#leading 0
#averageWidth 5.44
FONTS['metrix7pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 7, 0, 7, (
0b0100010,
0b1010100,
0b1011000,
0b0101110,
0b1101000,
0b0100100,
0b1100010
)), 21:( 6, 0, 6, (
0b001000,
0b010000,
0b100000,
0b111010,
0b100000,
0b010000,
0b001000
)), 22:( 6, 0, 6, (
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)), 23:( 6, 0, 6, (
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000
)), 36:( 6, 0, 6, (
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)), 37:( 8, 0, 8, (
0b00000000,
0b01000100,
0b10101000,
0b01010100,
0b00101010,
0b01000100,
0b00000000
)), 38:( 6, 0, 6, (
0b000000,
0b010000,
0b101000,
0b011010,
0b100100,
0b011010,
0b000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010
)), 41:( 3, 0, 3, (
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)), 42:( 6, 0, 6, (
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)), 44:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)), 47:( 6, 0, 6, (
0b000000,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b000000
)), 48:( 6, 0, 6, (
0b000000,
0b011100,
0b100110,
0b101010,
0b110010,
0b011100,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b001000,
0b011000,
0b001000,
0b001000,
0b011100,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b001100,
0b010000,
0b111110,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b111100,
0b000010,
0b001100,
0b000010,
0b111100,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000100,
0b001100,
0b010100,
0b111110,
0b000100,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b111110,
0b100000,
0b111100,
0b000010,
0b111100,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b011100,
0b100000,
0b111100,
0b100010,
0b011100,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b001000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b011100,
0b100010,
0b011100,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b011110,
0b000010,
0b011100,
0b000000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)), 60:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)), 61:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00000,
0b11110,
0b00000,
0b00000
)), 62:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)), 63:( 5, 0, 5, (
0b00000,
0b11100,
0b00010,
0b01100,
0b00000,
0b01000,
0b00000
)), 64:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100
)), 65:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b111100,
0b100010,
0b111100,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b100000,
0b100000,
0b011110,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000
)), 69:( 6, 0, 6, (
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b111110,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b100000,
0b000000
)), 71:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b101110,
0b100010,
0b011110,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)), 73:( 6, 0, 6, (
0b000000,
0b011100,
0b001000,
0b001000,
0b001000,
0b011100,
0b000000
)), 74:( 6, 0, 6, (
0b000000,
0b000010,
0b000010,
0b000010,
0b100010,
0b011100,
0b000000
)), 75:( 6, 0, 6, (
0b000000,
0b100010,
0b100100,
0b111000,
0b100100,
0b100010,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b100000,
0b100000,
0b100000,
0b100000,
0b111110,
0b000000
)), 77:( 6, 0, 6, (
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)), 78:( 6, 0, 6, (
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b000000
)), 79:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b111100,
0b100000,
0b100000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b100010,
0b101010,
0b011100,
0b000100
)), 82:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b111100,
0b100100,
0b100010,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100,
0b000000
)), 84:( 6, 0, 6, (
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)), 85:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b000000
)), 87:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b101010,
0b110110,
0b100010,
0b000000
)), 88:( 6, 0, 6, (
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b000000
)), 90:( 6, 0, 6, (
0b000000,
0b111110,
0b000100,
0b001000,
0b010000,
0b111110,
0b000000
)), 91:( 3, 0, 3, (
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110
)), 92:( 6, 0, 6, (
0b000000,
0b100000,
0b010000,
0b001000,
0b000100,
0b000010,
0b000000
)), 93:( 3, 0, 3, (
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110
)), 94:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000
)), 95:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)), 97:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b111100,
0b100010,
0b111100,
0b000000
)), 99:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b100000,
0b100000,
0b011110,
0b000000
)), 100:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b111110,
0b000000
)), 102:( 6, 0, 6, (
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b100000,
0b000000
)), 103:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b101110,
0b100010,
0b011110,
0b000000
)), 104:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)), 105:( 6, 0, 6, (
0b000000,
0b011100,
0b001000,
0b001000,
0b001000,
0b011100,
0b000000
)), 106:( 6, 0, 6, (
0b000000,
0b000010,
0b000010,
0b000010,
0b100010,
0b011100,
0b000000
)), 107:( 6, 0, 6, (
0b000000,
0b100010,
0b100100,
0b111000,
0b100100,
0b100010,
0b000000
)), 108:( 6, 0, 6, (
0b000000,
0b100000,
0b100000,
0b100000,
0b100000,
0b111110,
0b000000
)), 109:( 6, 0, 6, (
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)), 110:( 6, 0, 6, (
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b111100,
0b100000,
0b100000,
0b000000
)), 113:( 6, 0, 6, (
0b000000,
0b011100,
0b100010,
0b100010,
0b101010,
0b011100,
0b000100
)), 114:( 6, 0, 6, (
0b000000,
0b111100,
0b100010,
0b111100,
0b100100,
0b100010,
0b000000
)), 115:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100,
0b000000
)), 116:( 6, 0, 6, (
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b000000
)), 119:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b101010,
0b110110,
0b100010,
0b000000
)), 120:( 6, 0, 6, (
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b000000
)), 122:( 6, 0, 6, (
0b000000,
0b111110,
0b000100,
0b001000,
0b010000,
0b111110,
0b000000
)), 123:( 4, 0, 4, (
0b0010,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0010
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10
)), 125:( 4, 0, 4, (
0b1000,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b1000
)), 126:( 6, 0, 6, (
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)), 128:( 8, 0, 8, (
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 131:( 5, 0, 5, (
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b10000,
0b00000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 6, 0, 6, (
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b001000,
0b001000,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 9, 0, 9, (
0b011111110,
0b101011100,
0b101110100,
0b011101010,
0b110101010,
0b100010100,
0b000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100
)), 139:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)), 140:( 6, 0, 6, (
0b000000,
0b011110,
0b101000,
0b101110,
0b101000,
0b011110,
0b000000
)), 141:( 8, 0, 8, (
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)), 142:( 8, 0, 8, (
0b00111000,
0b01111100,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100
)), 143:( 8, 0, 8, (
0b01101100,
0b10111010,
0b10010010,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)), 144:( 8, 0, 8, (
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000
)), 145:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)), 150:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11111,
0b00000,
0b00000,
0b00000
)), 151:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11111,
0b00000,
0b00000,
0b00000
)), 152:( 6, 0, 6, (
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)), 153:( 9, 0, 9, (
0b000000000,
0b111110110,
0b010101010,
0b010100010,
0b000000000,
0b000000000,
0b000000000
)), 154:( 6, 0, 6, (
0b010100,
0b001000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100
)), 155:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000
)), 157:( 6, 0, 6, (
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)), 158:( 6, 0, 6, (
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)), 159:( 6, 0, 6, (
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000
)), 160:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10
)), 162:( 5, 0, 5, (
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b01110,
0b00100
)), 163:( 6, 0, 6, (
0b001100,
0b010000,
0b010000,
0b111100,
0b010000,
0b111000,
0b000110
)), 164:( 6, 0, 6, (
0b101010,
0b011100,
0b010100,
0b100010,
0b010100,
0b011100,
0b101010
)), 165:( 6, 0, 6, (
0b100010,
0b010100,
0b001000,
0b111110,
0b001000,
0b111110,
0b001000
)), 166:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000
)), 170:( 5, 0, 5, (
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000
)), 175:( 5, 0, 5, (
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 176:( 5, 0, 5, (
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)), 178:( 4, 0, 4, (
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000,
0b00000
)), 182:( 6, 0, 6, (
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000
)), 188:( 6, 0, 6, (
0b010010,
0b010100,
0b011010,
0b010110,
0b101110,
0b000010,
0b000000
)), 189:( 6, 0, 6, (
0b100010,
0b100100,
0b101100,
0b010010,
0b101100,
0b001110,
0b000000
)), 190:( 6, 0, 6, (
0b110010,
0b010100,
0b111010,
0b010110,
0b101110,
0b000010,
0b000000
)), 191:( 5, 0, 5, (
0b00000,
0b00100,
0b00000,
0b01100,
0b10000,
0b01110,
0b00000
)), 192:( 6, 0, 6, (
0b010000,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 195:( 6, 0, 6, (
0b001010,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 196:( 6, 0, 6, (
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 197:( 6, 0, 6, (
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 198:( 6, 0, 6, (
0b000000,
0b011110,
0b101000,
0b111110,
0b101000,
0b101110,
0b000000
)), 199:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b100000,
0b011110,
0b000010,
0b000100
)), 200:( 6, 0, 6, (
0b010000,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)), 201:( 6, 0, 6, (
0b000100,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)), 202:( 6, 0, 6, (
0b001000,
0b010100,
0b111110,
0b100000,
0b111000,
0b111110,
0b000000
)), 203:( 6, 0, 6, (
0b010100,
0b000000,
0b111110,
0b100000,
0b111000,
0b111110,
0b000000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b000
)), 206:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)), 207:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)), 208:( 6, 0, 6, (
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b011100,
0b000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b100010,
0b110010,
0b101010,
0b100110,
0b000000
)), 210:( 6, 0, 6, (
0b010000,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 214:( 6, 0, 6, (
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 215:( 5, 0, 5, (
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000
)), 216:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000
)), 217:( 6, 0, 6, (
0b010000,
0b001000,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 220:( 6, 0, 6, (
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b100010,
0b010100,
0b001000,
0b001000,
0b000000
)), 222:( 5, 0, 5, (
0b00000,
0b10000,
0b11100,
0b10010,
0b11100,
0b10000,
0b00000
)), 223:( 6, 0, 6, (
0b000000,
0b111000,
0b100100,
0b101100,
0b100010,
0b101100,
0b000000
)), 224:( 6, 0, 6, (
0b010000,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 225:( 6, 0, 6, (
0b000100,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 226:( 6, 0, 6, (
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 227:( 6, 0, 6, (
0b001010,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 228:( 6, 0, 6, (
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 229:( 6, 0, 6, (
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)), 230:( 6, 0, 6, (
0b000000,
0b110010,
0b001101,
0b011111,
0b101100,
0b111011,
0b000000
)), 231:( 6, 0, 6, (
0b000000,
0b011110,
0b100000,
0b100000,
0b011110,
0b000100,
0b011000
)), 232:( 6, 0, 6, (
0b010000,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)), 233:( 6, 0, 6, (
0b000100,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)), 234:( 6, 0, 6, (
0b001000,
0b010100,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)), 235:( 6, 0, 6, (
0b010100,
0b000000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)), 236:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b000
)), 237:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b000
)), 238:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)), 239:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)), 240:( 5, 0, 5, (
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 241:( 6, 0, 6, (
0b001010,
0b010100,
0b110010,
0b101010,
0b100110,
0b100010,
0b000000
)), 242:( 6, 0, 6, (
0b010000,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 243:( 6, 0, 6, (
0b000100,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 244:( 6, 0, 6, (
0b001000,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 245:( 6, 0, 6, (
0b001010,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 246:( 6, 0, 6, (
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)), 247:( 6, 0, 6, (
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000
)), 248:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000
)), 249:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 250:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 251:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)), 253:( 5, 0, 5, (
0b00100,
0b01000,
0b10010,
0b10010,
0b01100,
0b00100,
0b11000
)), 254:( 5, 0, 5, (
0b00000,
0b10000,
0b11100,
0b10010,
0b11100,
0b10000,
0b00000
)), 255:( 5, 0, 5, (
0b01010,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.24
FONTS['nicefont'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 19:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 20:( 10, 0, 10, (
0b0111100000,
0b1111110000,
0b1000010000,
0b1111110010,
0b0111100100,
0b0011001000,
0b0011000110,
0b0011001000,
0b0111000100,
0b0111000010,
0b0011000000
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 23:( 7, 0, 7, (
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0110000,
0b1001000,
0b1000000,
0b0100010,
0b1001100,
0b1000100,
0b0111000,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)), 63:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b100100,
0b100100,
0b111100,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b100000,
0b100000,
0b100000,
0b100010,
0b011100,
0b000000,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b001000,
0b010000,
0b100110,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)), 72:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0100010,
0b0100010,
0b0100010,
0b0111110,
0b1100010,
0b0100010,
0b0100010,
0b0000000,
0b0000000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100100,
0b101000,
0b111000,
0b100100,
0b100010,
0b100010,
0b000000,
0b000000
)), 76:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 77:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1000010,
0b1000110,
0b1101010,
0b1010010,
0b1000010,
0b1000010,
0b1000100,
0b0000000,
0b0000000
)), 78:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100000,
0b100000,
0b100000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b101010,
0b011100,
0b000010,
0b000000
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100100,
0b100010,
0b100010,
0b000000,
0b000000
)), 83:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)), 87:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1000100,
0b1000010,
0b1000010,
0b1010010,
0b1010010,
0b1011010,
0b1100100,
0b0000000,
0b0000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b01000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 100:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0000,
0b0011,
0b0100,
0b0110,
0b1100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b11100
)), 104:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11100,
0b10010,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 115:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01000,
0b01110,
0b11000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)), 120:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0100010000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01000,
0b00100,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000,
0b0000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0110001100,
0b1001010010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 158:( 7, 0, 7, (
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010010,
0b010000,
0b111100,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b00000000,
0b01000000,
0b01000100,
0b01001000,
0b01010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b01000000,
0b01000100,
0b01001000,
0b01010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001111,
0b00000010,
0b00000000,
0b00000000
)), 191:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)), 192:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b000100,
0b001010,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b001010,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b001100,
0b010010,
0b001100,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)), 198:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b01001000,
0b01111110,
0b11001000,
0b01001000,
0b01001110,
0b00000000,
0b00000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100010,
0b0111100,
0b0000000,
0b0000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 225:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 226:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 227:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 229:( 5, 0, 5, (
0b00100,
0b01010,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11111100,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 233:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 234:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 236:( 2, 0, 2, (
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 243:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 244:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 245:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 253:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.75
FONTS['nicefontbold'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 19:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 20:( 10, 0, 10, (
0b0111100000,
0b1111110000,
0b1000010000,
0b1111110010,
0b0111100100,
0b0011001000,
0b0011000110,
0b0011001000,
0b0111000100,
0b0111000010,
0b0011000000
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)), 37:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011001000,
0b101001000,
0b101011000,
0b110110110,
0b001101010,
0b001001010,
0b001001100,
0b000000000,
0b000000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b1100100,
0b0100000,
0b1110000,
0b1100110,
0b1100100,
0b0111000,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b001110,
0b010110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100110,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)), 65:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011010,
0b110000,
0b110000,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b110100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110110,
0b110010,
0b110010,
0b011110,
0b000000,
0b000000
)), 72:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0110110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b11001100,
0b00000000,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110,
0b000000
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11001100,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b11010,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1101100,
0b1101100,
0b0111100,
0b0001100,
0b1111000,
0b0000000
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100,
0b000000,
0b000000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b00110,
0b00000,
0b00000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111100,
0b011000,
0b000000,
0b000000
)), 119:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111100,
0b00000000,
0b00000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111100,
0b01100010,
0b11111000,
0b01100000,
0b11110000,
0b01100010,
0b00111100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0110010000,
0b1010010000,
0b1010100000,
0b1101011110,
0b0010101010,
0b0100101010,
0b0100111100,
0b0000000000,
0b0000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011100,
0b110010,
0b011000,
0b001100,
0b100110,
0b011100,
0b000000,
0b000000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)), 140:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000,
0b0000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0110001100,
0b1111011110,
0b1001110010,
0b1000100010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011010,
0b011000,
0b111100,
0b011000,
0b011000,
0b111000,
0b001110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01111100,
0b01101100,
0b11000110,
0b01101100,
0b01111100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10100010,
0b10111010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10110010,
0b10101010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000,
0b00000000
)), 188:( 8, 0, 8, (
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00110100,
0b01101100,
0b11011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00111100,
0b01100010,
0b11000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000011,
0b00100110,
0b11101100,
0b00011010,
0b00110110,
0b01101111,
0b00000010,
0b00000000,
0b00000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)), 192:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 193:( 7, 0, 7, (
0b0000100,
0b0001000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 194:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 195:( 7, 0, 7, (
0b0010100,
0b0101000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 196:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 197:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0001000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)), 198:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01101100,
0b01101100,
0b01111110,
0b11101100,
0b01101100,
0b01101110,
0b00000000,
0b00000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01110,
0b11000,
0b10000,
0b10000,
0b11010,
0b01110,
0b00100,
0b01000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 204:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b0110010,
0b0110010,
0b1111010,
0b0110010,
0b0110010,
0b0111100,
0b0000000,
0b0000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b111010,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01111100,
0b11001110,
0b11010110,
0b11100110,
0b01111100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b111100,
0b110010,
0b110010,
0b110010,
0b111100,
0b110000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b110100,
0b110100,
0b111100,
0b110010,
0b110010,
0b110010,
0b000100,
0b000000
)), 224:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11111100,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)), 239:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b010100,
0b101000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b11100,
0b11010,
0b11010,
0b11010,
0b11100,
0b11000,
0b11000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 17
#kernMax 0
#nDescent 0
#fRectWidth 17
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 6.16
FONTS['palmboldeu'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 11, 0, 11, (
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)), 34:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b111000,
0b011100,
0b001110,
0b001010,
0b111100,
0b001000,
0b000000
)), 37:( 13, 0, 13, (
0b0000000000000,
0b0000000000000,
0b0111000011000,
0b1101100110000,
0b1101101100000,
0b0111011011100,
0b0000110110110,
0b0001100110110,
0b0011000011100,
0b0000000000000,
0b0000000000000
)), 38:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001110000,
0b011011000,
0b001110000,
0b011110110,
0b110011100,
0b110011100,
0b011110110,
0b000000000,
0b000000000
)), 39:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 40:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01000,
0b11000,
0b11000,
0b11000,
0b01000,
0b01100,
0b00110,
0b00000
)), 41:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b00100,
0b00110,
0b00110,
0b00110,
0b00100,
0b01100,
0b11000,
0b00000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b000000,
0b000000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000010,
0b001100,
0b111000,
0b001100,
0b000010,
0b000000,
0b000000,
0b000000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100000,
0b011000,
0b000110,
0b011000,
0b100000,
0b000000,
0b000000,
0b000000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b000011,
0b000110,
0b001100,
0b001100,
0b000000,
0b001100,
0b000000,
0b000000
)), 64:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1100101100,
0b0110000000,
0b0011110000,
0b0000000000
)), 65:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 66:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)), 67:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000000,
0b000000
)), 68:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111000,
0b1101100,
0b1100110,
0b1100110,
0b1100110,
0b1101100,
0b1111000,
0b0000000,
0b0000000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 71:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111100,
0b01100000,
0b11000000,
0b11001110,
0b11000110,
0b01100110,
0b00111100,
0b00000000,
0b00000000
)), 72:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b11000110,
0b11111110,
0b11000110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)), 75:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1110000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 77:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110001110,
0b1110001110,
0b1011010110,
0b1011010110,
0b1001100110,
0b1001100110,
0b1001100110,
0b0000000000,
0b0000000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b1110010,
0b1111010,
0b1011110,
0b1001110,
0b1000110,
0b1000010,
0b0000000,
0b0000000
)), 79:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 80:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 81:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00001110,
0b00000000
)), 82:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11111000,
0b11001100,
0b11001100,
0b11111000,
0b11011000,
0b11001100,
0b11001110,
0b00000000,
0b00000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)), 86:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b01100100,
0b01101100,
0b01101000,
0b00111000,
0b00111000,
0b00000000,
0b00000000
)), 87:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b11001100110,
0b11001100100,
0b01101101100,
0b01101101100,
0b01110111000,
0b00110011000,
0b00110011000,
0b00000000000,
0b00000000000
)), 88:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b1110110,
0b0111100,
0b0011000,
0b0111100,
0b1101110,
0b1000110,
0b0000000,
0b0000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1111110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0001110,
0b0011100,
0b0111000,
0b1110000,
0b1100000,
0b1111110,
0b0000000,
0b0000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000,
0b000000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b010100,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110011,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111011100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 116:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b011100,
0b000000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111110,
0b011001100,
0b000000000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 17, 0, 17, (
0b00000000000000000,
0b00000000000000000,
0b01110000100000000,
0b11011001100000000,
0b11011011000000000,
0b01110110111011100,
0b00001101101110110,
0b00011001101110110,
0b00110000111011100,
0b00000000000000000,
0b00000000000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 140:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 156:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)), 157:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)), 163:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000,
0b0000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 167:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)), 188:( 9, 0, 9, (
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)), 189:( 9, 0, 9, (
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)), 190:( 9, 0, 9, (
0b000000000,
0b111000000,
0b011001100,
0b011011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)), 192:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 193:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 194:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 195:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 196:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 197:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 198:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b001000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)), 209:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b1100010,
0b1110010,
0b1111010,
0b1011110,
0b1001110,
0b1000110,
0b0000000,
0b0000000
)), 210:( 8, 0, 8, (
0b00010000,
0b00001000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 211:( 8, 0, 8, (
0b00001000,
0b00010000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 212:( 8, 0, 8, (
0b00010000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 213:( 8, 0, 8, (
0b00110100,
0b01011000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 214:( 8, 0, 8, (
0b00000000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 7, 0, 7, (
0b0001000,
0b0000100,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)), 218:( 7, 0, 7, (
0b0000100,
0b0001000,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)), 219:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111110,
0b0000000,
0b0000000
)), 220:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)), 223:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)), 224:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b000100,
0b001010,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b001010,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001100,
0b010010,
0b001100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 249:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.26
FONTS['palmnormeu'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 11, 0, 11, (
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b101000,
0b011100,
0b001010,
0b001010,
0b111100,
0b001000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 60:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000010,
0b001100,
0b110000,
0b001100,
0b000010,
0b000000,
0b000000,
0b000000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100000,
0b011000,
0b000110,
0b011000,
0b100000,
0b000000,
0b000000,
0b000000
)), 63:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000,
0b00000000
)), 65:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 66:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00000,
0b00000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b100010,
0b100100,
0b111000,
0b000000,
0b000000
)), 69:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 70:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b010000,
0b100000,
0b100110,
0b100010,
0b010010,
0b001110,
0b000000,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100100,
0b101000,
0b110000,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)), 76:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b10101010,
0b10101010,
0b10101010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 78:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 80:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 81:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000110,
0b0000000
)), 82:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b10010010,
0b10101010,
0b10101010,
0b01000100,
0b01000100,
0b01000100,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b010100,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)), 100:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b01100
)), 104:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 115:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 116:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000,
0b0000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10001,
0b01010,
0b01010,
0b00100,
0b00100,
0b00000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)), 122:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 131:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111110,
0b000000,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)), 191:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b00100,
0b01000,
0b10000,
0b01110,
0b00000,
0b00000
)), 192:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 193:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 194:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 195:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 196:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 197:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 201:( 4, 0, 4, (
0b0100,
0b1000,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 203:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)), 210:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 211:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 212:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 213:( 7, 0, 7, (
0b0010100,
0b0101000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 214:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 5, 0, 5, (
0b00000,
0b00100,
0b00010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 225:( 5, 0, 5, (
0b00000,
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 226:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 227:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 229:( 5, 0, 5, (
0b00100,
0b01010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 233:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 234:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 236:( 2, 0, 2, (
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 243:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 244:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 245:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.05
FONTS['pda'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 10, 0, 10, (
0b0111100000,
0b1111110000,
0b1000010010,
0b1111110100,
0b0111101000,
0b0011000000,
0b0011001010,
0b0011000000,
0b0111001000,
0b0111000100,
0b0011000010
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 23:( 7, 0, 7, (
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b11010110,
0b00101010,
0b01001010,
0b01001100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0110000,
0b1011010,
0b1001100,
0b1110110,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)), 41:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b11110,
0b00010,
0b00010,
0b11110,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00010,
0b00010,
0b11110,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11110,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b11110,
0b00000,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b010,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100,
0b000
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)), 63:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b00000,
0b01000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10011010,
0b10101010,
0b10111100,
0b11000000,
0b01111110,
0b00000000,
0b00000000
)), 65:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 66:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 68:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 71:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10110,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 72:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 75:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 76:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 77:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b101010,
0b101010,
0b101010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 78:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 79:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 80:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 81:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10110,
0b11100,
0b00010,
0b00000
)), 82:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b11100,
0b00000,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 86:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 87:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b101010,
0b110110,
0b000000,
0b000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)), 100:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b11100
)), 104:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11100,
0b10010,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b11110,
0b00010,
0b11100,
0b00000,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b111100,
0b000000,
0b000000
)), 120:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)), 128:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011100,
0b0100010,
0b1111000,
0b0100000,
0b1110000,
0b0100010,
0b0011100,
0b0000000,
0b0000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0111110000,
0b1010010000,
0b1010100000,
0b1101011110,
0b0010101010,
0b0100101010,
0b0100111100,
0b0000000000,
0b0000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0110001100,
0b1001010010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 158:( 7, 0, 7, (
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010000,
0b010000,
0b111000,
0b010000,
0b010000,
0b110000,
0b001110,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b11110,
0b10010,
0b11000,
0b10100,
0b10010,
0b01010,
0b00110,
0b10010,
0b11110,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10100010,
0b10111010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10110010,
0b10101010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 7, 0, 7, (
0b0100000,
0b0100000,
0b0100010,
0b0100100,
0b0101010,
0b0010110,
0b0101010,
0b1001110,
0b0000010,
0b0000010,
0b0000000
)), 189:( 7, 0, 7, (
0b0100000,
0b0100000,
0b0100010,
0b0100100,
0b0101000,
0b0011110,
0b0100010,
0b1001110,
0b0001000,
0b0001110,
0b0000000
)), 190:( 7, 0, 7, (
0b1110000,
0b0010000,
0b0110010,
0b0010100,
0b1111000,
0b0011010,
0b0101010,
0b1001110,
0b0000010,
0b0000010,
0b0000000
)), 191:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01100,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)), 192:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 193:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 194:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 195:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 196:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 197:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b010010,
0b010010,
0b111010,
0b010010,
0b010010,
0b011110,
0b000000,
0b000000
)), 209:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)), 210:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 211:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 212:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 213:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 214:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 218:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 219:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 220:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)), 225:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)), 226:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)), 227:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)), 229:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11110100,
0b10011000,
0b11111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 233:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 234:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)), 236:( 2, 0, 2, (
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 243:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 244:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 245:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 253:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.75
FONTS['pdabold'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 10, 0, 10, (
0b0111100000,
0b1111110000,
0b1000010010,
0b1111110100,
0b0111101000,
0b0011000000,
0b0011001010,
0b0011000000,
0b0111001000,
0b0111000100,
0b0011000010
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 23:( 7, 0, 7, (
0b0000000,
0b0011000,
0b0110100,
0b0110100,
0b0110100,
0b0011000,
0b0110100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b000,
0b000
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b11010110,
0b00101010,
0b01001010,
0b01001100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0110000,
0b1011010,
0b1001100,
0b1110110,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0100,
0b0010,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0100,
0b1000,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b011110,
0b000110,
0b000110,
0b111110,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000110,
0b000110,
0b111110,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110,
0b111110,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100,
0b000
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b011000,
0b000000,
0b000000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10011010,
0b10101010,
0b10111100,
0b11000000,
0b01111110,
0b00000000,
0b00000000
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 67:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 69:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 71:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 72:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)), 75:( 6, 0, 6, (
0b000000,
0b000000,
0b110010,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110010,
0b000000,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 79:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110100,
0b111110,
0b000110,
0b000010
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111100,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)), 93:( 4, 0, 4, (
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b111100
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111111100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 116:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)), 119:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1101010,
0b1101010,
0b1101010,
0b1101010,
0b1111100,
0b0000000,
0b0000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b111000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)), 123:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1011100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111100,
0b01100010,
0b11111000,
0b01100000,
0b11110000,
0b01100010,
0b00111100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b111100,
0b011000,
0b011000,
0b011000,
0b110000,
0b100000,
0b000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b000000,
0b000000
)), 134:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000
)), 135:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b1111110,
0b0011000,
0b0011000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b01111110000,
0b10100100000,
0b10101000000,
0b11010110110,
0b00101011010,
0b01001011010,
0b01001101100,
0b00000000000,
0b00000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b11100,
0b01110,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 140:( 9, 0, 9, (
0b000000000,
0b000000000,
0b001111110,
0b011011000,
0b110011000,
0b110011110,
0b110011000,
0b011011000,
0b001111110,
0b000000000,
0b000000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0110001100,
0b1111011110,
0b1001110010,
0b1000100010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1011100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 156:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110010,
0b1101110100,
0b1101111000,
0b0111011110,
0b0000000000,
0b0000000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 158:( 7, 0, 7, (
0b0000000,
0b0011000,
0b0110100,
0b0110100,
0b0110100,
0b0011000,
0b0110100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 162:( 5, 0, 5, (
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000,
0b00000
)), 163:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111000,
0b0110000,
0b0110000,
0b1111000,
0b0011110,
0b0000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 167:( 5, 0, 5, (
0b00000,
0b11110,
0b10010,
0b11000,
0b10100,
0b10010,
0b01010,
0b00110,
0b10010,
0b11110,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10100010,
0b10111010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10110010,
0b10101010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)), 188:( 8, 0, 8, (
0b01100000,
0b11100000,
0b01100100,
0b01101000,
0b01110100,
0b00101100,
0b01010100,
0b10111110,
0b00001100,
0b00001100,
0b00000000
)), 189:( 8, 0, 8, (
0b01100000,
0b11100000,
0b01100100,
0b01101000,
0b01110000,
0b00111100,
0b01000110,
0b10001100,
0b00011000,
0b00011110,
0b00000000
)), 190:( 8, 0, 8, (
0b11100000,
0b00100000,
0b11100100,
0b00101000,
0b11110100,
0b00101100,
0b01010100,
0b10111110,
0b00001100,
0b00001100,
0b00000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)), 192:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1101100,
0b1101100,
0b1111110,
0b1101100,
0b1101100,
0b1101110,
0b0000000,
0b0000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b011000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 201:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)), 207:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b01100100,
0b01100110,
0b11110110,
0b01100110,
0b01100110,
0b01111100,
0b00000000,
0b00000000
)), 209:( 7, 0, 7, (
0b0010100,
0b0101000,
0b0000000,
0b1100110,
0b1110110,
0b1110110,
0b1101110,
0b1101110,
0b1100110,
0b0000000,
0b0000000
)), 210:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b111100,
0b110010,
0b110010,
0b110010,
0b111100,
0b110000,
0b000000,
0b000000
)), 223:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b1001100,
0b1001100,
0b1011100,
0b1000110,
0b1000110,
0b1011100,
0b0000000,
0b0000000
)), 224:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b010100,
0b101000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001100,
0b010010,
0b001100,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111100,
0b110111000,
0b111101110,
0b000000000,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b111000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 249:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b111000
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b111000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.36
FONTS['script'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 11, 0, 11, (
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b010,
0b000,
0b000
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b101000,
0b011100,
0b001010,
0b001010,
0b111100,
0b001000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b0010,
0b0100,
0b0000
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000
)), 59:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0000,
0b0000,
0b0010,
0b0010,
0b0100,
0b0000
)), 60:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000110,
0b011000,
0b100000,
0b011000,
0b000110,
0b000000,
0b000000,
0b000000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b001100,
0b000010,
0b001100,
0b110000,
0b000000,
0b000000,
0b000000
)), 63:( 5, 0, 5, (
0b00000,
0b00000,
0b11100,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000,
0b00000000
)), 65:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b010010,
0b110010,
0b011100,
0b010010,
0b010001,
0b011110,
0b000000,
0b000000
)), 67:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b10000,
0b10001,
0b01110,
0b00000,
0b00000
)), 68:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b111010,
0b100111,
0b111100,
0b000000,
0b000000
)), 69:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b01100,
0b10000,
0b10001,
0b01110,
0b00000,
0b00000
)), 70:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 71:( 7, 0, 7, (
0b0000000,
0b0000010,
0b1000110,
0b1111010,
0b0100010,
0b0100010,
0b1111010,
0b1000111,
0b0111100,
0b0000000,
0b0000000
)), 72:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0100010,
0b0100010,
0b0100010,
0b0111110,
0b1100010,
0b0100010,
0b0100010,
0b0000000,
0b0000000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01010,
0b10010,
0b10010,
0b11010,
0b00101,
0b00110,
0b01010,
0b01100
)), 75:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b11100,
0b10010,
0b10001,
0b00000,
0b00000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b001100,
0b010100,
0b011000,
0b110000,
0b010000,
0b010001,
0b111110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10100110,
0b11011010,
0b10010010,
0b10010010,
0b10010010,
0b10010011,
0b10010010,
0b00000000,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0101000,
0b0110100,
0b0100100,
0b1100100,
0b0100100,
0b0100101,
0b0100010,
0b0000000,
0b0000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0001100,
0b0010110,
0b1111010,
0b0100010,
0b0100010,
0b0100010,
0b0011100,
0b0000000,
0b0000000
)), 80:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b010010,
0b110010,
0b011100,
0b010000,
0b010000,
0b010000,
0b000000,
0b000000
)), 81:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b1000100,
0b0000100,
0b0100100,
0b1011000,
0b1011001,
0b0100110,
0b0000000,
0b0000000
)), 82:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b010010,
0b110010,
0b011100,
0b010010,
0b010010,
0b010001,
0b000000,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b100010,
0b100000,
0b011100,
0b000010,
0b100010,
0b011100,
0b000000,
0b000000
)), 84:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b101000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10000100,
0b10000010,
0b10010010,
0b10010010,
0b10010010,
0b10101010,
0b01000100,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b100010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 98:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)), 100:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)), 101:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01010,
0b01010,
0b01010,
0b01100,
0b11010,
0b01011,
0b01010,
0b00100
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b11011,
0b00110,
0b01010,
0b01100
)), 104:( 5, 0, 5, (
0b00000,
0b01000,
0b10100,
0b10000,
0b10100,
0b11010,
0b10010,
0b10011,
0b10010,
0b00000,
0b00000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b100,
0b000,
0b100,
0b100,
0b100,
0b101,
0b010,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0110,
0b1011,
0b1010,
0b1010,
0b0100
)), 107:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b11100,
0b10101,
0b10010,
0b00000,
0b00000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b101,
0b010,
0b000,
0b000
)), 109:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b010100,
0b101010,
0b101010,
0b101011,
0b101010,
0b000000,
0b000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10100,
0b11010,
0b10010,
0b10011,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10011,
0b11100,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10011,
0b01110,
0b00010,
0b00010
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10100,
0b10100,
0b10101,
0b00010,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00100,
0b00100,
0b01010,
0b10011,
0b11110,
0b00000,
0b00000
)), 116:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)), 118:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10011,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101011,
0b010100,
0b010100,
0b000000,
0b000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b001000,
0b010101,
0b100010,
0b000000,
0b000000
)), 121:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b10010,
0b11100
)), 122:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b1100,
0b0010,
0b0111,
0b1010,
0b1100
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100,
0b000
)), 131:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111110,
0b000000,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 9, 0, 9, (
0b000000000,
0b111000000,
0b010000100,
0b001001000,
0b111010000,
0b000100100,
0b001001100,
0b010011110,
0b000000100,
0b000000000,
0b000000000
)), 191:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b00100,
0b01000,
0b10000,
0b01110,
0b00000,
0b00000
)), 192:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 193:( 6, 0, 6, (
0b001000,
0b010000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 194:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 195:( 6, 0, 6, (
0b010100,
0b101000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 196:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 197:( 6, 0, 6, (
0b011000,
0b100100,
0b011000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)), 201:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)), 203:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b001000,
0b110100,
0b100100,
0b100100,
0b100101,
0b100010,
0b000000,
0b000000
)), 210:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b001100,
0b110110,
0b011010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)), 211:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)), 212:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)), 213:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)), 214:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b001010,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001000,
0b010100,
0b001000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 4, 0, 4, (
0b0000,
0b0100,
0b0010,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)), 233:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)), 234:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)), 235:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)), 236:( 2, 0, 2, (
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)), 243:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)), 244:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)), 245:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)), 253:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b10010,
0b11100
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b10010,
0b11100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 6.05
FONTS['squat11pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000,
0b000000000
)), 21:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)), 34:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000,
0b000000
)), 37:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000,
0b000000000
)), 38:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000,
0b00000000
)), 39:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)), 40:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110,
0b00000
)), 41:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000,
0b00000
)), 42:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)), 64:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1100101100,
0b0110000000,
0b0011110000,
0b0000000000
)), 65:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 66:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)), 67:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1100000,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 68:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)), 69:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)), 71:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1101110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 72:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 73:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)), 75:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)), 76:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 80:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 81:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1101110,
0b0111100,
0b0000110,
0b0000000
)), 82:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)), 83:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 85:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 86:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b01101100,
0b01101100,
0b00111000,
0b00111000,
0b00000000,
0b00000000
)), 87:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b011001100,
0b011001100,
0b000000000,
0b000000000
)), 88:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b0111100,
0b0011000,
0b0111100,
0b1100110,
0b1000010,
0b0000000,
0b0000000
)), 89:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 90:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)), 91:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)), 92:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000,
0b000000
)), 93:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 102:( 5, 0, 5, (
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)), 103:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b1101100,
0b0111000,
0b0001100,
0b1100100,
0b0111000
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 106:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110011,
0b000000,
0b000000
)), 108:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 116:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b011100,
0b000000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b011111100,
0b011001100,
0b000000000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)), 123:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01100,
0b01000,
0b11000,
0b11000,
0b01000,
0b01100,
0b00110,
0b00000
)), 124:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b01100,
0b00100,
0b00110,
0b00110,
0b00100,
0b01100,
0b11000,
0b00000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)), 135:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b01000010000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b10000100100,
0b00000000000,
0b00000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)), 139:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)), 140:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0000000000,
0b0001110000,
0b0011111000,
0b0001110000,
0b0110101100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)), 155:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)), 156:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)), 159:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)), 163:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000,
0b0000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)), 165:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 167:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111010,
0b110000,
0b110000
)), 182:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)), 188:( 9, 0, 9, (
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)), 189:( 9, 0, 9, (
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)), 190:( 9, 0, 9, (
0b000000000,
0b111000000,
0b011001100,
0b011011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)), 192:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 193:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 194:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 195:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 196:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 197:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 198:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)), 199:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b001000
)), 200:( 6, 0, 6, (
0b010000,
0b001000,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 201:( 6, 0, 6, (
0b001000,
0b010000,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 202:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 203:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 208:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b01111000,
0b01100100,
0b11110110,
0b01100110,
0b01100100,
0b01111000,
0b00000000,
0b00000000
)), 209:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)), 210:( 8, 0, 8, (
0b00010000,
0b00001000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 211:( 8, 0, 8, (
0b00001000,
0b00010000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 212:( 8, 0, 8, (
0b00010000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 213:( 8, 0, 8, (
0b00110100,
0b01011000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 214:( 8, 0, 8, (
0b00000000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 218:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 219:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 220:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)), 222:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)), 223:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)), 224:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 225:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 226:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 227:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 228:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 229:( 6, 0, 6, (
0b001100,
0b010010,
0b001100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)), 232:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 233:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 234:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 235:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 237:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)), 240:( 6, 0, 6, (
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 241:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)), 242:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 243:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 244:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 245:( 6, 0, 6, (
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 246:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)), 249:( 6, 0, 6, (
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 250:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 251:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 252:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)), 254:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 8
#ascent 6
#descent 2
#leading 0
#averageWidth 5.87
FONTS['squat8pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)), 22:( 8, 0, 8, (
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000
)), 34:( 6, 0, 6, (
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 6, 0, 6, (
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)), 37:( 9, 0, 9, (
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000
)), 38:( 8, 0, 8, (
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000
)), 39:( 3, 0, 3, (
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)), 40:( 5, 0, 5, (
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110
)), 41:( 5, 0, 5, (
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000
)), 42:( 6, 0, 6, (
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000
)), 64:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000
)), 65:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)), 69:( 6, 0, 6, (
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000
)), 71:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b110010,
0b011110,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000
)), 73:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000
)), 75:( 6, 0, 6, (
0b000000,
0b110010,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000
)), 80:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)), 82:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)), 87:( 9, 0, 9, (
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b011001100,
0b011001100,
0b000000000
)), 88:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)), 90:( 5, 0, 5, (
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11000,
0b11110,
0b00000
)), 91:( 4, 0, 4, (
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110
)), 92:( 6, 0, 6, (
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000
)), 93:( 4, 0, 4, (
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110
)), 94:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000
)), 98:( 6, 0, 6, (
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)), 99:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000
)), 100:( 6, 0, 6, (
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000
)), 102:( 5, 0, 5, (
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)), 104:( 6, 0, 6, (
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000
)), 105:( 3, 0, 3, (
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 106:( 4, 0, 4, (
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)), 107:( 6, 0, 6, (
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000
)), 108:( 3, 0, 3, (
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 109:( 9, 0, 9, (
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110
)), 114:( 5, 0, 5, (
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000
)), 115:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000
)), 116:( 6, 0, 6, (
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b011111100,
0b001001000,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000
)), 123:( 5, 0, 5, (
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110
)), 124:( 3, 0, 3, (
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)), 128:( 9, 0, 9, (
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)), 131:( 7, 0, 7, (
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b0110000,
0b1100000,
0b0000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 5, 0, 5, (
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)), 135:( 5, 0, 5, (
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100,
0b00000
)), 136:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0100001000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b1000010100,
0b0000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100
)), 139:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)), 140:( 10, 0, 10, (
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000
)), 141:( 8, 0, 8, (
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)), 142:( 8, 0, 8, (
0b00111000,
0b00111000,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100,
0b00000000
)), 143:( 8, 0, 8, (
0b01101100,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)), 144:( 8, 0, 8, (
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100
)), 145:( 3, 0, 3, (
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100
)), 155:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)), 156:( 8, 0, 8, (
0b00000000,
0b01101100,
0b10111010,
0b10111110,
0b10111000,
0b01101100,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 159:( 7, 0, 7, (
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100
)), 163:( 7, 0, 7, (
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000
)), 164:( 8, 0, 8, (
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000
)), 165:( 7, 0, 7, (
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110
)), 167:( 6, 0, 6, (
0b001100,
0b110010,
0b011000,
0b010100,
0b001100,
0b100110,
0b011000,
0b000000
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 6, 0, 6, (
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)), 182:( 7, 0, 7, (
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0000
)), 185:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000
)), 188:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110110100,
0b001101100,
0b011011110,
0b110000100,
0b000000000
)), 189:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110111100,
0b001100010,
0b011000100,
0b110001110,
0b000000000
)), 190:( 9, 0, 9, (
0b111000000,
0b011001100,
0b011011000,
0b111110100,
0b001101100,
0b011011110,
0b110001100,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000
)), 192:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 193:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 194:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 195:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 196:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 197:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 198:( 9, 0, 9, (
0b000000000,
0b011111110,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000
)), 199:( 6, 0, 6, (
0b000000,
0b001100,
0b011000,
0b110000,
0b110000,
0b011000,
0b001100,
0b000000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)), 201:( 6, 0, 6, (
0b001000,
0b010000,
0b000000,
0b111100,
0b110000,
0b111000,
0b110000,
0b111100
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11110
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 208:( 8, 0, 8, (
0b00000000,
0b01111000,
0b01100100,
0b11110110,
0b01100110,
0b01100100,
0b01111000,
0b00000000
)), 209:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110
)), 210:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 211:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 212:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 213:( 7, 0, 7, (
0b0011010,
0b0101100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 214:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000
)), 217:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 218:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 219:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 220:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000
)), 222:( 7, 0, 7, (
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000
)), 223:( 8, 0, 8, (
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000
)), 224:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 225:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 226:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 227:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 228:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 229:( 6, 0, 6, (
0b001100,
0b010010,
0b001100,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00010,
0b00100
)), 232:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 233:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 234:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 235:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 236:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 237:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 238:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 240:( 6, 0, 6, (
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 241:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110
)), 242:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 243:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 244:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 245:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 246:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000
)), 249:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 250:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 251:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 252:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 253:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)), 254:( 6, 0, 6, (
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000
)), 255:( 6, 0, 6, (
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 8
#ascent 7
#descent 1
#leading 0
#averageWidth 5.89
FONTS['squatcaps8pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)), 22:( 8, 0, 8, (
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000
)), 34:( 6, 0, 6, (
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 35:( 6, 0, 6, (
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)), 37:( 9, 0, 9, (
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000
)), 38:( 8, 0, 8, (
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000
)), 39:( 3, 0, 3, (
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)), 40:( 5, 0, 5, (
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110
)), 41:( 5, 0, 5, (
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000
)), 42:( 6, 0, 6, (
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)), 45:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 46:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)), 47:( 5, 0, 5, (
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000
)), 48:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 49:( 6, 0, 6, (
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000
)), 50:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000
)), 51:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000
)), 52:( 6, 0, 6, (
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000
)), 53:( 6, 0, 6, (
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000
)), 54:( 6, 0, 6, (
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000
)), 55:( 6, 0, 6, (
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000
)), 56:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 57:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000
)), 58:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000,
0b000
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100
)), 60:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)), 62:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)), 63:( 6, 0, 6, (
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000
)), 64:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000
)), 65:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 66:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000
)), 67:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000
)), 68:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)), 69:( 6, 0, 6, (
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000
)), 70:( 6, 0, 6, (
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000
)), 71:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b110010,
0b011110,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000
)), 73:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 74:( 5, 0, 5, (
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000
)), 75:( 6, 0, 6, (
0b000000,
0b110010,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000
)), 76:( 6, 0, 6, (
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000
)), 77:( 8, 0, 8, (
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000
)), 78:( 7, 0, 7, (
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000
)), 80:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)), 81:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)), 82:( 6, 0, 6, (
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b000000
)), 83:( 6, 0, 6, (
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000
)), 84:( 7, 0, 7, (
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)), 85:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)), 87:( 9, 0, 9, (
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b011001100,
0b011001100,
0b000000000
)), 88:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000
)), 89:( 7, 0, 7, (
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)), 90:( 5, 0, 5, (
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11000,
0b11110,
0b00000
)), 91:( 4, 0, 4, (
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110
)), 92:( 6, 0, 6, (
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000
)), 93:( 4, 0, 4, (
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110
)), 94:( 6, 0, 6, (
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000
)), 95:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 96:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000
)), 97:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 98:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b111100,
0b000000
)), 99:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b011100,
0b000000
)), 100:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)), 101:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)), 102:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b000000
)), 103:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b110110,
0b110110,
0b111110,
0b000000
)), 104:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)), 105:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 106:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b10110,
0b11100,
0b00000
)), 107:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b111100,
0b111000,
0b110100,
0b110110,
0b000000
)), 108:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000
)), 109:( 7, 0, 7, (
0b0000000,
0b0000000,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000
)), 110:( 6, 0, 6, (
0b000000,
0b000000,
0b100110,
0b110110,
0b111110,
0b110110,
0b110010,
0b000000
)), 111:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)), 112:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)), 113:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)), 114:( 6, 0, 6, (
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b111000,
0b110110,
0b000000
)), 115:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b110000,
0b111110,
0b000110,
0b111100,
0b000000
)), 116:( 6, 0, 6, (
0b000000,
0b000000,
0b111110,
0b011000,
0b011000,
0b011000,
0b011000,
0b000000
)), 117:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)), 119:( 9, 0, 9, (
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b011111100,
0b011001100,
0b000000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)), 122:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000
)), 123:( 5, 0, 5, (
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110
)), 124:( 3, 0, 3, (
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)), 125:( 5, 0, 5, (
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)), 128:( 9, 0, 9, (
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)), 131:( 7, 0, 7, (
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b0110000,
0b1100000,
0b0000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 5, 0, 5, (
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)), 135:( 5, 0, 5, (
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100,
0b00000
)), 136:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 10, 0, 10, (
0b0100001000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b1000010100,
0b0000000000
)), 138:( 6, 0, 6, (
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100
)), 139:( 5, 0, 5, (
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)), 140:( 10, 0, 10, (
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000
)), 141:( 8, 0, 8, (
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)), 142:( 8, 0, 8, (
0b00111000,
0b00111000,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100,
0b00000000
)), 143:( 8, 0, 8, (
0b01101100,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)), 144:( 8, 0, 8, (
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100
)), 145:( 3, 0, 3, (
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100
)), 155:( 5, 0, 5, (
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)), 156:( 8, 0, 8, (
0b00000000,
0b01101100,
0b10111010,
0b10111110,
0b10111000,
0b01101100,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)), 159:( 7, 0, 7, (
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)), 162:( 6, 0, 6, (
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100
)), 163:( 7, 0, 7, (
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000
)), 164:( 8, 0, 8, (
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000
)), 165:( 7, 0, 7, (
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000
)), 166:( 3, 0, 3, (
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110
)), 167:( 6, 0, 6, (
0b001100,
0b110010,
0b011000,
0b010100,
0b001100,
0b100110,
0b011000,
0b000000
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 6, 0, 6, (
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 171:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)), 173:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 174:( 8, 0, 8, (
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)), 180:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 181:( 6, 0, 6, (
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)), 182:( 7, 0, 7, (
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0000
)), 185:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 6, 0, 6, (
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000
)), 187:( 8, 0, 8, (
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000
)), 188:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110110100,
0b001101100,
0b011011110,
0b110000100,
0b000000000
)), 189:( 9, 0, 9, (
0b110000000,
0b110001100,
0b110011000,
0b110111100,
0b001100010,
0b011000100,
0b110001110,
0b000000000
)), 190:( 9, 0, 9, (
0b111000000,
0b011001100,
0b011011000,
0b111110100,
0b001101100,
0b011011110,
0b110001100,
0b000000000
)), 191:( 6, 0, 6, (
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000
)), 192:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 193:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 194:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 195:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 196:( 7, 0, 7, (
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 197:( 7, 0, 7, (
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)), 198:( 9, 0, 9, (
0b000000000,
0b011111110,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000
)), 199:( 6, 0, 6, (
0b000000,
0b001100,
0b011000,
0b110000,
0b110000,
0b011000,
0b001100,
0b000000
)), 200:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)), 201:( 6, 0, 6, (
0b001000,
0b010000,
0b000000,
0b111100,
0b110000,
0b111000,
0b110000,
0b111100
)), 202:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)), 203:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11110
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 205:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 208:( 8, 0, 8, (
0b00000000,
0b01111000,
0b01100100,
0b11110110,
0b01100110,
0b01100100,
0b01111000,
0b00000000
)), 209:( 7, 0, 7, (
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110
)), 210:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 211:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 212:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 213:( 7, 0, 7, (
0b0011010,
0b0101100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 214:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 215:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)), 216:( 8, 0, 8, (
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000
)), 217:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 218:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 219:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 220:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)), 221:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000
)), 222:( 7, 0, 7, (
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000
)), 223:( 8, 0, 8, (
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000
)), 224:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 225:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 226:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 227:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 228:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 229:( 6, 0, 6, (
0b001100,
0b010010,
0b001100,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)), 230:( 9, 0, 9, (
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000
)), 231:( 5, 0, 5, (
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00010,
0b00100
)), 232:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 233:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 234:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 235:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)), 236:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 237:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 238:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)), 240:( 6, 0, 6, (
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)), 241:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110
)), 242:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 243:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 244:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 245:( 6, 0, 6, (
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 246:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)), 247:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000
)), 248:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000
)), 249:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 250:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 251:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 252:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)), 253:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)), 254:( 6, 0, 6, (
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000
)), 255:( 6, 0, 6, (
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.23
FONTS['tallfont'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 22:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)), 23:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)), 36:( 6, 0, 6, (
0b000000,
0b001000,
0b011110,
0b101000,
0b101000,
0b011100,
0b001010,
0b001010,
0b111100,
0b001000,
0b000000
)), 37:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)), 38:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)), 41:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)), 42:( 6, 0, 6, (
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 43:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 47:( 5, 0, 5, (
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)), 48:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 49:( 5, 0, 5, (
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)), 50:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)), 51:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)), 52:( 5, 0, 5, (
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)), 53:( 5, 0, 5, (
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 54:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 55:( 5, 0, 5, (
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)), 56:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 57:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 60:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000010,
0b001100,
0b110000,
0b001100,
0b000010,
0b000000,
0b000000,
0b000000
)), 61:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)), 62:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100000,
0b011000,
0b000110,
0b011000,
0b100000,
0b000000,
0b000000,
0b000000
)), 63:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)), 64:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000,
0b00000000
)), 65:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 66:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 67:( 5, 0, 5, (
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00000,
0b00000
)), 68:( 6, 0, 6, (
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b100010,
0b100010,
0b100100,
0b111000,
0b000000,
0b000000
)), 69:( 4, 0, 4, (
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 70:( 4, 0, 4, (
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 71:( 6, 0, 6, (
0b000000,
0b001110,
0b010000,
0b100000,
0b100110,
0b100010,
0b100010,
0b010010,
0b001110,
0b000000,
0b000000
)), 72:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 73:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 4, 0, 4, (
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 75:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100100,
0b101000,
0b110000,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)), 76:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)), 77:( 8, 0, 8, (
0b00000000,
0b10000010,
0b11000110,
0b11000110,
0b10101010,
0b10101010,
0b10101010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 78:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)), 79:( 7, 0, 7, (
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 80:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)), 81:( 7, 0, 7, (
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000110,
0b0000000
)), 82:( 5, 0, 5, (
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)), 83:( 5, 0, 5, (
0b00000,
0b01110,
0b10000,
0b10000,
0b01000,
0b00100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 84:( 6, 0, 6, (
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 85:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 86:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)), 87:( 8, 0, 8, (
0b00000000,
0b10000010,
0b10010010,
0b10010010,
0b10101010,
0b10101010,
0b01000100,
0b01000100,
0b01000100,
0b00000000,
0b00000000
)), 88:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)), 89:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 90:( 6, 0, 6, (
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b010100,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 98:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)), 100:( 5, 0, 5, (
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 101:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 102:( 4, 0, 4, (
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 103:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b01100
)), 104:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 105:( 2, 0, 2, (
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)), 107:( 5, 0, 5, (
0b00000,
0b10000,
0b10000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)), 108:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)), 110:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 111:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 112:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 113:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 115:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 116:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000,
0b0000
)), 117:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 118:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)), 120:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000
)), 121:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)), 122:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 128:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)), 131:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)), 135:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 11, 0, 11, (
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)), 138:( 5, 0, 5, (
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)), 141:( 10, 0, 10, (
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 142:( 10, 0, 10, (
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 143:( 10, 0, 10, (
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)), 144:( 10, 0, 10, (
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 152:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)), 157:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)), 158:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)), 159:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)), 163:( 6, 0, 6, (
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111110,
0b000000,
0b000000
)), 164:( 8, 0, 8, (
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)), 165:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)), 166:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 6, 0, 6, (
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)), 176:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 177:( 6, 0, 6, (
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)), 182:( 6, 0, 6, (
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)), 189:( 8, 0, 8, (
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)), 190:( 8, 0, 8, (
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)), 191:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b00100,
0b01000,
0b10000,
0b01110,
0b00000,
0b00000
)), 192:( 5, 0, 5, (
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 193:( 5, 0, 5, (
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 194:( 5, 0, 5, (
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 195:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 196:( 5, 0, 5, (
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 197:( 5, 0, 5, (
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 198:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)), 199:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)), 200:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 201:( 4, 0, 4, (
0b0100,
0b1000,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 203:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)), 209:( 6, 0, 6, (
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)), 210:( 7, 0, 7, (
0b0010000,
0b0001000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 211:( 7, 0, 7, (
0b0001000,
0b0010000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 212:( 7, 0, 7, (
0b0001000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 213:( 7, 0, 7, (
0b0010100,
0b0101000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 214:( 7, 0, 7, (
0b0000000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)), 216:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)), 217:( 6, 0, 6, (
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 218:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 219:( 6, 0, 6, (
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 220:( 6, 0, 6, (
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)), 221:( 6, 0, 6, (
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)), 222:( 6, 0, 6, (
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)), 223:( 6, 0, 6, (
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)), 224:( 5, 0, 5, (
0b00000,
0b00100,
0b00010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 225:( 5, 0, 5, (
0b00000,
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 226:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 227:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 228:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 229:( 5, 0, 5, (
0b00100,
0b01010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 230:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 233:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 234:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 235:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)), 236:( 2, 0, 2, (
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 242:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 243:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 244:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 245:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 246:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 247:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)), 248:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)), 249:( 5, 0, 5, (
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 250:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 251:( 5, 0, 5, (
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 252:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)), 253:( 6, 0, 6, (
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)), 254:( 5, 0, 5, (
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)), 255:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 4.27
FONTS['thin11pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 8, 0, 8, (
0b00000000,
0b01100000,
0b11110000,
0b10010010,
0b11110100,
0b01101000,
0b11100110,
0b11101000,
0b01100100,
0b11100010,
0b00000000
)), 21:( 5, 0, 5, (
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)), 22:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 23:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000,
0b000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 25:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b000000,
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000,
0b000000
)), 36:( 4, 0, 4, (
0b0000,
0b0100,
0b0110,
0b1000,
0b1100,
0b0110,
0b0010,
0b1100,
0b0100,
0b0000,
0b0000
)), 37:( 6, 0, 6, (
0b000000,
0b000000,
0b010010,
0b101010,
0b010100,
0b001000,
0b010100,
0b101010,
0b100100,
0b000000,
0b000000
)), 38:( 5, 0, 5, (
0b00000,
0b00000,
0b01000,
0b10100,
0b10100,
0b01010,
0b10100,
0b10100,
0b01010,
0b00000,
0b00000
)), 39:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b000,
0b010,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b010,
0b000
)), 41:( 3, 0, 3, (
0b000,
0b100,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b100,
0b000
)), 42:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 43:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0000,
0b0000,
0b0000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)), 47:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000,
0b0000
)), 48:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 49:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 50:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0010,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)), 51:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0010,
0b1010,
0b0100,
0b0000,
0b0000
)), 52:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000,
0b0000
)), 53:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 54:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b1000,
0b1100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 55:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 56:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 57:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b0110,
0b0010,
0b1010,
0b0100,
0b0000,
0b0000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100,
0b000
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 61:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 62:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)), 63:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0100,
0b0000,
0b0100,
0b0000,
0b0000
)), 64:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b1011010,
0b1101010,
0b1011100,
0b0100000,
0b0011100,
0b0000000,
0b0000000
)), 65:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 66:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000
)), 67:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b1000,
0b1000,
0b1000,
0b1010,
0b0100,
0b0000,
0b0000
)), 68:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000
)), 69:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 70:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 71:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 72:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 73:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 74:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 75:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 76:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 77:( 6, 0, 6, (
0b000000,
0b000000,
0b110110,
0b101010,
0b101010,
0b101010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)), 78:( 5, 0, 5, (
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)), 79:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000
)), 80:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 81:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0010,
0b0000
)), 82:( 4, 0, 4, (
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 83:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 84:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 85:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 86:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000,
0b0000
)), 87:( 6, 0, 6, (
0b000000,
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)), 88:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 89:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 90:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000,
0b0000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)), 98:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000,
0b0000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)), 100:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0010,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000,
0b0000
)), 101:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)), 102:( 3, 0, 3, (
0b000,
0b000,
0b011,
0b100,
0b110,
0b100,
0b100,
0b100,
0b100,
0b000,
0b000
)), 103:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0010,
0b1100
)), 104:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 105:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)), 107:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b0000,
0b0000
)), 108:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 109:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b101010,
0b000000,
0b000000
)), 110:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 111:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 112:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)), 113:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0010,
0b0010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)), 115:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000,
0b0000
)), 116:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000,
0b0000
)), 117:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 118:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000,
0b0000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)), 120:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000,
0b0000
)), 121:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000,
0b1000
)), 122:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 128:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001110,
0b010000,
0b111100,
0b010000,
0b111000,
0b010000,
0b001110,
0b000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)), 134:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100
)), 135:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100
)), 136:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 8, 0, 8, (
0b00000000,
0b00000000,
0b01001000,
0b10101000,
0b10110000,
0b01010100,
0b01101010,
0b10101010,
0b10010100,
0b00000000,
0b00000000
)), 138:( 4, 0, 4, (
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)), 140:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b1111110,
0b0000000,
0b0000000
)), 141:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00111000,
0b01101100,
0b11000110,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000,
0b00000000
)), 142:( 8, 0, 8, (
0b00000000,
0b00111000,
0b00111000,
0b00010000,
0b11010110,
0b11111110,
0b11010110,
0b00010000,
0b00111000,
0b01111100,
0b00000000
)), 143:( 8, 0, 8, (
0b00000000,
0b01000100,
0b11101110,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000,
0b00000000
)), 144:( 8, 0, 8, (
0b00000000,
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100,
0b00000000
)), 145:( 3, 0, 3, (
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000,
0b000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000
)), 152:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 153:( 10, 0, 10, (
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)), 154:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)), 156:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b101010,
0b101110,
0b101000,
0b011110,
0b000000,
0b000000
)), 157:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)), 158:( 6, 0, 6, (
0b000000,
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000,
0b000000
)), 159:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 162:( 5, 0, 5, (
0b00000,
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)), 163:( 5, 0, 5, (
0b00000,
0b00000,
0b00110,
0b01000,
0b01000,
0b11100,
0b01000,
0b01000,
0b11000,
0b00110,
0b00000
)), 164:( 6, 0, 6, (
0b000000,
0b000000,
0b101010,
0b010100,
0b010100,
0b100010,
0b010100,
0b010100,
0b101010,
0b000000,
0b000000
)), 165:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)), 166:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)), 167:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1000,
0b0100,
0b1010,
0b0100,
0b0010,
0b1010,
0b0100,
0b0000
)), 168:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000,
0b00000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)), 175:( 5, 0, 5, (
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 176:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 177:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)), 178:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)), 182:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11010,
0b11010,
0b11010,
0b01010,
0b01010,
0b01010,
0b00000,
0b00000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1010,
0b0100,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)), 188:( 7, 0, 7, (
0b0000000,
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0010100,
0b0101100,
0b1011110,
0b0000100,
0b0000000,
0b0000000
)), 189:( 7, 0, 7, (
0b0000000,
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0011100,
0b0100010,
0b1000100,
0b0001110,
0b0000000,
0b0000000
)), 190:( 7, 0, 7, (
0b0000000,
0b1110000,
0b0110010,
0b0010100,
0b1111000,
0b0001010,
0b0010110,
0b0101110,
0b0000010,
0b0000000,
0b0000000
)), 191:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b1010,
0b0100,
0b0000,
0b0000
)), 192:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)), 193:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)), 194:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)), 195:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)), 196:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)), 197:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)), 198:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b10100,
0b10100,
0b11110,
0b10100,
0b10100,
0b10110,
0b00000,
0b00000
)), 199:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 200:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 201:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 203:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 208:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b010010,
0b011100,
0b000000,
0b000000
)), 209:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)), 210:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 211:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 212:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 213:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 214:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 215:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b0100,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000
)), 216:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001101,
0b010010,
0b010110,
0b011010,
0b010010,
0b101100,
0b000000,
0b000000
)), 217:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 218:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 219:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 220:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 221:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)), 222:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000,
0b0000
)), 223:( 5, 0, 5, (
0b00000,
0b00000,
0b01100,
0b10010,
0b10100,
0b10100,
0b10010,
0b10010,
0b10010,
0b00100,
0b01000
)), 224:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)), 225:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)), 226:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)), 227:( 4, 0, 4, (
0b0000,
0b0101,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)), 228:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)), 229:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)), 230:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b001010,
0b011110,
0b101000,
0b111110,
0b000000,
0b000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)), 232:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)), 233:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)), 234:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)), 235:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)), 236:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 237:( 2, 0, 2, (
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)), 238:( 3, 0, 3, (
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)), 241:( 4, 0, 4, (
0b0000,
0b0101,
0b1010,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)), 242:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 243:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 244:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 245:( 4, 0, 4, (
0b0000,
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 246:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)), 247:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000,
0b0000,
0b0000
)), 248:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000,
0b000000
)), 249:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 250:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 251:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 252:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)), 253:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b1000
)), 254:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000
)), 255:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000,
0b1000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 8
#kernMax 0
#nDescent 0
#fRectWidth 8
#fRectHeight 9
#ascent 7
#descent 2
#leading 0
#averageWidth 4.26
FONTS['thin9pt'] = {
9:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 20:( 8, 0, 8, (
0b01100000,
0b11110000,
0b10010010,
0b11110100,
0b01101000,
0b11100110,
0b01101000,
0b11100100,
0b00000010
)), 21:( 5, 0, 5, (
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100
)), 22:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)), 23:( 6, 0, 6, (
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000
)), 24:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 25:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 32:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 33:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)), 34:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 35:( 6, 0, 6, (
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000
)), 36:( 4, 0, 4, (
0b0100,
0b0110,
0b1000,
0b1100,
0b0110,
0b0010,
0b1100,
0b0100,
0b0000
)), 37:( 6, 0, 6, (
0b000000,
0b010010,
0b101010,
0b010100,
0b001000,
0b010100,
0b101010,
0b100100,
0b000000
)), 38:( 5, 0, 5, (
0b00000,
0b01000,
0b10100,
0b10100,
0b01010,
0b10100,
0b10100,
0b01010,
0b00000
)), 39:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 40:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)), 41:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)), 42:( 4, 0, 4, (
0b0000,
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000
)), 43:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0000,
0b0000
)), 44:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 45:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 46:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00
)), 47:( 4, 0, 4, (
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000
)), 48:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 49:( 4, 0, 4, (
0b0000,
0b0100,
0b1100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 50:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0010,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)), 51:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0010,
0b1010,
0b0100,
0b0000
)), 52:( 4, 0, 4, (
0b0000,
0b0010,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000
)), 53:( 4, 0, 4, (
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b0010,
0b0010,
0b1100,
0b0000
)), 54:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1000,
0b1100,
0b1010,
0b1010,
0b0100,
0b0000
)), 55:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b0000
)), 56:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000
)), 57:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1010,
0b0110,
0b0010,
0b1010,
0b0100,
0b0000
)), 58:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00
)), 59:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100
)), 60:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 61:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 62:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 63:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0100,
0b0000,
0b0100,
0b0000
)), 64:( 7, 0, 7, (
0b0000000,
0b0011000,
0b0100100,
0b1011010,
0b1101010,
0b1011100,
0b0100000,
0b0011100,
0b0000000
)), 65:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)), 66:( 4, 0, 4, (
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1100,
0b0000
)), 67:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b1000,
0b1000,
0b1000,
0b1010,
0b0100,
0b0000
)), 68:( 4, 0, 4, (
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000
)), 69:( 4, 0, 4, (
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000
)), 70:( 4, 0, 4, (
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000
)), 71:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b1000,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 72:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)), 73:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 74:( 4, 0, 4, (
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)), 75:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)), 76:( 4, 0, 4, (
0b0000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)), 77:( 6, 0, 6, (
0b000000,
0b110110,
0b101010,
0b101010,
0b101010,
0b100010,
0b100010,
0b100010,
0b000000
)), 78:( 5, 0, 5, (
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000
)), 79:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000
)), 80:( 4, 0, 4, (
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000
)), 81:( 4, 0, 4, (
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0010
)), 82:( 4, 0, 4, (
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)), 83:( 4, 0, 4, (
0b0000,
0b0110,
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000
)), 84:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 85:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 86:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000
)), 87:( 6, 0, 6, (
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000
)), 88:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b1010,
0b0000
)), 89:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)), 90:( 4, 0, 4, (
0b0000,
0b1110,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1110,
0b0000
)), 91:( 3, 0, 3, (
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)), 92:( 4, 0, 4, (
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000
)), 93:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)), 94:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 95:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)), 96:( 3, 0, 3, (
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 97:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)), 98:( 4, 0, 4, (
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 99:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)), 100:( 4, 0, 4, (
0b0000,
0b0010,
0b0010,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)), 101:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)), 102:( 3, 0, 3, (
0b000,
0b011,
0b100,
0b110,
0b100,
0b100,
0b100,
0b100,
0b000
)), 103:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010,
0b1100
)), 104:( 4, 0, 4, (
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)), 105:( 2, 0, 2, (
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 106:( 3, 0, 3, (
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)), 107:( 4, 0, 4, (
0b0000,
0b1000,
0b1000,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b0000
)), 108:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 109:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b101010,
0b000000
)), 110:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)), 111:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 112:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000
)), 113:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0010
)), 114:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000
)), 115:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000
)), 116:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)), 117:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 118:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000
)), 119:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000
)), 120:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)), 121:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000
)), 122:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)), 123:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)), 124:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 125:( 4, 0, 4, (
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)), 126:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)), 128:( 6, 0, 6, (
0b000000,
0b001110,
0b010000,
0b111100,
0b010000,
0b111000,
0b010000,
0b001110,
0b000000
)), 130:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)), 131:( 4, 0, 4, (
0b0000,
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b1000
)), 132:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)), 133:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)), 134:( 4, 0, 4, (
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100
)), 135:( 4, 0, 4, (
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0100
)), 136:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 137:( 8, 0, 8, (
0b00000000,
0b01001000,
0b10101000,
0b01010000,
0b00100000,
0b01010100,
0b10101010,
0b10010100,
0b00000000
)), 138:( 4, 0, 4, (
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)), 139:( 4, 0, 4, (
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)), 140:( 7, 0, 7, (
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b1111110,
0b0000000
)), 141:( 8, 0, 8, (
0b00010000,
0b00111000,
0b01101100,
0b11000110,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)), 142:( 8, 0, 8, (
0b00111000,
0b00111000,
0b00010000,
0b11010110,
0b11111110,
0b11010110,
0b00010000,
0b00111000,
0b01111100
)), 143:( 8, 0, 8, (
0b01000100,
0b11101110,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)), 144:( 8, 0, 8, (
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100
)), 145:( 3, 0, 3, (
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)), 146:( 3, 0, 3, (
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)), 147:( 5, 0, 5, (
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 148:( 5, 0, 5, (
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 149:( 3, 0, 3, (
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)), 150:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)), 151:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)), 152:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)), 153:( 7, 0, 7, (
0b0000000,
0b1111010,
0b0101110,
0b0101010,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)), 154:( 4, 0, 4, (
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)), 155:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)), 156:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b011100,
0b101010,
0b101110,
0b101000,
0b011110,
0b000000
)), 157:( 7, 0, 7, (
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)), 158:( 6, 0, 6, (
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000
)), 159:( 4, 0, 4, (
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)), 160:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 161:( 2, 0, 2, (
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)), 162:( 5, 0, 5, (
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000
)), 163:( 5, 0, 5, (
0b00000,
0b00110,
0b01000,
0b01000,
0b11100,
0b01000,
0b01000,
0b11000,
0b00110
)), 164:( 6, 0, 6, (
0b000000,
0b101010,
0b010100,
0b010100,
0b100010,
0b010100,
0b010100,
0b101010,
0b000000
)), 165:( 4, 0, 4, (
0b0000,
0b1010,
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100,
0b0000
)), 166:( 2, 0, 2, (
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)), 167:( 4, 0, 4, (
0b0100,
0b1010,
0b1000,
0b0100,
0b1010,
0b0100,
0b0010,
0b1010,
0b0100
)), 168:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 169:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)), 170:( 5, 0, 5, (
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 171:( 6, 0, 6, (
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)), 172:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)), 173:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 174:( 8, 0, 8, (
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)), 175:( 5, 0, 5, (
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)), 176:( 4, 0, 4, (
0b0100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)), 177:( 4, 0, 4, (
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0000,
0b0000
)), 178:( 4, 0, 4, (
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 179:( 4, 0, 4, (
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)), 180:( 3, 0, 3, (
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)), 181:( 4, 0, 4, (
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)), 182:( 5, 0, 5, (
0b00000,
0b00000,
0b01110,
0b11010,
0b11010,
0b01010,
0b01010,
0b01010,
0b00000
)), 183:( 2, 0, 2, (
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00
)), 184:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)), 185:( 2, 0, 2, (
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)), 186:( 4, 0, 4, (
0b0000,
0b0100,
0b1010,
0b0100,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)), 187:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000
)), 188:( 7, 0, 7, (
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0010100,
0b0101100,
0b1011110,
0b0000100,
0b0000000
)), 189:( 7, 0, 7, (
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0011100,
0b0100010,
0b1000100,
0b0001110,
0b0000000
)), 190:( 7, 0, 7, (
0b1110000,
0b0110010,
0b0010100,
0b1111000,
0b0001010,
0b0010110,
0b0101110,
0b0000010,
0b0000000
)), 191:( 4, 0, 4, (
0b0000,
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b1010,
0b0100,
0b0000
)), 192:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 193:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 194:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 195:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 196:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 197:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)), 198:( 5, 0, 5, (
0b00000,
0b01110,
0b10100,
0b10100,
0b11110,
0b10100,
0b10100,
0b10110,
0b00000
)), 199:( 4, 0, 4, (
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0110,
0b1100
)), 200:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)), 201:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)), 202:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)), 203:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)), 204:( 3, 0, 3, (
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 205:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 206:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 207:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 208:( 6, 0, 6, (
0b000000,
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b010010,
0b011100,
0b000000
)), 209:( 5, 0, 5, (
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b10110,
0b10010,
0b10010,
0b00000
)), 210:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 211:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 212:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 213:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 214:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 215:( 5, 0, 5, (
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000
)), 216:( 6, 0, 6, (
0b000000,
0b000000,
0b001101,
0b010010,
0b010110,
0b011010,
0b010010,
0b101100,
0b000000
)), 217:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 218:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 219:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 220:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 221:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)), 222:( 4, 0, 4, (
0b0000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)), 223:( 5, 0, 5, (
0b00000,
0b01100,
0b10010,
0b10100,
0b10100,
0b10010,
0b10010,
0b10010,
0b00100
)), 224:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)), 225:( 4, 0, 4, (
0b0100,
0b1000,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)), 226:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)), 227:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)), 228:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)), 229:( 4, 0, 4, (
0b0100,
0b1010,
0b0100,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)), 230:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b110100,
0b001010,
0b011110,
0b101000,
0b111110,
0b000000
)), 231:( 4, 0, 4, (
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b1100
)), 232:( 4, 0, 4, (
0b0100,
0b0010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)), 233:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)), 234:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)), 235:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)), 236:( 2, 0, 2, (
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 237:( 2, 0, 2, (
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)), 238:( 3, 0, 3, (
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 239:( 3, 0, 3, (
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)), 240:( 5, 0, 5, (
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)), 241:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)), 242:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 243:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 244:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 245:( 4, 0, 4, (
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 246:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)), 247:( 4, 0, 4, (
0b0000,
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000,
0b0000
)), 248:( 6, 0, 6, (
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000
)), 249:( 4, 0, 4, (
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 250:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 251:( 4, 0, 4, (
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 252:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)), 253:( 4, 0, 4, (
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000
)), 254:( 4, 0, 4, (
0b0000,
0b0000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1100,
0b1000
)), 255:( 4, 0, 4, (
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000
)),}
| 14.284649
| 104
| 0.511609
| 91,599
| 1,017,567
| 5.683424
| 0.012074
| 0.115621
| 0.010937
| 0.033131
| 0.964973
| 0.954541
| 0.941678
| 0.92805
| 0.908743
| 0.867333
| 0
| 0.705834
| 0.373155
| 1,017,567
| 71,234
| 105
| 14.28485
| 0.11033
| 0.007748
| 0
| 0.994841
| 0
| 0
| 0.000212
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
6b2b2c9b5831cc7edddd82761c32d01d7d78b605
| 2,740
|
py
|
Python
|
tests/api/problem_result_tests.py
|
ericbrandwein/CodeforcesAPI
|
12ae641910a3308033584dc518bb2fc0173e56f3
|
[
"MIT"
] | 26
|
2015-06-21T16:19:44.000Z
|
2021-11-15T12:32:25.000Z
|
tests/api/problem_result_tests.py
|
ericbrandwein/CodeforcesAPI
|
12ae641910a3308033584dc518bb2fc0173e56f3
|
[
"MIT"
] | 5
|
2015-03-10T06:00:52.000Z
|
2020-01-18T12:59:25.000Z
|
tests/api/problem_result_tests.py
|
ericbrandwein/CodeforcesAPI
|
12ae641910a3308033584dc518bb2fc0173e56f3
|
[
"MIT"
] | 12
|
2015-04-24T17:16:50.000Z
|
2022-01-04T14:21:25.000Z
|
"""
This module provides classes for testing ProblemResult object
"""
import unittest
from codeforces import ProblemResult
from codeforces import ScoringSystemType
class ProblemResultTests(unittest.TestCase):
def setUp(self):
self.result = ProblemResult()
def test_load_from_dict(self):
d = {
"points": 312.0,
"penalty": 42,
"rejectedAttemptCount": 1,
"type": "FINAL",
"bestSubmissionTimeSeconds": 4174
}
self.result.load_from_dict(d)
self.assertEqual(312.0, self.result.points)
self.assertEqual(42, self.result.penalty)
self.assertEqual(1, self.result.rejected_attempt_count)
self.assertEqual(ScoringSystemType.final, self.result.type)
self.assertEqual(4174, self.result.best_submission_time)
def test_load_only_required_from_dict(self):
"""
Required fields are:
points,
rejectedAttemptCount,
type
"""
d = {
"points": 312.0,
"rejectedAttemptCount": 1,
"type": "FINAL"
}
self.result.load_from_dict(d)
self.assertEqual(312.0, self.result.points)
self.assertEqual(1, self.result.rejected_attempt_count)
self.assertEqual(ScoringSystemType.final, self.result.type)
self.assertIsNone(self.result.penalty)
self.assertIsNone(self.result.best_submission_time)
def test_load_from_json(self):
json = '''{
"points": 312.0,
"penalty": 42,
"rejectedAttemptCount": 1,
"type": "FINAL",
"bestSubmissionTimeSeconds": 4174
}'''
self.result.load_from_json(json)
self.assertEqual(312.0, self.result.points)
self.assertEqual(42, self.result.penalty)
self.assertEqual(1, self.result.rejected_attempt_count)
self.assertEqual(ScoringSystemType.final, self.result.type)
self.assertEqual(4174, self.result.best_submission_time)
def test_load_only_required_from_json(self):
"""
Required fields are:
points,
rejectedAttemptCount,
type
"""
json = '''{
"points": 312.0,
"rejectedAttemptCount": 1,
"type": "FINAL"
}'''
self.result.load_from_json(json)
self.assertEqual(312.0, self.result.points)
self.assertEqual(1, self.result.rejected_attempt_count)
self.assertEqual(ScoringSystemType.final, self.result.type)
self.assertIsNone(self.result.penalty)
self.assertIsNone(self.result.best_submission_time)
if __name__ == '__main__':
unittest.main()
| 27.128713
| 67
| 0.613139
| 277
| 2,740
| 5.891697
| 0.184116
| 0.153186
| 0.055147
| 0.073529
| 0.824142
| 0.824142
| 0.824142
| 0.761642
| 0.754902
| 0.754902
| 0
| 0.032471
| 0.280657
| 2,740
| 100
| 68
| 27.4
| 0.795535
| 0.072628
| 0
| 0.766667
| 0
| 0
| 0.163316
| 0.040624
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.083333
| false
| 0
| 0.05
| 0
| 0.15
| 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
|
8675496dd5d974b94dc305839b2ffc28334555aa
| 39,805
|
py
|
Python
|
demos/pymunk/newtons_cradle.py
|
rlugojr/PX8
|
b081611dde998a06910d57037ca20b5fbd90123b
|
[
"MIT"
] | 21
|
2019-05-31T17:15:54.000Z
|
2022-02-26T04:59:07.000Z
|
examples/pymunk/newtons_cradle.py
|
peterbrittain/PX8
|
92bfe8e37a0019bedd8e3388180fe8a40a4ae250
|
[
"MIT"
] | null | null | null |
examples/pymunk/newtons_cradle.py
|
peterbrittain/PX8
|
92bfe8e37a0019bedd8e3388180fe8a40a4ae250
|
[
"MIT"
] | 1
|
2020-06-11T14:57:11.000Z
|
2020-06-11T14:57:11.000Z
|
pico-8 / python cartridge // http://www.pico-8.com
version 5
__python__
import sys
sys.path.append("/usr/local/lib/python3.5/site-packages/pymunk-5.1.0-py3.5-macosx-10.11-x86_64.egg/")
import random
import pymunk
from pymunk import Vec2d, SpaceDebugDrawOptions
class DrawOptions(SpaceDebugDrawOptions):
def __init__(self):
super(DrawOptions, self).__init__()
def draw_circle(self, pos, angle, radius, outline_color, fill_color):
p = to_px8(pos)
#pygame.draw.circle(self.surface, fill_color, p, int(radius), 0)
circ(p[0], p[1], int(radius), 2)
def draw_segment(self, a, b, color):
pass
def draw_fat_segment(self, a, b, radius, outline_color, fill_color):
p1 = to_px8(a)
p2 = to_px8(b)
line(p1[0], p1[1], p2[0], p2[1], 1)
def to_px8(p):
"""Convenience method to convert pymunk coordinates to px8
"""
return int(p[0]), 128 - int(p[1])
def add_ball():
global space, balls
print("ADD BALL")
mass = 0.1
radius = 5
inertia = pymunk.moment_for_circle(mass, 0, radius, (0,0))
body = pymunk.Body(mass, inertia)
body.position = random.randint(20,60), random.randint(100, 118)
shape = pymunk.Circle(body, radius, (0,0))
shape.friction = 0.5
space.add(body, shape)
balls.append(shape)
space = pymunk.Space()
space.gravity = (0.0, -1900.0)
space.damping = 0.999
draw_options = DrawOptions()
balls = []
def CreateSegment(static_body, x1, y1, x2, y2):
return pymunk.Segment(static_body, (x1, 128 - y1), (x2, 128 - y2), 0.0)
def draw_collision(arbiter, space, data):
for c in arbiter.contact_point_set.points:
r = max( 1, abs(c.distance*3) )
r = int(r)
p = to_px8(c.point_a)
circ(p[0], p[1], r, 10)
### walls
static_body = space.static_body
static_lines = [CreateSegment(static_body, 0.0, 100.0, 100.0, 120.0),
CreateSegment(static_body, 100.0, 120.0, 120.0, 80.0)
]
for static_line in static_lines:
static_line.elasticity = 0.95
static_line.friction = 0.9
space.add(static_lines)
ticks_to_next_ball = 3
ch = space.add_collision_handler(0, 0)
ch.post_solve = draw_collision
def _init():
global ticks_to_next_ball
cls()
while ticks_to_next_ball > 0:
add_ball()
ticks_to_next_ball -= 1
def _update():
global space, balls
balls_to_remove = []
for ball in balls:
if ball.body.position.x <= 0 or ball.body.position.x >= 128 or ball.body.position.y <= 0 or ball.body.position.y >= 128:
print(ball.body.position)
balls_to_remove.append(ball)
for ball in balls_to_remove:
space.remove(ball, ball.body)
balls.remove(ball)
if btnp(4):
add_ball()
def _draw():
global draw_options, space
cls()
space.debug_draw(draw_options)
dt = 1.0/60.0
for x in range(1):
space.step(dt)
__gfx__
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000088088000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000888887800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000888888800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000088888000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000008880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000077007700777777007700000077000000777777000000000770007700777777007777770077000000777700000000000000000000000000000000000
00000000077007700770000007700000077000000770077000000000770007700770077007700770077000000770077000000000000000000000000000000000
00000000077007700770000007700000077000000770077000000000770707700770077007700770077000000770077000000000000000000000000000000000
00000000077777700777700007700000077000000770077000000000777777700770077007777000077000000770077000000000000000000000000000000000
00000000077007700770000007700000077000000770077000000000777077700770077007700770077000000770077000000000000000000000000000000000
00000000077007700777777007777770077777700777777000000000770007700777777007700770077777700777777000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
__gff__
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
__map__
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
__sfx__
0110000000472004620c3400c34318470004311842500415003700c30500375183750c3000c3751f4730c375053720536211540114330c37524555247120c3730a470163521d07522375164120a211220252e315
01100000183732440518433394033c65539403185432b543184733940318433394033c655306053940339403184733940318423394033c655394031845321433184733940318473394033c655394033940339403
01100000247552775729755277552475527755297512775524755277552b755277552475527757297552775720755247572775524757207552475227755247522275526757297552675722752267522975526751
01100000001750c055003550c055001750c055003550c05500175180650c06518065001750c065003650c065051751106505365110650c17518075003650c0650a145160750a34516075111451d075113451d075
011000001b5771f55722537265171b5361f52622515265121b7771f76722757267471b7461f7362271522712185771b5571d53722517187361b7261d735227122454527537295252e5171d73514745227452e745
01100000275422754227542275422e5412e5452b7412b5422b5452b54224544245422754229541295422954224742277422e7422b7422b5422b5472954227542295422b742307422e5422e7472b547305462e742
0110000030555307652e5752b755295622e7722b752277622707227561297522b072295472774224042275421b4421b5451b5421b4421d542295471d442295422444624546245472444727546275462944729547
0110000000200002000020000200002000020000200002000020000200002000020000200002000020000200110171d117110171d227131211f227130371f2370f0411b1470f2471b35716051221571626722367
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e775000002e1752e075000002e1752e77500000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
__music__
00 00044208
00 00044108
00 00010304
00 00010304
01 00010203
00 00010203
00 00010305
00 00010306
00 00010305
00 00010306
00 00010245
02 00010243
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
00 41424344
| 94.77381
| 256
| 0.964175
| 815
| 39,805
| 46.971779
| 0.223313
| 0.755655
| 1.113421
| 1.471188
| 0.851209
| 0.846769
| 0.846769
| 0.846769
| 0.846769
| 0.846769
| 0
| 0.942587
| 0.025952
| 39,805
| 419
| 257
| 95
| 0.044775
| 0.001733
| 0
| 0.708995
| 0
| 0.002646
| 0.002269
| 0.002067
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0.002646
| 0.010582
| null | null | 0.005291
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 15
|
86a4ed8472f9939946d6abdd4a4aaacfcb6f7629
| 11,285
|
py
|
Python
|
imageproclib.py
|
U235a/clear_scan3
|
a1dbc9ced4300e629210ddbb00004fc1ad5cc43e
|
[
"Apache-2.0"
] | 2
|
2021-04-13T12:03:39.000Z
|
2021-04-18T03:19:10.000Z
|
imageproclib.py
|
U235a/clear_scan3
|
a1dbc9ced4300e629210ddbb00004fc1ad5cc43e
|
[
"Apache-2.0"
] | null | null | null |
imageproclib.py
|
U235a/clear_scan3
|
a1dbc9ced4300e629210ddbb00004fc1ad5cc43e
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 4 07:43:47 2021
@author: lenovo legion
"""
import numpy as np
#from scipy import ndimage as ndi
import cv2
def bwareaopen(im, area):
'''delete small by area elements '''
retval, labels, stats, _ = cv2.connectedComponentsWithStats(im)
idx = np.nonzero(stats[:, 4] < area)[0]
out = np.isin(labels, idx)
im[out] = 0
return im
G123_LUT = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1,
0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0,
1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1,
0, 0, 0], dtype=np.bool)
G123P_LUT = np.array([0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 1, 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, 0, 0, 0, 1, 0, 1, 0,
1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0,
0, 0, 0, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0], dtype=np.bool)
LUT_SHRINK1 = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 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, 1, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 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, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0], dtype=np.bool)
LUT_SHRINK2 = np.array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 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, 0, 1, 1, 1, 1, 1, 1, 1, 0, 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], dtype=np.bool)
LUT_ENDPOINTS = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 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, 1, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 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, 1, 1, 0, 1, 0, 0, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0], dtype=np.bool)
def bwmorph_thin(image):
skel = np.array(image > 0).astype(np.uint8)
mask = np.array([[8, 4, 2],
[16, 0, 1],
[32, 64, 128]], dtype=np.uint8)
while True:
before = np.sum(skel) # count points before thinning
for lut in [G123_LUT, G123P_LUT]:
# correlate image with neighborhood mask
#N = ndi.correlate(skel, mask, mode='constant')
N = cv2.filter2D(skel, -1, mask, borderType=cv2.BORDER_CONSTANT)
# take deletion decision from this subiteration's LUT
D = np.take(lut, N)
# perform deletion
skel[D] = 0
after = np.sum(skel) # coint points after thinning
if before == after:
break
return skel*255
def bwmorph_shrink(image):
'''see gnu octave bwmorph, shrink'''
skel = np.array(image > 0).astype(np.uint16)
mask = np.array([[256, 32, 4],
[128, 16, 2],
[64, 8, 1]], dtype=np.uint16)
while True:
x = skel.copy()
before = np.sum(skel) # count points before thinning
for lut in [LUT_SHRINK1, LUT_SHRINK2]:
# correlate image with neighborhood mask
#N = ndi.correlate(skel, mask, mode='constant')
N = cv2.filter2D(skel, -1, mask, borderType=cv2.BORDER_CONSTANT)
# take deletion decision from this subiteration's LUT
D = np.take(lut, N)
skel = D.astype(np.uint16)
skel = x & skel
after = np.sum(skel) # coint points after thinning
if before == after:
break
return (255*skel).astype(np.uint8)
def bwmorph_endpoints(image):
skel = np.array(image > 0).astype(np.uint16)
mask = np.array([[256, 32, 4],
[128, 16, 2],
[64, 8, 1]], dtype=np.uint16)
while True:
before = np.sum(skel) # count points before thinning
for lut in [LUT_ENDPOINTS]:
# correlate image with neighborhood mask
#N = ndi.correlate(skel, mask, mode='constant')
N = cv2.filter2D(skel, -1, mask, borderType=cv2.BORDER_CONSTANT)
# take deletion decision from this subiteration's LUT
D = np.take(lut, N)
skel = D.astype(np.uint16)
after = np.sum(skel) # coint points after thinning
if before == after:
break
return (255*skel).astype(np.uint8)
def imreconstruct(marker, mask):
kernel2 = cv2.getStructuringElement(cv2.MORPH_RECT, (3, 3))
while True:
tmp = marker.copy()
marker = cv2.dilate(marker, kernel2)
marker = cv2.min(mask, marker)
difference = cv2.subtract(marker, tmp)
if cv2.countNonZero(difference) == 0:
break
return marker
| 64.856322
| 138
| 0.355428
| 2,494
| 11,285
| 1.601043
| 0.046512
| 0.622089
| 0.850488
| 1.040821
| 0.815177
| 0.815177
| 0.805409
| 0.805159
| 0.793138
| 0.791886
| 0
| 0.336369
| 0.425964
| 11,285
| 174
| 139
| 64.856322
| 0.280025
| 0.068675
| 0
| 0.49635
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.036496
| false
| 0
| 0.014599
| 0
| 0.087591
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
86c412bb04a39e23fcb0b5a943c68830d76f26e7
| 7,722
|
py
|
Python
|
tests/integration/forwarding/test_map.py
|
madsys-dev/GekkoFS
|
df071aea75be3d2ae713f14c18b6105eb36f4282
|
[
"MIT"
] | 31
|
2019-11-25T02:04:13.000Z
|
2022-01-23T11:39:06.000Z
|
tests/integration/forwarding/test_map.py
|
NGIOproject/old_GekkoFS_old
|
df071aea75be3d2ae713f14c18b6105eb36f4282
|
[
"MIT"
] | 5
|
2020-11-20T03:40:33.000Z
|
2022-01-23T16:38:47.000Z
|
tests/integration/forwarding/test_map.py
|
NGIOproject/old_GekkoFS_old
|
df071aea75be3d2ae713f14c18b6105eb36f4282
|
[
"MIT"
] | 6
|
2020-04-30T14:53:01.000Z
|
2022-01-17T06:23:44.000Z
|
################################################################################
# Copyright 2018-2020, Barcelona Supercomputing Center (BSC), Spain #
# Copyright 2015-2020, Johannes Gutenberg Universitaet Mainz, Germany #
# #
# This software was partially supported by the #
# EC H2020 funded project NEXTGenIO (Project ID: 671951, www.nextgenio.eu). #
# #
# This software was partially supported by the #
# ADA-FS project under the SPPEXA project funded by the DFG. #
# #
# SPDX-License-Identifier: MIT #
################################################################################
import harness
from pathlib import Path
import errno
import stat
import os
import time
import ctypes
import socket
import sh
import sys
import pytest
from harness.logger import logger
nonexisting = "nonexisting"
def test_two_io_nodes(gkfwd_daemon_factory, gkfwd_client_factory):
"""Write files from two clients using two daemons"""
d00 = gkfwd_daemon_factory.create()
d01 = gkfwd_daemon_factory.create()
c00 = gkfwd_client_factory.create('c-0')
c01 = gkfwd_client_factory.create('c-1')
file = d00.mountdir / "file-c00"
# create a file in gekkofs
ret = c00.open(file,
os.O_CREAT | os.O_WRONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# write a buffer we know
buf = b'42'
ret = c00.write(file, buf, len(buf))
assert ret.retval == len(buf) # Return the number of written bytes
# open the file to read
ret = c00.open(file,
os.O_RDONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# read the file
ret = c00.read(file, len(buf))
assert ret.buf == buf
assert ret.retval == len(buf) # Return the number of read bytes
file = d01.mountdir / "file-c01"
# create a file in gekkofs
ret = c01.open(file,
os.O_CREAT | os.O_WRONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# write a buffer we know
buf = b'42'
ret = c01.write(file, buf, len(buf))
assert ret.retval == len(buf) # Return the number of written bytes
# open the file to read
ret = c01.open(file,
os.O_RDONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# read the file
ret = c01.read(file, len(buf))
assert ret.buf == buf
assert ret.retval == len(buf) # Return the number of read bytes
# both files should be there and accessible by the two clients
ret = c00.readdir(d00.mountdir)
assert len(ret.dirents) == 2
assert ret.dirents[0].d_name == 'file-c00'
assert ret.dirents[0].d_type == 8 # DT_REG
assert ret.dirents[1].d_name == 'file-c01'
assert ret.dirents[1].d_type == 8 # DT_REG
with open(c00.log) as f:
lines = f.readlines()
for line in lines:
if 'Forward to' in line:
ion = line.split()[-1]
assert ion == '0'
with open(c01.log) as f:
lines = f.readlines()
for line in lines:
if 'Forward to' in line:
ion = line.split()[-1]
assert ion == '1'
def test_two_io_nodes_remap(gkfwd_daemon_factory, gkfwd_client_factory):
"""Write files from two clients using two daemons"""
d00 = gkfwd_daemon_factory.create()
d01 = gkfwd_daemon_factory.create()
c00 = gkfwd_client_factory.create('c-0')
c01 = gkfwd_client_factory.create('c-1')
file = d00.mountdir / "file-c00-1"
# create a file in gekkofs
ret = c00.open(file,
os.O_CREAT | os.O_WRONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# write a buffer we know
buf = b'42'
ret = c00.write(file, buf, len(buf))
assert ret.retval == len(buf) # Return the number of written bytes
with open(c00.log) as f:
lines = f.readlines()
for line in lines:
if 'Forward to' in line:
ion = line.split()[-1]
assert ion == '0'
# recreate the mapping so that the server that wrote will now read
c00.remap('c-1')
# we need to wait for at least the number of seconds between remap calls
time.sleep(10)
file = d00.mountdir / "file-c00-2"
# open the file to write
ret = c00.open(file,
os.O_CREAT | os.O_WRONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# read the file
buf = b'24'
ret = c00.write(file, buf, len(buf))
assert ret.retval == len(buf) # Return the number of read bytes
with open(c00.log) as f:
lines = f.readlines()
for line in lines:
if 'Forward to' in line:
ion = line.split()[-1]
assert ion == '1'
def test_two_io_nodes_operations(gkfwd_daemon_factory, gkfwd_client_factory):
"""Write files from one client and read in the other using two daemons"""
d00 = gkfwd_daemon_factory.create()
d01 = gkfwd_daemon_factory.create()
c00 = gkfwd_client_factory.create('c-0')
c01 = gkfwd_client_factory.create('c-1')
file = d00.mountdir / "file-c00"
# create a file in gekkofs
ret = c00.open(file,
os.O_CREAT | os.O_WRONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# write a buffer we know
buf = b'42'
ret = c00.write(file, buf, len(buf))
assert ret.retval == len(buf) # Return the number of written bytes
# open the file to read
ret = c00.open(file,
os.O_RDONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# read the file
ret = c00.read(file, len(buf))
assert ret.buf == buf
assert ret.retval == len(buf) # Return the number of read bytes
# open the file to read
ret = c01.open(file,
os.O_RDONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# read the file
ret = c01.read(file, len(buf))
assert ret.buf == buf
assert ret.retval == len(buf) # Return the number of read bytes
# the file should be there and accessible by the two clients
ret = c00.readdir(d00.mountdir)
assert len(ret.dirents) == 1
assert ret.dirents[0].d_name == 'file-c00'
assert ret.dirents[0].d_type == 8 # DT_REG
# the file should be there and accessible by the two clients
ret = c01.readdir(d01.mountdir)
assert len(ret.dirents) == 1
assert ret.dirents[0].d_name == 'file-c00'
assert ret.dirents[0].d_type == 8 # DT_REG
with open(c00.log) as f:
lines = f.readlines()
for line in lines:
if 'Forward to' in line:
ion = line.split()[-1]
assert ion == '0'
with open(c01.log) as f:
lines = f.readlines()
for line in lines:
if 'Forward to' in line:
ion = line.split()[-1]
assert ion == '1'
| 28.6
| 80
| 0.546102
| 1,028
| 7,722
| 4.004864
| 0.153697
| 0.065582
| 0.065582
| 0.024047
| 0.836046
| 0.818071
| 0.811756
| 0.793296
| 0.793296
| 0.781151
| 0
| 0.045624
| 0.338643
| 7,722
| 270
| 81
| 28.6
| 0.760525
| 0.253561
| 0
| 0.817568
| 0
| 0
| 0.033249
| 0
| 0
| 0
| 0
| 0
| 0.263514
| 1
| 0.02027
| false
| 0
| 0.081081
| 0
| 0.101351
| 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
|
86d36d3ad402483f69cec9f95dbbebd992ee06e6
| 203
|
py
|
Python
|
src/classes/declarations/__init__.py
|
ogoes/compiler-improvement
|
dbed16b88ed43630480daf6fffda69805d9cb807
|
[
"MIT"
] | null | null | null |
src/classes/declarations/__init__.py
|
ogoes/compiler-improvement
|
dbed16b88ed43630480daf6fffda69805d9cb807
|
[
"MIT"
] | null | null | null |
src/classes/declarations/__init__.py
|
ogoes/compiler-improvement
|
dbed16b88ed43630480daf6fffda69805d9cb807
|
[
"MIT"
] | null | null | null |
from classes.declarations.Declaracao import Declaracao
from classes.declarations.DeclaracaoDeFuncao import DeclaracaoDeFuncao
from classes.declarations.DeclaracaoDeVariaveis import DeclaracaoDeVariaveis
| 50.75
| 76
| 0.91133
| 18
| 203
| 10.277778
| 0.388889
| 0.178378
| 0.372973
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.059113
| 203
| 3
| 77
| 67.666667
| 0.968586
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 1
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.