sequence
stringlengths
1.37k
35.1k
docstring
stringlengths
17
102
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_ocean_backend'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '10']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'backend_cmd'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'enrich_backend'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'no_incremental'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'filter_raw'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'filter_raw_should'}; {'id': '12', 'type': 'None', 'children': []}; {'id': '13', 'type': 'block', 'children': ['14', '34', '42', '46', '58', '216', '226', '236']}; {'id': '14', 'type': 'if_statement', 'children': ['15', '16', '21']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'no_incremental'}; {'id': '16', 'type': 'block', 'children': ['17']}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '20', 'type': 'None', 'children': []}; {'id': '21', 'type': 'else_clause', 'children': ['22']}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '26', 'type': 'call', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'get_last_enrich'}; {'id': '28', 'type': 'argument_list', 'children': ['29', '30', '31']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'backend_cmd'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'enrich_backend'}; {'id': '31', 'type': 'keyword_argument', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'filter_raw'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'filter_raw'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'call', 'children': ['36', '39']}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '39', 'type': 'argument_list', 'children': ['40', '41']}; {'id': '40', 'type': 'string', 'children': [], 'value': '"Last enrichment: %s"'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '45', 'type': 'None', 'children': []}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'connector'}; {'id': '49', 'type': 'subscript', 'children': ['50', '53']}; {'id': '50', 'type': 'call', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'get_connectors'}; {'id': '52', 'type': 'argument_list', 'children': []}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'enrich_backend'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'get_connector_name'}; {'id': '57', 'type': 'argument_list', 'children': []}; {'id': '58', 'type': 'if_statement', 'children': ['59', '60', '151']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'backend_cmd'}; {'id': '60', 'type': 'block', 'children': ['61', '68', '74', '85']}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'backend_cmd'}; {'id': '64', 'type': 'call', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'init_backend'}; {'id': '66', 'type': 'argument_list', 'children': ['67']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'backend_cmd'}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'backend_cmd'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'assignment', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '77', 'type': 'call', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'inspect'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '81', 'type': 'argument_list', 'children': ['82']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'fetch'}; {'id': '85', 'type': 'if_statement', 'children': ['86', '91', '104', '123']}; {'id': '86', 'type': 'comparison_operator', 'children': ['87', '88'], 'value': 'in'}; {'id': '87', 'type': 'string', 'children': [], 'value': "'from_date'"}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '91', 'type': 'block', 'children': ['92']}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'assignment', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'subscript', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'connector'}; {'id': '98', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '101', 'type': 'keyword_argument', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'from_date'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '104', 'type': 'elif_clause', 'children': ['105', '110']}; {'id': '105', 'type': 'comparison_operator', 'children': ['106', '107'], 'value': 'in'}; {'id': '106', 'type': 'string', 'children': [], 'value': "'offset'"}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '110', 'type': 'block', 'children': ['111']}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '114', 'type': 'call', 'children': ['115', '118']}; {'id': '115', 'type': 'subscript', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'connector'}; {'id': '117', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '118', 'type': 'argument_list', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '120', 'type': 'keyword_argument', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '123', 'type': 'else_clause', 'children': ['124']}; {'id': '124', 'type': 'block', 'children': ['125']}; {'id': '125', 'type': 'if_statement', 'children': ['126', '127', '140']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'assignment', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'subscript', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'connector'}; {'id': '134', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '135', 'type': 'argument_list', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '137', 'type': 'keyword_argument', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'from_date'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '140', 'type': 'else_clause', 'children': ['141']}; {'id': '141', 'type': 'block', 'children': ['142']}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '145', 'type': 'call', 'children': ['146', '149']}; {'id': '146', 'type': 'subscript', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'connector'}; {'id': '148', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '151', 'type': 'else_clause', 'children': ['152']}; {'id': '152', 'type': 'block', 'children': ['153', '159', '190']}; {'id': '153', 'type': 'expression_statement', 'children': ['154']}; {'id': '154', 'type': 'assignment', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'enrich_backend'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'backend_params'}; {'id': '159', 'type': 'if_statement', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '161', 'type': 'block', 'children': ['162']}; {'id': '162', 'type': 'try_statement', 'children': ['163', '186']}; {'id': '163', 'type': 'block', 'children': ['164', '173']}; {'id': '164', 'type': 'expression_statement', 'children': ['165']}; {'id': '165', 'type': 'assignment', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'date_pos'}; {'id': '167', 'type': 'call', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'string', 'children': [], 'value': "'--from-date'"}; {'id': '173', 'type': 'expression_statement', 'children': ['174']}; {'id': '174', 'type': 'assignment', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '176', 'type': 'call', 'children': ['177', '180']}; {'id': '177', 'type': 'attribute', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'parser'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '180', 'type': 'argument_list', 'children': ['181']}; {'id': '181', 'type': 'subscript', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '183', 'type': 'binary_operator', 'children': ['184', '185'], 'value': '+'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'date_pos'}; {'id': '185', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '186', 'type': 'except_clause', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '188', 'type': 'block', 'children': ['189']}; {'id': '189', 'type': 'pass_statement', 'children': []}; {'id': '190', 'type': 'if_statement', 'children': ['191', '192', '205']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '192', 'type': 'block', 'children': ['193']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '196', 'type': 'call', 'children': ['197', '200']}; {'id': '197', 'type': 'subscript', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'connector'}; {'id': '199', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '200', 'type': 'argument_list', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '202', 'type': 'keyword_argument', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'from_date'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'last_enrich'}; {'id': '205', 'type': 'else_clause', 'children': ['206']}; {'id': '206', 'type': 'block', 'children': ['207']}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'assignment', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '210', 'type': 'call', 'children': ['211', '214']}; {'id': '211', 'type': 'subscript', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'connector'}; {'id': '213', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'backend'}; {'id': '216', 'type': 'if_statement', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'filter_raw'}; {'id': '218', 'type': 'block', 'children': ['219']}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'call', 'children': ['221', '224']}; {'id': '221', 'type': 'attribute', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'set_filter_raw'}; {'id': '224', 'type': 'argument_list', 'children': ['225']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'filter_raw'}; {'id': '226', 'type': 'if_statement', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'filter_raw_should'}; {'id': '228', 'type': 'block', 'children': ['229']}; {'id': '229', 'type': 'expression_statement', 'children': ['230']}; {'id': '230', 'type': 'call', 'children': ['231', '234']}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'set_filter_raw_should'}; {'id': '234', 'type': 'argument_list', 'children': ['235']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'filter_raw_should'}; {'id': '236', 'type': 'return_statement', 'children': ['237']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'ocean_backend'}
Get the ocean backend configured to start from the last enriched date
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_review_sh'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'revision'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '7', 'type': 'block', 'children': ['8', '17', '32', '42']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '11', 'type': 'call', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'get_sh_identity'}; {'id': '15', 'type': 'argument_list', 'children': ['16']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'revision'}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'parser'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'subscript', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'get_field_date'}; {'id': '31', 'type': 'argument_list', 'children': []}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'erevision'}; {'id': '35', 'type': 'call', 'children': ['36', '39']}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'get_item_sh_fields'}; {'id': '39', 'type': 'argument_list', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '42', 'type': 'return_statement', 'children': ['43']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'erevision'}
Add sorting hat enrichment fields for the author of the revision
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_sh_ids'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'backend_name'}; {'id': '7', 'type': 'block', 'children': ['8', '19', '29']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'identity_tuple'}; {'id': '11', 'type': 'call', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '13', 'type': 'argument_list', 'children': ['14']}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '18', 'type': 'argument_list', 'children': []}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'sh_ids'}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': '__get_sh_ids_cache'}; {'id': '26', 'type': 'argument_list', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'identity_tuple'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'backend_name'}; {'id': '29', 'type': 'return_statement', 'children': ['30']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'sh_ids'}
Return the Sorting Hat id and uuid for an identity
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_sh_identity'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'identity_field'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '60', '64', '77', '81', '101', '109']}; {'id': '10', 'type': 'function_definition', 'children': ['11', '12', '15']}; {'id': '11', 'type': 'function_name', 'children': [], 'value': 'fill_list_identity'}; {'id': '12', 'type': 'parameters', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'user_list_data'}; {'id': '15', 'type': 'block', 'children': ['16', '26', '41', '58']}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '21']}; {'id': '18', 'type': 'subscript', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '20', 'type': 'string', 'children': [], 'value': "'username'"}; {'id': '21', 'type': 'subscript', 'children': ['22', '25']}; {'id': '22', 'type': 'subscript', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'user_list_data'}; {'id': '24', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'__text__'"}; {'id': '26', 'type': 'if_statement', 'children': ['27', '32']}; {'id': '27', 'type': 'comparison_operator', 'children': ['28', '29'], 'value': 'in'}; {'id': '28', 'type': 'string', 'children': [], 'value': "'@'"}; {'id': '29', 'type': 'subscript', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '31', 'type': 'string', 'children': [], 'value': "'username'"}; {'id': '32', 'type': 'block', 'children': ['33']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '38']}; {'id': '35', 'type': 'subscript', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '37', 'type': 'string', 'children': [], 'value': "'email'"}; {'id': '38', 'type': 'subscript', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '40', 'type': 'string', 'children': [], 'value': "'username'"}; {'id': '41', 'type': 'if_statement', 'children': ['42', '47']}; {'id': '42', 'type': 'comparison_operator', 'children': ['43', '44'], 'value': 'in'}; {'id': '43', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '44', 'type': 'subscript', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'user_list_data'}; {'id': '46', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '47', 'type': 'block', 'children': ['48']}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '53']}; {'id': '50', 'type': 'subscript', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '52', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '53', 'type': 'subscript', 'children': ['54', '57']}; {'id': '54', 'type': 'subscript', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'user_list_data'}; {'id': '56', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '57', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '58', 'type': 'return_statement', 'children': ['59']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '63', 'type': 'dictionary', 'children': []}; {'id': '64', 'type': 'for_statement', 'children': ['65', '66', '70']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '66', 'type': 'list', 'children': ['67', '68', '69'], 'value': "['name', 'email', 'username']"}; {'id': '67', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '68', 'type': 'string', 'children': [], 'value': "'email'"}; {'id': '69', 'type': 'string', 'children': [], 'value': "'username'"}; {'id': '70', 'type': 'block', 'children': ['71']}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'assignment', 'children': ['73', '76']}; {'id': '73', 'type': 'subscript', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '76', 'type': 'None', 'children': []}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '81', 'type': 'if_statement', 'children': ['82', '92']}; {'id': '82', 'type': 'boolean_operator', 'children': ['83', '86'], 'value': 'and'}; {'id': '83', 'type': 'comparison_operator', 'children': ['84', '85'], 'value': 'in'}; {'id': '84', 'type': 'string', 'children': [], 'value': "'data'"}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '86', 'type': 'comparison_operator', 'children': ['87', '91'], 'value': '=='}; {'id': '87', 'type': 'call', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '89', 'type': 'argument_list', 'children': ['90']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '92', 'type': 'block', 'children': ['93']}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '96', 'type': 'subscript', 'children': ['97', '100']}; {'id': '97', 'type': 'subscript', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '99', 'type': 'string', 'children': [], 'value': "'data'"}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'identity_field'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'fill_list_identity'}; {'id': '106', 'type': 'argument_list', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'identity'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '109', 'type': 'return_statement', 'children': ['110']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'identity'}
Return a Sorting Hat identity using bugzilla user data
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '23']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'feed'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14', '17', '20']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'from_date'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'from_offset'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'category'}; {'id': '13', 'type': 'None', 'children': []}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'latest_items'}; {'id': '16', 'type': 'None', 'children': []}; {'id': '17', 'type': 'default_parameter', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'arthur_items'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'default_parameter', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'filter_classified'}; {'id': '22', 'type': 'None', 'children': []}; {'id': '23', 'type': 'block', 'children': ['24', '62', '72', '87', '100', '104', '147', '151', '203', '207', '218', '229', '319', '326']}; {'id': '24', 'type': 'if_statement', 'children': ['25', '28', '47']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'fetch_archive'}; {'id': '28', 'type': 'block', 'children': ['29', '39', '46']}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '32', 'type': 'call', 'children': ['33', '38']}; {'id': '33', 'type': 'attribute', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'perceval_backend'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'fetch_from_archive'}; {'id': '38', 'type': 'argument_list', 'children': []}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'call', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'feed_items'}; {'id': '44', 'type': 'argument_list', 'children': ['45']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '46', 'type': 'return_statement', 'children': []}; {'id': '47', 'type': 'elif_clause', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'arthur_items'}; {'id': '49', 'type': 'block', 'children': ['50', '54', '61']}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'arthur_items'}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'call', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'feed_items'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '61', 'type': 'return_statement', 'children': []}; {'id': '62', 'type': 'if_statement', 'children': ['63', '66']}; {'id': '63', 'type': 'boolean_operator', 'children': ['64', '65'], 'value': 'and'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'from_date'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'from_offset'}; {'id': '66', 'type': 'block', 'children': ['67']}; {'id': '67', 'type': 'raise_statement', 'children': ['68']}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '70', 'type': 'argument_list', 'children': ['71']}; {'id': '71', 'type': 'string', 'children': [], 'value': '"Can\'t not feed using from_date and from_offset."'}; {'id': '72', 'type': 'expression_statement', 'children': ['73']}; {'id': '73', 'type': 'assignment', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'filters_'}; {'id': '75', 'type': 'list', 'children': ['76'], 'value': '[get_repository_filter(self.perceval_backend,\n self.get_connector_name())]'}; {'id': '76', 'type': 'call', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'get_repository_filter'}; {'id': '78', 'type': 'argument_list', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'perceval_backend'}; {'id': '82', 'type': 'call', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'get_connector_name'}; {'id': '86', 'type': 'argument_list', 'children': []}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'inspect'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '94', 'type': 'argument_list', 'children': ['95']}; {'id': '95', 'type': 'attribute', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'perceval_backend'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'fetch'}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '103', 'type': 'None', 'children': []}; {'id': '104', 'type': 'if_statement', 'children': ['105', '110']}; {'id': '105', 'type': 'comparison_operator', 'children': ['106', '107'], 'value': 'in'}; {'id': '106', 'type': 'string', 'children': [], 'value': "'from_date'"}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '110', 'type': 'block', 'children': ['111', '139']}; {'id': '111', 'type': 'if_statement', 'children': ['112', '113', '118']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'from_date'}; {'id': '113', 'type': 'block', 'children': ['114']}; {'id': '114', 'type': 'expression_statement', 'children': ['115']}; {'id': '115', 'type': 'assignment', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'from_date'}; {'id': '118', 'type': 'else_clause', 'children': ['119']}; {'id': '119', 'type': 'block', 'children': ['120', '133']}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '125']}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'get_last_update_from_es'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'keyword_argument', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'filters_'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'filters_'}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'assignment', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'call', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '144', 'type': 'argument_list', 'children': ['145', '146']}; {'id': '145', 'type': 'string', 'children': [], 'value': '"Incremental from: %s"'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '150', 'type': 'None', 'children': []}; {'id': '151', 'type': 'if_statement', 'children': ['152', '157']}; {'id': '152', 'type': 'comparison_operator', 'children': ['153', '154'], 'value': 'in'}; {'id': '153', 'type': 'string', 'children': [], 'value': "'offset'"}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'signature'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '157', 'type': 'block', 'children': ['158', '181']}; {'id': '158', 'type': 'if_statement', 'children': ['159', '160', '165']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'from_offset'}; {'id': '160', 'type': 'block', 'children': ['161']}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'assignment', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'from_offset'}; {'id': '165', 'type': 'else_clause', 'children': ['166']}; {'id': '166', 'type': 'block', 'children': ['167']}; {'id': '167', 'type': 'expression_statement', 'children': ['168']}; {'id': '168', 'type': 'assignment', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '170', 'type': 'call', 'children': ['171', '176']}; {'id': '171', 'type': 'attribute', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'elastic'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'get_last_offset'}; {'id': '176', 'type': 'argument_list', 'children': ['177', '178']}; {'id': '177', 'type': 'string', 'children': [], 'value': '"offset"'}; {'id': '178', 'type': 'keyword_argument', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'filters_'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'filters_'}; {'id': '181', 'type': 'if_statement', 'children': ['182', '185', '194']}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '184'], 'value': 'is'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '184', 'type': 'None', 'children': []}; {'id': '185', 'type': 'block', 'children': ['186']}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '191', 'type': 'argument_list', 'children': ['192', '193']}; {'id': '192', 'type': 'string', 'children': [], 'value': '"Incremental from: %i offset"'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '194', 'type': 'else_clause', 'children': ['195']}; {'id': '195', 'type': 'block', 'children': ['196']}; {'id': '196', 'type': 'expression_statement', 'children': ['197']}; {'id': '197', 'type': 'call', 'children': ['198', '201']}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'string', 'children': [], 'value': '"Not incremental"'}; {'id': '203', 'type': 'expression_statement', 'children': ['204']}; {'id': '204', 'type': 'assignment', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '206', 'type': 'dictionary', 'children': []}; {'id': '207', 'type': 'if_statement', 'children': ['208', '211']}; {'id': '208', 'type': 'comparison_operator', 'children': ['209', '210'], 'value': 'is'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'category'}; {'id': '210', 'type': 'None', 'children': []}; {'id': '211', 'type': 'block', 'children': ['212']}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '217']}; {'id': '214', 'type': 'subscript', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '216', 'type': 'string', 'children': [], 'value': "'category'"}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'category'}; {'id': '218', 'type': 'if_statement', 'children': ['219', '222']}; {'id': '219', 'type': 'comparison_operator', 'children': ['220', '221'], 'value': 'is'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'filter_classified'}; {'id': '221', 'type': 'None', 'children': []}; {'id': '222', 'type': 'block', 'children': ['223']}; {'id': '223', 'type': 'expression_statement', 'children': ['224']}; {'id': '224', 'type': 'assignment', 'children': ['225', '228']}; {'id': '225', 'type': 'subscript', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '227', 'type': 'string', 'children': [], 'value': "'filter_classified'"}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'filter_classified'}; {'id': '229', 'type': 'if_statement', 'children': ['230', '231', '250', '282', '305']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'latest_items'}; {'id': '231', 'type': 'block', 'children': ['232', '238']}; {'id': '232', 'type': 'expression_statement', 'children': ['233']}; {'id': '233', 'type': 'assignment', 'children': ['234', '237']}; {'id': '234', 'type': 'subscript', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '236', 'type': 'string', 'children': [], 'value': "'latest_items'"}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'latest_items'}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '241', 'type': 'call', 'children': ['242', '247']}; {'id': '242', 'type': 'attribute', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'perceval_backend'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'fetch'}; {'id': '247', 'type': 'argument_list', 'children': ['248']}; {'id': '248', 'type': 'dictionary_splat', 'children': ['249']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '250', 'type': 'elif_clause', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '252', 'type': 'block', 'children': ['253', '264', '270']}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '256', 'type': 'call', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '260', 'type': 'argument_list', 'children': ['261']}; {'id': '261', 'type': 'keyword_argument', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'tzinfo'}; {'id': '263', 'type': 'None', 'children': []}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'assignment', 'children': ['266', '269']}; {'id': '266', 'type': 'subscript', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '268', 'type': 'string', 'children': [], 'value': "'from_date'"}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'last_update'}; {'id': '270', 'type': 'expression_statement', 'children': ['271']}; {'id': '271', 'type': 'assignment', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '273', 'type': 'call', 'children': ['274', '279']}; {'id': '274', 'type': 'attribute', 'children': ['275', '278']}; {'id': '275', 'type': 'attribute', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'perceval_backend'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'fetch'}; {'id': '279', 'type': 'argument_list', 'children': ['280']}; {'id': '280', 'type': 'dictionary_splat', 'children': ['281']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '282', 'type': 'elif_clause', 'children': ['283', '286']}; {'id': '283', 'type': 'comparison_operator', 'children': ['284', '285'], 'value': 'is'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '285', 'type': 'None', 'children': []}; {'id': '286', 'type': 'block', 'children': ['287', '293']}; {'id': '287', 'type': 'expression_statement', 'children': ['288']}; {'id': '288', 'type': 'assignment', 'children': ['289', '292']}; {'id': '289', 'type': 'subscript', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '291', 'type': 'string', 'children': [], 'value': "'offset'"}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '293', 'type': 'expression_statement', 'children': ['294']}; {'id': '294', 'type': 'assignment', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '296', 'type': 'call', 'children': ['297', '302']}; {'id': '297', 'type': 'attribute', 'children': ['298', '301']}; {'id': '298', 'type': 'attribute', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'perceval_backend'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'fetch'}; {'id': '302', 'type': 'argument_list', 'children': ['303']}; {'id': '303', 'type': 'dictionary_splat', 'children': ['304']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '305', 'type': 'else_clause', 'children': ['306']}; {'id': '306', 'type': 'block', 'children': ['307']}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'assignment', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '310', 'type': 'call', 'children': ['311', '316']}; {'id': '311', 'type': 'attribute', 'children': ['312', '315']}; {'id': '312', 'type': 'attribute', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'perceval_backend'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'fetch'}; {'id': '316', 'type': 'argument_list', 'children': ['317']}; {'id': '317', 'type': 'dictionary_splat', 'children': ['318']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '319', 'type': 'expression_statement', 'children': ['320']}; {'id': '320', 'type': 'call', 'children': ['321', '324']}; {'id': '321', 'type': 'attribute', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'feed_items'}; {'id': '324', 'type': 'argument_list', 'children': ['325']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '326', 'type': 'expression_statement', 'children': ['327']}; {'id': '327', 'type': 'call', 'children': ['328', '331']}; {'id': '328', 'type': 'attribute', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'update_items'}; {'id': '331', 'type': 'argument_list', 'children': []}
Feed data in Elastic from Perceval or Arthur
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_make_serializer'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'meas'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'rm_none'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'placeholder'}; {'id': '9', 'type': 'block', 'children': ['10', '16', '20', '24', '28', '32', '177', '183', '200', '211', '218', '225', '229', '263', '269', '292']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'call', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': '_validate_schema'}; {'id': '13', 'type': 'argument_list', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'placeholder'}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '19', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '23', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '27', 'type': 'None', 'children': []}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'meas'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'meas'}; {'id': '32', 'type': 'for_statement', 'children': ['33', '36', '41']}; {'id': '33', 'type': 'pattern_list', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '36', 'type': 'call', 'children': ['37', '40']}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '40', 'type': 'argument_list', 'children': []}; {'id': '41', 'type': 'block', 'children': ['42']}; {'id': '42', 'type': 'if_statement', 'children': ['43', '46', '51', '60', '78', '96', '108', '120', '134', '146', '158', '170']}; {'id': '43', 'type': 'comparison_operator', 'children': ['44', '45'], 'value': 'is'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'MEASUREMENT'}; {'id': '46', 'type': 'block', 'children': ['47']}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'meas'}; {'id': '50', 'type': 'string', 'children': [], 'value': 'f"{{i.{k}}}"'}; {'id': '51', 'type': 'elif_clause', 'children': ['52', '55']}; {'id': '52', 'type': 'comparison_operator', 'children': ['53', '54'], 'value': 'is'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'TIMEINT'}; {'id': '55', 'type': 'block', 'children': ['56']}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '59', 'type': 'string', 'children': [], 'value': 'f"{{i.{k}}}"'}; {'id': '60', 'type': 'elif_clause', 'children': ['61', '64']}; {'id': '61', 'type': 'comparison_operator', 'children': ['62', '63'], 'value': 'is'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'TIMESTR'}; {'id': '64', 'type': 'block', 'children': ['65']}; {'id': '65', 'type': 'if_statement', 'children': ['66', '67', '72']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'pd'}; {'id': '67', 'type': 'block', 'children': ['68']}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '71', 'type': 'string', 'children': [], 'value': 'f"{{pd.Timestamp(i.{k} or 0).value}}"'}; {'id': '72', 'type': 'else_clause', 'children': ['73']}; {'id': '73', 'type': 'block', 'children': ['74']}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'assignment', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '77', 'type': 'string', 'children': [], 'value': 'f"{{dt_to_int(str_to_dt(i.{k}))}}"'}; {'id': '78', 'type': 'elif_clause', 'children': ['79', '82']}; {'id': '79', 'type': 'comparison_operator', 'children': ['80', '81'], 'value': 'is'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'TIMEDT'}; {'id': '82', 'type': 'block', 'children': ['83']}; {'id': '83', 'type': 'if_statement', 'children': ['84', '85', '90']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'pd'}; {'id': '85', 'type': 'block', 'children': ['86']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'assignment', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '89', 'type': 'string', 'children': [], 'value': 'f"{{pd.Timestamp(i.{k} or 0).value}}"'}; {'id': '90', 'type': 'else_clause', 'children': ['91']}; {'id': '91', 'type': 'block', 'children': ['92']}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'assignment', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '95', 'type': 'string', 'children': [], 'value': 'f"{{dt_to_int(i.{k})}}"'}; {'id': '96', 'type': 'elif_clause', 'children': ['97', '100']}; {'id': '97', 'type': 'comparison_operator', 'children': ['98', '99'], 'value': 'is'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'TAG'}; {'id': '100', 'type': 'block', 'children': ['101']}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'call', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'string', 'children': [], 'value': 'f"{k}={{str(i.{k}).translate(tag_escape)}}"'}; {'id': '108', 'type': 'elif_clause', 'children': ['109', '112']}; {'id': '109', 'type': 'comparison_operator', 'children': ['110', '111'], 'value': 'is'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'TAGENUM'}; {'id': '112', 'type': 'block', 'children': ['113']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'call', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '118', 'type': 'argument_list', 'children': ['119']}; {'id': '119', 'type': 'string', 'children': [], 'value': 'f"{k}={{getattr(i.{k}, \'name\', i.{k} or None)}}"'}; {'id': '120', 'type': 'elif_clause', 'children': ['121', '126']}; {'id': '121', 'type': 'comparison_operator', 'children': ['122', '123'], 'value': 'in'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '123', 'type': 'tuple', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'FLOAT'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'BOOL'}; {'id': '126', 'type': 'block', 'children': ['127']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'call', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '132', 'type': 'argument_list', 'children': ['133']}; {'id': '133', 'type': 'string', 'children': [], 'value': 'f"{k}={{i.{k}}}"'}; {'id': '134', 'type': 'elif_clause', 'children': ['135', '138']}; {'id': '135', 'type': 'comparison_operator', 'children': ['136', '137'], 'value': 'is'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'INT'}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'call', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'string', 'children': [], 'value': 'f"{k}={{i.{k}}}i"'}; {'id': '146', 'type': 'elif_clause', 'children': ['147', '150']}; {'id': '147', 'type': 'comparison_operator', 'children': ['148', '149'], 'value': 'is'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'STR'}; {'id': '150', 'type': 'block', 'children': ['151']}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'call', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'string', 'children': [], 'value': 'f"{k}=\\\\\\"{{str(i.{k}).translate(str_escape)}}\\\\\\""'}; {'id': '158', 'type': 'elif_clause', 'children': ['159', '162']}; {'id': '159', 'type': 'comparison_operator', 'children': ['160', '161'], 'value': 'is'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'ENUM'}; {'id': '162', 'type': 'block', 'children': ['163']}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '168', 'type': 'argument_list', 'children': ['169']}; {'id': '169', 'type': 'string', 'children': [], 'value': 'f"{k}=\\\\\\"{{getattr(i.{k}, \'name\', i.{k} or None)}}\\\\\\""'}; {'id': '170', 'type': 'else_clause', 'children': ['171']}; {'id': '171', 'type': 'block', 'children': ['172']}; {'id': '172', 'type': 'raise_statement', 'children': ['173']}; {'id': '173', 'type': 'call', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'SchemaError'}; {'id': '175', 'type': 'argument_list', 'children': ['176']}; {'id': '176', 'type': 'string', 'children': [], 'value': 'f"Invalid attribute type {k!r}: {t!r}"'}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '180', 'type': 'boolean_operator', 'children': ['181', '182'], 'value': 'or'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '182', 'type': 'dictionary', 'children': []}; {'id': '183', 'type': 'for_statement', 'children': ['184', '187', '192']}; {'id': '184', 'type': 'pattern_list', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '191', 'type': 'argument_list', 'children': []}; {'id': '192', 'type': 'block', 'children': ['193']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'call', 'children': ['195', '198']}; {'id': '195', 'type': 'attribute', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '198', 'type': 'argument_list', 'children': ['199']}; {'id': '199', 'type': 'string', 'children': [], 'value': 'f"{k}={v}"'}; {'id': '200', 'type': 'if_statement', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'placeholder'}; {'id': '202', 'type': 'block', 'children': ['203']}; {'id': '203', 'type': 'expression_statement', 'children': ['204']}; {'id': '204', 'type': 'call', 'children': ['205', '208']}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'insert'}; {'id': '208', 'type': 'argument_list', 'children': ['209', '210']}; {'id': '209', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '210', 'type': 'string', 'children': [], 'value': 'f"_=true"'}; {'id': '211', 'type': 'expression_statement', 'children': ['212']}; {'id': '212', 'type': 'assignment', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'sep'}; {'id': '214', 'type': 'conditional_expression', 'children': ['215', '216', '217'], 'value': 'if'}; {'id': '215', 'type': 'string', 'children': [], 'value': "','"}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '217', 'type': 'string', 'children': [], 'value': "''"}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'assignment', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '221', 'type': 'conditional_expression', 'children': ['222', '223', '224'], 'value': 'if'}; {'id': '222', 'type': 'string', 'children': [], 'value': "f' {ts}'"}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '224', 'type': 'string', 'children': [], 'value': "''"}; {'id': '225', 'type': 'expression_statement', 'children': ['226']}; {'id': '226', 'type': 'assignment', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '228', 'type': 'string', 'children': [], 'value': 'f"{meas}{sep}{\',\'.join(tags)} {\',\'.join(fields)}{ts}"'}; {'id': '229', 'type': 'if_statement', 'children': ['230', '231', '249']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'rm_none'}; {'id': '231', 'type': 'block', 'children': ['232', '236']}; {'id': '232', 'type': 'expression_statement', 'children': ['233']}; {'id': '233', 'type': 'assignment', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'pat'}; {'id': '235', 'type': 'string', 'children': [], 'value': 'r\',\\w+="?None"?i?\''}; {'id': '236', 'type': 'expression_statement', 'children': ['237']}; {'id': '237', 'type': 'assignment', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '239', 'type': 'call', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'eval'}; {'id': '241', 'type': 'argument_list', 'children': ['242']}; {'id': '242', 'type': 'call', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'string', 'children': [], 'value': '\'lambda i: re.sub(r\\\'{}\\\', "", f"{}").encode()\''}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '246', 'type': 'argument_list', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'pat'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '249', 'type': 'else_clause', 'children': ['250']}; {'id': '250', 'type': 'block', 'children': ['251']}; {'id': '251', 'type': 'expression_statement', 'children': ['252']}; {'id': '252', 'type': 'assignment', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '254', 'type': 'call', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'eval'}; {'id': '256', 'type': 'argument_list', 'children': ['257']}; {'id': '257', 'type': 'call', 'children': ['258', '261']}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'string', 'children': [], 'value': '\'lambda i: f"{}".encode()\''}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '261', 'type': 'argument_list', 'children': ['262']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'assignment', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': '__doc__'}; {'id': '268', 'type': 'string', 'children': [], 'value': '"Returns InfluxDB line protocol representation of user-defined class"'}; {'id': '269', 'type': 'expression_statement', 'children': ['270']}; {'id': '270', 'type': 'assignment', 'children': ['271', '274']}; {'id': '271', 'type': 'attribute', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': '_args'}; {'id': '274', 'type': 'call', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '276', 'type': 'argument_list', 'children': ['277', '280', '283', '286', '289']}; {'id': '277', 'type': 'keyword_argument', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'meas'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'meas'}; {'id': '280', 'type': 'keyword_argument', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'schema'}; {'id': '283', 'type': 'keyword_argument', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'rm_none'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'rm_none'}; {'id': '286', 'type': 'keyword_argument', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '289', 'type': 'keyword_argument', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'placeholder'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'placeholder'}; {'id': '292', 'type': 'return_statement', 'children': ['293']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'f'}
Factory of line protocol parsers
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'serialize'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '9']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'measurement'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'tag_columns'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'dictionary_splat_pattern', 'children': ['10']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '11', 'type': 'type', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '13', 'type': 'block', 'children': ['14', '24', '41', '50', '65', '69', '73', '90', '177', '197', '214']}; {'id': '14', 'type': 'if_statement', 'children': ['15', '18']}; {'id': '15', 'type': 'comparison_operator', 'children': ['16', '17'], 'value': 'is'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'measurement'}; {'id': '17', 'type': 'None', 'children': []}; {'id': '18', 'type': 'block', 'children': ['19']}; {'id': '19', 'type': 'raise_statement', 'children': ['20']}; {'id': '20', 'type': 'call', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '22', 'type': 'argument_list', 'children': ['23']}; {'id': '23', 'type': 'string', 'children': [], 'value': '"Missing \'measurement\'"'}; {'id': '24', 'type': 'if_statement', 'children': ['25', '35']}; {'id': '25', 'type': 'not_operator', 'children': ['26']}; {'id': '26', 'type': 'call', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '28', 'type': 'argument_list', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'pd'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'DatetimeIndex'}; {'id': '35', 'type': 'block', 'children': ['36']}; {'id': '36', 'type': 'raise_statement', 'children': ['37']}; {'id': '37', 'type': 'call', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '39', 'type': 'argument_list', 'children': ['40']}; {'id': '40', 'type': 'string', 'children': [], 'value': "'DataFrame index is not DatetimeIndex'"}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'tag_columns'}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'boolean_operator', 'children': ['48', '49'], 'value': 'or'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'tag_columns'}; {'id': '49', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'isnull'}; {'id': '53', 'type': 'call', 'children': ['54', '61']}; {'id': '54', 'type': 'attribute', 'children': ['55', '60']}; {'id': '55', 'type': 'call', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'isnull'}; {'id': '59', 'type': 'argument_list', 'children': []}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '61', 'type': 'argument_list', 'children': ['62']}; {'id': '62', 'type': 'keyword_argument', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'axis'}; {'id': '64', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '68', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '72', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '73', 'type': 'for_statement', 'children': ['74', '77', '82']}; {'id': '74', 'type': 'pattern_list', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '77', 'type': 'call', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'extra_tags'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '81', 'type': 'argument_list', 'children': []}; {'id': '82', 'type': 'block', 'children': ['83']}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'call', 'children': ['85', '88']}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'string', 'children': [], 'value': 'f"{k}={escape(v, key_escape)}"'}; {'id': '90', 'type': 'for_statement', 'children': ['91', '96', '106']}; {'id': '91', 'type': 'pattern_list', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '93', 'type': 'tuple_pattern', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '96', 'type': 'call', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'call', 'children': ['100', '105']}; {'id': '100', 'type': 'attribute', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'dtypes'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '105', 'type': 'argument_list', 'children': []}; {'id': '106', 'type': 'block', 'children': ['107', '116']}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'assignment', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '110', 'type': 'call', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'translate'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'key_escape'}; {'id': '116', 'type': 'if_statement', 'children': ['117', '120', '128', '146', '168']}; {'id': '117', 'type': 'comparison_operator', 'children': ['118', '119'], 'value': 'in'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'tag_columns'}; {'id': '120', 'type': 'block', 'children': ['121']}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'string', 'children': [], 'value': 'f"{k}={{p[{i+1}]}}"'}; {'id': '128', 'type': 'elif_clause', 'children': ['129', '138']}; {'id': '129', 'type': 'call', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'issubclass'}; {'id': '131', 'type': 'argument_list', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'integer'}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'call', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'string', 'children': [], 'value': 'f"{k}={{p[{i+1}]}}i"'}; {'id': '146', 'type': 'elif_clause', 'children': ['147', '160']}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'issubclass'}; {'id': '149', 'type': 'argument_list', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '153', 'type': 'tuple', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'bool_'}; {'id': '160', 'type': 'block', 'children': ['161']}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'call', 'children': ['163', '166']}; {'id': '163', 'type': 'attribute', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'string', 'children': [], 'value': 'f"{k}={{p[{i+1}]}}"'}; {'id': '168', 'type': 'else_clause', 'children': ['169']}; {'id': '169', 'type': 'block', 'children': ['170']}; {'id': '170', 'type': 'expression_statement', 'children': ['171']}; {'id': '171', 'type': 'call', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '175', 'type': 'argument_list', 'children': ['176']}; {'id': '176', 'type': 'string', 'children': [], 'value': 'f"{k}=\\"{{p[{i+1}]}}\\""'}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '180', 'type': 'tuple', 'children': ['181', '182', '183', '189', '190', '196']}; {'id': '181', 'type': 'string', 'children': [], 'value': "f'{measurement}'"}; {'id': '182', 'type': 'string', 'children': [], 'value': 'f\'{"," if tags else ""}\''}; {'id': '183', 'type': 'call', 'children': ['184', '187']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'string', 'children': [], 'value': "','"}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '187', 'type': 'argument_list', 'children': ['188']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'tags'}; {'id': '189', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '190', 'type': 'call', 'children': ['191', '194']}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'string', 'children': [], 'value': "','"}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '194', 'type': 'argument_list', 'children': ['195']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '196', 'type': 'string', 'children': [], 'value': "' {p[0].value}'"}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'assignment', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '200', 'type': 'call', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'eval'}; {'id': '202', 'type': 'argument_list', 'children': ['203']}; {'id': '203', 'type': 'call', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'string', 'children': [], 'value': '"lambda p: f\'{}\'"'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '207', 'type': 'argument_list', 'children': ['208']}; {'id': '208', 'type': 'call', 'children': ['209', '212']}; {'id': '209', 'type': 'attribute', 'children': ['210', '211']}; {'id': '210', 'type': 'string', 'children': [], 'value': "''"}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'fmt'}; {'id': '214', 'type': 'if_statement', 'children': ['215', '220', '290']}; {'id': '215', 'type': 'call', 'children': ['216', '219']}; {'id': '216', 'type': 'attribute', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'isnull'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '219', 'type': 'argument_list', 'children': []}; {'id': '220', 'type': 'block', 'children': ['221', '235', '242', '274']}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'lp'}; {'id': '224', 'type': 'call', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '226', 'type': 'argument_list', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '228', 'type': 'call', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': '_itertuples'}; {'id': '230', 'type': 'argument_list', 'children': ['231']}; {'id': '231', 'type': 'subscript', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '233', 'type': 'unary_operator', 'children': ['234'], 'value': '~'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'isnull'}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'rep'}; {'id': '238', 'type': 'call', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': '_replace'}; {'id': '240', 'type': 'argument_list', 'children': ['241']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '242', 'type': 'expression_statement', 'children': ['243']}; {'id': '243', 'type': 'assignment', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'lp_nan'}; {'id': '245', 'type': 'generator_expression', 'children': ['246', '266']}; {'id': '246', 'type': 'call', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'reduce'}; {'id': '248', 'type': 'argument_list', 'children': ['249', '261', '262']}; {'id': '249', 'type': 'lambda', 'children': ['250', '253']}; {'id': '250', 'type': 'lambda_parameters', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '253', 'type': 'call', 'children': ['254', '257']}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '257', 'type': 'argument_list', 'children': ['258', '260']}; {'id': '258', 'type': 'list_splat', 'children': ['259']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'rep'}; {'id': '262', 'type': 'call', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '264', 'type': 'argument_list', 'children': ['265']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '266', 'type': 'for_in_clause', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '268', 'type': 'call', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': '_itertuples'}; {'id': '270', 'type': 'argument_list', 'children': ['271']}; {'id': '271', 'type': 'subscript', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'isnull'}; {'id': '274', 'type': 'return_statement', 'children': ['275']}; {'id': '275', 'type': 'call', 'children': ['276', '288']}; {'id': '276', 'type': 'attribute', 'children': ['277', '287']}; {'id': '277', 'type': 'call', 'children': ['278', '281']}; {'id': '278', 'type': 'attribute', 'children': ['279', '280']}; {'id': '279', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '281', 'type': 'argument_list', 'children': ['282']}; {'id': '282', 'type': 'call', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'chain'}; {'id': '284', 'type': 'argument_list', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'lp'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'lp_nan'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'encode'}; {'id': '288', 'type': 'argument_list', 'children': ['289']}; {'id': '289', 'type': 'string', 'children': [], 'value': "'utf-8'"}; {'id': '290', 'type': 'else_clause', 'children': ['291']}; {'id': '291', 'type': 'block', 'children': ['292']}; {'id': '292', 'type': 'return_statement', 'children': ['293']}; {'id': '293', 'type': 'call', 'children': ['294', '309']}; {'id': '294', 'type': 'attribute', 'children': ['295', '308']}; {'id': '295', 'type': 'call', 'children': ['296', '299']}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '299', 'type': 'argument_list', 'children': ['300']}; {'id': '300', 'type': 'call', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '302', 'type': 'argument_list', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '304', 'type': 'call', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': '_itertuples'}; {'id': '306', 'type': 'argument_list', 'children': ['307']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'df'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'encode'}; {'id': '309', 'type': 'argument_list', 'children': ['310']}; {'id': '310', 'type': 'string', 'children': [], 'value': "'utf-8'"}
Converts a Pandas DataFrame into line protocol format
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_dataset'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '6', 'type': 'block', 'children': ['7', '11', '19', '216']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '10', 'type': 'True', 'children': []}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'assignment', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'dataset_path'}; {'id': '14', 'type': 'binary_operator', 'children': ['15', '18'], 'value': '+'}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'base_dataset_path'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '19', 'type': 'if_statement', 'children': ['20', '25']}; {'id': '20', 'type': 'not_operator', 'children': ['21']}; {'id': '21', 'type': 'call', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'isdir'}; {'id': '23', 'type': 'argument_list', 'children': ['24']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'dataset_path'}; {'id': '25', 'type': 'block', 'children': ['26', '30', '184']}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'was_error'}; {'id': '29', 'type': 'False', 'children': []}; {'id': '30', 'type': 'for_statement', 'children': ['31', '32', '36']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'iteration'}; {'id': '32', 'type': 'call', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '36', 'type': 'block', 'children': ['37']}; {'id': '37', 'type': 'if_statement', 'children': ['38', '45']}; {'id': '38', 'type': 'boolean_operator', 'children': ['39', '42'], 'value': 'or'}; {'id': '39', 'type': 'comparison_operator', 'children': ['40', '41'], 'value': '=='}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'iteration'}; {'id': '41', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '42', 'type': 'comparison_operator', 'children': ['43', '44'], 'value': 'is'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'was_error'}; {'id': '44', 'type': 'True', 'children': []}; {'id': '45', 'type': 'block', 'children': ['46', '52', '117']}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'zip_path'}; {'id': '49', 'type': 'binary_operator', 'children': ['50', '51'], 'value': '+'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'dataset_path'}; {'id': '51', 'type': 'string', 'children': [], 'value': '".zip"'}; {'id': '52', 'type': 'if_statement', 'children': ['53', '58']}; {'id': '53', 'type': 'not_operator', 'children': ['54']}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'isfile'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'zip_path'}; {'id': '58', 'type': 'block', 'children': ['59']}; {'id': '59', 'type': 'try_statement', 'children': ['60', '98']}; {'id': '60', 'type': 'block', 'children': ['61']}; {'id': '61', 'type': 'with_statement', 'children': ['62', '82']}; {'id': '62', 'type': 'with_clause', 'children': ['63']}; {'id': '63', 'type': 'with_item', 'children': ['64']}; {'id': '64', 'type': 'as_pattern', 'children': ['65', '80']}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'DLProgress'}; {'id': '67', 'type': 'argument_list', 'children': ['68', '71', '74', '77']}; {'id': '68', 'type': 'keyword_argument', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'unit'}; {'id': '70', 'type': 'string', 'children': [], 'value': "'B'"}; {'id': '71', 'type': 'keyword_argument', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'unit_scale'}; {'id': '73', 'type': 'True', 'children': []}; {'id': '74', 'type': 'keyword_argument', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'miniters'}; {'id': '76', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '77', 'type': 'keyword_argument', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '80', 'type': 'as_pattern_target', 'children': ['81']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'pbar'}; {'id': '82', 'type': 'block', 'children': ['83']}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'call', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'urlretrieve'}; {'id': '86', 'type': 'argument_list', 'children': ['87', '94', '95']}; {'id': '87', 'type': 'subscript', 'children': ['88', '93']}; {'id': '88', 'type': 'subscript', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'datasets'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '93', 'type': 'string', 'children': [], 'value': '"url"'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'zip_path'}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'pbar'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'hook'}; {'id': '98', 'type': 'except_clause', 'children': ['99', '103']}; {'id': '99', 'type': 'as_pattern', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '101', 'type': 'as_pattern_target', 'children': ['102']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '103', 'type': 'block', 'children': ['104', '113']}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'binary_operator', 'children': ['109', '110'], 'value': '%'}; {'id': '109', 'type': 'string', 'children': [], 'value': '"Error downloading %s: %s"'}; {'id': '110', 'type': 'tuple', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'was_error'}; {'id': '116', 'type': 'True', 'children': []}; {'id': '117', 'type': 'if_statement', 'children': ['118', '123']}; {'id': '118', 'type': 'not_operator', 'children': ['119']}; {'id': '119', 'type': 'call', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'isdir'}; {'id': '121', 'type': 'argument_list', 'children': ['122']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'dataset_path'}; {'id': '123', 'type': 'block', 'children': ['124']}; {'id': '124', 'type': 'try_statement', 'children': ['125', '154']}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'with_statement', 'children': ['127', '138']}; {'id': '127', 'type': 'with_clause', 'children': ['128']}; {'id': '128', 'type': 'with_item', 'children': ['129']}; {'id': '129', 'type': 'as_pattern', 'children': ['130', '136']}; {'id': '130', 'type': 'call', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'zipfile'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'ZipFile'}; {'id': '134', 'type': 'argument_list', 'children': ['135']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'zip_path'}; {'id': '136', 'type': 'as_pattern_target', 'children': ['137']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'zip_archive'}; {'id': '138', 'type': 'block', 'children': ['139', '148']}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'call', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'zip_archive'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'extractall'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'keyword_argument', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'dataset_path'}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'call', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'zip_archive'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '153', 'type': 'argument_list', 'children': []}; {'id': '154', 'type': 'except_clause', 'children': ['155', '159']}; {'id': '155', 'type': 'as_pattern', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '157', 'type': 'as_pattern_target', 'children': ['158']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '159', 'type': 'block', 'children': ['160', '169', '180']}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'binary_operator', 'children': ['165', '166'], 'value': '%'}; {'id': '165', 'type': 'string', 'children': [], 'value': '"Error unzipping %s: %s"'}; {'id': '166', 'type': 'tuple', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'zip_path'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'ex'}; {'id': '169', 'type': 'try_statement', 'children': ['170', '176']}; {'id': '170', 'type': 'block', 'children': ['171']}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'call', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'zip_path'}; {'id': '176', 'type': 'except_clause', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'FileNotFoundError'}; {'id': '178', 'type': 'block', 'children': ['179']}; {'id': '179', 'type': 'pass_statement', 'children': []}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'assignment', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'was_error'}; {'id': '183', 'type': 'True', 'children': []}; {'id': '184', 'type': 'if_statement', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'was_error'}; {'id': '186', 'type': 'block', 'children': ['187', '192', '205', '212']}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'call', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'string', 'children': [], 'value': '"\\nThis recognizer is trained by the CASIA handwriting database."'}; {'id': '192', 'type': 'expression_statement', 'children': ['193']}; {'id': '193', 'type': 'call', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'binary_operator', 'children': ['197', '198'], 'value': '%'}; {'id': '197', 'type': 'string', 'children': [], 'value': '"If the download doesn\'t work, you can get the files at %s"'}; {'id': '198', 'type': 'subscript', 'children': ['199', '204']}; {'id': '199', 'type': 'subscript', 'children': ['200', '203']}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'datasets'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '204', 'type': 'string', 'children': [], 'value': '"url"'}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'call', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '208', 'type': 'argument_list', 'children': ['209']}; {'id': '209', 'type': 'concatenated_string', 'children': ['210', '211']}; {'id': '210', 'type': 'string', 'children': [], 'value': '"If you have download problems, "'}; {'id': '211', 'type': 'string', 'children': [], 'value': '"wget may be effective at downloading because of download resuming."'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '215', 'type': 'False', 'children': []}; {'id': '216', 'type': 'return_statement', 'children': ['217']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'success'}
Checks to see if the dataset is present. If not, it downloads and unzips it.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '14']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'makeNodeTuple'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8', '9', '10', '11', '12', '13']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'idVal'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'nodeInfo'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'fullInfo'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'nodeType'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'coreCitesDict'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'coreValues'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'detailedValues'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'addCR'}; {'id': '14', 'type': 'block', 'children': ['15', '19', '304', '316', '325']}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'assignment', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '18', 'type': 'dictionary', 'children': []}; {'id': '19', 'type': 'if_statement', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'nodeInfo'}; {'id': '21', 'type': 'block', 'children': ['22']}; {'id': '22', 'type': 'if_statement', 'children': ['23', '26', '249', '282', '296']}; {'id': '23', 'type': 'comparison_operator', 'children': ['24', '25'], 'value': '=='}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'nodeType'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'full'"}; {'id': '26', 'type': 'block', 'children': ['27']}; {'id': '27', 'type': 'if_statement', 'children': ['28', '29', '237']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'coreValues'}; {'id': '29', 'type': 'block', 'children': ['30']}; {'id': '30', 'type': 'if_statement', 'children': ['31', '34', '204']}; {'id': '31', 'type': 'comparison_operator', 'children': ['32', '33'], 'value': 'in'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'coreCitesDict'}; {'id': '34', 'type': 'block', 'children': ['35', '41', '49', '171', '177']}; {'id': '35', 'type': 'expression_statement', 'children': ['36']}; {'id': '36', 'type': 'assignment', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'R'}; {'id': '38', 'type': 'subscript', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'coreCitesDict'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '46']}; {'id': '43', 'type': 'subscript', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '45', 'type': 'string', 'children': [], 'value': "'MK-ID'"}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'R'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '49', 'type': 'if_statement', 'children': ['50', '52', '126']}; {'id': '50', 'type': 'not_operator', 'children': ['51']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'detailedValues'}; {'id': '52', 'type': 'block', 'children': ['53', '57', '115']}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'infoVals'}; {'id': '56', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '57', 'type': 'for_statement', 'children': ['58', '59', '60']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'coreValues'}; {'id': '60', 'type': 'block', 'children': ['61', '70']}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'tagVal'}; {'id': '64', 'type': 'call', 'children': ['65', '68']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'R'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '68', 'type': 'argument_list', 'children': ['69']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '70', 'type': 'if_statement', 'children': ['71', '76', '90', '112']}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '73', 'type': 'argument_list', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'tagVal'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '76', 'type': 'block', 'children': ['77']}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'call', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'infoVals'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'tagVal'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '87', 'type': 'argument_list', 'children': ['88', '89']}; {'id': '88', 'type': 'string', 'children': [], 'value': "','"}; {'id': '89', 'type': 'string', 'children': [], 'value': "''"}; {'id': '90', 'type': 'elif_clause', 'children': ['91', '96']}; {'id': '91', 'type': 'call', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '93', 'type': 'argument_list', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'tagVal'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '96', 'type': 'block', 'children': ['97']}; {'id': '97', 'type': 'expression_statement', 'children': ['98']}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'infoVals'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'call', 'children': ['104', '109']}; {'id': '104', 'type': 'attribute', 'children': ['105', '108']}; {'id': '105', 'type': 'subscript', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'tagVal'}; {'id': '107', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '109', 'type': 'argument_list', 'children': ['110', '111']}; {'id': '110', 'type': 'string', 'children': [], 'value': "','"}; {'id': '111', 'type': 'string', 'children': [], 'value': "''"}; {'id': '112', 'type': 'else_clause', 'children': ['113']}; {'id': '113', 'type': 'block', 'children': ['114']}; {'id': '114', 'type': 'pass_statement', 'children': []}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'id': '116', 'type': 'assignment', 'children': ['117', '120']}; {'id': '117', 'type': 'subscript', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '119', 'type': 'string', 'children': [], 'value': "'info'"}; {'id': '120', 'type': 'call', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'infoVals'}; {'id': '126', 'type': 'else_clause', 'children': ['127']}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'for_statement', 'children': ['129', '130', '131']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'coreValues'}; {'id': '131', 'type': 'block', 'children': ['132', '142']}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'assignment', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '135', 'type': 'call', 'children': ['136', '139']}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'R'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '139', 'type': 'argument_list', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '141', 'type': 'None', 'children': []}; {'id': '142', 'type': 'if_statement', 'children': ['143', '148', '163']}; {'id': '143', 'type': 'call', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '145', 'type': 'argument_list', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '148', 'type': 'block', 'children': ['149']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '154']}; {'id': '151', 'type': 'subscript', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '154', 'type': 'call', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'string', 'children': [], 'value': "'|'"}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '158', 'type': 'argument_list', 'children': ['159']}; {'id': '159', 'type': 'call', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '163', 'type': 'else_clause', 'children': ['164']}; {'id': '164', 'type': 'block', 'children': ['165']}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'assignment', 'children': ['167', '170']}; {'id': '167', 'type': 'subscript', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'assignment', 'children': ['173', '176']}; {'id': '173', 'type': 'subscript', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '175', 'type': 'string', 'children': [], 'value': "'inCore'"}; {'id': '176', 'type': 'True', 'children': []}; {'id': '177', 'type': 'if_statement', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'addCR'}; {'id': '179', 'type': 'block', 'children': ['180']}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'assignment', 'children': ['182', '185']}; {'id': '182', 'type': 'subscript', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '184', 'type': 'string', 'children': [], 'value': "'citations'"}; {'id': '185', 'type': 'call', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'string', 'children': [], 'value': "'|'"}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '189', 'type': 'argument_list', 'children': ['190']}; {'id': '190', 'type': 'generator_expression', 'children': ['191', '195']}; {'id': '191', 'type': 'call', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '193', 'type': 'argument_list', 'children': ['194']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '195', 'type': 'for_in_clause', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '197', 'type': 'call', 'children': ['198', '201']}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'R'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '201', 'type': 'argument_list', 'children': ['202', '203']}; {'id': '202', 'type': 'string', 'children': [], 'value': "'citations'"}; {'id': '203', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '204', 'type': 'else_clause', 'children': ['205']}; {'id': '205', 'type': 'block', 'children': ['206', '212', '222', '228']}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'assignment', 'children': ['208', '211']}; {'id': '208', 'type': 'subscript', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '210', 'type': 'string', 'children': [], 'value': "'MK-ID'"}; {'id': '211', 'type': 'string', 'children': [], 'value': "'None'"}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '217']}; {'id': '214', 'type': 'subscript', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '216', 'type': 'string', 'children': [], 'value': "'info'"}; {'id': '217', 'type': 'call', 'children': ['218', '221']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'allButDOI'}; {'id': '221', 'type': 'argument_list', 'children': []}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'assignment', 'children': ['224', '227']}; {'id': '224', 'type': 'subscript', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '226', 'type': 'string', 'children': [], 'value': "'inCore'"}; {'id': '227', 'type': 'False', 'children': []}; {'id': '228', 'type': 'if_statement', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'addCR'}; {'id': '230', 'type': 'block', 'children': ['231']}; {'id': '231', 'type': 'expression_statement', 'children': ['232']}; {'id': '232', 'type': 'assignment', 'children': ['233', '236']}; {'id': '233', 'type': 'subscript', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '235', 'type': 'string', 'children': [], 'value': "'citations'"}; {'id': '236', 'type': 'string', 'children': [], 'value': "''"}; {'id': '237', 'type': 'else_clause', 'children': ['238']}; {'id': '238', 'type': 'block', 'children': ['239']}; {'id': '239', 'type': 'expression_statement', 'children': ['240']}; {'id': '240', 'type': 'assignment', 'children': ['241', '244']}; {'id': '241', 'type': 'subscript', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '243', 'type': 'string', 'children': [], 'value': "'info'"}; {'id': '244', 'type': 'call', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'allButDOI'}; {'id': '248', 'type': 'argument_list', 'children': []}; {'id': '249', 'type': 'elif_clause', 'children': ['250', '253']}; {'id': '250', 'type': 'comparison_operator', 'children': ['251', '252'], 'value': '=='}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'nodeType'}; {'id': '252', 'type': 'string', 'children': [], 'value': "'journal'"}; {'id': '253', 'type': 'block', 'children': ['254']}; {'id': '254', 'type': 'if_statement', 'children': ['255', '260', '274']}; {'id': '255', 'type': 'call', 'children': ['256', '259']}; {'id': '256', 'type': 'attribute', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'isJournal'}; {'id': '259', 'type': 'argument_list', 'children': []}; {'id': '260', 'type': 'block', 'children': ['261']}; {'id': '261', 'type': 'expression_statement', 'children': ['262']}; {'id': '262', 'type': 'assignment', 'children': ['263', '266']}; {'id': '263', 'type': 'subscript', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '265', 'type': 'string', 'children': [], 'value': "'info'"}; {'id': '266', 'type': 'call', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '268', 'type': 'argument_list', 'children': ['269']}; {'id': '269', 'type': 'call', 'children': ['270', '273']}; {'id': '270', 'type': 'attribute', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'FullJournalName'}; {'id': '273', 'type': 'argument_list', 'children': []}; {'id': '274', 'type': 'else_clause', 'children': ['275']}; {'id': '275', 'type': 'block', 'children': ['276']}; {'id': '276', 'type': 'expression_statement', 'children': ['277']}; {'id': '277', 'type': 'assignment', 'children': ['278', '281']}; {'id': '278', 'type': 'subscript', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '280', 'type': 'string', 'children': [], 'value': "'info'"}; {'id': '281', 'type': 'string', 'children': [], 'value': '"None"'}; {'id': '282', 'type': 'elif_clause', 'children': ['283', '286']}; {'id': '283', 'type': 'comparison_operator', 'children': ['284', '285'], 'value': '=='}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'nodeType'}; {'id': '285', 'type': 'string', 'children': [], 'value': "'original'"}; {'id': '286', 'type': 'block', 'children': ['287']}; {'id': '287', 'type': 'expression_statement', 'children': ['288']}; {'id': '288', 'type': 'assignment', 'children': ['289', '292']}; {'id': '289', 'type': 'subscript', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '291', 'type': 'string', 'children': [], 'value': "'info'"}; {'id': '292', 'type': 'call', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '294', 'type': 'argument_list', 'children': ['295']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '296', 'type': 'else_clause', 'children': ['297']}; {'id': '297', 'type': 'block', 'children': ['298']}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'assignment', 'children': ['300', '303']}; {'id': '300', 'type': 'subscript', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '302', 'type': 'string', 'children': [], 'value': "'info'"}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'idVal'}; {'id': '304', 'type': 'if_statement', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'fullInfo'}; {'id': '306', 'type': 'block', 'children': ['307']}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'assignment', 'children': ['309', '312']}; {'id': '309', 'type': 'subscript', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '311', 'type': 'string', 'children': [], 'value': "'fullCite'"}; {'id': '312', 'type': 'call', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '314', 'type': 'argument_list', 'children': ['315']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'citation'}; {'id': '316', 'type': 'if_statement', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '318', 'type': 'block', 'children': ['319']}; {'id': '319', 'type': 'expression_statement', 'children': ['320']}; {'id': '320', 'type': 'assignment', 'children': ['321', '324']}; {'id': '321', 'type': 'subscript', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '323', 'type': 'string', 'children': [], 'value': "'count'"}; {'id': '324', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '325', 'type': 'return_statement', 'children': ['326']}; {'id': '326', 'type': 'tuple', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'idVal'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'd'}
Makes a tuple of idVal and a dict of the selected attributes
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'expandRecs'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'RecCollect'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'nodeType'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'weighted'}; {'id': '8', 'type': 'block', 'children': ['9']}; {'id': '9', 'type': 'for_statement', 'children': ['10', '11', '12']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'Rec'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'RecCollect'}; {'id': '12', 'type': 'block', 'children': ['13', '32']}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'fullCiteList'}; {'id': '16', 'type': 'list_comprehension', 'children': ['17', '22']}; {'id': '17', 'type': 'call', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'makeID'}; {'id': '19', 'type': 'argument_list', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'nodeType'}; {'id': '22', 'type': 'for_in_clause', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '24', 'type': 'call', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'Rec'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'createCitation'}; {'id': '28', 'type': 'argument_list', 'children': ['29']}; {'id': '29', 'type': 'keyword_argument', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'multiCite'}; {'id': '31', 'type': 'True', 'children': []}; {'id': '32', 'type': 'if_statement', 'children': ['33', '39']}; {'id': '33', 'type': 'comparison_operator', 'children': ['34', '38'], 'value': '>'}; {'id': '34', 'type': 'call', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '36', 'type': 'argument_list', 'children': ['37']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'fullCiteList'}; {'id': '38', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'for_statement', 'children': ['41', '44', '48']}; {'id': '41', 'type': 'pattern_list', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'fullCiteList'}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'if_statement', 'children': ['50', '53']}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '52'], 'value': 'in'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'for_statement', 'children': ['55', '56', '63']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '56', 'type': 'subscript', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'fullCiteList'}; {'id': '58', 'type': 'slice', 'children': ['59', '62']}; {'id': '59', 'type': 'binary_operator', 'children': ['60', '61'], 'value': '+'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '61', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '62', 'type': 'colon', 'children': []}; {'id': '63', 'type': 'block', 'children': ['64', '136']}; {'id': '64', 'type': 'if_statement', 'children': ['65', '68', '106']}; {'id': '65', 'type': 'comparison_operator', 'children': ['66', '67'], 'value': 'not'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '68', 'type': 'block', 'children': ['69', '82']}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'call', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'add_node'}; {'id': '74', 'type': 'argument_list', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '76', 'type': 'dictionary_splat', 'children': ['77']}; {'id': '77', 'type': 'subscript', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '82', 'type': 'if_statement', 'children': ['83', '84', '96']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'weighted'}; {'id': '84', 'type': 'block', 'children': ['85']}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'call', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'add_edge'}; {'id': '90', 'type': 'argument_list', 'children': ['91', '92', '93']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '93', 'type': 'keyword_argument', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'weight'}; {'id': '95', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '96', 'type': 'else_clause', 'children': ['97']}; {'id': '97', 'type': 'block', 'children': ['98']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'add_edge'}; {'id': '103', 'type': 'argument_list', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '106', 'type': 'elif_clause', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'weighted'}; {'id': '108', 'type': 'block', 'children': ['109']}; {'id': '109', 'type': 'try_statement', 'children': ['110', '122']}; {'id': '110', 'type': 'block', 'children': ['111']}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'augmented_assignment', 'children': ['113', '121'], 'value': '+='}; {'id': '113', 'type': 'subscript', 'children': ['114', '120']}; {'id': '114', 'type': 'subscript', 'children': ['115', '118', '119']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'edges'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'weight'"}; {'id': '121', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '122', 'type': 'except_clause', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '124', 'type': 'block', 'children': ['125']}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'call', 'children': ['127', '130']}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'add_edge'}; {'id': '130', 'type': 'argument_list', 'children': ['131', '132', '133']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '133', 'type': 'keyword_argument', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'weight'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '136', 'type': 'for_statement', 'children': ['137', '141', '150']}; {'id': '137', 'type': 'pattern_list', 'children': ['138', '139', '140']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'e1'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'e2'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '141', 'type': 'call', 'children': ['142', '145']}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'edges'}; {'id': '145', 'type': 'argument_list', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'citeID1'}; {'id': '147', 'type': 'keyword_argument', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '149', 'type': 'True', 'children': []}; {'id': '150', 'type': 'block', 'children': ['151']}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'call', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'G'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'add_edge'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '158', '159']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'citeID2'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'e2'}; {'id': '159', 'type': 'dictionary_splat', 'children': ['160']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'data'}
Expand all the citations from _RecCollect_
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'render'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'list_splat_pattern', 'children': ['6']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '7', 'type': 'dictionary_splat_pattern', 'children': ['8']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '9', 'type': 'block', 'children': ['10', '20', '35', '59', '75', '88', '94', '132', '147', '181', '191', '200']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'pretty'}; {'id': '13', 'type': 'call', 'children': ['14', '17']}; {'id': '14', 'type': 'attribute', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '17', 'type': 'argument_list', 'children': ['18', '19']}; {'id': '18', 'type': 'string', 'children': [], 'value': '"pretty"'}; {'id': '19', 'type': 'False', 'children': []}; {'id': '20', 'type': 'if_statement', 'children': ['21', '28']}; {'id': '21', 'type': 'boolean_operator', 'children': ['22', '23'], 'value': 'and'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'pretty'}; {'id': '23', 'type': 'comparison_operator', 'children': ['24', '27'], 'value': '!='}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': '_stable'}; {'id': '27', 'type': 'string', 'children': [], 'value': '"pretty"'}; {'id': '28', 'type': 'block', 'children': ['29']}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '34']}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': '_stable'}; {'id': '34', 'type': 'False', 'children': []}; {'id': '35', 'type': 'for_statement', 'children': ['36', '37', '38']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '38', 'type': 'block', 'children': ['39', '45']}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': '_stable'}; {'id': '44', 'type': 'False', 'children': []}; {'id': '45', 'type': 'if_statement', 'children': ['46', '51']}; {'id': '46', 'type': 'call', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '48', 'type': 'argument_list', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '51', 'type': 'block', 'children': ['52']}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'inject'}; {'id': '57', 'type': 'argument_list', 'children': ['58']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '59', 'type': 'if_statement', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '61', 'type': 'block', 'children': ['62', '68']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '67']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': '_stable'}; {'id': '67', 'type': 'False', 'children': []}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'call', 'children': ['70', '73']}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'inject'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'kwargs'}; {'id': '75', 'type': 'if_statement', 'children': ['76', '83']}; {'id': '76', 'type': 'boolean_operator', 'children': ['77', '80'], 'value': 'and'}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': '_stable'}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': '_render'}; {'id': '83', 'type': 'block', 'children': ['84']}; {'id': '84', 'type': 'return_statement', 'children': ['85']}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': '_render'}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'assignment', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'pretty_pre'}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'pretty_inner'}; {'id': '93', 'type': 'string', 'children': [], 'value': '""'}; {'id': '94', 'type': 'if_statement', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'pretty'}; {'id': '96', 'type': 'block', 'children': ['97', '111']}; {'id': '97', 'type': 'expression_statement', 'children': ['98']}; {'id': '98', 'type': 'assignment', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'pretty_pre'}; {'id': '100', 'type': 'conditional_expression', 'children': ['101', '109', '110'], 'value': 'if'}; {'id': '101', 'type': 'binary_operator', 'children': ['102', '103'], 'value': '+'}; {'id': '102', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '103', 'type': '()', 'children': ['104']}; {'id': '104', 'type': 'binary_operator', 'children': ['105', '106'], 'value': '*'}; {'id': '105', 'type': 'string', 'children': [], 'value': '"\\t"'}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': '_depth'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'pretty'}; {'id': '110', 'type': 'string', 'children': [], 'value': '""'}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'pretty_inner'}; {'id': '114', 'type': 'conditional_expression', 'children': ['115', '123', '131'], 'value': 'if'}; {'id': '115', 'type': 'binary_operator', 'children': ['116', '117'], 'value': '+'}; {'id': '116', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '117', 'type': '()', 'children': ['118']}; {'id': '118', 'type': 'binary_operator', 'children': ['119', '120'], 'value': '*'}; {'id': '119', 'type': 'string', 'children': [], 'value': '"\\t"'}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': '_depth'}; {'id': '123', 'type': 'comparison_operator', 'children': ['124', '130'], 'value': '>'}; {'id': '124', 'type': 'call', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'childs'}; {'id': '130', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '131', 'type': 'string', 'children': [], 'value': '""'}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'assignment', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'inner'}; {'id': '135', 'type': 'conditional_expression', 'children': ['136', '142', '146'], 'value': 'if'}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'render_childs'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'pretty'}; {'id': '142', 'type': 'not_operator', 'children': ['143']}; {'id': '143', 'type': 'attribute', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': '_void'}; {'id': '146', 'type': 'string', 'children': [], 'value': '""'}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'tag_data'}; {'id': '150', 'type': 'subscript', 'children': ['151', '170']}; {'id': '151', 'type': 'tuple', 'children': ['152', '153', '158', '163', '164', '165']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'pretty_pre'}; {'id': '153', 'type': 'call', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': '_get__tag'}; {'id': '157', 'type': 'argument_list', 'children': []}; {'id': '158', 'type': 'call', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'render_attrs'}; {'id': '162', 'type': 'argument_list', 'children': []}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'inner'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'pretty_inner'}; {'id': '165', 'type': 'call', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': '_get__tag'}; {'id': '169', 'type': 'argument_list', 'children': []}; {'id': '170', 'type': 'slice', 'children': ['171', '172']}; {'id': '171', 'type': 'colon', 'children': []}; {'id': '172', 'type': 'binary_operator', 'children': ['173', '174'], 'value': '-'}; {'id': '173', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '174', 'type': 'subscript', 'children': ['175', '178']}; {'id': '175', 'type': 'list', 'children': ['176', '177'], 'value': '[0, 3]'}; {'id': '176', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '177', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': '_void'}; {'id': '181', 'type': 'expression_statement', 'children': ['182']}; {'id': '182', 'type': 'assignment', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': '_render'}; {'id': '186', 'type': 'binary_operator', 'children': ['187', '190'], 'value': '%'}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': '_template'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'tag_data'}; {'id': '191', 'type': 'expression_statement', 'children': ['192']}; {'id': '192', 'type': 'assignment', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': '_stable'}; {'id': '196', 'type': 'conditional_expression', 'children': ['197', '198', '199'], 'value': 'if'}; {'id': '197', 'type': 'string', 'children': [], 'value': '"pretty"'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'pretty'}; {'id': '199', 'type': 'True', 'children': []}; {'id': '200', 'type': 'return_statement', 'children': ['201']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': '_render'}
Renders the element and all his childrens.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_set_value'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'new_value'}; {'id': '6', 'type': 'block', 'children': ['7', '36', '65', '99', '123']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '19']}; {'id': '8', 'type': 'boolean_operator', 'children': ['9', '14'], 'value': 'and'}; {'id': '9', 'type': 'comparison_operator', 'children': ['10', '13'], 'value': 'is'}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'min_value'}; {'id': '13', 'type': 'None', 'children': []}; {'id': '14', 'type': 'comparison_operator', 'children': ['15', '16'], 'value': '<'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'new_value'}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'min_value'}; {'id': '19', 'type': 'block', 'children': ['20']}; {'id': '20', 'type': 'raise_statement', 'children': ['21']}; {'id': '21', 'type': 'call', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'SettingOutOfBounds'}; {'id': '23', 'type': 'argument_list', 'children': ['24']}; {'id': '24', 'type': 'call', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'string', 'children': [], 'value': '"Trying to set parameter {0} = {1}, which is less than the minimum allowed {2}"'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '28', 'type': 'argument_list', 'children': ['29', '32', '33']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'new_value'}; {'id': '33', 'type': 'attribute', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'min_value'}; {'id': '36', 'type': 'if_statement', 'children': ['37', '48']}; {'id': '37', 'type': 'boolean_operator', 'children': ['38', '43'], 'value': 'and'}; {'id': '38', 'type': 'comparison_operator', 'children': ['39', '42'], 'value': 'is'}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'max_value'}; {'id': '42', 'type': 'None', 'children': []}; {'id': '43', 'type': 'comparison_operator', 'children': ['44', '45'], 'value': '>'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'new_value'}; {'id': '45', 'type': 'attribute', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'max_value'}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'raise_statement', 'children': ['50']}; {'id': '50', 'type': 'call', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'SettingOutOfBounds'}; {'id': '52', 'type': 'argument_list', 'children': ['53']}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'string', 'children': [], 'value': '"Trying to set parameter {0} = {1}, which is more than the maximum allowed {2}"'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '57', 'type': 'argument_list', 'children': ['58', '61', '62']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'new_value'}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'max_value'}; {'id': '65', 'type': 'if_statement', 'children': ['66', '71']}; {'id': '66', 'type': 'call', 'children': ['67', '70']}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'has_auxiliary_variable'}; {'id': '70', 'type': 'argument_list', 'children': []}; {'id': '71', 'type': 'block', 'children': ['72']}; {'id': '72', 'type': 'with_statement', 'children': ['73', '80']}; {'id': '73', 'type': 'with_clause', 'children': ['74']}; {'id': '74', 'type': 'with_item', 'children': ['75']}; {'id': '75', 'type': 'call', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'warnings'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'catch_warnings'}; {'id': '79', 'type': 'argument_list', 'children': []}; {'id': '80', 'type': 'block', 'children': ['81', '89']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'call', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'warnings'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'simplefilter'}; {'id': '86', 'type': 'argument_list', 'children': ['87', '88']}; {'id': '87', 'type': 'string', 'children': [], 'value': '"always"'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'RuntimeWarning'}; {'id': '89', 'type': 'expression_statement', 'children': ['90']}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'warnings'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '94', 'type': 'argument_list', 'children': ['95', '98']}; {'id': '95', 'type': 'concatenated_string', 'children': ['96', '97']}; {'id': '96', 'type': 'string', 'children': [], 'value': '"You are trying to assign to a parameter which is either linked or "'}; {'id': '97', 'type': 'string', 'children': [], 'value': '"has auxiliary variables. The assignment has no effect."'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'RuntimeWarning'}; {'id': '99', 'type': 'if_statement', 'children': ['100', '105', '110']}; {'id': '100', 'type': 'comparison_operator', 'children': ['101', '104'], 'value': 'is'}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': '_transformation'}; {'id': '104', 'type': 'None', 'children': []}; {'id': '105', 'type': 'block', 'children': ['106']}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'new_internal_value'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'new_value'}; {'id': '110', 'type': 'else_clause', 'children': ['111']}; {'id': '111', 'type': 'block', 'children': ['112']}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'new_internal_value'}; {'id': '115', 'type': 'call', 'children': ['116', '121']}; {'id': '116', 'type': 'attribute', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': '_transformation'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'forward'}; {'id': '121', 'type': 'argument_list', 'children': ['122']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'new_value'}; {'id': '123', 'type': 'if_statement', 'children': ['124', '129']}; {'id': '124', 'type': 'comparison_operator', 'children': ['125', '126'], 'value': '!='}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'new_internal_value'}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': '_internal_value'}; {'id': '129', 'type': 'block', 'children': ['130', '136']}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': '_internal_value'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'new_internal_value'}; {'id': '136', 'type': 'for_statement', 'children': ['137', '138', '141']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'callback'}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': '_callbacks'}; {'id': '141', 'type': 'block', 'children': ['142']}; {'id': '142', 'type': 'try_statement', 'children': ['143', '149']}; {'id': '143', 'type': 'block', 'children': ['144']}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'call', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'callback'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '149', 'type': 'except_clause', 'children': ['150']}; {'id': '150', 'type': 'block', 'children': ['151']}; {'id': '151', 'type': 'raise_statement', 'children': ['152']}; {'id': '152', 'type': 'call', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'NotCallableOrErrorInCall'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'binary_operator', 'children': ['156', '157'], 'value': '%'}; {'id': '156', 'type': 'string', 'children': [], 'value': '"Could not call callback for parameter %s"'}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'name'}
Sets the current value of the parameter, ensuring that it is within the allowed range.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'add_mpl_colorbar'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'dfr'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'fig'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'dend'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'orientation'}; {'id': '10', 'type': 'string', 'children': [], 'value': '"row"'}; {'id': '11', 'type': 'block', 'children': ['12', '39', '60', '64', '103', '112', '207', '212']}; {'id': '12', 'type': 'for_statement', 'children': ['13', '14', '23']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '14', 'type': 'subscript', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'dfr'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '18', 'type': 'subscript', 'children': ['19', '22']}; {'id': '19', 'type': 'subscript', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'dend'}; {'id': '21', 'type': 'string', 'children': [], 'value': '"dendrogram"'}; {'id': '22', 'type': 'string', 'children': [], 'value': '"leaves"'}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'if_statement', 'children': ['25', '30']}; {'id': '25', 'type': 'comparison_operator', 'children': ['26', '27'], 'value': 'not'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'classes'}; {'id': '30', 'type': 'block', 'children': ['31']}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '38']}; {'id': '33', 'type': 'subscript', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'classes'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'classdict'}; {'id': '42', 'type': 'dictionary_comprehension', 'children': ['43', '46']}; {'id': '43', 'type': 'pair', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '46', 'type': 'for_in_clause', 'children': ['47', '50']}; {'id': '47', 'type': 'tuple_pattern', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '50', 'type': 'call', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '52', 'type': 'argument_list', 'children': ['53']}; {'id': '53', 'type': 'call', 'children': ['54', '59']}; {'id': '54', 'type': 'attribute', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'classes'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '59', 'type': 'argument_list', 'children': []}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'cblist'}; {'id': '63', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '64', 'type': 'for_statement', 'children': ['65', '66', '75']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '66', 'type': 'subscript', 'children': ['67', '70']}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'dfr'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '70', 'type': 'subscript', 'children': ['71', '74']}; {'id': '71', 'type': 'subscript', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'dend'}; {'id': '73', 'type': 'string', 'children': [], 'value': '"dendrogram"'}; {'id': '74', 'type': 'string', 'children': [], 'value': '"leaves"'}; {'id': '75', 'type': 'block', 'children': ['76']}; {'id': '76', 'type': 'try_statement', 'children': ['77', '91']}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'call', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'cblist'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'subscript', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'classdict'}; {'id': '86', 'type': 'subscript', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'classes'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '91', 'type': 'except_clause', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '93', 'type': 'block', 'children': ['94']}; {'id': '94', 'type': 'expression_statement', 'children': ['95']}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'cblist'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'subscript', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'classdict'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'colbar'}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'pd'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'Series'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'cblist'}; {'id': '112', 'type': 'if_statement', 'children': ['113', '116', '164']}; {'id': '113', 'type': 'comparison_operator', 'children': ['114', '115'], 'value': '=='}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'orientation'}; {'id': '115', 'type': 'string', 'children': [], 'value': '"row"'}; {'id': '116', 'type': 'block', 'children': ['117', '131']}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'cbaxes'}; {'id': '120', 'type': 'call', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'fig'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'add_subplot'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'subscript', 'children': ['126', '129', '130']}; {'id': '126', 'type': 'subscript', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'dend'}; {'id': '128', 'type': 'string', 'children': [], 'value': '"gridspec"'}; {'id': '129', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '130', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'call', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'cbaxes'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'imshow'}; {'id': '136', 'type': 'argument_list', 'children': ['137', '145', '155', '158', '161']}; {'id': '137', 'type': 'list_comprehension', 'children': ['138', '140']}; {'id': '138', 'type': 'list', 'children': ['139'], 'value': '[cbar]'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'cbar'}; {'id': '140', 'type': 'for_in_clause', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'cbar'}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'colbar'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '145', 'type': 'keyword_argument', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'cmap'}; {'id': '147', 'type': 'call', 'children': ['148', '151']}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'get_cmap'}; {'id': '151', 'type': 'argument_list', 'children': ['152']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'pyani_config'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'MPL_CBAR'}; {'id': '155', 'type': 'keyword_argument', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'interpolation'}; {'id': '157', 'type': 'string', 'children': [], 'value': '"nearest"'}; {'id': '158', 'type': 'keyword_argument', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'aspect'}; {'id': '160', 'type': 'string', 'children': [], 'value': '"auto"'}; {'id': '161', 'type': 'keyword_argument', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'origin'}; {'id': '163', 'type': 'string', 'children': [], 'value': '"lower"'}; {'id': '164', 'type': 'else_clause', 'children': ['165']}; {'id': '165', 'type': 'block', 'children': ['166', '180']}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'cbaxes'}; {'id': '169', 'type': 'call', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'fig'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'add_subplot'}; {'id': '173', 'type': 'argument_list', 'children': ['174']}; {'id': '174', 'type': 'subscript', 'children': ['175', '178', '179']}; {'id': '175', 'type': 'subscript', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'dend'}; {'id': '177', 'type': 'string', 'children': [], 'value': '"gridspec"'}; {'id': '178', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '179', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'call', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'cbaxes'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'imshow'}; {'id': '185', 'type': 'argument_list', 'children': ['186', '188', '198', '201', '204']}; {'id': '186', 'type': 'list', 'children': ['187'], 'value': '[colbar]'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'colbar'}; {'id': '188', 'type': 'keyword_argument', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'cmap'}; {'id': '190', 'type': 'call', 'children': ['191', '194']}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'get_cmap'}; {'id': '194', 'type': 'argument_list', 'children': ['195']}; {'id': '195', 'type': 'attribute', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'pyani_config'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'MPL_CBAR'}; {'id': '198', 'type': 'keyword_argument', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'interpolation'}; {'id': '200', 'type': 'string', 'children': [], 'value': '"nearest"'}; {'id': '201', 'type': 'keyword_argument', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'aspect'}; {'id': '203', 'type': 'string', 'children': [], 'value': '"auto"'}; {'id': '204', 'type': 'keyword_argument', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'origin'}; {'id': '206', 'type': 'string', 'children': [], 'value': '"lower"'}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'call', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'clean_axis'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'cbaxes'}; {'id': '212', 'type': 'return_statement', 'children': ['213']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'colbar'}
Add class colorbars to Matplotlib heatmap.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'GeneReader'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '7', 'type': 'string', 'children': [], 'value': "'gff'"}; {'id': '8', 'type': 'block', 'children': ['9', '16', '45', '208', '212', '216']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'known_formats'}; {'id': '12', 'type': 'tuple', 'children': ['13', '14', '15']}; {'id': '13', 'type': 'string', 'children': [], 'value': "'gff'"}; {'id': '14', 'type': 'string', 'children': [], 'value': "'gtf'"}; {'id': '15', 'type': 'string', 'children': [], 'value': "'bed'"}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': 'not'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'known_formats'}; {'id': '20', 'type': 'block', 'children': ['21', '40']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '24', 'type': 'argument_list', 'children': ['25', '35']}; {'id': '25', 'type': 'binary_operator', 'children': ['26', '27'], 'value': '%'}; {'id': '26', 'type': 'string', 'children': [], 'value': "'%s format not in %s'"}; {'id': '27', 'type': 'tuple', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'string', 'children': [], 'value': '","'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '33', 'type': 'argument_list', 'children': ['34']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'known_formats'}; {'id': '35', 'type': 'keyword_argument', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'file'}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'stderr'}; {'id': '40', 'type': 'raise_statement', 'children': ['41']}; {'id': '41', 'type': 'call', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'string', 'children': [], 'value': "'?'"}; {'id': '45', 'type': 'if_statement', 'children': ['46', '49']}; {'id': '46', 'type': 'comparison_operator', 'children': ['47', '48'], 'value': '=='}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '48', 'type': 'string', 'children': [], 'value': "'bed'"}; {'id': '49', 'type': 'block', 'children': ['50']}; {'id': '50', 'type': 'for_statement', 'children': ['51', '52', '53']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '53', 'type': 'block', 'children': ['54', '66', '72', '81', '87', '93', '102', '111', '120', '143', '168', '172', '201']}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '57', 'type': 'call', 'children': ['58', '65']}; {'id': '58', 'type': 'attribute', 'children': ['59', '64']}; {'id': '59', 'type': 'call', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '63', 'type': 'argument_list', 'children': []}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '65', 'type': 'argument_list', 'children': []}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '69', 'type': 'subscript', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '71', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '72', 'type': 'expression_statement', 'children': ['73']}; {'id': '73', 'type': 'assignment', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'chrom_start'}; {'id': '75', 'type': 'call', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '77', 'type': 'argument_list', 'children': ['78']}; {'id': '78', 'type': 'subscript', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '80', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '84', 'type': 'subscript', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '86', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '90', 'type': 'subscript', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '92', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'cdsStart'}; {'id': '96', 'type': 'call', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'subscript', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '101', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'cdsEnd'}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'subscript', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '110', 'type': 'integer', 'children': [], 'value': '7'}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'blockCount'}; {'id': '114', 'type': 'call', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '116', 'type': 'argument_list', 'children': ['117']}; {'id': '117', 'type': 'subscript', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '119', 'type': 'integer', 'children': [], 'value': '9'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'blockSizes'}; {'id': '123', 'type': 'list_comprehension', 'children': ['124', '128']}; {'id': '124', 'type': 'call', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '128', 'type': 'for_in_clause', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '130', 'type': 'call', 'children': ['131', '141']}; {'id': '131', 'type': 'attribute', 'children': ['132', '140']}; {'id': '132', 'type': 'call', 'children': ['133', '138']}; {'id': '133', 'type': 'attribute', 'children': ['134', '137']}; {'id': '134', 'type': 'subscript', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '136', 'type': 'integer', 'children': [], 'value': '10'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '138', 'type': 'argument_list', 'children': ['139']}; {'id': '139', 'type': 'string', 'children': [], 'value': "','"}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '141', 'type': 'argument_list', 'children': ['142']}; {'id': '142', 'type': 'string', 'children': [], 'value': "','"}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'blockStarts'}; {'id': '146', 'type': 'list_comprehension', 'children': ['147', '153']}; {'id': '147', 'type': 'binary_operator', 'children': ['148', '149'], 'value': '+'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'chrom_start'}; {'id': '149', 'type': 'call', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '151', 'type': 'argument_list', 'children': ['152']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '153', 'type': 'for_in_clause', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '155', 'type': 'call', 'children': ['156', '166']}; {'id': '156', 'type': 'attribute', 'children': ['157', '165']}; {'id': '157', 'type': 'call', 'children': ['158', '163']}; {'id': '158', 'type': 'attribute', 'children': ['159', '162']}; {'id': '159', 'type': 'subscript', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '161', 'type': 'integer', 'children': [], 'value': '11'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'string', 'children': [], 'value': "','"}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'string', 'children': [], 'value': "','"}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'assignment', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'gene_exons'}; {'id': '171', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '172', 'type': 'for_statement', 'children': ['173', '176', '181']}; {'id': '173', 'type': 'pattern_list', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '176', 'type': 'call', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'zip'}; {'id': '178', 'type': 'argument_list', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'blockStarts'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'blockSizes'}; {'id': '181', 'type': 'block', 'children': ['182', '186', '192']}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'assignment', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'exon_start'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'assignment', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'exon_end'}; {'id': '189', 'type': 'binary_operator', 'children': ['190', '191'], 'value': '+'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '192', 'type': 'expression_statement', 'children': ['193']}; {'id': '193', 'type': 'call', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'gene_exons'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '197', 'type': 'argument_list', 'children': ['198']}; {'id': '198', 'type': 'tuple', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'exon_start'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'exon_end'}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'yield', 'children': ['203']}; {'id': '203', 'type': 'expression_list', 'children': ['204', '205', '206', '207']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'gene_exons'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '208', 'type': 'expression_statement', 'children': ['209']}; {'id': '209', 'type': 'assignment', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'genelist'}; {'id': '211', 'type': 'dictionary', 'children': []}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'grouplist'}; {'id': '215', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '216', 'type': 'if_statement', 'children': ['217', '224']}; {'id': '217', 'type': 'boolean_operator', 'children': ['218', '221'], 'value': 'or'}; {'id': '218', 'type': 'comparison_operator', 'children': ['219', '220'], 'value': '=='}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '220', 'type': 'string', 'children': [], 'value': "'gff'"}; {'id': '221', 'type': 'comparison_operator', 'children': ['222', '223'], 'value': '=='}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '223', 'type': 'string', 'children': [], 'value': "'gtf'"}; {'id': '224', 'type': 'block', 'children': ['225', '348', '364']}; {'id': '225', 'type': 'for_statement', 'children': ['226', '227', '228']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '228', 'type': 'block', 'children': ['229', '247', '253', '264', '273', '279', '305', '317', '331', '335']}; {'id': '229', 'type': 'if_statement', 'children': ['230', '238', '245']}; {'id': '230', 'type': 'call', 'children': ['231', '234']}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '234', 'type': 'argument_list', 'children': ['235', '236']}; {'id': '235', 'type': 'string', 'children': [], 'value': "'\n fields = line.strip().split('"}; {'id': '236', 'type': 'ERROR', 'children': ['237']}; {'id': '237', 'type': 'escape_sequence', 'children': [], 'value': '\\t'}; {'id': '238', 'type': 'ERROR', 'children': ['239']}; {'id': '239', 'type': 'comparison_operator', 'children': ['240', '244'], 'value': '<'}; {'id': '240', 'type': 'call', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '242', 'type': 'argument_list', 'children': ['243']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '244', 'type': 'integer', 'children': [], 'value': '9'}; {'id': '245', 'type': 'block', 'children': ['246']}; {'id': '246', 'type': 'continue_statement', 'children': []}; {'id': '247', 'type': 'expression_statement', 'children': ['248']}; {'id': '248', 'type': 'assignment', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '250', 'type': 'subscript', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '252', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'ex_st'}; {'id': '256', 'type': 'binary_operator', 'children': ['257', '263'], 'value': '-'}; {'id': '257', 'type': 'call', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '259', 'type': 'argument_list', 'children': ['260']}; {'id': '260', 'type': 'subscript', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '262', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '263', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'assignment', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'ex_end'}; {'id': '267', 'type': 'call', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'subscript', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '272', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'assignment', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '276', 'type': 'subscript', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '278', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '279', 'type': 'if_statement', 'children': ['280', '283', '297']}; {'id': '280', 'type': 'comparison_operator', 'children': ['281', '282'], 'value': '=='}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '282', 'type': 'string', 'children': [], 'value': "'gtf'"}; {'id': '283', 'type': 'block', 'children': ['284']}; {'id': '284', 'type': 'expression_statement', 'children': ['285']}; {'id': '285', 'type': 'assignment', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '287', 'type': 'subscript', 'children': ['288', '296']}; {'id': '288', 'type': 'call', 'children': ['289', '294']}; {'id': '289', 'type': 'attribute', 'children': ['290', '293']}; {'id': '290', 'type': 'subscript', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '292', 'type': 'integer', 'children': [], 'value': '8'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '294', 'type': 'argument_list', 'children': ['295']}; {'id': '295', 'type': 'string', 'children': [], 'value': "';'"}; {'id': '296', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '297', 'type': 'else_clause', 'children': ['298']}; {'id': '298', 'type': 'block', 'children': ['299']}; {'id': '299', 'type': 'expression_statement', 'children': ['300']}; {'id': '300', 'type': 'assignment', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '302', 'type': 'subscript', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '304', 'type': 'integer', 'children': [], 'value': '8'}; {'id': '305', 'type': 'if_statement', 'children': ['306', '309']}; {'id': '306', 'type': 'comparison_operator', 'children': ['307', '308'], 'value': 'not'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'grouplist'}; {'id': '309', 'type': 'block', 'children': ['310']}; {'id': '310', 'type': 'expression_statement', 'children': ['311']}; {'id': '311', 'type': 'call', 'children': ['312', '315']}; {'id': '312', 'type': 'attribute', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'grouplist'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '315', 'type': 'argument_list', 'children': ['316']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '317', 'type': 'if_statement', 'children': ['318', '321']}; {'id': '318', 'type': 'comparison_operator', 'children': ['319', '320'], 'value': 'not'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'genelist'}; {'id': '321', 'type': 'block', 'children': ['322']}; {'id': '322', 'type': 'expression_statement', 'children': ['323']}; {'id': '323', 'type': 'assignment', 'children': ['324', '327']}; {'id': '324', 'type': 'subscript', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'genelist'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '327', 'type': 'tuple', 'children': ['328', '329', '330']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '330', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '331', 'type': 'expression_statement', 'children': ['332']}; {'id': '332', 'type': 'assignment', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'exons_i'}; {'id': '334', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '335', 'type': 'expression_statement', 'children': ['336']}; {'id': '336', 'type': 'call', 'children': ['337', '344']}; {'id': '337', 'type': 'attribute', 'children': ['338', '343']}; {'id': '338', 'type': 'subscript', 'children': ['339', '342']}; {'id': '339', 'type': 'subscript', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'genelist'}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'exons_i'}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '344', 'type': 'argument_list', 'children': ['345']}; {'id': '345', 'type': 'tuple', 'children': ['346', '347']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'ex_st'}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'ex_end'}; {'id': '348', 'type': 'expression_statement', 'children': ['349']}; {'id': '349', 'type': 'assignment', 'children': ['350', '351']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'sp'}; {'id': '351', 'type': 'lambda', 'children': ['352', '355']}; {'id': '352', 'type': 'lambda_parameters', 'children': ['353', '354']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '355', 'type': 'call', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'cmp'}; {'id': '357', 'type': 'argument_list', 'children': ['358', '361']}; {'id': '358', 'type': 'subscript', 'children': ['359', '360']}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '360', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '361', 'type': 'subscript', 'children': ['362', '363']}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '363', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '364', 'type': 'for_statement', 'children': ['365', '366', '367']}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'gene'}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'grouplist'}; {'id': '367', 'type': 'block', 'children': ['368', '377', '384']}; {'id': '368', 'type': 'expression_statement', 'children': ['369']}; {'id': '369', 'type': 'assignment', 'children': ['370', '374']}; {'id': '370', 'type': 'pattern_list', 'children': ['371', '372', '373']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'gene_exons'}; {'id': '374', 'type': 'subscript', 'children': ['375', '376']}; {'id': '375', 'type': 'identifier', 'children': [], 'value': 'genelist'}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'gene'}; {'id': '377', 'type': 'expression_statement', 'children': ['378']}; {'id': '378', 'type': 'assignment', 'children': ['379', '380']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'gene_exons'}; {'id': '380', 'type': 'call', 'children': ['381', '382']}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'bitset_union'}; {'id': '382', 'type': 'argument_list', 'children': ['383']}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'gene_exons'}; {'id': '384', 'type': 'expression_statement', 'children': ['385']}; {'id': '385', 'type': 'yield', 'children': ['386']}; {'id': '386', 'type': 'expression_list', 'children': ['387', '388', '389', '390']}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'gene_exons'}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'gene'}
yield chrom, strand, gene_exons, name
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'parse_record'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '6', 'type': 'block', 'children': ['7', '11', '52', '56', '62', '66', '429']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'temp_lines'}; {'id': '10', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '11', 'type': 'for_statement', 'children': ['12', '13', '14']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '14', 'type': 'block', 'children': ['15', '30', '45']}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'assignment', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '18', 'type': 'call', 'children': ['19', '27']}; {'id': '19', 'type': 'attribute', 'children': ['20', '26']}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'rstrip'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'string', 'children': [], 'value': '"\\r\\n"'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '27', 'type': 'argument_list', 'children': ['28', '29']}; {'id': '28', 'type': 'None', 'children': []}; {'id': '29', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '30', 'type': 'if_statement', 'children': ['31', '37']}; {'id': '31', 'type': 'comparison_operator', 'children': ['32', '36'], 'value': '=='}; {'id': '32', 'type': 'call', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '36', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'call', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'string', 'children': [], 'value': '""'}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'call', 'children': ['47', '50']}; {'id': '47', 'type': 'attribute', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'temp_lines'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'temp_lines'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '59', 'type': 'call', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'TransfacMotif'}; {'id': '61', 'type': 'argument_list', 'children': []}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '65', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '66', 'type': 'while_statement', 'children': ['67', '68']}; {'id': '67', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '68', 'type': 'block', 'children': ['69', '78', '86', '98', '106', '130', '173', '231', '292']}; {'id': '69', 'type': 'if_statement', 'children': ['70', '76']}; {'id': '70', 'type': 'comparison_operator', 'children': ['71', '72'], 'value': '>='}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '72', 'type': 'call', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '76', 'type': 'block', 'children': ['77']}; {'id': '77', 'type': 'break_statement', 'children': []}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '83']}; {'id': '80', 'type': 'pattern_list', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'rest'}; {'id': '83', 'type': 'subscript', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '86', 'type': 'if_statement', 'children': ['87', '92']}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '89'], 'value': 'not'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'parse_actions'}; {'id': '92', 'type': 'block', 'children': ['93', '97']}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'augmented_assignment', 'children': ['95', '96'], 'value': '+='}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '96', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '97', 'type': 'continue_statement', 'children': []}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '101', 'type': 'subscript', 'children': ['102', '105']}; {'id': '102', 'type': 'attribute', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'parse_actions'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '106', 'type': 'if_statement', 'children': ['107', '112']}; {'id': '107', 'type': 'comparison_operator', 'children': ['108', '111'], 'value': '=='}; {'id': '108', 'type': 'subscript', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '110', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '111', 'type': 'string', 'children': [], 'value': '"store_single"'}; {'id': '112', 'type': 'block', 'children': ['113', '119', '126']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '116', 'type': 'subscript', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'call', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '122', 'type': 'argument_list', 'children': ['123', '124', '125']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'rest'}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'augmented_assignment', 'children': ['128', '129'], 'value': '+='}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '129', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '130', 'type': 'if_statement', 'children': ['131', '136']}; {'id': '131', 'type': 'comparison_operator', 'children': ['132', '135'], 'value': '=='}; {'id': '132', 'type': 'subscript', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '134', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '135', 'type': 'string', 'children': [], 'value': '"store_single_list"'}; {'id': '136', 'type': 'block', 'children': ['137', '143', '158', '169']}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'assignment', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '140', 'type': 'subscript', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '142', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '143', 'type': 'if_statement', 'children': ['144', '150']}; {'id': '144', 'type': 'not_operator', 'children': ['145']}; {'id': '145', 'type': 'call', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '147', 'type': 'argument_list', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '150', 'type': 'block', 'children': ['151']}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'call', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '154', 'type': 'argument_list', 'children': ['155', '156', '157']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '157', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'call', 'children': ['160', '167']}; {'id': '160', 'type': 'attribute', 'children': ['161', '166']}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '163', 'type': 'argument_list', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'rest'}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'augmented_assignment', 'children': ['171', '172'], 'value': '+='}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '172', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '173', 'type': 'if_statement', 'children': ['174', '179']}; {'id': '174', 'type': 'comparison_operator', 'children': ['175', '178'], 'value': '=='}; {'id': '175', 'type': 'subscript', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '177', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '178', 'type': 'string', 'children': [], 'value': '"store_single_key_value"'}; {'id': '179', 'type': 'block', 'children': ['180', '186', '202', '217', '227']}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'assignment', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '183', 'type': 'subscript', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '185', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'assignment', 'children': ['188', '191']}; {'id': '188', 'type': 'pattern_list', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '191', 'type': 'call', 'children': ['192', '199']}; {'id': '192', 'type': 'attribute', 'children': ['193', '198']}; {'id': '193', 'type': 'call', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'rest'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '197', 'type': 'argument_list', 'children': []}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '199', 'type': 'argument_list', 'children': ['200', '201']}; {'id': '200', 'type': 'string', 'children': [], 'value': "'='"}; {'id': '201', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '202', 'type': 'if_statement', 'children': ['203', '209']}; {'id': '203', 'type': 'not_operator', 'children': ['204']}; {'id': '204', 'type': 'call', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '206', 'type': 'argument_list', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '209', 'type': 'block', 'children': ['210']}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'call', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '213', 'type': 'argument_list', 'children': ['214', '215', '216']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '216', 'type': 'dictionary', 'children': []}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'assignment', 'children': ['219', '226']}; {'id': '219', 'type': 'subscript', 'children': ['220', '225']}; {'id': '220', 'type': 'call', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '222', 'type': 'argument_list', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'augmented_assignment', 'children': ['229', '230'], 'value': '+='}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '230', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '231', 'type': 'if_statement', 'children': ['232', '237']}; {'id': '232', 'type': 'comparison_operator', 'children': ['233', '236'], 'value': '=='}; {'id': '233', 'type': 'subscript', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '235', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '236', 'type': 'string', 'children': [], 'value': '"store_block"'}; {'id': '237', 'type': 'block', 'children': ['238', '244', '248', '279']}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '241', 'type': 'subscript', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '243', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '247', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '248', 'type': 'while_statement', 'children': ['249', '263']}; {'id': '249', 'type': 'boolean_operator', 'children': ['250', '256'], 'value': 'and'}; {'id': '250', 'type': 'comparison_operator', 'children': ['251', '252'], 'value': '<'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '252', 'type': 'call', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '254', 'type': 'argument_list', 'children': ['255']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '256', 'type': 'comparison_operator', 'children': ['257', '262'], 'value': '=='}; {'id': '257', 'type': 'subscript', 'children': ['258', '261']}; {'id': '258', 'type': 'subscript', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '261', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '263', 'type': 'block', 'children': ['264', '275']}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'call', 'children': ['266', '269']}; {'id': '266', 'type': 'attribute', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'subscript', 'children': ['271', '274']}; {'id': '271', 'type': 'subscript', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '274', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'augmented_assignment', 'children': ['277', '278'], 'value': '+='}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '278', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '279', 'type': 'expression_statement', 'children': ['280']}; {'id': '280', 'type': 'call', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '282', 'type': 'argument_list', 'children': ['283', '284', '285']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '285', 'type': 'call', 'children': ['286', '289']}; {'id': '286', 'type': 'attribute', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '289', 'type': 'argument_list', 'children': ['290', '291']}; {'id': '290', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '292', 'type': 'if_statement', 'children': ['293', '298']}; {'id': '293', 'type': 'comparison_operator', 'children': ['294', '297'], 'value': '=='}; {'id': '294', 'type': 'subscript', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '296', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '297', 'type': 'string', 'children': [], 'value': '"store_matrix"'}; {'id': '298', 'type': 'block', 'children': ['299', '307', '314', '318', '322', '326', '395', '410', '420']}; {'id': '299', 'type': 'expression_statement', 'children': ['300']}; {'id': '300', 'type': 'assignment', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'alphabet'}; {'id': '302', 'type': 'call', 'children': ['303', '306']}; {'id': '303', 'type': 'attribute', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'rest'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '306', 'type': 'argument_list', 'children': []}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'assignment', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'alphabet_size'}; {'id': '310', 'type': 'call', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '312', 'type': 'argument_list', 'children': ['313']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'alphabet'}; {'id': '314', 'type': 'expression_statement', 'children': ['315']}; {'id': '315', 'type': 'assignment', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'rows'}; {'id': '317', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '318', 'type': 'expression_statement', 'children': ['319']}; {'id': '319', 'type': 'assignment', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '321', 'type': 'string', 'children': [], 'value': '""'}; {'id': '322', 'type': 'expression_statement', 'children': ['323']}; {'id': '323', 'type': 'augmented_assignment', 'children': ['324', '325'], 'value': '+='}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '325', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '326', 'type': 'while_statement', 'children': ['327', '333']}; {'id': '327', 'type': 'comparison_operator', 'children': ['328', '329'], 'value': '<'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '329', 'type': 'call', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '331', 'type': 'argument_list', 'children': ['332']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '333', 'type': 'block', 'children': ['334', '342', '351', '359', '377', '391']}; {'id': '334', 'type': 'expression_statement', 'children': ['335']}; {'id': '335', 'type': 'assignment', 'children': ['336', '339']}; {'id': '336', 'type': 'pattern_list', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'rest'}; {'id': '339', 'type': 'subscript', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '342', 'type': 'if_statement', 'children': ['343', '349']}; {'id': '343', 'type': 'not_operator', 'children': ['344']}; {'id': '344', 'type': 'call', 'children': ['345', '348']}; {'id': '345', 'type': 'attribute', 'children': ['346', '347']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'isdigit'}; {'id': '348', 'type': 'argument_list', 'children': []}; {'id': '349', 'type': 'block', 'children': ['350']}; {'id': '350', 'type': 'break_statement', 'children': []}; {'id': '351', 'type': 'expression_statement', 'children': ['352']}; {'id': '352', 'type': 'assignment', 'children': ['353', '354']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '354', 'type': 'call', 'children': ['355', '358']}; {'id': '355', 'type': 'attribute', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'rest'}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '358', 'type': 'argument_list', 'children': []}; {'id': '359', 'type': 'expression_statement', 'children': ['360']}; {'id': '360', 'type': 'call', 'children': ['361', '364']}; {'id': '361', 'type': 'attribute', 'children': ['362', '363']}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'rows'}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '364', 'type': 'argument_list', 'children': ['365']}; {'id': '365', 'type': 'list_comprehension', 'children': ['366', '370']}; {'id': '366', 'type': 'call', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '368', 'type': 'argument_list', 'children': ['369']}; {'id': '369', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '370', 'type': 'for_in_clause', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '372', 'type': 'subscript', 'children': ['373', '374']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '374', 'type': 'slice', 'children': ['375', '376']}; {'id': '375', 'type': 'colon', 'children': []}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'alphabet_size'}; {'id': '377', 'type': 'if_statement', 'children': ['378', '384']}; {'id': '378', 'type': 'comparison_operator', 'children': ['379', '383'], 'value': '>'}; {'id': '379', 'type': 'call', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '381', 'type': 'argument_list', 'children': ['382']}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'alphabet_size'}; {'id': '384', 'type': 'block', 'children': ['385']}; {'id': '385', 'type': 'expression_statement', 'children': ['386']}; {'id': '386', 'type': 'augmented_assignment', 'children': ['387', '388'], 'value': '+='}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '388', 'type': 'subscript', 'children': ['389', '390']}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'alphabet_size'}; {'id': '391', 'type': 'expression_statement', 'children': ['392']}; {'id': '392', 'type': 'augmented_assignment', 'children': ['393', '394'], 'value': '+='}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'current_line'}; {'id': '394', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '395', 'type': 'if_statement', 'children': ['396', '405']}; {'id': '396', 'type': 'comparison_operator', 'children': ['397', '401'], 'value': '!='}; {'id': '397', 'type': 'call', 'children': ['398', '399']}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '399', 'type': 'argument_list', 'children': ['400']}; {'id': '400', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '401', 'type': 'call', 'children': ['402', '403']}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '403', 'type': 'argument_list', 'children': ['404']}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'rows'}; {'id': '405', 'type': 'block', 'children': ['406']}; {'id': '406', 'type': 'expression_statement', 'children': ['407']}; {'id': '407', 'type': 'assignment', 'children': ['408', '409']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '409', 'type': 'None', 'children': []}; {'id': '410', 'type': 'expression_statement', 'children': ['411']}; {'id': '411', 'type': 'assignment', 'children': ['412', '413']}; {'id': '412', 'type': 'identifier', 'children': [], 'value': 'matrix'}; {'id': '413', 'type': 'call', 'children': ['414', '417']}; {'id': '414', 'type': 'attribute', 'children': ['415', '416']}; {'id': '415', 'type': 'identifier', 'children': [], 'value': 'FrequencyMatrix'}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'from_rows'}; {'id': '417', 'type': 'argument_list', 'children': ['418', '419']}; {'id': '418', 'type': 'identifier', 'children': [], 'value': 'alphabet'}; {'id': '419', 'type': 'identifier', 'children': [], 'value': 'rows'}; {'id': '420', 'type': 'expression_statement', 'children': ['421']}; {'id': '421', 'type': 'call', 'children': ['422', '423']}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'setattr'}; {'id': '423', 'type': 'argument_list', 'children': ['424', '425', '428']}; {'id': '424', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '425', 'type': 'subscript', 'children': ['426', '427']}; {'id': '426', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '427', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'matrix'}; {'id': '429', 'type': 'if_statement', 'children': ['430', '441']}; {'id': '430', 'type': 'boolean_operator', 'children': ['431', '438'], 'value': 'or'}; {'id': '431', 'type': 'boolean_operator', 'children': ['432', '435'], 'value': 'or'}; {'id': '432', 'type': 'attribute', 'children': ['433', '434']}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '434', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '435', 'type': 'attribute', 'children': ['436', '437']}; {'id': '436', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '437', 'type': 'identifier', 'children': [], 'value': 'accession'}; {'id': '438', 'type': 'attribute', 'children': ['439', '440']}; {'id': '439', 'type': 'identifier', 'children': [], 'value': 'motif'}; {'id': '440', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '441', 'type': 'block', 'children': ['442']}; {'id': '442', 'type': 'return_statement', 'children': ['443']}; {'id': '443', 'type': 'identifier', 'children': [], 'value': 'motif'}
Parse a TRANSFAC record out of `lines` and return a motif.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '23']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'binned_bitsets_proximity'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14', '17', '20']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'chrom_col'}; {'id': '7', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'start_col'}; {'id': '10', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'end_col'}; {'id': '13', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'strand_col'}; {'id': '16', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '17', 'type': 'default_parameter', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'upstream'}; {'id': '19', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '20', 'type': 'default_parameter', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'downstream'}; {'id': '22', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '23', 'type': 'block', 'children': ['24', '28', '32', '38', '209']}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'last_chrom'}; {'id': '27', 'type': 'None', 'children': []}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'last_bitset'}; {'id': '31', 'type': 'None', 'children': []}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'bitsets'}; {'id': '35', 'type': 'call', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '37', 'type': 'argument_list', 'children': []}; {'id': '38', 'type': 'for_statement', 'children': ['39', '40', '41']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '41', 'type': 'block', 'children': ['42', '77', '83', '112', '130', '161', '192']}; {'id': '42', 'type': 'if_statement', 'children': ['43', '46', '65']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '46', 'type': 'ERROR', 'children': ['47', '48', '49', '56', '57']}; {'id': '47', 'type': 'ERROR', 'children': []}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '49', 'type': 'ERROR', 'children': ['50', '55']}; {'id': '50', 'type': 'call', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '54', 'type': 'argument_list', 'children': []}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '56', 'type': 'string', 'children': [], 'value': '"+"'}; {'id': '57', 'type': 'comparison_operator', 'children': ['58', '62'], 'value': '>='}; {'id': '58', 'type': 'call', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '60', 'type': 'argument_list', 'children': ['61']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '62', 'type': 'binary_operator', 'children': ['63', '64'], 'value': '+'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'strand_col'}; {'id': '64', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '65', 'type': 'block', 'children': ['66']}; {'id': '66', 'type': 'if_statement', 'children': ['67', '72']}; {'id': '67', 'type': 'comparison_operator', 'children': ['68', '71'], 'value': '=='}; {'id': '68', 'type': 'subscript', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'strand_col'}; {'id': '71', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'assignment', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '76', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '80', 'type': 'subscript', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'chrom_col'}; {'id': '83', 'type': 'if_statement', 'children': ['84', '87']}; {'id': '84', 'type': 'comparison_operator', 'children': ['85', '86'], 'value': '!='}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'last_chrom'}; {'id': '87', 'type': 'block', 'children': ['88', '102', '106']}; {'id': '88', 'type': 'if_statement', 'children': ['89', '92']}; {'id': '89', 'type': 'comparison_operator', 'children': ['90', '91'], 'value': 'not'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'bitsets'}; {'id': '92', 'type': 'block', 'children': ['93']}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '98']}; {'id': '95', 'type': 'subscript', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'bitsets'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'BinnedBitSet'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'MAX'}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'last_chrom'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'last_bitset'}; {'id': '109', 'type': 'subscript', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'bitsets'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'chrom'}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '117']}; {'id': '114', 'type': 'pattern_list', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '117', 'type': 'expression_list', 'children': ['118', '124']}; {'id': '118', 'type': 'call', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'subscript', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'start_col'}; {'id': '124', 'type': 'call', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'subscript', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'end_col'}; {'id': '130', 'type': 'if_statement', 'children': ['131', '134']}; {'id': '131', 'type': 'comparison_operator', 'children': ['132', '133'], 'value': '=='}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '133', 'type': 'string', 'children': [], 'value': '"+"'}; {'id': '134', 'type': 'block', 'children': ['135', '148']}; {'id': '135', 'type': 'if_statement', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'upstream'}; {'id': '137', 'type': 'block', 'children': ['138']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'assignment', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '141', 'type': 'call', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '143', 'type': 'argument_list', 'children': ['144', '145']}; {'id': '144', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '145', 'type': 'binary_operator', 'children': ['146', '147'], 'value': '-'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'upstream'}; {'id': '148', 'type': 'if_statement', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'downstream'}; {'id': '150', 'type': 'block', 'children': ['151']}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'assignment', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '154', 'type': 'call', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'min'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'MAX'}; {'id': '158', 'type': 'binary_operator', 'children': ['159', '160'], 'value': '+'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'downstream'}; {'id': '161', 'type': 'if_statement', 'children': ['162', '165']}; {'id': '162', 'type': 'comparison_operator', 'children': ['163', '164'], 'value': '=='}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'strand'}; {'id': '164', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '165', 'type': 'block', 'children': ['166', '179']}; {'id': '166', 'type': 'if_statement', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'upstream'}; {'id': '168', 'type': 'block', 'children': ['169']}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '172', 'type': 'call', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'min'}; {'id': '174', 'type': 'argument_list', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'MAX'}; {'id': '176', 'type': 'binary_operator', 'children': ['177', '178'], 'value': '+'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'upstream'}; {'id': '179', 'type': 'if_statement', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'downstream'}; {'id': '181', 'type': 'block', 'children': ['182']}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'assignment', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '185', 'type': 'call', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '187', 'type': 'argument_list', 'children': ['188', '189']}; {'id': '188', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '189', 'type': 'binary_operator', 'children': ['190', '191'], 'value': '-'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'downstream'}; {'id': '192', 'type': 'if_statement', 'children': ['193', '198']}; {'id': '193', 'type': 'comparison_operator', 'children': ['194', '197'], 'value': '>'}; {'id': '194', 'type': 'binary_operator', 'children': ['195', '196'], 'value': '-'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '197', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '198', 'type': 'block', 'children': ['199']}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'call', 'children': ['201', '204']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'last_bitset'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'set_range'}; {'id': '204', 'type': 'argument_list', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '206', 'type': 'binary_operator', 'children': ['207', '208'], 'value': '-'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '209', 'type': 'return_statement', 'children': ['210']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'bitsets'}
Read a file into a dictionary of bitsets
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_device_info'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '10', '18', '22', '202', '222', '242']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'device_info'}; {'id': '9', 'type': 'dictionary', 'children': []}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '13', 'type': 'binary_operator', 'children': ['14', '15'], 'value': '%'}; {'id': '14', 'type': 'string', 'children': [], 'value': "'%s/ISAPI/System/deviceInfo'"}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'root_url'}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'using_digest'}; {'id': '21', 'type': 'False', 'children': []}; {'id': '22', 'type': 'try_statement', 'children': ['23', '176']}; {'id': '23', 'type': 'block', 'children': ['24', '38', '87']}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '27', 'type': 'call', 'children': ['28', '33']}; {'id': '28', 'type': 'attribute', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'hik_request'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '33', 'type': 'argument_list', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '35', 'type': 'keyword_argument', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'timeout'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'CONNECT_TIMEOUT'}; {'id': '38', 'type': 'if_statement', 'children': ['39', '48']}; {'id': '39', 'type': 'comparison_operator', 'children': ['40', '43'], 'value': '=='}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '43', 'type': 'attribute', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'codes'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'unauthorized'}; {'id': '48', 'type': 'block', 'children': ['49', '56', '72', '76']}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'call', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '54', 'type': 'argument_list', 'children': ['55']}; {'id': '55', 'type': 'string', 'children': [], 'value': "'Basic authentication failed. Using digest.'"}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '63']}; {'id': '58', 'type': 'attribute', 'children': ['59', '62']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'hik_request'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'auth'}; {'id': '63', 'type': 'call', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'HTTPDigestAuth'}; {'id': '65', 'type': 'argument_list', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'usr'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'pwd'}; {'id': '72', 'type': 'expression_statement', 'children': ['73']}; {'id': '73', 'type': 'assignment', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'using_digest'}; {'id': '75', 'type': 'True', 'children': []}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '79', 'type': 'call', 'children': ['80', '85']}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'hik_request'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '87', 'type': 'if_statement', 'children': ['88', '97']}; {'id': '88', 'type': 'comparison_operator', 'children': ['89', '92'], 'value': '=='}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '92', 'type': 'attribute', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'codes'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'not_found'}; {'id': '97', 'type': 'block', 'children': ['98', '105', '113', '124']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '103', 'type': 'argument_list', 'children': ['104']}; {'id': '104', 'type': 'string', 'children': [], 'value': "'Using alternate deviceInfo URL.'"}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '108', 'type': 'binary_operator', 'children': ['109', '110'], 'value': '%'}; {'id': '109', 'type': 'string', 'children': [], 'value': "'%s/System/deviceInfo'"}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'root_url'}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '116', 'type': 'call', 'children': ['117', '122']}; {'id': '117', 'type': 'attribute', 'children': ['118', '121']}; {'id': '118', 'type': 'attribute', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'hik_request'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '124', 'type': 'if_statement', 'children': ['125', '137']}; {'id': '125', 'type': 'boolean_operator', 'children': ['126', '128'], 'value': 'and'}; {'id': '126', 'type': 'not_operator', 'children': ['127']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'using_digest'}; {'id': '128', 'type': 'comparison_operator', 'children': ['129', '132'], 'value': '=='}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '132', 'type': 'attribute', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'codes'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'unauthorized'}; {'id': '137', 'type': 'block', 'children': ['138', '145', '161', '165']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'call', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '143', 'type': 'argument_list', 'children': ['144']}; {'id': '144', 'type': 'string', 'children': [], 'value': "'Basic authentication failed. Using digest.'"}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'assignment', 'children': ['147', '152']}; {'id': '147', 'type': 'attribute', 'children': ['148', '151']}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'hik_request'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'auth'}; {'id': '152', 'type': 'call', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'HTTPDigestAuth'}; {'id': '154', 'type': 'argument_list', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'usr'}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'pwd'}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'assignment', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'using_digest'}; {'id': '164', 'type': 'True', 'children': []}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'assignment', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '168', 'type': 'call', 'children': ['169', '174']}; {'id': '169', 'type': 'attribute', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'hik_request'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '176', 'type': 'except_clause', 'children': ['177', '191']}; {'id': '177', 'type': 'as_pattern', 'children': ['178', '189']}; {'id': '178', 'type': 'tuple', 'children': ['179', '184']}; {'id': '179', 'type': 'attribute', 'children': ['180', '183']}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'exceptions'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'RequestException'}; {'id': '184', 'type': 'attribute', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'exceptions'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'ConnectionError'}; {'id': '189', 'type': 'as_pattern_target', 'children': ['190']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '191', 'type': 'block', 'children': ['192', '200']}; {'id': '192', 'type': 'expression_statement', 'children': ['193']}; {'id': '193', 'type': 'call', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '197', 'type': 'argument_list', 'children': ['198', '199']}; {'id': '198', 'type': 'string', 'children': [], 'value': "'Unable to fetch deviceInfo, error: %s'"}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '200', 'type': 'return_statement', 'children': ['201']}; {'id': '201', 'type': 'None', 'children': []}; {'id': '202', 'type': 'if_statement', 'children': ['203', '212']}; {'id': '203', 'type': 'comparison_operator', 'children': ['204', '207'], 'value': '=='}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '207', 'type': 'attribute', 'children': ['208', '211']}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'codes'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'unauthorized'}; {'id': '212', 'type': 'block', 'children': ['213', '220']}; {'id': '213', 'type': 'expression_statement', 'children': ['214']}; {'id': '214', 'type': 'call', 'children': ['215', '218']}; {'id': '215', 'type': 'attribute', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '218', 'type': 'argument_list', 'children': ['219']}; {'id': '219', 'type': 'string', 'children': [], 'value': "'Authentication failed'"}; {'id': '220', 'type': 'return_statement', 'children': ['221']}; {'id': '221', 'type': 'None', 'children': []}; {'id': '222', 'type': 'if_statement', 'children': ['223', '232']}; {'id': '223', 'type': 'comparison_operator', 'children': ['224', '227'], 'value': '!='}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'status_code'}; {'id': '227', 'type': 'attribute', 'children': ['228', '231']}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'codes'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'ok'}; {'id': '232', 'type': 'block', 'children': ['233', '240']}; {'id': '233', 'type': 'expression_statement', 'children': ['234']}; {'id': '234', 'type': 'call', 'children': ['235', '238']}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'string', 'children': [], 'value': "'Unable to fetch device info.'"}; {'id': '240', 'type': 'return_statement', 'children': ['241']}; {'id': '241', 'type': 'None', 'children': []}; {'id': '242', 'type': 'try_statement', 'children': ['243', '324']}; {'id': '243', 'type': 'block', 'children': ['244', '255', '273', '287', '297', '322']}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '247', 'type': 'call', 'children': ['248', '251']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'ET'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'fromstring'}; {'id': '251', 'type': 'argument_list', 'children': ['252']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '255', 'type': 'expression_statement', 'children': ['256']}; {'id': '256', 'type': 'assignment', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'nmsp'}; {'id': '258', 'type': 'call', 'children': ['259', '271']}; {'id': '259', 'type': 'attribute', 'children': ['260', '270']}; {'id': '260', 'type': 'subscript', 'children': ['261', '269']}; {'id': '261', 'type': 'call', 'children': ['262', '267']}; {'id': '262', 'type': 'attribute', 'children': ['263', '266']}; {'id': '263', 'type': 'attribute', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '267', 'type': 'argument_list', 'children': ['268']}; {'id': '268', 'type': 'string', 'children': [], 'value': "'}'"}; {'id': '269', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '271', 'type': 'argument_list', 'children': ['272']}; {'id': '272', 'type': 'string', 'children': [], 'value': "'{'"}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'assignment', 'children': ['275', '278']}; {'id': '275', 'type': 'attribute', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '278', 'type': 'conditional_expression', 'children': ['279', '280', '286'], 'value': 'if'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'nmsp'}; {'id': '280', 'type': 'call', 'children': ['281', '284']}; {'id': '281', 'type': 'attribute', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'nmsp'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '284', 'type': 'argument_list', 'children': ['285']}; {'id': '285', 'type': 'string', 'children': [], 'value': "'http'"}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'XML_NAMESPACE'}; {'id': '287', 'type': 'expression_statement', 'children': ['288']}; {'id': '288', 'type': 'call', 'children': ['289', '292']}; {'id': '289', 'type': 'attribute', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '292', 'type': 'argument_list', 'children': ['293', '294']}; {'id': '293', 'type': 'string', 'children': [], 'value': "'Using Namespace: %s'"}; {'id': '294', 'type': 'attribute', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '297', 'type': 'for_statement', 'children': ['298', '299', '300']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '300', 'type': 'block', 'children': ['301', '314']}; {'id': '301', 'type': 'expression_statement', 'children': ['302']}; {'id': '302', 'type': 'assignment', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '304', 'type': 'subscript', 'children': ['305', '313']}; {'id': '305', 'type': 'call', 'children': ['306', '311']}; {'id': '306', 'type': 'attribute', 'children': ['307', '310']}; {'id': '307', 'type': 'attribute', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '311', 'type': 'argument_list', 'children': ['312']}; {'id': '312', 'type': 'string', 'children': [], 'value': "'}'"}; {'id': '313', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '314', 'type': 'expression_statement', 'children': ['315']}; {'id': '315', 'type': 'assignment', 'children': ['316', '319']}; {'id': '316', 'type': 'subscript', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'device_info'}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '322', 'type': 'return_statement', 'children': ['323']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'device_info'}; {'id': '324', 'type': 'except_clause', 'children': ['325', '329']}; {'id': '325', 'type': 'as_pattern', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'AttributeError'}; {'id': '327', 'type': 'as_pattern_target', 'children': ['328']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '329', 'type': 'block', 'children': ['330', '340', '348']}; {'id': '330', 'type': 'expression_statement', 'children': ['331']}; {'id': '331', 'type': 'call', 'children': ['332', '335']}; {'id': '332', 'type': 'attribute', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '335', 'type': 'argument_list', 'children': ['336', '337']}; {'id': '336', 'type': 'string', 'children': [], 'value': "'Entire response: %s'"}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '340', 'type': 'expression_statement', 'children': ['341']}; {'id': '341', 'type': 'call', 'children': ['342', '345']}; {'id': '342', 'type': 'attribute', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': '_LOGGING'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '345', 'type': 'argument_list', 'children': ['346', '347']}; {'id': '346', 'type': 'string', 'children': [], 'value': "'There was a problem: %s'"}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'err'}; {'id': '348', 'type': 'return_statement', 'children': ['349']}; {'id': '349', 'type': 'None', 'children': []}
Parse deviceInfo into dictionary.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '12', '18']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'sort'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'typed_parameter', 'children': ['5', '6']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'records'}; {'id': '6', 'type': 'type', 'children': ['7']}; {'id': '7', 'type': 'generic_type', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'Sequence'}; {'id': '9', 'type': 'type_parameter', 'children': ['10']}; {'id': '10', 'type': 'type', 'children': ['11']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'Record'}; {'id': '12', 'type': 'type', 'children': ['13']}; {'id': '13', 'type': 'generic_type', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'List'}; {'id': '15', 'type': 'type_parameter', 'children': ['16']}; {'id': '16', 'type': 'type', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'Record'}; {'id': '18', 'type': 'block', 'children': ['19', '21']}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'string', 'children': [], 'value': '"Sort records into a canonical order, suitable for comparison."'}; {'id': '21', 'type': 'return_statement', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '24', 'type': 'argument_list', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'records'}; {'id': '26', 'type': 'keyword_argument', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': '_record_key'}
Sort records into a canonical order, suitable for comparison.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_maybe_create_resources'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'typed_default_parameter', 'children': ['5', '6', '8']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'logging_task'}; {'id': '6', 'type': 'type', 'children': ['7']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'Task'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '37', '118']}; {'id': '10', 'type': 'function_definition', 'children': ['11', '12', '15']}; {'id': '11', 'type': 'function_name', 'children': [], 'value': 'log'}; {'id': '12', 'type': 'parameters', 'children': ['13']}; {'id': '13', 'type': 'list_splat_pattern', 'children': ['14']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '15', 'type': 'block', 'children': ['16']}; {'id': '16', 'type': 'if_statement', 'children': ['17', '18', '27']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'logging_task'}; {'id': '18', 'type': 'block', 'children': ['19']}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'logging_task'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'list_splat', 'children': ['26']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '27', 'type': 'else_clause', 'children': ['28']}; {'id': '28', 'type': 'block', 'children': ['29']}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'call', 'children': ['31', '34']}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'util'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'list_splat', 'children': ['36']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '37', 'type': 'function_definition', 'children': ['38', '39', '40']}; {'id': '38', 'type': 'function_name', 'children': [], 'value': 'should_create_resources'}; {'id': '39', 'type': 'parameters', 'children': []}; {'id': '40', 'type': 'block', 'children': ['41', '49', '69', '77', '89', '95', '104', '116']}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '44', 'type': 'call', 'children': ['45', '48']}; {'id': '45', 'type': 'attribute', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'get_prefix'}; {'id': '48', 'type': 'argument_list', 'children': []}; {'id': '49', 'type': 'if_statement', 'children': ['50', '61']}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '56'], 'value': 'not'}; {'id': '51', 'type': 'call', 'children': ['52', '55']}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'get_keypair_name'}; {'id': '55', 'type': 'argument_list', 'children': []}; {'id': '56', 'type': 'call', 'children': ['57', '60']}; {'id': '57', 'type': 'attribute', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'get_keypair_dict'}; {'id': '60', 'type': 'argument_list', 'children': []}; {'id': '61', 'type': 'block', 'children': ['62', '67']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'call', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'string', 'children': [], 'value': 'f"Missing {u.get_keypair_name()} keypair, creating resources"'}; {'id': '67', 'type': 'return_statement', 'children': ['68']}; {'id': '68', 'type': 'True', 'children': []}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'vpcs'}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'get_vpc_dict'}; {'id': '76', 'type': 'argument_list', 'children': []}; {'id': '77', 'type': 'if_statement', 'children': ['78', '81']}; {'id': '78', 'type': 'comparison_operator', 'children': ['79', '80'], 'value': 'not'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'vpcs'}; {'id': '81', 'type': 'block', 'children': ['82', '87']}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'call', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'string', 'children': [], 'value': 'f"Missing {prefix} vpc, creating resources"'}; {'id': '87', 'type': 'return_statement', 'children': ['88']}; {'id': '88', 'type': 'True', 'children': []}; {'id': '89', 'type': 'expression_statement', 'children': ['90']}; {'id': '90', 'type': 'assignment', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'vpc'}; {'id': '92', 'type': 'subscript', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'vpcs'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'gateways'}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'get_gateway_dict'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'vpc'}; {'id': '104', 'type': 'if_statement', 'children': ['105', '108']}; {'id': '105', 'type': 'comparison_operator', 'children': ['106', '107'], 'value': 'not'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'gateways'}; {'id': '108', 'type': 'block', 'children': ['109', '114']}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'call', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'string', 'children': [], 'value': 'f"Missing {prefix} gateway, creating resources"'}; {'id': '114', 'type': 'return_statement', 'children': ['115']}; {'id': '115', 'type': 'True', 'children': []}; {'id': '116', 'type': 'return_statement', 'children': ['117']}; {'id': '117', 'type': 'False', 'children': []}; {'id': '118', 'type': 'try_statement', 'children': ['119', '243']}; {'id': '119', 'type': 'block', 'children': ['120', '197', '216', '237']}; {'id': '120', 'type': 'if_statement', 'children': ['121', '129']}; {'id': '121', 'type': 'call', 'children': ['122', '127']}; {'id': '122', 'type': 'attribute', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '127', 'type': 'argument_list', 'children': ['128']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'AWS_LOCK_FN'}; {'id': '129', 'type': 'block', 'children': ['130', '149', '156', '165', '196']}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '136']}; {'id': '132', 'type': 'pattern_list', 'children': ['133', '134', '135']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'pid'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'lock_taskname'}; {'id': '136', 'type': 'call', 'children': ['137', '147']}; {'id': '137', 'type': 'attribute', 'children': ['138', '146']}; {'id': '138', 'type': 'call', 'children': ['139', '145']}; {'id': '139', 'type': 'attribute', 'children': ['140', '144']}; {'id': '140', 'type': 'call', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '142', 'type': 'argument_list', 'children': ['143']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'AWS_LOCK_FN'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '145', 'type': 'argument_list', 'children': []}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '152', 'type': 'call', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'ts'}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'call', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'concatenated_string', 'children': ['161', '162', '163', '164']}; {'id': '161', 'type': 'string', 'children': [], 'value': 'f"waiting for aws resource creation, another resource initiation was "'}; {'id': '162', 'type': 'string', 'children': [], 'value': 'f"initiated {int(time.time()-ts)} seconds ago by "'}; {'id': '163', 'type': 'string', 'children': [], 'value': 'f"{lock_taskname}, delete lock file "'}; {'id': '164', 'type': 'string', 'children': [], 'value': 'f"{AWS_LOCK_FN} if this is an error"'}; {'id': '165', 'type': 'while_statement', 'children': ['166', '167']}; {'id': '166', 'type': 'True', 'children': []}; {'id': '167', 'type': 'block', 'children': ['168']}; {'id': '168', 'type': 'if_statement', 'children': ['169', '177', '193']}; {'id': '169', 'type': 'call', 'children': ['170', '175']}; {'id': '170', 'type': 'attribute', 'children': ['171', '174']}; {'id': '171', 'type': 'attribute', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '175', 'type': 'argument_list', 'children': ['176']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'AWS_LOCK_FN'}; {'id': '177', 'type': 'block', 'children': ['178', '185', '192']}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'call', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'concatenated_string', 'children': ['183', '184']}; {'id': '183', 'type': 'string', 'children': [], 'value': 'f"waiting for lock file {AWS_LOCK_FN} to get deleted "'}; {'id': '184', 'type': 'string', 'children': [], 'value': 'f"initiated {int(time.time()-ts)} seconds ago by "'}; {'id': '185', 'type': 'expression_statement', 'children': ['186']}; {'id': '186', 'type': 'call', 'children': ['187', '190']}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'sleep'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '192', 'type': 'continue_statement', 'children': []}; {'id': '193', 'type': 'else_clause', 'children': ['194']}; {'id': '194', 'type': 'block', 'children': ['195']}; {'id': '195', 'type': 'break_statement', 'children': []}; {'id': '196', 'type': 'return_statement', 'children': []}; {'id': '197', 'type': 'with_statement', 'children': ['198', '208']}; {'id': '198', 'type': 'with_clause', 'children': ['199']}; {'id': '199', 'type': 'with_item', 'children': ['200']}; {'id': '200', 'type': 'as_pattern', 'children': ['201', '206']}; {'id': '201', 'type': 'call', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '203', 'type': 'argument_list', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'AWS_LOCK_FN'}; {'id': '205', 'type': 'string', 'children': [], 'value': "'w'"}; {'id': '206', 'type': 'as_pattern_target', 'children': ['207']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '208', 'type': 'block', 'children': ['209']}; {'id': '209', 'type': 'expression_statement', 'children': ['210']}; {'id': '210', 'type': 'call', 'children': ['211', '214']}; {'id': '211', 'type': 'attribute', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'string', 'children': [], 'value': 'f\'{os.getpid()}-{int(time.time())}-{logging_task.name if logging_task else ""}\''}; {'id': '216', 'type': 'if_statement', 'children': ['217', '221']}; {'id': '217', 'type': 'not_operator', 'children': ['218']}; {'id': '218', 'type': 'call', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'should_create_resources'}; {'id': '220', 'type': 'argument_list', 'children': []}; {'id': '221', 'type': 'block', 'children': ['222', '229', '236']}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'call', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'util'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '227', 'type': 'argument_list', 'children': ['228']}; {'id': '228', 'type': 'string', 'children': [], 'value': '"Resources already created, no-op"'}; {'id': '229', 'type': 'expression_statement', 'children': ['230']}; {'id': '230', 'type': 'call', 'children': ['231', '234']}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '234', 'type': 'argument_list', 'children': ['235']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'AWS_LOCK_FN'}; {'id': '236', 'type': 'return_statement', 'children': []}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'call', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'create_lib'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'create_resources'}; {'id': '242', 'type': 'argument_list', 'children': []}; {'id': '243', 'type': 'finally_clause', 'children': ['244']}; {'id': '244', 'type': 'block', 'children': ['245']}; {'id': '245', 'type': 'if_statement', 'children': ['246', '254']}; {'id': '246', 'type': 'call', 'children': ['247', '252']}; {'id': '247', 'type': 'attribute', 'children': ['248', '251']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '252', 'type': 'argument_list', 'children': ['253']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'AWS_LOCK_FN'}; {'id': '254', 'type': 'block', 'children': ['255']}; {'id': '255', 'type': 'expression_statement', 'children': ['256']}; {'id': '256', 'type': 'call', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '260', 'type': 'argument_list', 'children': ['261']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'AWS_LOCK_FN'}
Use heuristics to decide to possibly create resources
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_set_aws_environment'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'typed_default_parameter', 'children': ['5', '6', '8']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'task'}; {'id': '6', 'type': 'type', 'children': ['7']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'Task'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '22', '34', '61', '86', '109', '144']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'current_zone'}; {'id': '13', 'type': 'call', 'children': ['14', '19']}; {'id': '14', 'type': 'attribute', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '19', 'type': 'argument_list', 'children': ['20', '21']}; {'id': '20', 'type': 'string', 'children': [], 'value': "'NCLUSTER_ZONE'"}; {'id': '21', 'type': 'string', 'children': [], 'value': "''"}; {'id': '22', 'type': 'expression_statement', 'children': ['23']}; {'id': '23', 'type': 'assignment', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '25', 'type': 'call', 'children': ['26', '31']}; {'id': '26', 'type': 'attribute', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '31', 'type': 'argument_list', 'children': ['32', '33']}; {'id': '32', 'type': 'string', 'children': [], 'value': "'AWS_DEFAULT_REGION'"}; {'id': '33', 'type': 'string', 'children': [], 'value': "''"}; {'id': '34', 'type': 'function_definition', 'children': ['35', '36', '39']}; {'id': '35', 'type': 'function_name', 'children': [], 'value': 'log'}; {'id': '36', 'type': 'parameters', 'children': ['37']}; {'id': '37', 'type': 'list_splat_pattern', 'children': ['38']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'if_statement', 'children': ['41', '42', '51']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'task'}; {'id': '42', 'type': 'block', 'children': ['43']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'call', 'children': ['45', '48']}; {'id': '45', 'type': 'attribute', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'task'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '48', 'type': 'argument_list', 'children': ['49']}; {'id': '49', 'type': 'list_splat', 'children': ['50']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '51', 'type': 'else_clause', 'children': ['52']}; {'id': '52', 'type': 'block', 'children': ['53']}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'call', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'util'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '58', 'type': 'argument_list', 'children': ['59']}; {'id': '59', 'type': 'list_splat', 'children': ['60']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '61', 'type': 'if_statement', 'children': ['62', '65']}; {'id': '62', 'type': 'boolean_operator', 'children': ['63', '64'], 'value': 'and'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'current_zone'}; {'id': '65', 'type': 'block', 'children': ['66', '76']}; {'id': '66', 'type': 'assert_statement', 'children': ['67', '73']}; {'id': '67', 'type': 'call', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'current_zone'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '71', 'type': 'argument_list', 'children': ['72']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '73', 'type': 'concatenated_string', 'children': ['74', '75']}; {'id': '74', 'type': 'string', 'children': [], 'value': 'f\'Current zone "{current_zone}" ($NCLUSTER_ZONE) is not \''}; {'id': '75', 'type': 'string', 'children': [], 'value': 'f\'in current region "{current_region} ($AWS_DEFAULT_REGION)\''}; {'id': '76', 'type': 'assert_statement', 'children': ['77']}; {'id': '77', 'type': 'comparison_operator', 'children': ['78', '85'], 'value': '=='}; {'id': '78', 'type': 'attribute', 'children': ['79', '84']}; {'id': '79', 'type': 'call', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'get_session'}; {'id': '83', 'type': 'argument_list', 'children': []}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'region_name'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '86', 'type': 'if_statement', 'children': ['87', '91']}; {'id': '87', 'type': 'boolean_operator', 'children': ['88', '89'], 'value': 'and'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'current_zone'}; {'id': '89', 'type': 'not_operator', 'children': ['90']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '91', 'type': 'block', 'children': ['92', '101']}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'assignment', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '95', 'type': 'subscript', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'current_zone'}; {'id': '97', 'type': 'slice', 'children': ['98', '99']}; {'id': '98', 'type': 'colon', 'children': []}; {'id': '99', 'type': 'unary_operator', 'children': ['100'], 'value': '-'}; {'id': '100', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '108']}; {'id': '103', 'type': 'subscript', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '107', 'type': 'string', 'children': [], 'value': "'AWS_DEFAULT_REGION'"}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '109', 'type': 'if_statement', 'children': ['110', '112']}; {'id': '110', 'type': 'not_operator', 'children': ['111']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '112', 'type': 'block', 'children': ['113', '123', '136']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '116', 'type': 'attribute', 'children': ['117', '122']}; {'id': '117', 'type': 'call', 'children': ['118', '121']}; {'id': '118', 'type': 'attribute', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'u'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'get_session'}; {'id': '121', 'type': 'argument_list', 'children': []}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'region_name'}; {'id': '123', 'type': 'if_statement', 'children': ['124', '126']}; {'id': '124', 'type': 'not_operator', 'children': ['125']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '126', 'type': 'block', 'children': ['127', '132']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'call', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'string', 'children': [], 'value': 'f"No default region available, using {NCLUSTER_DEFAULT_REGION}"'}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'assignment', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'NCLUSTER_DEFAULT_REGION'}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '143']}; {'id': '138', 'type': 'subscript', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '142', 'type': 'string', 'children': [], 'value': "'AWS_DEFAULT_REGION'"}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'current_region'}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'call', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'concatenated_string', 'children': ['149', '150']}; {'id': '149', 'type': 'string', 'children': [], 'value': 'f"Using account {u.get_account_number()}, region {current_region}, "'}; {'id': '150', 'type': 'string', 'children': [], 'value': 'f"zone {current_zone}"'}
Sets up AWS environment from NCLUSTER environment variables
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'join'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'ignore_errors'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '14', '18', '24', '43', '69', '78', '102', '113', '119', '173']}; {'id': '9', 'type': 'assert_statement', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': '_status_fn'}; {'id': '13', 'type': 'string', 'children': [], 'value': '"Asked to join a task which hasn\'t had any commands executed on it"'}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'check_interval'}; {'id': '17', 'type': 'float', 'children': [], 'value': '0.2'}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'status_fn'}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': '_status_fn'}; {'id': '24', 'type': 'if_statement', 'children': ['25', '35']}; {'id': '25', 'type': 'not_operator', 'children': ['26']}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'wait_for_file'}; {'id': '30', 'type': 'argument_list', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'status_fn'}; {'id': '32', 'type': 'keyword_argument', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'max_wait_sec'}; {'id': '34', 'type': 'integer', 'children': [], 'value': '30'}; {'id': '35', 'type': 'block', 'children': ['36']}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'call', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'string', 'children': [], 'value': 'f"Retrying waiting for {status_fn}"'}; {'id': '43', 'type': 'while_statement', 'children': ['44', '51']}; {'id': '44', 'type': 'not_operator', 'children': ['45']}; {'id': '45', 'type': 'call', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '49', 'type': 'argument_list', 'children': ['50']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'status_fn'}; {'id': '51', 'type': 'block', 'children': ['52', '59']}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '57', 'type': 'argument_list', 'children': ['58']}; {'id': '58', 'type': 'string', 'children': [], 'value': 'f"Still waiting for {self._cmd}"'}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'call', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'wait_for_file'}; {'id': '64', 'type': 'argument_list', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'status_fn'}; {'id': '66', 'type': 'keyword_argument', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'max_wait_sec'}; {'id': '68', 'type': 'integer', 'children': [], 'value': '30'}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'status_fn'}; {'id': '78', 'type': 'if_statement', 'children': ['79', '85']}; {'id': '79', 'type': 'comparison_operator', 'children': ['80', '84'], 'value': '=='}; {'id': '80', 'type': 'call', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '84', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '85', 'type': 'block', 'children': ['86', '93']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'call', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'sleep'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'check_interval'}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'status_fn'}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'call', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '112', 'type': 'argument_list', 'children': []}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'last_status'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '119', 'type': 'if_statement', 'children': ['120', '123']}; {'id': '120', 'type': 'comparison_operator', 'children': ['121', '122'], 'value': '!='}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '122', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '123', 'type': 'block', 'children': ['124', '131', '155']}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'assignment', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'extra_msg'}; {'id': '127', 'type': 'conditional_expression', 'children': ['128', '129', '130'], 'value': 'if'}; {'id': '128', 'type': 'string', 'children': [], 'value': "'(ignoring error)'"}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'ignore_errors'}; {'id': '130', 'type': 'string', 'children': [], 'value': "'(failing)'"}; {'id': '131', 'type': 'if_statement', 'children': ['132', '140']}; {'id': '132', 'type': 'boolean_operator', 'children': ['133', '139'], 'value': 'or'}; {'id': '133', 'type': 'call', 'children': ['134', '137']}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'util'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'is_set'}; {'id': '137', 'type': 'argument_list', 'children': ['138']}; {'id': '138', 'type': 'string', 'children': [], 'value': "'NCLUSTER_RUN_WITH_OUTPUT_ON_FAILURE'"}; {'id': '139', 'type': 'True', 'children': []}; {'id': '140', 'type': 'block', 'children': ['141', '148']}; {'id': '141', 'type': 'expression_statement', 'children': ['142']}; {'id': '142', 'type': 'call', 'children': ['143', '146']}; {'id': '143', 'type': 'attribute', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '146', 'type': 'argument_list', 'children': ['147']}; {'id': '147', 'type': 'string', 'children': [], 'value': 'f"Start failing output {extra_msg}: \\n{\'*\'*80}\\n\\n \'{self.read(self._out_fn)}\'"'}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'call', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '153', 'type': 'argument_list', 'children': ['154']}; {'id': '154', 'type': 'string', 'children': [], 'value': 'f"\\n{\'*\'*80}\\nEnd failing output"'}; {'id': '155', 'type': 'if_statement', 'children': ['156', '158', '164']}; {'id': '156', 'type': 'not_operator', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'ignore_errors'}; {'id': '158', 'type': 'block', 'children': ['159']}; {'id': '159', 'type': 'raise_statement', 'children': ['160']}; {'id': '160', 'type': 'call', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '162', 'type': 'argument_list', 'children': ['163']}; {'id': '163', 'type': 'string', 'children': [], 'value': 'f"Command {self._cmd} returned status {status}"'}; {'id': '164', 'type': 'else_clause', 'children': ['165']}; {'id': '165', 'type': 'block', 'children': ['166']}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'call', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'string', 'children': [], 'value': 'f"Warning: command {self._cmd} returned status {status}"'}; {'id': '173', 'type': 'return_statement', 'children': ['174']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'status'}
Waits until last executed command completed.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'init'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '21', '48', '291']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '11']}; {'id': '7', 'type': 'not_operator', 'children': ['8']}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'enabled'}; {'id': '11', 'type': 'block', 'children': ['12', '19']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '17']}; {'id': '14', 'type': 'attribute', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'string', 'children': [], 'value': '" the module is disabled."'}; {'id': '19', 'type': 'return_statement', 'children': ['20']}; {'id': '20', 'type': 'True', 'children': []}; {'id': '21', 'type': 'try_statement', 'children': ['22', '31']}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'connections'}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'test_connection'}; {'id': '30', 'type': 'argument_list', 'children': []}; {'id': '31', 'type': 'except_clause', 'children': ['32', '36']}; {'id': '32', 'type': 'as_pattern', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '34', 'type': 'as_pattern_target', 'children': ['35']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'exp'}; {'id': '36', 'type': 'block', 'children': ['37']}; {'id': '37', 'type': 'expression_statement', 'children': ['38']}; {'id': '38', 'type': 'call', 'children': ['39', '42']}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '42', 'type': 'argument_list', 'children': ['43', '44']}; {'id': '43', 'type': 'string', 'children': [], 'value': '"initialization, test connection failed. Error: %s"'}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'exp'}; {'id': '48', 'type': 'if_statement', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'influxdb_enabled'}; {'id': '52', 'type': 'block', 'children': ['53']}; {'id': '53', 'type': 'try_statement', 'children': ['54', '274']}; {'id': '54', 'type': 'block', 'children': ['55', '65', '115', '197', '268']}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'dbs'}; {'id': '58', 'type': 'call', 'children': ['59', '64']}; {'id': '59', 'type': 'attribute', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'influx'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'get_list_database'}; {'id': '64', 'type': 'argument_list', 'children': []}; {'id': '65', 'type': 'for_statement', 'children': ['66', '67', '68', '92']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'db'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'dbs'}; {'id': '68', 'type': 'block', 'children': ['69']}; {'id': '69', 'type': 'if_statement', 'children': ['70', '80']}; {'id': '70', 'type': 'comparison_operator', 'children': ['71', '77'], 'value': '=='}; {'id': '71', 'type': 'call', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'db'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '75', 'type': 'argument_list', 'children': ['76']}; {'id': '76', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'influxdb_database'}; {'id': '80', 'type': 'block', 'children': ['81', '91']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'call', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '86', 'type': 'argument_list', 'children': ['87', '88']}; {'id': '87', 'type': 'string', 'children': [], 'value': '"the database %s is existing."'}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'influxdb_database'}; {'id': '91', 'type': 'break_statement', 'children': []}; {'id': '92', 'type': 'else_clause', 'children': ['93']}; {'id': '93', 'type': 'block', 'children': ['94', '104']}; {'id': '94', 'type': 'expression_statement', 'children': ['95']}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101']}; {'id': '100', 'type': 'string', 'children': [], 'value': '"creating database %s..."'}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'influxdb_database'}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'call', 'children': ['106', '111']}; {'id': '106', 'type': 'attribute', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'influx'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'create_database'}; {'id': '111', 'type': 'argument_list', 'children': ['112']}; {'id': '112', 'type': 'attribute', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'influxdb_database'}; {'id': '115', 'type': 'if_statement', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_name'}; {'id': '119', 'type': 'block', 'children': ['120', '130']}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'rps'}; {'id': '123', 'type': 'call', 'children': ['124', '129']}; {'id': '124', 'type': 'attribute', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'influx'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'get_list_retention_policies'}; {'id': '129', 'type': 'argument_list', 'children': []}; {'id': '130', 'type': 'for_statement', 'children': ['131', '132', '133', '157']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'rp'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'rps'}; {'id': '133', 'type': 'block', 'children': ['134']}; {'id': '134', 'type': 'if_statement', 'children': ['135', '145']}; {'id': '135', 'type': 'comparison_operator', 'children': ['136', '142'], 'value': '=='}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'rp'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_name'}; {'id': '145', 'type': 'block', 'children': ['146', '156']}; {'id': '146', 'type': 'expression_statement', 'children': ['147']}; {'id': '147', 'type': 'call', 'children': ['148', '151']}; {'id': '148', 'type': 'attribute', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '151', 'type': 'argument_list', 'children': ['152', '153']}; {'id': '152', 'type': 'string', 'children': [], 'value': '"the retention policy %s is existing."'}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_name'}; {'id': '156', 'type': 'break_statement', 'children': []}; {'id': '157', 'type': 'else_clause', 'children': ['158']}; {'id': '158', 'type': 'block', 'children': ['159', '175']}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '164', 'type': 'argument_list', 'children': ['165', '166', '169', '172']}; {'id': '165', 'type': 'string', 'children': [], 'value': '"creating database retention policy: %s - %s - %s..."'}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_name'}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_duration'}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_replication'}; {'id': '175', 'type': 'expression_statement', 'children': ['176']}; {'id': '176', 'type': 'call', 'children': ['177', '182']}; {'id': '177', 'type': 'attribute', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'influx'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'create_retention_policy'}; {'id': '182', 'type': 'argument_list', 'children': ['183', '186', '189', '192']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_name'}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_duration'}; {'id': '189', 'type': 'attribute', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'influxdb_retention_replication'}; {'id': '192', 'type': 'keyword_argument', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'database'}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'influxdb_database'}; {'id': '197', 'type': 'if_statement', 'children': ['198', '201']}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'influxdb_username'}; {'id': '201', 'type': 'block', 'children': ['202', '212']}; {'id': '202', 'type': 'expression_statement', 'children': ['203']}; {'id': '203', 'type': 'assignment', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'users'}; {'id': '205', 'type': 'call', 'children': ['206', '211']}; {'id': '206', 'type': 'attribute', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'influx'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'get_list_users'}; {'id': '211', 'type': 'argument_list', 'children': []}; {'id': '212', 'type': 'for_statement', 'children': ['213', '214', '215', '239']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'users'}; {'id': '215', 'type': 'block', 'children': ['216']}; {'id': '216', 'type': 'if_statement', 'children': ['217', '227']}; {'id': '217', 'type': 'comparison_operator', 'children': ['218', '224'], 'value': '=='}; {'id': '218', 'type': 'call', 'children': ['219', '222']}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '222', 'type': 'argument_list', 'children': ['223']}; {'id': '223', 'type': 'string', 'children': [], 'value': "'user'"}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'influxdb_username'}; {'id': '227', 'type': 'block', 'children': ['228', '238']}; {'id': '228', 'type': 'expression_statement', 'children': ['229']}; {'id': '229', 'type': 'call', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '233', 'type': 'argument_list', 'children': ['234', '235']}; {'id': '234', 'type': 'string', 'children': [], 'value': '"the user %s is existing."'}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'influxdb_username'}; {'id': '238', 'type': 'break_statement', 'children': []}; {'id': '239', 'type': 'else_clause', 'children': ['240']}; {'id': '240', 'type': 'block', 'children': ['241', '251']}; {'id': '241', 'type': 'expression_statement', 'children': ['242']}; {'id': '242', 'type': 'call', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '246', 'type': 'argument_list', 'children': ['247', '248']}; {'id': '247', 'type': 'string', 'children': [], 'value': '"creating user: %s..."'}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'influxdb_username'}; {'id': '251', 'type': 'expression_statement', 'children': ['252']}; {'id': '252', 'type': 'call', 'children': ['253', '258']}; {'id': '253', 'type': 'attribute', 'children': ['254', '257']}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'influx'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'create_user'}; {'id': '258', 'type': 'argument_list', 'children': ['259', '262', '265']}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'influxdb_username'}; {'id': '262', 'type': 'attribute', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'influxdb_password'}; {'id': '265', 'type': 'keyword_argument', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'admin'}; {'id': '267', 'type': 'False', 'children': []}; {'id': '268', 'type': 'expression_statement', 'children': ['269']}; {'id': '269', 'type': 'assignment', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'connections'}; {'id': '271', 'type': 'boolean_operator', 'children': ['272', '273'], 'value': 'or'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'connections'}; {'id': '273', 'type': 'True', 'children': []}; {'id': '274', 'type': 'except_clause', 'children': ['275', '279']}; {'id': '275', 'type': 'as_pattern', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '277', 'type': 'as_pattern_target', 'children': ['278']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'exp'}; {'id': '279', 'type': 'block', 'children': ['280']}; {'id': '280', 'type': 'expression_statement', 'children': ['281']}; {'id': '281', 'type': 'call', 'children': ['282', '285']}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '285', 'type': 'argument_list', 'children': ['286', '287']}; {'id': '286', 'type': 'string', 'children': [], 'value': '"InfluxDB, DB initialization failed. Error: %s"'}; {'id': '287', 'type': 'call', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '289', 'type': 'argument_list', 'children': ['290']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'exp'}; {'id': '291', 'type': 'return_statement', 'children': ['292']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'connections'}
Called by the daemon broker to initialize the module
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_metrics_from_perfdata'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'service'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'perf_data'}; {'id': '7', 'type': 'block', 'children': ['8', '12', '19', '189', '198']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '11', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '15', 'type': 'call', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'PerfDatas'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'perf_data'}; {'id': '19', 'type': 'for_statement', 'children': ['20', '21', '22']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '22', 'type': 'block', 'children': ['23', '35', '49', '58', '70', '75', '91', '110', '129', '148', '167']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'call', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '28', 'type': 'argument_list', 'children': ['29', '30', '31', '32']}; {'id': '29', 'type': 'string', 'children': [], 'value': '"service: %s, metric: %s (%s)"'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'service'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': '__dict__'}; {'id': '35', 'type': 'if_statement', 'children': ['36', '42']}; {'id': '36', 'type': 'comparison_operator', 'children': ['37', '40'], 'value': 'in'}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '40', 'type': 'list', 'children': ['41'], 'value': "['time']"}; {'id': '41', 'type': 'string', 'children': [], 'value': "'time'"}; {'id': '42', 'type': 'block', 'children': ['43']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '48']}; {'id': '45', 'type': 'attribute', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '48', 'type': 'string', 'children': [], 'value': '"duration"'}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '52', 'type': 'call', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'sanitize_name'}; {'id': '54', 'type': 'argument_list', 'children': ['55']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '61', 'type': 'call', 'children': ['62', '67']}; {'id': '62', 'type': 'attribute', 'children': ['63', '66']}; {'id': '63', 'type': 'attribute', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'multiple_values'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '67', 'type': 'argument_list', 'children': ['68', '69']}; {'id': '68', 'type': 'string', 'children': [], 'value': "r'.\\1'"}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '70', 'type': 'if_statement', 'children': ['71', '73']}; {'id': '71', 'type': 'not_operator', 'children': ['72']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '73', 'type': 'block', 'children': ['74']}; {'id': '74', 'type': 'continue_statement', 'children': []}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'name_value'}; {'id': '78', 'type': 'dictionary', 'children': ['79', '84']}; {'id': '79', 'type': 'pair', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '84', 'type': 'pair', 'children': ['85', '88']}; {'id': '85', 'type': 'binary_operator', 'children': ['86', '87'], 'value': '+'}; {'id': '86', 'type': 'string', 'children': [], 'value': "'uom_'"}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'uom'}; {'id': '91', 'type': 'if_statement', 'children': ['92', '99']}; {'id': '92', 'type': 'boolean_operator', 'children': ['93', '96'], 'value': 'and'}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'send_warning'}; {'id': '99', 'type': 'block', 'children': ['100']}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '107']}; {'id': '102', 'type': 'subscript', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'name_value'}; {'id': '104', 'type': 'binary_operator', 'children': ['105', '106'], 'value': '+'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '106', 'type': 'string', 'children': [], 'value': "'_warn'"}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '110', 'type': 'if_statement', 'children': ['111', '118']}; {'id': '111', 'type': 'boolean_operator', 'children': ['112', '115'], 'value': 'and'}; {'id': '112', 'type': 'attribute', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'send_critical'}; {'id': '118', 'type': 'block', 'children': ['119']}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '126']}; {'id': '121', 'type': 'subscript', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'name_value'}; {'id': '123', 'type': 'binary_operator', 'children': ['124', '125'], 'value': '+'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '125', 'type': 'string', 'children': [], 'value': "'_crit'"}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '129', 'type': 'if_statement', 'children': ['130', '137']}; {'id': '130', 'type': 'boolean_operator', 'children': ['131', '134'], 'value': 'and'}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'min'}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'send_min'}; {'id': '137', 'type': 'block', 'children': ['138']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'assignment', 'children': ['140', '145']}; {'id': '140', 'type': 'subscript', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'name_value'}; {'id': '142', 'type': 'binary_operator', 'children': ['143', '144'], 'value': '+'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'_min'"}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'min'}; {'id': '148', 'type': 'if_statement', 'children': ['149', '156']}; {'id': '149', 'type': 'boolean_operator', 'children': ['150', '153'], 'value': 'and'}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'send_max'}; {'id': '156', 'type': 'block', 'children': ['157']}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'assignment', 'children': ['159', '164']}; {'id': '159', 'type': 'subscript', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'name_value'}; {'id': '161', 'type': 'binary_operator', 'children': ['162', '163'], 'value': '+'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '163', 'type': 'string', 'children': [], 'value': "'_max'"}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '167', 'type': 'for_statement', 'children': ['168', '171', '176']}; {'id': '168', 'type': 'pattern_list', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '171', 'type': 'call', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'name_value'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '175', 'type': 'argument_list', 'children': []}; {'id': '176', 'type': 'block', 'children': ['177']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'call', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '182', 'type': 'argument_list', 'children': ['183']}; {'id': '183', 'type': 'tuple', 'children': ['184', '185', '186']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'metric'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'uom'}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'call', 'children': ['191', '194']}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '194', 'type': 'argument_list', 'children': ['195', '196', '197']}; {'id': '195', 'type': 'string', 'children': [], 'value': '"Metrics: %s - %s"'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'service'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '198', 'type': 'return_statement', 'children': ['199']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'result'}
Decode the performance data to build a metrics list
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'manage_service_check_result_brok'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '6', 'type': 'block', 'children': ['7', '19', '31', '39', '47', '55', '76', '97', '111', '123', '168', '175', '248', '255', '296', '328', '365', '369', '390']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '10', 'type': 'call', 'children': ['11', '16']}; {'id': '11', 'type': 'attribute', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '16', 'type': 'argument_list', 'children': ['17', '18']}; {'id': '17', 'type': 'string', 'children': [], 'value': "'host_name'"}; {'id': '18', 'type': 'None', 'children': []}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'service_description'}; {'id': '22', 'type': 'call', 'children': ['23', '28']}; {'id': '23', 'type': 'attribute', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '28', 'type': 'argument_list', 'children': ['29', '30']}; {'id': '29', 'type': 'string', 'children': [], 'value': "'service_description'"}; {'id': '30', 'type': 'None', 'children': []}; {'id': '31', 'type': 'if_statement', 'children': ['32', '37']}; {'id': '32', 'type': 'boolean_operator', 'children': ['33', '35'], 'value': 'or'}; {'id': '33', 'type': 'not_operator', 'children': ['34']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '35', 'type': 'not_operator', 'children': ['36']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'service_description'}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'return_statement', 'children': []}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '42', 'type': 'binary_operator', 'children': ['43', '46'], 'value': '+'}; {'id': '43', 'type': 'binary_operator', 'children': ['44', '45'], 'value': '+'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '45', 'type': 'string', 'children': [], 'value': '"/"'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'service_description'}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'call', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '52', 'type': 'argument_list', 'children': ['53', '54']}; {'id': '53', 'type': 'string', 'children': [], 'value': '"service check result: %s"'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '55', 'type': 'if_statement', 'children': ['56', '66']}; {'id': '56', 'type': 'boolean_operator', 'children': ['57', '61'], 'value': 'and'}; {'id': '57', 'type': 'not_operator', 'children': ['58']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'ignore_unknown'}; {'id': '61', 'type': 'comparison_operator', 'children': ['62', '63'], 'value': 'not'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '63', 'type': 'attribute', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '66', 'type': 'block', 'children': ['67', '75']}; {'id': '67', 'type': 'expression_statement', 'children': ['68']}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '72', 'type': 'argument_list', 'children': ['73', '74']}; {'id': '73', 'type': 'string', 'children': [], 'value': '"received service check result for an unknown host: %s"'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '75', 'type': 'return_statement', 'children': []}; {'id': '76', 'type': 'if_statement', 'children': ['77', '87']}; {'id': '77', 'type': 'boolean_operator', 'children': ['78', '83'], 'value': 'and'}; {'id': '78', 'type': 'comparison_operator', 'children': ['79', '80'], 'value': 'not'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'services_cache'}; {'id': '83', 'type': 'not_operator', 'children': ['84']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'ignore_unknown'}; {'id': '87', 'type': 'block', 'children': ['88', '96']}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '93', 'type': 'argument_list', 'children': ['94', '95']}; {'id': '94', 'type': 'string', 'children': [], 'value': '"received service check result for an unknown service: %s"'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '96', 'type': 'return_statement', 'children': []}; {'id': '97', 'type': 'expression_statement', 'children': ['98']}; {'id': '98', 'type': 'assignment', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '100', 'type': 'call', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'get_metrics_from_perfdata'}; {'id': '104', 'type': 'argument_list', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'service_description'}; {'id': '106', 'type': 'subscript', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '110', 'type': 'string', 'children': [], 'value': "'perf_data'"}; {'id': '111', 'type': 'if_statement', 'children': ['112', '114']}; {'id': '112', 'type': 'not_operator', 'children': ['113']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '114', 'type': 'block', 'children': ['115', '122']}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'id': '116', 'type': 'call', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'string', 'children': [], 'value': '"no metrics to send ..."'}; {'id': '122', 'type': 'return_statement', 'children': []}; {'id': '123', 'type': 'if_statement', 'children': ['124', '134', '155']}; {'id': '124', 'type': 'comparison_operator', 'children': ['125', '128', '133'], 'value': '>='}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'ignore_latency_limit'}; {'id': '128', 'type': 'subscript', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '132', 'type': 'string', 'children': [], 'value': "'latency'"}; {'id': '133', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '134', 'type': 'block', 'children': ['135']}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'check_time'}; {'id': '138', 'type': 'binary_operator', 'children': ['139', '147'], 'value': '-'}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '141', 'type': 'argument_list', 'children': ['142']}; {'id': '142', 'type': 'subscript', 'children': ['143', '146']}; {'id': '143', 'type': 'attribute', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '146', 'type': 'string', 'children': [], 'value': "'last_chk'"}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'subscript', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '154', 'type': 'string', 'children': [], 'value': "'latency'"}; {'id': '155', 'type': 'else_clause', 'children': ['156']}; {'id': '156', 'type': 'block', 'children': ['157']}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'assignment', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'check_time'}; {'id': '160', 'type': 'call', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '162', 'type': 'argument_list', 'children': ['163']}; {'id': '163', 'type': 'subscript', 'children': ['164', '167']}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '167', 'type': 'string', 'children': [], 'value': "'last_chk'"}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'assignment', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '171', 'type': 'call', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'sanitize_name'}; {'id': '173', 'type': 'argument_list', 'children': ['174']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '175', 'type': 'if_statement', 'children': ['176', '181']}; {'id': '176', 'type': 'comparison_operator', 'children': ['177', '178'], 'value': 'in'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '181', 'type': 'block', 'children': ['182', '215']}; {'id': '182', 'type': 'if_statement', 'children': ['183', '194']}; {'id': '183', 'type': 'call', 'children': ['184', '191']}; {'id': '184', 'type': 'attribute', 'children': ['185', '190']}; {'id': '185', 'type': 'subscript', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '191', 'type': 'argument_list', 'children': ['192', '193']}; {'id': '192', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_GROUP'"}; {'id': '193', 'type': 'None', 'children': []}; {'id': '194', 'type': 'block', 'children': ['195']}; {'id': '195', 'type': 'expression_statement', 'children': ['196']}; {'id': '196', 'type': 'assignment', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '198', 'type': 'call', 'children': ['199', '202']}; {'id': '199', 'type': 'attribute', 'children': ['200', '201']}; {'id': '200', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '202', 'type': 'argument_list', 'children': ['203']}; {'id': '203', 'type': 'tuple', 'children': ['204', '214']}; {'id': '204', 'type': 'call', 'children': ['205', '212']}; {'id': '205', 'type': 'attribute', 'children': ['206', '211']}; {'id': '206', 'type': 'subscript', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_GROUP'"}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '215', 'type': 'if_statement', 'children': ['216', '227']}; {'id': '216', 'type': 'call', 'children': ['217', '224']}; {'id': '217', 'type': 'attribute', 'children': ['218', '223']}; {'id': '218', 'type': 'subscript', 'children': ['219', '222']}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '224', 'type': 'argument_list', 'children': ['225', '226']}; {'id': '225', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_PRE'"}; {'id': '226', 'type': 'None', 'children': []}; {'id': '227', 'type': 'block', 'children': ['228']}; {'id': '228', 'type': 'expression_statement', 'children': ['229']}; {'id': '229', 'type': 'assignment', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '231', 'type': 'call', 'children': ['232', '235']}; {'id': '232', 'type': 'attribute', 'children': ['233', '234']}; {'id': '233', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '235', 'type': 'argument_list', 'children': ['236']}; {'id': '236', 'type': 'tuple', 'children': ['237', '247']}; {'id': '237', 'type': 'call', 'children': ['238', '245']}; {'id': '238', 'type': 'attribute', 'children': ['239', '244']}; {'id': '239', 'type': 'subscript', 'children': ['240', '243']}; {'id': '240', 'type': 'attribute', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '245', 'type': 'argument_list', 'children': ['246']}; {'id': '246', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_PRE'"}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '248', 'type': 'expression_statement', 'children': ['249']}; {'id': '249', 'type': 'assignment', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '251', 'type': 'call', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'sanitize_name'}; {'id': '253', 'type': 'argument_list', 'children': ['254']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'service_description'}; {'id': '255', 'type': 'if_statement', 'children': ['256', '261']}; {'id': '256', 'type': 'comparison_operator', 'children': ['257', '258'], 'value': 'in'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'services_cache'}; {'id': '261', 'type': 'block', 'children': ['262']}; {'id': '262', 'type': 'if_statement', 'children': ['263', '274']}; {'id': '263', 'type': 'call', 'children': ['264', '271']}; {'id': '264', 'type': 'attribute', 'children': ['265', '270']}; {'id': '265', 'type': 'subscript', 'children': ['266', '269']}; {'id': '266', 'type': 'attribute', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'services_cache'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '271', 'type': 'argument_list', 'children': ['272', '273']}; {'id': '272', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_POST'"}; {'id': '273', 'type': 'None', 'children': []}; {'id': '274', 'type': 'block', 'children': ['275']}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'assignment', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '278', 'type': 'call', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '282', 'type': 'argument_list', 'children': ['283']}; {'id': '283', 'type': 'tuple', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '285', 'type': 'call', 'children': ['286', '293']}; {'id': '286', 'type': 'attribute', 'children': ['287', '292']}; {'id': '287', 'type': 'subscript', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'services_cache'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'service_id'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '293', 'type': 'argument_list', 'children': ['294', '295']}; {'id': '294', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_POST'"}; {'id': '295', 'type': 'None', 'children': []}; {'id': '296', 'type': 'if_statement', 'children': ['297', '300', '315']}; {'id': '297', 'type': 'attribute', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'graphite_data_source'}; {'id': '300', 'type': 'block', 'children': ['301']}; {'id': '301', 'type': 'expression_statement', 'children': ['302']}; {'id': '302', 'type': 'assignment', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '304', 'type': 'call', 'children': ['305', '308']}; {'id': '305', 'type': 'attribute', 'children': ['306', '307']}; {'id': '306', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '308', 'type': 'argument_list', 'children': ['309']}; {'id': '309', 'type': 'tuple', 'children': ['310', '311', '314']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '311', 'type': 'attribute', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'graphite_data_source'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '315', 'type': 'else_clause', 'children': ['316']}; {'id': '316', 'type': 'block', 'children': ['317']}; {'id': '317', 'type': 'expression_statement', 'children': ['318']}; {'id': '318', 'type': 'assignment', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '320', 'type': 'call', 'children': ['321', '324']}; {'id': '321', 'type': 'attribute', 'children': ['322', '323']}; {'id': '322', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '324', 'type': 'argument_list', 'children': ['325']}; {'id': '325', 'type': 'tuple', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '328', 'type': 'if_statement', 'children': ['329', '344']}; {'id': '329', 'type': 'boolean_operator', 'children': ['330', '333'], 'value': 'and'}; {'id': '330', 'type': 'attribute', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'realms_prefix'}; {'id': '333', 'type': 'call', 'children': ['334', '341']}; {'id': '334', 'type': 'attribute', 'children': ['335', '340']}; {'id': '335', 'type': 'subscript', 'children': ['336', '339']}; {'id': '336', 'type': 'attribute', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '341', 'type': 'argument_list', 'children': ['342', '343']}; {'id': '342', 'type': 'string', 'children': [], 'value': "'realm_name'"}; {'id': '343', 'type': 'None', 'children': []}; {'id': '344', 'type': 'block', 'children': ['345']}; {'id': '345', 'type': 'expression_statement', 'children': ['346']}; {'id': '346', 'type': 'assignment', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '348', 'type': 'call', 'children': ['349', '352']}; {'id': '349', 'type': 'attribute', 'children': ['350', '351']}; {'id': '350', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '352', 'type': 'argument_list', 'children': ['353']}; {'id': '353', 'type': 'tuple', 'children': ['354', '364']}; {'id': '354', 'type': 'call', 'children': ['355', '362']}; {'id': '355', 'type': 'attribute', 'children': ['356', '361']}; {'id': '356', 'type': 'subscript', 'children': ['357', '360']}; {'id': '357', 'type': 'attribute', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '362', 'type': 'argument_list', 'children': ['363']}; {'id': '363', 'type': 'string', 'children': [], 'value': "'realm_name'"}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '365', 'type': 'expression_statement', 'children': ['366']}; {'id': '366', 'type': 'assignment', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'realm_name'}; {'id': '368', 'type': 'None', 'children': []}; {'id': '369', 'type': 'if_statement', 'children': ['370', '375']}; {'id': '370', 'type': 'comparison_operator', 'children': ['371', '372'], 'value': 'in'}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '372', 'type': 'attribute', 'children': ['373', '374']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '375', 'type': 'block', 'children': ['376']}; {'id': '376', 'type': 'expression_statement', 'children': ['377']}; {'id': '377', 'type': 'assignment', 'children': ['378', '379']}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'realm_name'}; {'id': '379', 'type': 'call', 'children': ['380', '387']}; {'id': '380', 'type': 'attribute', 'children': ['381', '386']}; {'id': '381', 'type': 'subscript', 'children': ['382', '385']}; {'id': '382', 'type': 'attribute', 'children': ['383', '384']}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '387', 'type': 'argument_list', 'children': ['388', '389']}; {'id': '388', 'type': 'string', 'children': [], 'value': "'realm_name'"}; {'id': '389', 'type': 'None', 'children': []}; {'id': '390', 'type': 'expression_statement', 'children': ['391']}; {'id': '391', 'type': 'call', 'children': ['392', '395']}; {'id': '392', 'type': 'attribute', 'children': ['393', '394']}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'send_to_tsdb'}; {'id': '395', 'type': 'argument_list', 'children': ['396', '397', '398', '399', '400', '401']}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'realm_name'}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'service_description'}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '400', 'type': 'identifier', 'children': [], 'value': 'check_time'}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'path'}
A service check result brok has just arrived ...
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'manage_host_check_result_brok'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '6', 'type': 'block', 'children': ['7', '19', '24', '32', '53', '67', '79', '124', '131', '204', '258', '295', '299', '320']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '10', 'type': 'call', 'children': ['11', '16']}; {'id': '11', 'type': 'attribute', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '16', 'type': 'argument_list', 'children': ['17', '18']}; {'id': '17', 'type': 'string', 'children': [], 'value': "'host_name'"}; {'id': '18', 'type': 'None', 'children': []}; {'id': '19', 'type': 'if_statement', 'children': ['20', '22']}; {'id': '20', 'type': 'not_operator', 'children': ['21']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'return_statement', 'children': []}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '29']}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '29', 'type': 'argument_list', 'children': ['30', '31']}; {'id': '30', 'type': 'string', 'children': [], 'value': '"host check result: %s"'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '32', 'type': 'if_statement', 'children': ['33', '43']}; {'id': '33', 'type': 'boolean_operator', 'children': ['34', '39'], 'value': 'and'}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '36'], 'value': 'not'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '39', 'type': 'not_operator', 'children': ['40']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'ignore_unknown'}; {'id': '43', 'type': 'block', 'children': ['44', '52']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'call', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '49', 'type': 'argument_list', 'children': ['50', '51']}; {'id': '50', 'type': 'string', 'children': [], 'value': '"received host check result for an unknown host: %s"'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '52', 'type': 'return_statement', 'children': []}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '56', 'type': 'call', 'children': ['57', '60']}; {'id': '57', 'type': 'attribute', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'get_metrics_from_perfdata'}; {'id': '60', 'type': 'argument_list', 'children': ['61', '62']}; {'id': '61', 'type': 'string', 'children': [], 'value': "'host_check'"}; {'id': '62', 'type': 'subscript', 'children': ['63', '66']}; {'id': '63', 'type': 'attribute', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '66', 'type': 'string', 'children': [], 'value': "'perf_data'"}; {'id': '67', 'type': 'if_statement', 'children': ['68', '70']}; {'id': '68', 'type': 'not_operator', 'children': ['69']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '70', 'type': 'block', 'children': ['71', '78']}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'string', 'children': [], 'value': '"no metrics to send ..."'}; {'id': '78', 'type': 'return_statement', 'children': []}; {'id': '79', 'type': 'if_statement', 'children': ['80', '90', '111']}; {'id': '80', 'type': 'comparison_operator', 'children': ['81', '84', '89'], 'value': '>='}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'ignore_latency_limit'}; {'id': '84', 'type': 'subscript', 'children': ['85', '88']}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '88', 'type': 'string', 'children': [], 'value': "'latency'"}; {'id': '89', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '90', 'type': 'block', 'children': ['91']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'check_time'}; {'id': '94', 'type': 'binary_operator', 'children': ['95', '103'], 'value': '-'}; {'id': '95', 'type': 'call', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'id': '98', 'type': 'subscript', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '102', 'type': 'string', 'children': [], 'value': "'last_chk'"}; {'id': '103', 'type': 'call', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '105', 'type': 'argument_list', 'children': ['106']}; {'id': '106', 'type': 'subscript', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '110', 'type': 'string', 'children': [], 'value': "'latency'"}; {'id': '111', 'type': 'else_clause', 'children': ['112']}; {'id': '112', 'type': 'block', 'children': ['113']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'check_time'}; {'id': '116', 'type': 'call', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '118', 'type': 'argument_list', 'children': ['119']}; {'id': '119', 'type': 'subscript', 'children': ['120', '123']}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '123', 'type': 'string', 'children': [], 'value': "'last_chk'"}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'assignment', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '127', 'type': 'call', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'sanitize_name'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '131', 'type': 'if_statement', 'children': ['132', '137']}; {'id': '132', 'type': 'comparison_operator', 'children': ['133', '134'], 'value': 'in'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '137', 'type': 'block', 'children': ['138', '171']}; {'id': '138', 'type': 'if_statement', 'children': ['139', '150']}; {'id': '139', 'type': 'call', 'children': ['140', '147']}; {'id': '140', 'type': 'attribute', 'children': ['141', '146']}; {'id': '141', 'type': 'subscript', 'children': ['142', '145']}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '147', 'type': 'argument_list', 'children': ['148', '149']}; {'id': '148', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_GROUP'"}; {'id': '149', 'type': 'None', 'children': []}; {'id': '150', 'type': 'block', 'children': ['151']}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'assignment', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '154', 'type': 'call', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '158', 'type': 'argument_list', 'children': ['159']}; {'id': '159', 'type': 'tuple', 'children': ['160', '170']}; {'id': '160', 'type': 'call', 'children': ['161', '168']}; {'id': '161', 'type': 'attribute', 'children': ['162', '167']}; {'id': '162', 'type': 'subscript', 'children': ['163', '166']}; {'id': '163', 'type': 'attribute', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '168', 'type': 'argument_list', 'children': ['169']}; {'id': '169', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_GROUP'"}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '171', 'type': 'if_statement', 'children': ['172', '183']}; {'id': '172', 'type': 'call', 'children': ['173', '180']}; {'id': '173', 'type': 'attribute', 'children': ['174', '179']}; {'id': '174', 'type': 'subscript', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '180', 'type': 'argument_list', 'children': ['181', '182']}; {'id': '181', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_PRE'"}; {'id': '182', 'type': 'None', 'children': []}; {'id': '183', 'type': 'block', 'children': ['184']}; {'id': '184', 'type': 'expression_statement', 'children': ['185']}; {'id': '185', 'type': 'assignment', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'tuple', 'children': ['193', '203']}; {'id': '193', 'type': 'call', 'children': ['194', '201']}; {'id': '194', 'type': 'attribute', 'children': ['195', '200']}; {'id': '195', 'type': 'subscript', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'string', 'children': [], 'value': "'_GRAPHITE_PRE'"}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '204', 'type': 'if_statement', 'children': ['205', '208', '243']}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'graphite_data_source'}; {'id': '208', 'type': 'block', 'children': ['209', '222']}; {'id': '209', 'type': 'expression_statement', 'children': ['210']}; {'id': '210', 'type': 'assignment', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '212', 'type': 'call', 'children': ['213', '216']}; {'id': '213', 'type': 'attribute', 'children': ['214', '215']}; {'id': '214', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '216', 'type': 'argument_list', 'children': ['217']}; {'id': '217', 'type': 'tuple', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'graphite_data_source'}; {'id': '222', 'type': 'if_statement', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'hostcheck'}; {'id': '226', 'type': 'block', 'children': ['227']}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'assignment', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '230', 'type': 'call', 'children': ['231', '234']}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '234', 'type': 'argument_list', 'children': ['235']}; {'id': '235', 'type': 'tuple', 'children': ['236', '237', '240']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'graphite_data_source'}; {'id': '240', 'type': 'attribute', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'hostcheck'}; {'id': '243', 'type': 'else_clause', 'children': ['244']}; {'id': '244', 'type': 'block', 'children': ['245']}; {'id': '245', 'type': 'expression_statement', 'children': ['246']}; {'id': '246', 'type': 'assignment', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '248', 'type': 'call', 'children': ['249', '252']}; {'id': '249', 'type': 'attribute', 'children': ['250', '251']}; {'id': '250', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '252', 'type': 'argument_list', 'children': ['253']}; {'id': '253', 'type': 'tuple', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'hname'}; {'id': '255', 'type': 'attribute', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'hostcheck'}; {'id': '258', 'type': 'if_statement', 'children': ['259', '274']}; {'id': '259', 'type': 'boolean_operator', 'children': ['260', '263'], 'value': 'and'}; {'id': '260', 'type': 'attribute', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'realms_prefix'}; {'id': '263', 'type': 'call', 'children': ['264', '271']}; {'id': '264', 'type': 'attribute', 'children': ['265', '270']}; {'id': '265', 'type': 'subscript', 'children': ['266', '269']}; {'id': '266', 'type': 'attribute', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '271', 'type': 'argument_list', 'children': ['272', '273']}; {'id': '272', 'type': 'string', 'children': [], 'value': "'realm_name'"}; {'id': '273', 'type': 'None', 'children': []}; {'id': '274', 'type': 'block', 'children': ['275']}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'assignment', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '278', 'type': 'call', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '282', 'type': 'argument_list', 'children': ['283']}; {'id': '283', 'type': 'tuple', 'children': ['284', '294']}; {'id': '284', 'type': 'call', 'children': ['285', '292']}; {'id': '285', 'type': 'attribute', 'children': ['286', '291']}; {'id': '286', 'type': 'subscript', 'children': ['287', '290']}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '292', 'type': 'argument_list', 'children': ['293']}; {'id': '293', 'type': 'string', 'children': [], 'value': "'realm_name'"}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '295', 'type': 'expression_statement', 'children': ['296']}; {'id': '296', 'type': 'assignment', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'realm_name'}; {'id': '298', 'type': 'None', 'children': []}; {'id': '299', 'type': 'if_statement', 'children': ['300', '305']}; {'id': '300', 'type': 'comparison_operator', 'children': ['301', '302'], 'value': 'in'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '302', 'type': 'attribute', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '305', 'type': 'block', 'children': ['306']}; {'id': '306', 'type': 'expression_statement', 'children': ['307']}; {'id': '307', 'type': 'assignment', 'children': ['308', '309']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'realm_name'}; {'id': '309', 'type': 'call', 'children': ['310', '317']}; {'id': '310', 'type': 'attribute', 'children': ['311', '316']}; {'id': '311', 'type': 'subscript', 'children': ['312', '315']}; {'id': '312', 'type': 'attribute', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'hosts_cache'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '317', 'type': 'argument_list', 'children': ['318', '319']}; {'id': '318', 'type': 'string', 'children': [], 'value': "'realm_name'"}; {'id': '319', 'type': 'None', 'children': []}; {'id': '320', 'type': 'expression_statement', 'children': ['321']}; {'id': '321', 'type': 'call', 'children': ['322', '325']}; {'id': '322', 'type': 'attribute', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'send_to_tsdb'}; {'id': '325', 'type': 'argument_list', 'children': ['326', '327', '328', '331', '332', '333']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'realm_name'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'host_name'}; {'id': '328', 'type': 'attribute', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'hostcheck'}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'metrics'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'check_time'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'path'}
An host check result brok has just arrived...
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'run'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '137']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '11', '21']}; {'id': '7', 'type': 'not_operator', 'children': ['8']}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'services'}; {'id': '11', 'type': 'block', 'children': ['12']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '19']}; {'id': '14', 'type': 'attribute', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '19', 'type': 'argument_list', 'children': ['20']}; {'id': '20', 'type': 'string', 'children': [], 'value': '"no service checks are configured"'}; {'id': '21', 'type': 'else_clause', 'children': ['22']}; {'id': '22', 'type': 'block', 'children': ['23', '38', '67']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'call', 'children': ['25', '30']}; {'id': '25', 'type': 'attribute', 'children': ['26', '29']}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '30', 'type': 'argument_list', 'children': ['31', '32']}; {'id': '31', 'type': 'string', 'children': [], 'value': '"going to lunch %s threads"'}; {'id': '32', 'type': 'call', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'services'}; {'id': '38', 'type': 'if_statement', 'children': ['39', '48', '61']}; {'id': '39', 'type': 'call', 'children': ['40', '45']}; {'id': '40', 'type': 'attribute', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'has_option'}; {'id': '45', 'type': 'argument_list', 'children': ['46', '47']}; {'id': '46', 'type': 'string', 'children': [], 'value': "'daemon'"}; {'id': '47', 'type': 'string', 'children': [], 'value': "'splay_startup'"}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'splay_startup'}; {'id': '52', 'type': 'call', 'children': ['53', '58']}; {'id': '53', 'type': 'attribute', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'getfloat'}; {'id': '58', 'type': 'argument_list', 'children': ['59', '60']}; {'id': '59', 'type': 'string', 'children': [], 'value': "'daemon'"}; {'id': '60', 'type': 'string', 'children': [], 'value': "'splay_startup'"}; {'id': '61', 'type': 'else_clause', 'children': ['62']}; {'id': '62', 'type': 'block', 'children': ['63']}; {'id': '63', 'type': 'expression_statement', 'children': ['64']}; {'id': '64', 'type': 'assignment', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'splay_startup'}; {'id': '66', 'type': 'None', 'children': []}; {'id': '67', 'type': 'for_statement', 'children': ['68', '69', '72']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'service'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'services'}; {'id': '72', 'type': 'block', 'children': ['73', '83', '87', '119', '131']}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'call', 'children': ['75', '80']}; {'id': '75', 'type': 'attribute', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '80', 'type': 'argument_list', 'children': ['81', '82']}; {'id': '81', 'type': 'string', 'children': [], 'value': '"lunching thread for %s"'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'service'}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'assignment', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': '_config'}; {'id': '86', 'type': 'dictionary', 'children': []}; {'id': '87', 'type': 'for_statement', 'children': ['88', '91', '96']}; {'id': '88', 'type': 'pattern_list', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'option'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'getter'}; {'id': '91', 'type': 'call', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'SERVICE_OPTIONS_TYPE'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '95', 'type': 'argument_list', 'children': []}; {'id': '96', 'type': 'block', 'children': ['97']}; {'id': '97', 'type': 'try_statement', 'children': ['98', '115']}; {'id': '98', 'type': 'block', 'children': ['99']}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '104']}; {'id': '101', 'type': 'subscript', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': '_config'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'option'}; {'id': '104', 'type': 'call', 'children': ['105', '112']}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '107', 'type': 'argument_list', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'getter'}; {'id': '112', 'type': 'argument_list', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'service'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'option'}; {'id': '115', 'type': 'except_clause', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'NoOptionError'}; {'id': '117', 'type': 'block', 'children': ['118']}; {'id': '118', 'type': 'pass_statement', 'children': []}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': '_thread'}; {'id': '122', 'type': 'call', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'ServiceCheck'}; {'id': '124', 'type': 'argument_list', 'children': ['125', '126', '127', '130']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'service'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': '_config'}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'splay_startup'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'call', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': '_thread'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '136', 'type': 'argument_list', 'children': []}; {'id': '137', 'type': 'while_statement', 'children': ['138', '139']}; {'id': '138', 'type': 'True', 'children': []}; {'id': '139', 'type': 'block', 'children': ['140', '153', '189', '207', '216', '224']}; {'id': '140', 'type': 'expression_statement', 'children': ['141']}; {'id': '141', 'type': 'assignment', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '143', 'type': 'call', 'children': ['144', '149']}; {'id': '144', 'type': 'attribute', 'children': ['145', '148']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'keyword_argument', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '152', 'type': 'True', 'children': []}; {'id': '153', 'type': 'if_statement', 'children': ['154', '159']}; {'id': '154', 'type': 'call', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'ServiceCheckDiedError'}; {'id': '159', 'type': 'block', 'children': ['160', '169', '182']}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '167']}; {'id': '162', 'type': 'attribute', 'children': ['163', '166']}; {'id': '163', 'type': 'attribute', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'call', 'children': ['171', '176']}; {'id': '171', 'type': 'attribute', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '176', 'type': 'argument_list', 'children': ['177']}; {'id': '177', 'type': 'concatenated_string', 'children': ['178', '179', '180', '181']}; {'id': '178', 'type': 'string', 'children': [], 'value': '"This is a fatal error and the only way to "'}; {'id': '179', 'type': 'string', 'children': [], 'value': '"recover is to restart, thus exiting with a "'}; {'id': '180', 'type': 'string', 'children': [], 'value': '"non-zero code and let systemd act by "'}; {'id': '181', 'type': 'string', 'children': [], 'value': '"triggering a restart"'}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'call', 'children': ['184', '187']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '187', 'type': 'argument_list', 'children': ['188']}; {'id': '188', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'call', 'children': ['191', '196']}; {'id': '191', 'type': 'attribute', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '196', 'type': 'argument_list', 'children': ['197', '200', '203', '206']}; {'id': '197', 'type': 'concatenated_string', 'children': ['198', '199']}; {'id': '198', 'type': 'string', 'children': [], 'value': '"returned an item from the queue for %s with IP "'}; {'id': '199', 'type': 'string', 'children': [], 'value': '"prefix %s and action to %s Bird configuration"'}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'ip_prefix'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'assignment', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'bird_updated'}; {'id': '210', 'type': 'call', 'children': ['211', '214']}; {'id': '211', 'type': 'attribute', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': '_update_bird_conf_file'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '216', 'type': 'expression_statement', 'children': ['217']}; {'id': '217', 'type': 'call', 'children': ['218', '223']}; {'id': '218', 'type': 'attribute', 'children': ['219', '222']}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'task_done'}; {'id': '223', 'type': 'argument_list', 'children': []}; {'id': '224', 'type': 'if_statement', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'bird_updated'}; {'id': '226', 'type': 'block', 'children': ['227', '233']}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'assignment', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'ip_version'}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'ip_version'}; {'id': '233', 'type': 'if_statement', 'children': ['234', '239', '251']}; {'id': '234', 'type': 'comparison_operator', 'children': ['235', '238'], 'value': 'is'}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'operation'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'bird_reconfigure_cmd'}; {'id': '238', 'type': 'None', 'children': []}; {'id': '239', 'type': 'block', 'children': ['240']}; {'id': '240', 'type': 'expression_statement', 'children': ['241']}; {'id': '241', 'type': 'call', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'reconfigure_bird'}; {'id': '243', 'type': 'argument_list', 'children': ['244']}; {'id': '244', 'type': 'subscript', 'children': ['245', '250']}; {'id': '245', 'type': 'subscript', 'children': ['246', '249']}; {'id': '246', 'type': 'attribute', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'bird_configuration'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'ip_version'}; {'id': '250', 'type': 'string', 'children': [], 'value': "'reconfigure_cmd'"}; {'id': '251', 'type': 'else_clause', 'children': ['252']}; {'id': '252', 'type': 'block', 'children': ['253']}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'call', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'run_custom_bird_reconfigure'}; {'id': '256', 'type': 'argument_list', 'children': ['257']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'operation'}
Lunch checks and triggers updates on BIRD configuration.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_ve_base'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '6', 'type': 'block', 'children': ['7', '22', '48', '146']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 've_base_value'}; {'id': '10', 'type': 'call', 'children': ['11', '20']}; {'id': '11', 'type': 'attribute', 'children': ['12', '19']}; {'id': '12', 'type': 'subscript', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'headings'}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'default_heading'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '20', 'type': 'argument_list', 'children': ['21']}; {'id': '21', 'type': 'string', 'children': [], 'value': "'virtualenvs'"}; {'id': '22', 'type': 'if_statement', 'children': ['23', '24', '36']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 've_base_value'}; {'id': '24', 'type': 'block', 'children': ['25']}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 've_base'}; {'id': '28', 'type': 'call', 'children': ['29', '34']}; {'id': '29', 'type': 'attribute', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'expanduser'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 've_base_value'}; {'id': '36', 'type': 'else_clause', 'children': ['37']}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 've_base'}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '45', 'type': 'argument_list', 'children': ['46', '47']}; {'id': '46', 'type': 'string', 'children': [], 'value': "'WORKON_HOME'"}; {'id': '47', 'type': 'string', 'children': [], 'value': "''"}; {'id': '48', 'type': 'if_statement', 'children': ['49', '51']}; {'id': '49', 'type': 'not_operator', 'children': ['50']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 've_base'}; {'id': '51', 'type': 'block', 'children': ['52', '113', '128', '134']}; {'id': '52', 'type': 'if_statement', 'children': ['53', '66', '101']}; {'id': '53', 'type': 'boolean_operator', 'children': ['54', '61'], 'value': 'and'}; {'id': '54', 'type': 'comparison_operator', 'children': ['55', '60'], 'value': '=='}; {'id': '55', 'type': 'call', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'platform'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'system'}; {'id': '59', 'type': 'argument_list', 'children': []}; {'id': '60', 'type': 'string', 'children': [], 'value': "'Windows'"}; {'id': '61', 'type': 'comparison_operator', 'children': ['62', '65'], 'value': '=='}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '65', 'type': 'string', 'children': [], 'value': "'nt'"}; {'id': '66', 'type': 'block', 'children': ['67', '76', '86']}; {'id': '67', 'type': 'expression_statement', 'children': ['68']}; {'id': '68', 'type': 'assignment', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': '_win_drive'}; {'id': '70', 'type': 'call', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'string', 'children': [], 'value': "'HOMEDRIVE'"}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '79', 'type': 'call', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '83', 'type': 'argument_list', 'children': ['84', '85']}; {'id': '84', 'type': 'string', 'children': [], 'value': "'HOMEPATH'"}; {'id': '85', 'type': 'string', 'children': [], 'value': "''"}; {'id': '86', 'type': 'if_statement', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '88', 'type': 'block', 'children': ['89']}; {'id': '89', 'type': 'expression_statement', 'children': ['90']}; {'id': '90', 'type': 'assignment', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '92', 'type': 'call', 'children': ['93', '98']}; {'id': '93', 'type': 'attribute', 'children': ['94', '97']}; {'id': '94', 'type': 'attribute', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '98', 'type': 'argument_list', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': '_win_drive'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '101', 'type': 'else_clause', 'children': ['102']}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'environ'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '110', 'type': 'argument_list', 'children': ['111', '112']}; {'id': '111', 'type': 'string', 'children': [], 'value': "'HOME'"}; {'id': '112', 'type': 'string', 'children': [], 'value': "''"}; {'id': '113', 'type': 'if_statement', 'children': ['114', '116']}; {'id': '114', 'type': 'not_operator', 'children': ['115']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '116', 'type': 'block', 'children': ['117']}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '120', 'type': 'call', 'children': ['121', '126']}; {'id': '121', 'type': 'attribute', 'children': ['122', '125']}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'expanduser'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'string', 'children': [], 'value': "'~'"}; {'id': '128', 'type': 'if_statement', 'children': ['129', '131']}; {'id': '129', 'type': 'not_operator', 'children': ['130']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '131', 'type': 'block', 'children': ['132']}; {'id': '132', 'type': 'return_statement', 'children': ['133']}; {'id': '133', 'type': 'string', 'children': [], 'value': "''"}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 've_base'}; {'id': '137', 'type': 'call', 'children': ['138', '143']}; {'id': '138', 'type': 'attribute', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '143', 'type': 'argument_list', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'home'}; {'id': '145', 'type': 'string', 'children': [], 'value': "'.virtualenvs'"}; {'id': '146', 'type': 'return_statement', 'children': ['147']}; {'id': '147', 'type': 'boolean_operator', 'children': ['148', '149'], 'value': 'or'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 've_base'}; {'id': '149', 'type': 'string', 'children': [], 'value': "''"}
Find a directory to look for virtualenvs in.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'map_v2_event_into_v1'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '5', 'type': 'block', 'children': ['6', '8', '15', '260']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'string', 'children': [], 'value': "'''\n Helper method to convert Sensu 2.x event into Sensu 1.x event.\n '''"}; {'id': '8', 'type': 'if_statement', 'children': ['9', '12']}; {'id': '9', 'type': 'comparison_operator', 'children': ['10', '11'], 'value': 'in'}; {'id': '10', 'type': 'string', 'children': [], 'value': '"v2_event_mapped_into_v1"'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '12', 'type': 'block', 'children': ['13']}; {'id': '13', 'type': 'return_statement', 'children': ['14']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '15', 'type': 'if_statement', 'children': ['16', '30']}; {'id': '16', 'type': 'boolean_operator', 'children': ['17', '27'], 'value': 'and'}; {'id': '17', 'type': 'not_operator', 'children': ['18']}; {'id': '18', 'type': 'call', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '20', 'type': 'argument_list', 'children': ['21']}; {'id': '21', 'type': 'call', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '25', 'type': 'argument_list', 'children': ['26']}; {'id': '26', 'type': 'string', 'children': [], 'value': "'client'"}; {'id': '27', 'type': 'comparison_operator', 'children': ['28', '29'], 'value': 'in'}; {'id': '28', 'type': 'string', 'children': [], 'value': '"entity"'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '30', 'type': 'block', 'children': ['31', '39', '58', '77', '96', '115', '128', '149', '182', '254']}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '36']}; {'id': '33', 'type': 'subscript', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '35', 'type': 'string', 'children': [], 'value': "'client'"}; {'id': '36', 'type': 'subscript', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '38', 'type': 'string', 'children': [], 'value': "'entity'"}; {'id': '39', 'type': 'if_statement', 'children': ['40', '45']}; {'id': '40', 'type': 'comparison_operator', 'children': ['41', '42'], 'value': 'not'}; {'id': '41', 'type': 'string', 'children': [], 'value': '"name"'}; {'id': '42', 'type': 'subscript', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '44', 'type': 'string', 'children': [], 'value': "'client'"}; {'id': '45', 'type': 'block', 'children': ['46']}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '53']}; {'id': '48', 'type': 'subscript', 'children': ['49', '52']}; {'id': '49', 'type': 'subscript', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '51', 'type': 'string', 'children': [], 'value': "'client'"}; {'id': '52', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '53', 'type': 'subscript', 'children': ['54', '57']}; {'id': '54', 'type': 'subscript', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '56', 'type': 'string', 'children': [], 'value': "'entity'"}; {'id': '57', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '58', 'type': 'if_statement', 'children': ['59', '64']}; {'id': '59', 'type': 'comparison_operator', 'children': ['60', '61'], 'value': 'not'}; {'id': '60', 'type': 'string', 'children': [], 'value': '"subscribers"'}; {'id': '61', 'type': 'subscript', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'client'"}; {'id': '64', 'type': 'block', 'children': ['65']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '72']}; {'id': '67', 'type': 'subscript', 'children': ['68', '71']}; {'id': '68', 'type': 'subscript', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '70', 'type': 'string', 'children': [], 'value': "'client'"}; {'id': '71', 'type': 'string', 'children': [], 'value': "'subscribers'"}; {'id': '72', 'type': 'subscript', 'children': ['73', '76']}; {'id': '73', 'type': 'subscript', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '75', 'type': 'string', 'children': [], 'value': "'entity'"}; {'id': '76', 'type': 'string', 'children': [], 'value': "'subscriptions'"}; {'id': '77', 'type': 'if_statement', 'children': ['78', '83']}; {'id': '78', 'type': 'comparison_operator', 'children': ['79', '80'], 'value': 'not'}; {'id': '79', 'type': 'string', 'children': [], 'value': '"subscribers"'}; {'id': '80', 'type': 'subscript', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '82', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '83', 'type': 'block', 'children': ['84']}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '91']}; {'id': '86', 'type': 'subscript', 'children': ['87', '90']}; {'id': '87', 'type': 'subscript', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '89', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '90', 'type': 'string', 'children': [], 'value': "'subscribers'"}; {'id': '91', 'type': 'subscript', 'children': ['92', '95']}; {'id': '92', 'type': 'subscript', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '94', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '95', 'type': 'string', 'children': [], 'value': "'subscriptions'"}; {'id': '96', 'type': 'if_statement', 'children': ['97', '102']}; {'id': '97', 'type': 'comparison_operator', 'children': ['98', '99'], 'value': 'not'}; {'id': '98', 'type': 'string', 'children': [], 'value': '"source"'}; {'id': '99', 'type': 'subscript', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '101', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '110']}; {'id': '105', 'type': 'subscript', 'children': ['106', '109']}; {'id': '106', 'type': 'subscript', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '108', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '109', 'type': 'string', 'children': [], 'value': "'source'"}; {'id': '110', 'type': 'subscript', 'children': ['111', '114']}; {'id': '111', 'type': 'subscript', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '113', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '114', 'type': 'string', 'children': [], 'value': "'proxy_entity_id'"}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'id': '116', 'type': 'assignment', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'action_state_mapping'}; {'id': '118', 'type': 'dictionary', 'children': ['119', '122', '125']}; {'id': '119', 'type': 'pair', 'children': ['120', '121']}; {'id': '120', 'type': 'string', 'children': [], 'value': "'flapping'"}; {'id': '121', 'type': 'string', 'children': [], 'value': "'flapping'"}; {'id': '122', 'type': 'pair', 'children': ['123', '124']}; {'id': '123', 'type': 'string', 'children': [], 'value': "'passing'"}; {'id': '124', 'type': 'string', 'children': [], 'value': "'resolve'"}; {'id': '125', 'type': 'pair', 'children': ['126', '127']}; {'id': '126', 'type': 'string', 'children': [], 'value': "'failing'"}; {'id': '127', 'type': 'string', 'children': [], 'value': "'create'"}; {'id': '128', 'type': 'if_statement', 'children': ['129', '134', '143']}; {'id': '129', 'type': 'comparison_operator', 'children': ['130', '131'], 'value': 'in'}; {'id': '130', 'type': 'string', 'children': [], 'value': '"state"'}; {'id': '131', 'type': 'subscript', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '133', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '134', 'type': 'block', 'children': ['135']}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '138', 'type': 'subscript', 'children': ['139', '142']}; {'id': '139', 'type': 'subscript', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '141', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '142', 'type': 'string', 'children': [], 'value': "'state'"}; {'id': '143', 'type': 'else_clause', 'children': ['144']}; {'id': '144', 'type': 'block', 'children': ['145']}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'assignment', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '148', 'type': 'string', 'children': [], 'value': '"unknown::2.0_event"'}; {'id': '149', 'type': 'if_statement', 'children': ['150', '161', '174']}; {'id': '150', 'type': 'boolean_operator', 'children': ['151', '154'], 'value': 'and'}; {'id': '151', 'type': 'comparison_operator', 'children': ['152', '153'], 'value': 'not'}; {'id': '152', 'type': 'string', 'children': [], 'value': '"action"'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '154', 'type': 'comparison_operator', 'children': ['155', '160'], 'value': 'in'}; {'id': '155', 'type': 'call', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '159', 'type': 'argument_list', 'children': []}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'action_state_mapping'}; {'id': '161', 'type': 'block', 'children': ['162']}; {'id': '162', 'type': 'expression_statement', 'children': ['163']}; {'id': '163', 'type': 'assignment', 'children': ['164', '167']}; {'id': '164', 'type': 'subscript', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '166', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '167', 'type': 'subscript', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'action_state_mapping'}; {'id': '169', 'type': 'call', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '173', 'type': 'argument_list', 'children': []}; {'id': '174', 'type': 'else_clause', 'children': ['175']}; {'id': '175', 'type': 'block', 'children': ['176']}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'assignment', 'children': ['178', '181']}; {'id': '178', 'type': 'subscript', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '180', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '182', 'type': 'if_statement', 'children': ['183', '188']}; {'id': '183', 'type': 'comparison_operator', 'children': ['184', '185'], 'value': 'in'}; {'id': '184', 'type': 'string', 'children': [], 'value': '"history"'}; {'id': '185', 'type': 'subscript', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '187', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '188', 'type': 'block', 'children': ['189', '204', '208', '246']}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '196']}; {'id': '191', 'type': 'subscript', 'children': ['192', '195']}; {'id': '192', 'type': 'subscript', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '194', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '195', 'type': 'string', 'children': [], 'value': "'history_v2'"}; {'id': '196', 'type': 'call', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'deepcopy'}; {'id': '198', 'type': 'argument_list', 'children': ['199']}; {'id': '199', 'type': 'subscript', 'children': ['200', '203']}; {'id': '200', 'type': 'subscript', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '202', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '203', 'type': 'string', 'children': [], 'value': "'history'"}; {'id': '204', 'type': 'expression_statement', 'children': ['205']}; {'id': '205', 'type': 'assignment', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'legacy_history'}; {'id': '207', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '208', 'type': 'for_statement', 'children': ['209', '210', '215']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'history'}; {'id': '210', 'type': 'subscript', 'children': ['211', '214']}; {'id': '211', 'type': 'subscript', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '213', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '214', 'type': 'string', 'children': [], 'value': "'history'"}; {'id': '215', 'type': 'block', 'children': ['216']}; {'id': '216', 'type': 'if_statement', 'children': ['217', '224', '237']}; {'id': '217', 'type': 'call', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '219', 'type': 'argument_list', 'children': ['220', '223']}; {'id': '220', 'type': 'subscript', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'history'}; {'id': '222', 'type': 'string', 'children': [], 'value': "'status'"}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '224', 'type': 'block', 'children': ['225']}; {'id': '225', 'type': 'expression_statement', 'children': ['226']}; {'id': '226', 'type': 'call', 'children': ['227', '230']}; {'id': '227', 'type': 'attribute', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'legacy_history'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '230', 'type': 'argument_list', 'children': ['231']}; {'id': '231', 'type': 'call', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'subscript', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'history'}; {'id': '236', 'type': 'string', 'children': [], 'value': "'status'"}; {'id': '237', 'type': 'else_clause', 'children': ['238']}; {'id': '238', 'type': 'block', 'children': ['239']}; {'id': '239', 'type': 'expression_statement', 'children': ['240']}; {'id': '240', 'type': 'call', 'children': ['241', '244']}; {'id': '241', 'type': 'attribute', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'legacy_history'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '244', 'type': 'argument_list', 'children': ['245']}; {'id': '245', 'type': 'string', 'children': [], 'value': '"3"'}; {'id': '246', 'type': 'expression_statement', 'children': ['247']}; {'id': '247', 'type': 'assignment', 'children': ['248', '253']}; {'id': '248', 'type': 'subscript', 'children': ['249', '252']}; {'id': '249', 'type': 'subscript', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '251', 'type': 'string', 'children': [], 'value': "'check'"}; {'id': '252', 'type': 'string', 'children': [], 'value': "'history'"}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'legacy_history'}; {'id': '254', 'type': 'expression_statement', 'children': ['255']}; {'id': '255', 'type': 'assignment', 'children': ['256', '259']}; {'id': '256', 'type': 'subscript', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '258', 'type': 'string', 'children': [], 'value': "'v2_event_mapped_into_v1'"}; {'id': '259', 'type': 'True', 'children': []}; {'id': '260', 'type': 'return_statement', 'children': ['261']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'event'}
Helper method to convert Sensu 2.x event into Sensu 1.x event.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'ajax_upload'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'folder_id'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '21', '25', '32', '36', '74', '100']}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'mimetype'}; {'id': '13', 'type': 'conditional_expression', 'children': ['14', '15', '20'], 'value': 'if'}; {'id': '14', 'type': 'string', 'children': [], 'value': '"application/json"'}; {'id': '15', 'type': 'call', 'children': ['16', '19']}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'is_ajax'}; {'id': '19', 'type': 'argument_list', 'children': []}; {'id': '20', 'type': 'string', 'children': [], 'value': '"text/html"'}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'content_type_key'}; {'id': '24', 'type': 'string', 'children': [], 'value': "'content_type'"}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'response_params'}; {'id': '28', 'type': 'dictionary', 'children': ['29']}; {'id': '29', 'type': 'pair', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'content_type_key'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'mimetype'}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '35', 'type': 'None', 'children': []}; {'id': '36', 'type': 'if_statement', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'folder_id'}; {'id': '38', 'type': 'block', 'children': ['39']}; {'id': '39', 'type': 'try_statement', 'children': ['40', '54']}; {'id': '40', 'type': 'block', 'children': ['41']}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '44', 'type': 'call', 'children': ['45', '50']}; {'id': '45', 'type': 'attribute', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'Folder'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'keyword_argument', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'pk'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'folder_id'}; {'id': '54', 'type': 'except_clause', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'Folder'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'DoesNotExist'}; {'id': '58', 'type': 'block', 'children': ['59']}; {'id': '59', 'type': 'return_statement', 'children': ['60']}; {'id': '60', 'type': 'call', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'HttpResponse'}; {'id': '62', 'type': 'argument_list', 'children': ['63', '72']}; {'id': '63', 'type': 'call', 'children': ['64', '67']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'json'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'dumps'}; {'id': '67', 'type': 'argument_list', 'children': ['68']}; {'id': '68', 'type': 'dictionary', 'children': ['69']}; {'id': '69', 'type': 'pair', 'children': ['70', '71']}; {'id': '70', 'type': 'string', 'children': [], 'value': "'error'"}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'NO_FOLDER_ERROR'}; {'id': '72', 'type': 'dictionary_splat', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'response_params'}; {'id': '74', 'type': 'if_statement', 'children': ['75', '84']}; {'id': '75', 'type': 'boolean_operator', 'children': ['76', '77'], 'value': 'and'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '77', 'type': 'not_operator', 'children': ['78']}; {'id': '78', 'type': 'call', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'has_add_children_permission'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '84', 'type': 'block', 'children': ['85']}; {'id': '85', 'type': 'return_statement', 'children': ['86']}; {'id': '86', 'type': 'call', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'HttpResponse'}; {'id': '88', 'type': 'argument_list', 'children': ['89', '98']}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'json'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'dumps'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'dictionary', 'children': ['95']}; {'id': '95', 'type': 'pair', 'children': ['96', '97']}; {'id': '96', 'type': 'string', 'children': [], 'value': "'error'"}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'NO_PERMISSIONS_FOR_FOLDER'}; {'id': '98', 'type': 'dictionary_splat', 'children': ['99']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'response_params'}; {'id': '100', 'type': 'try_statement', 'children': ['101', '312']}; {'id': '101', 'type': 'block', 'children': ['102', '134', '173', '194']}; {'id': '102', 'type': 'if_statement', 'children': ['103', '111', '122']}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '110'], 'value': '=='}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'FILES'}; {'id': '110', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '111', 'type': 'block', 'children': ['112']}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '118']}; {'id': '114', 'type': 'pattern_list', 'children': ['115', '116', '117']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'upload'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'is_raw'}; {'id': '118', 'type': 'call', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'handle_request_files_upload'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '122', 'type': 'else_clause', 'children': ['123']}; {'id': '123', 'type': 'block', 'children': ['124']}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'assignment', 'children': ['126', '130']}; {'id': '126', 'type': 'pattern_list', 'children': ['127', '128', '129']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'upload'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'is_raw'}; {'id': '130', 'type': 'call', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'handle_upload'}; {'id': '132', 'type': 'argument_list', 'children': ['133']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '134', 'type': 'for_statement', 'children': ['135', '136', '139']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'filer_class'}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'media_settings'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'MEDIA_FILE_MODELS'}; {'id': '139', 'type': 'block', 'children': ['140', '147']}; {'id': '140', 'type': 'expression_statement', 'children': ['141']}; {'id': '141', 'type': 'assignment', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'FileSubClass'}; {'id': '143', 'type': 'call', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'load_object'}; {'id': '145', 'type': 'argument_list', 'children': ['146']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'filer_class'}; {'id': '147', 'type': 'if_statement', 'children': ['148', '156']}; {'id': '148', 'type': 'call', 'children': ['149', '152']}; {'id': '149', 'type': 'attribute', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'FileSubClass'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'matches_file_type'}; {'id': '152', 'type': 'argument_list', 'children': ['153', '154', '155']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'upload'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '156', 'type': 'block', 'children': ['157', '172']}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'assignment', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'FileForm'}; {'id': '160', 'type': 'call', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'modelform_factory'}; {'id': '162', 'type': 'argument_list', 'children': ['163', '166']}; {'id': '163', 'type': 'keyword_argument', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'model'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'FileSubClass'}; {'id': '166', 'type': 'keyword_argument', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '168', 'type': 'tuple', 'children': ['169', '170', '171']}; {'id': '169', 'type': 'string', 'children': [], 'value': "'original_filename'"}; {'id': '170', 'type': 'string', 'children': [], 'value': "'owner'"}; {'id': '171', 'type': 'string', 'children': [], 'value': "'file'"}; {'id': '172', 'type': 'break_statement', 'children': []}; {'id': '173', 'type': 'expression_statement', 'children': ['174']}; {'id': '174', 'type': 'assignment', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'uploadform'}; {'id': '176', 'type': 'call', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'FileForm'}; {'id': '178', 'type': 'argument_list', 'children': ['179', '190']}; {'id': '179', 'type': 'dictionary', 'children': ['180', '183']}; {'id': '180', 'type': 'pair', 'children': ['181', '182']}; {'id': '181', 'type': 'string', 'children': [], 'value': "'original_filename'"}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '183', 'type': 'pair', 'children': ['184', '185']}; {'id': '184', 'type': 'string', 'children': [], 'value': "'owner'"}; {'id': '185', 'type': 'attribute', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'user'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'pk'}; {'id': '190', 'type': 'dictionary', 'children': ['191']}; {'id': '191', 'type': 'pair', 'children': ['192', '193']}; {'id': '192', 'type': 'string', 'children': [], 'value': "'file'"}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'upload'}; {'id': '194', 'type': 'if_statement', 'children': ['195', '200', '269']}; {'id': '195', 'type': 'call', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'uploadform'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'is_valid'}; {'id': '199', 'type': 'argument_list', 'children': []}; {'id': '200', 'type': 'block', 'children': ['201', '212', '220', '226', '232', '257']}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'assignment', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '204', 'type': 'call', 'children': ['205', '208']}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'uploadform'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'save'}; {'id': '208', 'type': 'argument_list', 'children': ['209']}; {'id': '209', 'type': 'keyword_argument', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'commit'}; {'id': '211', 'type': 'False', 'children': []}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'is_public'}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'settings'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'MEDIA_IS_PUBLIC_DEFAULT'}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '225']}; {'id': '222', 'type': 'attribute', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'folder'}; {'id': '226', 'type': 'expression_statement', 'children': ['227']}; {'id': '227', 'type': 'call', 'children': ['228', '231']}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'save'}; {'id': '231', 'type': 'argument_list', 'children': []}; {'id': '232', 'type': 'expression_statement', 'children': ['233']}; {'id': '233', 'type': 'assignment', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'json_response'}; {'id': '235', 'type': 'dictionary', 'children': ['236', '243', '246', '252']}; {'id': '236', 'type': 'pair', 'children': ['237', '238']}; {'id': '237', 'type': 'string', 'children': [], 'value': "'thumbnail'"}; {'id': '238', 'type': 'subscript', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'icons'}; {'id': '242', 'type': 'string', 'children': [], 'value': "'32'"}; {'id': '243', 'type': 'pair', 'children': ['244', '245']}; {'id': '244', 'type': 'string', 'children': [], 'value': "'alt_text'"}; {'id': '245', 'type': 'string', 'children': [], 'value': "''"}; {'id': '246', 'type': 'pair', 'children': ['247', '248']}; {'id': '247', 'type': 'string', 'children': [], 'value': "'label'"}; {'id': '248', 'type': 'call', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '250', 'type': 'argument_list', 'children': ['251']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '252', 'type': 'pair', 'children': ['253', '254']}; {'id': '253', 'type': 'string', 'children': [], 'value': "'file_id'"}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'pk'}; {'id': '257', 'type': 'return_statement', 'children': ['258']}; {'id': '258', 'type': 'call', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'HttpResponse'}; {'id': '260', 'type': 'argument_list', 'children': ['261', '267']}; {'id': '261', 'type': 'call', 'children': ['262', '265']}; {'id': '262', 'type': 'attribute', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'json'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'dumps'}; {'id': '265', 'type': 'argument_list', 'children': ['266']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'json_response'}; {'id': '267', 'type': 'dictionary_splat', 'children': ['268']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'response_params'}; {'id': '269', 'type': 'else_clause', 'children': ['270']}; {'id': '270', 'type': 'block', 'children': ['271', '304']}; {'id': '271', 'type': 'expression_statement', 'children': ['272']}; {'id': '272', 'type': 'assignment', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'form_errors'}; {'id': '274', 'type': 'call', 'children': ['275', '278']}; {'id': '275', 'type': 'attribute', 'children': ['276', '277']}; {'id': '276', 'type': 'string', 'children': [], 'value': "'; '"}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '278', 'type': 'argument_list', 'children': ['279']}; {'id': '279', 'type': 'list_comprehension', 'children': ['280', '290']}; {'id': '280', 'type': 'binary_operator', 'children': ['281', '282'], 'value': '%'}; {'id': '281', 'type': 'string', 'children': [], 'value': "'%s: %s'"}; {'id': '282', 'type': 'tuple', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '284', 'type': 'call', 'children': ['285', '288']}; {'id': '285', 'type': 'attribute', 'children': ['286', '287']}; {'id': '286', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '288', 'type': 'argument_list', 'children': ['289']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '290', 'type': 'for_in_clause', 'children': ['291', '294']}; {'id': '291', 'type': 'pattern_list', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '294', 'type': 'call', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '296', 'type': 'argument_list', 'children': ['297']}; {'id': '297', 'type': 'call', 'children': ['298', '303']}; {'id': '298', 'type': 'attribute', 'children': ['299', '302']}; {'id': '299', 'type': 'attribute', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'uploadform'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '303', 'type': 'argument_list', 'children': []}; {'id': '304', 'type': 'raise_statement', 'children': ['305']}; {'id': '305', 'type': 'call', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'UploadException'}; {'id': '307', 'type': 'argument_list', 'children': ['308']}; {'id': '308', 'type': 'binary_operator', 'children': ['309', '310'], 'value': '%'}; {'id': '309', 'type': 'string', 'children': [], 'value': '"AJAX request not valid: form invalid \'%s\'"'}; {'id': '310', 'type': 'tuple', 'children': ['311']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'form_errors'}; {'id': '312', 'type': 'except_clause', 'children': ['313', '317']}; {'id': '313', 'type': 'as_pattern', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'UploadException'}; {'id': '315', 'type': 'as_pattern_target', 'children': ['316']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '317', 'type': 'block', 'children': ['318']}; {'id': '318', 'type': 'return_statement', 'children': ['319']}; {'id': '319', 'type': 'call', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'HttpResponse'}; {'id': '321', 'type': 'argument_list', 'children': ['322', '334']}; {'id': '322', 'type': 'call', 'children': ['323', '326']}; {'id': '323', 'type': 'attribute', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'json'}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'dumps'}; {'id': '326', 'type': 'argument_list', 'children': ['327']}; {'id': '327', 'type': 'dictionary', 'children': ['328']}; {'id': '328', 'type': 'pair', 'children': ['329', '330']}; {'id': '329', 'type': 'string', 'children': [], 'value': "'error'"}; {'id': '330', 'type': 'call', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '332', 'type': 'argument_list', 'children': ['333']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '334', 'type': 'dictionary_splat', 'children': ['335']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'response_params'}
receives an upload from the uploader. Receives only one file at the time.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'copy_modules'}; {'id': '3', 'type': 'parameters', 'children': ['4', '7', '10']}; {'id': '4', 'type': 'default_parameter', 'children': ['5', '6']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'filespath'}; {'id': '6', 'type': 'None', 'children': []}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'modules_path'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '12', 'type': 'None', 'children': []}; {'id': '13', 'type': 'block', 'children': ['14', '16', '113', '125', '143', '156', '173', '217', '229']}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'string', 'children': [], 'value': "''' Copy over the tree module files into your path '''"}; {'id': '16', 'type': 'if_statement', 'children': ['17', '19']}; {'id': '17', 'type': 'not_operator', 'children': ['18']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'modules_path'}; {'id': '19', 'type': 'block', 'children': ['20', '29']}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'modulepath'}; {'id': '23', 'type': 'call', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'getenv'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'string', 'children': [], 'value': '"MODULEPATH"'}; {'id': '29', 'type': 'if_statement', 'children': ['30', '32', '40']}; {'id': '30', 'type': 'not_operator', 'children': ['31']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'modulepath'}; {'id': '32', 'type': 'block', 'children': ['33']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'modules_path'}; {'id': '36', 'type': 'call', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'input'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'string', 'children': [], 'value': "'Enter the root path for your module files:'"}; {'id': '40', 'type': 'else_clause', 'children': ['41']}; {'id': '41', 'type': 'block', 'children': ['42', '51']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'split_mods'}; {'id': '45', 'type': 'call', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'modulepath'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '49', 'type': 'argument_list', 'children': ['50']}; {'id': '50', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '51', 'type': 'if_statement', 'children': ['52', '58', '105']}; {'id': '52', 'type': 'comparison_operator', 'children': ['53', '57'], 'value': '>'}; {'id': '53', 'type': 'call', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '55', 'type': 'argument_list', 'children': ['56']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'split_mods'}; {'id': '57', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '58', 'type': 'block', 'children': ['59', '67']}; {'id': '59', 'type': 'if_statement', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '61', 'type': 'block', 'children': ['62']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'call', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'string', 'children': [], 'value': "'Multiple module paths found. Finding all that contain a tree directory.'"}; {'id': '67', 'type': 'for_statement', 'children': ['68', '69', '70']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'mfile'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'split_mods'}; {'id': '70', 'type': 'block', 'children': ['71']}; {'id': '71', 'type': 'if_statement', 'children': ['72', '88', '102']}; {'id': '72', 'type': 'call', 'children': ['73', '78']}; {'id': '73', 'type': 'attribute', 'children': ['74', '77']}; {'id': '74', 'type': 'attribute', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'call', 'children': ['80', '85']}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '85', 'type': 'argument_list', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'mfile'}; {'id': '87', 'type': 'string', 'children': [], 'value': "'tree'"}; {'id': '88', 'type': 'block', 'children': ['89']}; {'id': '89', 'type': 'expression_statement', 'children': ['90']}; {'id': '90', 'type': 'call', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'copy_modules'}; {'id': '92', 'type': 'argument_list', 'children': ['93', '96', '99']}; {'id': '93', 'type': 'keyword_argument', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'filespath'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'filespath'}; {'id': '96', 'type': 'keyword_argument', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'modules_path'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'mfile'}; {'id': '99', 'type': 'keyword_argument', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '102', 'type': 'else_clause', 'children': ['103']}; {'id': '103', 'type': 'block', 'children': ['104']}; {'id': '104', 'type': 'return_statement', 'children': []}; {'id': '105', 'type': 'else_clause', 'children': ['106']}; {'id': '106', 'type': 'block', 'children': ['107']}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'assignment', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'modules_path'}; {'id': '110', 'type': 'subscript', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'split_mods'}; {'id': '112', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'tree_mod'}; {'id': '116', 'type': 'call', 'children': ['117', '122']}; {'id': '117', 'type': 'attribute', 'children': ['118', '121']}; {'id': '118', 'type': 'attribute', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '122', 'type': 'argument_list', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'modules_path'}; {'id': '124', 'type': 'string', 'children': [], 'value': "'tree'"}; {'id': '125', 'type': 'if_statement', 'children': ['126', '135']}; {'id': '126', 'type': 'not_operator', 'children': ['127']}; {'id': '127', 'type': 'call', 'children': ['128', '133']}; {'id': '128', 'type': 'attribute', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'isdir'}; {'id': '133', 'type': 'argument_list', 'children': ['134']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'tree_mod'}; {'id': '135', 'type': 'block', 'children': ['136']}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'call', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'makedirs'}; {'id': '141', 'type': 'argument_list', 'children': ['142']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'tree_mod'}; {'id': '143', 'type': 'if_statement', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'verbose'}; {'id': '145', 'type': 'block', 'children': ['146']}; {'id': '146', 'type': 'expression_statement', 'children': ['147']}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'call', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'string', 'children': [], 'value': "'Copying modules from etc/ into {0}'"}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'tree_mod'}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'module_files'}; {'id': '159', 'type': 'call', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'glob'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'glob'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '170']}; {'id': '165', 'type': 'attribute', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '170', 'type': 'argument_list', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'filespath'}; {'id': '172', 'type': 'string', 'children': [], 'value': "'*.module'"}; {'id': '173', 'type': 'for_statement', 'children': ['174', '175', '176']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'mfile'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'module_files'}; {'id': '176', 'type': 'block', 'children': ['177', '197', '209']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '180', 'type': 'subscript', 'children': ['181', '196']}; {'id': '181', 'type': 'call', 'children': ['182', '187']}; {'id': '182', 'type': 'attribute', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'splitext'}; {'id': '187', 'type': 'argument_list', 'children': ['188']}; {'id': '188', 'type': 'call', 'children': ['189', '194']}; {'id': '189', 'type': 'attribute', 'children': ['190', '193']}; {'id': '190', 'type': 'attribute', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'basename'}; {'id': '194', 'type': 'argument_list', 'children': ['195']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'mfile'}; {'id': '196', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'assignment', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'tree_out'}; {'id': '200', 'type': 'call', 'children': ['201', '206']}; {'id': '201', 'type': 'attribute', 'children': ['202', '205']}; {'id': '202', 'type': 'attribute', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '206', 'type': 'argument_list', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'tree_mod'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '209', 'type': 'expression_statement', 'children': ['210']}; {'id': '210', 'type': 'call', 'children': ['211', '214']}; {'id': '211', 'type': 'attribute', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'shutil'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'copy2'}; {'id': '214', 'type': 'argument_list', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'mfile'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'tree_out'}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'assignment', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '220', 'type': 'call', 'children': ['221', '226']}; {'id': '221', 'type': 'attribute', 'children': ['222', '225']}; {'id': '222', 'type': 'attribute', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '226', 'type': 'argument_list', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'filespath'}; {'id': '228', 'type': 'string', 'children': [], 'value': "'.version'"}; {'id': '229', 'type': 'if_statement', 'children': ['230', '238']}; {'id': '230', 'type': 'call', 'children': ['231', '236']}; {'id': '231', 'type': 'attribute', 'children': ['232', '235']}; {'id': '232', 'type': 'attribute', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'isfile'}; {'id': '236', 'type': 'argument_list', 'children': ['237']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '238', 'type': 'block', 'children': ['239']}; {'id': '239', 'type': 'expression_statement', 'children': ['240']}; {'id': '240', 'type': 'call', 'children': ['241', '244']}; {'id': '241', 'type': 'attribute', 'children': ['242', '243']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'shutil'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'copy2'}; {'id': '244', 'type': 'argument_list', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'tree_mod'}
Copy over the tree module files into your path
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '20']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_repr_html_'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14', '17']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'indices'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'lx'}; {'id': '13', 'type': 'None', 'children': []}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'li'}; {'id': '16', 'type': 'None', 'children': []}; {'id': '17', 'type': 'default_parameter', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'lls'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'block', 'children': ['21', '27', '33', '47', '86', '111', '146', '150', '157', '164', '178', '206', '232', '243', '302']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'filter_'}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': '_current_slice_'}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'vals'}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'flat'}; {'id': '33', 'type': 'if_statement', 'children': ['34', '37']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '36'], 'value': 'is'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'indices'}; {'id': '36', 'type': 'None', 'children': []}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'indices'}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': '_indices'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'filter_'}; {'id': '47', 'type': 'if_statement', 'children': ['48', '51']}; {'id': '48', 'type': 'comparison_operator', 'children': ['49', '50'], 'value': 'is'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '50', 'type': 'None', 'children': []}; {'id': '51', 'type': 'block', 'children': ['52', '61']}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'ravi'}; {'id': '55', 'type': 'call', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': '_raveled_index'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'filter_'}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '64', 'type': 'call', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'OrderedDict'}; {'id': '66', 'type': 'generator_expression', 'children': ['67', '75']}; {'id': '67', 'type': 'list', 'children': ['68', '69'], 'value': '[name, iop.properties_for(ravi)]'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '69', 'type': 'call', 'children': ['70', '73']}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'iop'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'properties_for'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'ravi'}; {'id': '75', 'type': 'for_in_clause', 'children': ['76', '79']}; {'id': '76', 'type': 'pattern_list', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'iop'}; {'id': '79', 'type': 'call', 'children': ['80', '85']}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': '_index_operations'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '85', 'type': 'argument_list', 'children': []}; {'id': '86', 'type': 'if_statement', 'children': ['87', '90']}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '89'], 'value': 'is'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'lls'}; {'id': '89', 'type': 'None', 'children': []}; {'id': '90', 'type': 'block', 'children': ['91']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'lls'}; {'id': '94', 'type': 'list_comprehension', 'children': ['95', '102']}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': '_max_len_names'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'iop'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '102', 'type': 'for_in_clause', 'children': ['103', '106']}; {'id': '103', 'type': 'pattern_list', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'iop'}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '110', 'type': 'argument_list', 'children': []}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'header_format'}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'header'}; {'id': '116', 'type': 'call', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'header_format'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '120', 'type': 'argument_list', 'children': ['121', '128', '131']}; {'id': '121', 'type': 'keyword_argument', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '123', 'type': 'call', 'children': ['124', '127']}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'hierarchy_name'}; {'id': '127', 'type': 'argument_list', 'children': []}; {'id': '128', 'type': 'keyword_argument', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': '__index_name__'}; {'id': '131', 'type': 'keyword_argument', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '133', 'type': 'call', 'children': ['134', '137']}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'string', 'children': [], 'value': '"</b></th><th><b>"'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '137', 'type': 'argument_list', 'children': ['138']}; {'id': '138', 'type': 'call', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'call', 'children': ['142', '145']}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '145', 'type': 'argument_list', 'children': []}; {'id': '146', 'type': 'expression_statement', 'children': ['147']}; {'id': '147', 'type': 'assignment', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'to_print'}; {'id': '149', 'type': 'list', 'children': [], 'value': '[\n]'}; {'id': '150', 'type': 'expression_statement', 'children': ['151']}; {'id': '151', 'type': 'call', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'to_print'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'string', 'children': [], 'value': '\'<table class="tg">\''}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'call', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'to_print'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '162', 'type': 'argument_list', 'children': ['163']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'header'}; {'id': '164', 'type': 'expression_statement', 'children': ['165']}; {'id': '165', 'type': 'assignment', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '167', 'type': 'call', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': '_format_spec'}; {'id': '171', 'type': 'argument_list', 'children': ['172', '173', '174', '175', '176', '177']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'indices'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'lx'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'li'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'lls'}; {'id': '177', 'type': 'False', 'children': []}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'assignment', 'children': ['180', '185']}; {'id': '180', 'type': 'subscript', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '182', 'type': 'slice', 'children': ['183', '184']}; {'id': '183', 'type': 'colon', 'children': []}; {'id': '184', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '185', 'type': 'list', 'children': ['186', '196'], 'value': '["<tr><td class=tg-left>{i}</td>".format(i=format_spec[0]), "<td class=tg-right>{i}</td>".format(i=format_spec[1])]'}; {'id': '186', 'type': 'call', 'children': ['187', '190']}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'string', 'children': [], 'value': '"<tr><td class=tg-left>{i}</td>"'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'keyword_argument', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '193', 'type': 'subscript', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '195', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '196', 'type': 'call', 'children': ['197', '200']}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'string', 'children': [], 'value': '"<td class=tg-right>{i}</td>"'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '200', 'type': 'argument_list', 'children': ['201']}; {'id': '201', 'type': 'keyword_argument', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '203', 'type': 'subscript', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '205', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '206', 'type': 'for_statement', 'children': ['207', '208', '216']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '208', 'type': 'call', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '210', 'type': 'argument_list', 'children': ['211', '212']}; {'id': '211', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '212', 'type': 'call', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '216', 'type': 'block', 'children': ['217']}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'assignment', 'children': ['219', '222']}; {'id': '219', 'type': 'subscript', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '222', 'type': 'call', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'string', 'children': [], 'value': "'<td class=tg-left>{c}</td>'"}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '226', 'type': 'argument_list', 'children': ['227']}; {'id': '227', 'type': 'keyword_argument', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '229', 'type': 'subscript', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '232', 'type': 'expression_statement', 'children': ['233']}; {'id': '233', 'type': 'assignment', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '235', 'type': 'binary_operator', 'children': ['236', '242'], 'value': '+'}; {'id': '236', 'type': 'call', 'children': ['237', '240']}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'string', 'children': [], 'value': '""'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '240', 'type': 'argument_list', 'children': ['241']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '242', 'type': 'string', 'children': [], 'value': "'</tr>'"}; {'id': '243', 'type': 'for_statement', 'children': ['244', '245', '251']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '245', 'type': 'call', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '247', 'type': 'argument_list', 'children': ['248']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '251', 'type': 'block', 'children': ['252']}; {'id': '252', 'type': 'expression_statement', 'children': ['253']}; {'id': '253', 'type': 'call', 'children': ['254', '257']}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'to_print'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '257', 'type': 'argument_list', 'children': ['258']}; {'id': '258', 'type': 'call', 'children': ['259', '262']}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'format_spec'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '262', 'type': 'argument_list', 'children': ['263', '268', '279']}; {'id': '263', 'type': 'keyword_argument', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '265', 'type': 'subscript', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'indices'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '268', 'type': 'keyword_argument', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '270', 'type': 'call', 'children': ['271', '274']}; {'id': '271', 'type': 'attribute', 'children': ['272', '273']}; {'id': '272', 'type': 'string', 'children': [], 'value': '"{1:.{0}f}"'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '274', 'type': 'argument_list', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': '__precision__'}; {'id': '276', 'type': 'subscript', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'vals'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '279', 'type': 'dictionary_splat', 'children': ['280']}; {'id': '280', 'type': 'call', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '282', 'type': 'generator_expression', 'children': ['283', '299']}; {'id': '283', 'type': 'tuple', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '285', 'type': 'call', 'children': ['286', '289']}; {'id': '286', 'type': 'attribute', 'children': ['287', '288']}; {'id': '287', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '289', 'type': 'argument_list', 'children': ['290']}; {'id': '290', 'type': 'call', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'map'}; {'id': '292', 'type': 'argument_list', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '294', 'type': 'subscript', 'children': ['295', '298']}; {'id': '295', 'type': 'subscript', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '299', 'type': 'for_in_clause', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'iops'}; {'id': '302', 'type': 'return_statement', 'children': ['303']}; {'id': '303', 'type': 'call', 'children': ['304', '307']}; {'id': '304', 'type': 'attribute', 'children': ['305', '306']}; {'id': '305', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '307', 'type': 'argument_list', 'children': ['308']}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'to_print'}
Representation of the parameter in html for notebook display.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'ERROR', 'children': ['2', '281']}; {'id': '2', 'type': 'function_definition', 'children': ['3', '4', '6']}; {'id': '3', 'type': 'function_name', 'children': [], 'value': '_parse_content'}; {'id': '4', 'type': 'parameters', 'children': ['5']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '6', 'type': 'block', 'children': ['7', '14', '18', '104', '159', '170', '181', '191', '249', '256', '262', '268']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '10', 'type': 'call', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'iter'}; {'id': '12', 'type': 'argument_list', 'children': ['13']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'deps'}; {'id': '17', 'type': 'dictionary', 'children': []}; {'id': '18', 'type': 'for_statement', 'children': ['19', '20', '21', '92']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '21', 'type': 'ERROR', 'children': ['22', '28', '57', '60', '63', '69', '72', '75', '76', '77', '82', '89', '90']}; {'id': '22', 'type': 'if_statement', 'children': ['23', '26']}; {'id': '23', 'type': 'comparison_operator', 'children': ['24', '25'], 'value': 'not'}; {'id': '24', 'type': 'string', 'children': [], 'value': "'fades'"}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '26', 'type': 'block', 'children': ['27']}; {'id': '27', 'type': 'continue_statement', 'children': []}; {'id': '28', 'type': 'if_statement', 'children': ['29', '45', '55']}; {'id': '29', 'type': 'ERROR', 'children': ['30', '31', '32', '37', '38', '44']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'continue'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '32', 'type': 'call', 'children': ['33', '36']}; {'id': '33', 'type': 'attribute', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '36', 'type': 'argument_list', 'children': []}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'index_of_last_fades'}; {'id': '38', 'type': 'call', 'children': ['39', '42']}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'rfind'}; {'id': '42', 'type': 'argument_list', 'children': ['43']}; {'id': '43', 'type': 'string', 'children': [], 'value': "'fades'"}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'index_of_first_hash'}; {'id': '45', 'type': 'call', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '49', 'type': 'argument_list', 'children': ['50', '52']}; {'id': '50', 'type': 'ERROR', 'children': ['51']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'if'}; {'id': '52', 'type': 'comparison_operator', 'children': ['53', '54'], 'value': '>'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'index_of_first_hash'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'index_of_last_fades'}; {'id': '55', 'type': 'block', 'children': ['56']}; {'id': '56', 'type': 'continue_statement', 'children': []}; {'id': '57', 'type': 'pattern_list', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'import_part'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'rsplit'}; {'id': '63', 'type': 'comparison_operator', 'children': ['64', '65', '68'], 'value': 'in'}; {'id': '64', 'type': 'string', 'children': [], 'value': '"\n if "'}; {'id': '65', 'type': 'ERROR', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'fades'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'not'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '69', 'type': 'pattern_list', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'import_part'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'import_part'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'rsplit'}; {'id': '75', 'type': 'ERROR', 'children': []}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '77', 'type': 'call', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '81', 'type': 'argument_list', 'children': []}; {'id': '82', 'type': 'not_operator', 'children': ['83']}; {'id': '83', 'type': 'call', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '87', 'type': 'argument_list', 'children': ['88']}; {'id': '88', 'type': 'string', 'children': [], 'value': '"fades"'}; {'id': '89', 'type': 'ERROR', 'children': []}; {'id': '90', 'type': 'not_operator', 'children': ['91']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'import_part'}; {'id': '92', 'type': 'block', 'children': ['93']}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'import_part'}; {'id': '96', 'type': 'call', 'children': ['97', '103']}; {'id': '97', 'type': 'attribute', 'children': ['98', '102']}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'next'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '103', 'type': 'argument_list', 'children': []}; {'id': '104', 'type': 'if_statement', 'children': ['105', '108', '122', '129', '148']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'import_part'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '108', 'type': 'ERROR', 'children': ['109', '111', '112', '117']}; {'id': '109', 'type': 'ERROR', 'children': ['110']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'continue'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'import_tokens'}; {'id': '112', 'type': 'call', 'children': ['113', '116']}; {'id': '113', 'type': 'attribute', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'import_part'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '116', 'type': 'argument_list', 'children': []}; {'id': '117', 'type': 'comparison_operator', 'children': ['118', '121'], 'value': '=='}; {'id': '118', 'type': 'subscript', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'import_tokens'}; {'id': '120', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '121', 'type': 'string', 'children': [], 'value': "'import'"}; {'id': '122', 'type': 'block', 'children': ['123']}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'assignment', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'module_path'}; {'id': '126', 'type': 'subscript', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'import_tokens'}; {'id': '128', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '129', 'type': 'elif_clause', 'children': ['130', '141']}; {'id': '130', 'type': 'boolean_operator', 'children': ['131', '136'], 'value': 'and'}; {'id': '131', 'type': 'comparison_operator', 'children': ['132', '135'], 'value': '=='}; {'id': '132', 'type': 'subscript', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'import_tokens'}; {'id': '134', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '135', 'type': 'string', 'children': [], 'value': "'from'"}; {'id': '136', 'type': 'comparison_operator', 'children': ['137', '140'], 'value': '=='}; {'id': '137', 'type': 'subscript', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'import_tokens'}; {'id': '139', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '140', 'type': 'string', 'children': [], 'value': "'import'"}; {'id': '141', 'type': 'block', 'children': ['142']}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'assignment', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'module_path'}; {'id': '145', 'type': 'subscript', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'import_tokens'}; {'id': '147', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '148', 'type': 'else_clause', 'children': ['149']}; {'id': '149', 'type': 'block', 'children': ['150', '158']}; {'id': '150', 'type': 'expression_statement', 'children': ['151']}; {'id': '151', 'type': 'call', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '155', 'type': 'argument_list', 'children': ['156', '157']}; {'id': '156', 'type': 'string', 'children': [], 'value': '"Not understood import info: %s"'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'import_tokens'}; {'id': '158', 'type': 'continue_statement', 'children': []}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'assignment', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '162', 'type': 'subscript', 'children': ['163', '169']}; {'id': '163', 'type': 'call', 'children': ['164', '167']}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'module_path'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '169', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '170', 'type': 'if_statement', 'children': ['171', '174']}; {'id': '171', 'type': 'comparison_operator', 'children': ['172', '173'], 'value': 'in'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'PKG_NAMES_DB'}; {'id': '174', 'type': 'block', 'children': ['175']}; {'id': '175', 'type': 'expression_statement', 'children': ['176']}; {'id': '176', 'type': 'assignment', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '178', 'type': 'subscript', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'PKG_NAMES_DB'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '181', 'type': 'expression_statement', 'children': ['182']}; {'id': '182', 'type': 'assignment', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '184', 'type': 'call', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '188', 'type': 'argument_list', 'children': ['189', '190']}; {'id': '189', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '190', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '191', 'type': 'if_statement', 'children': ['192', '212', '223', '239']}; {'id': '192', 'type': 'boolean_operator', 'children': ['193', '199'], 'value': 'or'}; {'id': '193', 'type': 'comparison_operator', 'children': ['194', '198'], 'value': '=='}; {'id': '194', 'type': 'call', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '196', 'type': 'argument_list', 'children': ['197']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '198', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '199', 'type': 'comparison_operator', 'children': ['200', '211'], 'value': 'in'}; {'id': '200', 'type': 'subscript', 'children': ['201', '210']}; {'id': '201', 'type': 'call', 'children': ['202', '209']}; {'id': '202', 'type': 'attribute', 'children': ['203', '208']}; {'id': '203', 'type': 'subscript', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '205', 'type': 'slice', 'children': ['206', '207']}; {'id': '206', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '207', 'type': 'colon', 'children': []}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '209', 'type': 'argument_list', 'children': []}; {'id': '210', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '211', 'type': 'string', 'children': [], 'value': '"<>=!"'}; {'id': '212', 'type': 'block', 'children': ['213']}; {'id': '213', 'type': 'expression_statement', 'children': ['214']}; {'id': '214', 'type': 'assignment', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'requirement'}; {'id': '216', 'type': 'binary_operator', 'children': ['217', '218'], 'value': '+'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'module'}; {'id': '218', 'type': 'subscript', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '220', 'type': 'slice', 'children': ['221', '222']}; {'id': '221', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '222', 'type': 'colon', 'children': []}; {'id': '223', 'type': 'elif_clause', 'children': ['224', '229']}; {'id': '224', 'type': 'comparison_operator', 'children': ['225', '228'], 'value': '!='}; {'id': '225', 'type': 'subscript', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '227', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '228', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '229', 'type': 'block', 'children': ['230', '238']}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'call', 'children': ['232', '235']}; {'id': '232', 'type': 'attribute', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '235', 'type': 'argument_list', 'children': ['236', '237']}; {'id': '236', 'type': 'string', 'children': [], 'value': '"Not understood fades info: %r"'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '238', 'type': 'continue_statement', 'children': []}; {'id': '239', 'type': 'else_clause', 'children': ['240']}; {'id': '240', 'type': 'block', 'children': ['241']}; {'id': '241', 'type': 'expression_statement', 'children': ['242']}; {'id': '242', 'type': 'assignment', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'requirement'}; {'id': '244', 'type': 'subscript', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'fades_part'}; {'id': '246', 'type': 'slice', 'children': ['247', '248']}; {'id': '247', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '248', 'type': 'colon', 'children': []}; {'id': '249', 'type': 'expression_statement', 'children': ['250']}; {'id': '250', 'type': 'assignment', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'parsed_req'}; {'id': '252', 'type': 'call', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'parse_fade_requirement'}; {'id': '254', 'type': 'argument_list', 'children': ['255']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'requirement'}; {'id': '256', 'type': 'if_statement', 'children': ['257', '260']}; {'id': '257', 'type': 'comparison_operator', 'children': ['258', '259'], 'value': 'is'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'parsed_req'}; {'id': '259', 'type': 'None', 'children': []}; {'id': '260', 'type': 'block', 'children': ['261']}; {'id': '261', 'type': 'continue_statement', 'children': []}; {'id': '262', 'type': 'expression_statement', 'children': ['263']}; {'id': '263', 'type': 'assignment', 'children': ['264', '267']}; {'id': '264', 'type': 'pattern_list', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'dependency'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'parsed_req'}; {'id': '268', 'type': 'expression_statement', 'children': ['269']}; {'id': '269', 'type': 'call', 'children': ['270', '279']}; {'id': '270', 'type': 'attribute', 'children': ['271', '278']}; {'id': '271', 'type': 'call', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'deps'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'setdefault'}; {'id': '275', 'type': 'argument_list', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'repo'}; {'id': '277', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '279', 'type': 'argument_list', 'children': ['280']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'dependency'}; {'id': '281', 'type': 'return_statement', 'children': ['282']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'deps'}
Parse the content of a script to find marked dependencies.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_parse_docstring'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '5', 'type': 'block', 'children': ['6', '17', '51', '70', '136', '143', '158']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'find_fades'}; {'id': '9', 'type': 'attribute', 'children': ['10', '16']}; {'id': '10', 'type': 'call', 'children': ['11', '14']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'compile'}; {'id': '14', 'type': 'argument_list', 'children': ['15']}; {'id': '15', 'type': 'string', 'children': [], 'value': "r'\\b(fades)\\b:'"}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'search'}; {'id': '17', 'type': 'for_statement', 'children': ['18', '19', '20', '47']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '20', 'type': 'block', 'children': ['21', '34']}; {'id': '21', 'type': 'if_statement', 'children': ['22', '28']}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '26', 'type': 'argument_list', 'children': ['27']}; {'id': '27', 'type': 'string', 'children': [], 'value': '"\'"'}; {'id': '28', 'type': 'block', 'children': ['29', '33']}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'quote'}; {'id': '32', 'type': 'string', 'children': [], 'value': '"\'"'}; {'id': '33', 'type': 'break_statement', 'children': []}; {'id': '34', 'type': 'if_statement', 'children': ['35', '41']}; {'id': '35', 'type': 'call', 'children': ['36', '39']}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '39', 'type': 'argument_list', 'children': ['40']}; {'id': '40', 'type': 'string', 'children': [], 'value': '\'"\''}; {'id': '41', 'type': 'block', 'children': ['42', '46']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'quote'}; {'id': '45', 'type': 'string', 'children': [], 'value': '\'"\''}; {'id': '46', 'type': 'break_statement', 'children': []}; {'id': '47', 'type': 'else_clause', 'children': ['48']}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'return_statement', 'children': ['50']}; {'id': '50', 'type': 'dictionary', 'children': []}; {'id': '51', 'type': 'if_statement', 'children': ['52', '57', '64']}; {'id': '52', 'type': 'comparison_operator', 'children': ['53', '56'], 'value': '=='}; {'id': '53', 'type': 'subscript', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '55', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'quote'}; {'id': '57', 'type': 'block', 'children': ['58']}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'endquote'}; {'id': '61', 'type': 'binary_operator', 'children': ['62', '63'], 'value': '*'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'quote'}; {'id': '63', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '64', 'type': 'else_clause', 'children': ['65']}; {'id': '65', 'type': 'block', 'children': ['66']}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'endquote'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'quote'}; {'id': '70', 'type': 'if_statement', 'children': ['71', '81', '96']}; {'id': '71', 'type': 'comparison_operator', 'children': ['72', '73'], 'value': 'in'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'endquote'}; {'id': '73', 'type': 'subscript', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '75', 'type': 'slice', 'children': ['76', '80']}; {'id': '76', 'type': 'call', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'endquote'}; {'id': '80', 'type': 'colon', 'children': []}; {'id': '81', 'type': 'block', 'children': ['82']}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}; {'id': '85', 'type': 'list', 'children': ['86'], 'value': '[line[:line.index(endquote)]]'}; {'id': '86', 'type': 'subscript', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '88', 'type': 'slice', 'children': ['89', '90']}; {'id': '89', 'type': 'colon', 'children': []}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '94', 'type': 'argument_list', 'children': ['95']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'endquote'}; {'id': '96', 'type': 'else_clause', 'children': ['97']}; {'id': '97', 'type': 'block', 'children': ['98', '103']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}; {'id': '101', 'type': 'list', 'children': ['102'], 'value': '[line]'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '103', 'type': 'for_statement', 'children': ['104', '105', '106']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'fh'}; {'id': '106', 'type': 'block', 'children': ['107', '129']}; {'id': '107', 'type': 'if_statement', 'children': ['108', '111']}; {'id': '108', 'type': 'comparison_operator', 'children': ['109', '110'], 'value': 'in'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'endquote'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '111', 'type': 'block', 'children': ['112', '128']}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'call', 'children': ['114', '117']}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '117', 'type': 'argument_list', 'children': ['118']}; {'id': '118', 'type': 'subscript', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '120', 'type': 'slice', 'children': ['121', '122']}; {'id': '121', 'type': 'colon', 'children': []}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'endquote'}; {'id': '128', 'type': 'break_statement', 'children': []}; {'id': '129', 'type': 'expression_statement', 'children': ['130']}; {'id': '130', 'type': 'call', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '134', 'type': 'argument_list', 'children': ['135']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'iter'}; {'id': '141', 'type': 'argument_list', 'children': ['142']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}; {'id': '143', 'type': 'for_statement', 'children': ['144', '145', '146', '154']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'doc_line'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}; {'id': '146', 'type': 'block', 'children': ['147']}; {'id': '147', 'type': 'if_statement', 'children': ['148', '152']}; {'id': '148', 'type': 'call', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'find_fades'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'doc_line'}; {'id': '152', 'type': 'block', 'children': ['153']}; {'id': '153', 'type': 'break_statement', 'children': []}; {'id': '154', 'type': 'else_clause', 'children': ['155']}; {'id': '155', 'type': 'block', 'children': ['156']}; {'id': '156', 'type': 'return_statement', 'children': ['157']}; {'id': '157', 'type': 'dictionary', 'children': []}; {'id': '158', 'type': 'return_statement', 'children': ['159']}; {'id': '159', 'type': 'call', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': '_parse_requirement'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'call', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'docstring_lines'}
Parse the docstrings of a script to find marked dependencies.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'resample'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '21', '27', '33', '60', '81', '93', '101', '109', '134', '162', '184']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '10']}; {'id': '7', 'type': 'attribute', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'just_resampled'}; {'id': '10', 'type': 'block', 'children': ['11']}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'call', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'warnings'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '16', 'type': 'argument_list', 'children': ['17', '20']}; {'id': '17', 'type': 'concatenated_string', 'children': ['18', '19']}; {'id': '18', 'type': 'string', 'children': [], 'value': '"Resampling without additional data; this may not perform as "'}; {'id': '19', 'type': 'string', 'children': [], 'value': '"desired."'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'ResamplerWarning'}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': '_just_resampled'}; {'id': '26', 'type': 'True', 'children': []}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'augmented_assignment', 'children': ['29', '32'], 'value': '+='}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': '_resample_count'}; {'id': '32', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '33', 'type': 'if_statement', 'children': ['34', '39']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '38'], 'value': 'is'}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': '_resampling_divergences'}; {'id': '38', 'type': 'None', 'children': []}; {'id': '39', 'type': 'block', 'children': ['40', '50']}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'assignment', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'old_locs'}; {'id': '43', 'type': 'call', 'children': ['44', '49']}; {'id': '44', 'type': 'attribute', 'children': ['45', '48']}; {'id': '45', 'type': 'attribute', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'particle_locations'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '49', 'type': 'argument_list', 'children': []}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'old_weights'}; {'id': '53', 'type': 'call', 'children': ['54', '59']}; {'id': '54', 'type': 'attribute', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'particle_weights'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '59', 'type': 'argument_list', 'children': []}; {'id': '60', 'type': 'if_statement', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': '_debug_resampling'}; {'id': '64', 'type': 'block', 'children': ['65', '73']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'old_mean'}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'est_mean'}; {'id': '72', 'type': 'argument_list', 'children': []}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'assignment', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'old_cov'}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'est_covariance_mtx'}; {'id': '80', 'type': 'argument_list', 'children': []}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'new_distribution'}; {'id': '84', 'type': 'call', 'children': ['85', '88']}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'resampler'}; {'id': '88', 'type': 'argument_list', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'model'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'particle_weights'}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'new_distribution'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'particle_weights'}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'particle_locations'}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'new_distribution'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'particle_locations'}; {'id': '109', 'type': 'if_statement', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': '_canonicalize'}; {'id': '113', 'type': 'block', 'children': ['114']}; {'id': '114', 'type': 'expression_statement', 'children': ['115']}; {'id': '115', 'type': 'assignment', 'children': ['116', '124']}; {'id': '116', 'type': 'subscript', 'children': ['117', '120', '122']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'particle_locations'}; {'id': '120', 'type': 'slice', 'children': ['121']}; {'id': '121', 'type': 'colon', 'children': []}; {'id': '122', 'type': 'slice', 'children': ['123']}; {'id': '123', 'type': 'colon', 'children': []}; {'id': '124', 'type': 'call', 'children': ['125', '130']}; {'id': '125', 'type': 'attribute', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'model'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'canonicalize'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'particle_locations'}; {'id': '134', 'type': 'try_statement', 'children': ['135', '144']}; {'id': '135', 'type': 'block', 'children': ['136']}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'call', 'children': ['138', '143']}; {'id': '138', 'type': 'attribute', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'model'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'clear_cache'}; {'id': '143', 'type': 'argument_list', 'children': []}; {'id': '144', 'type': 'except_clause', 'children': ['145', '149']}; {'id': '145', 'type': 'as_pattern', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '147', 'type': 'as_pattern_target', 'children': ['148']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '149', 'type': 'block', 'children': ['150']}; {'id': '150', 'type': 'expression_statement', 'children': ['151']}; {'id': '151', 'type': 'call', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'warnings'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'call', 'children': ['157', '160']}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'string', 'children': [], 'value': '"Exception raised when clearing model cache: {}. Ignoring."'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '162', 'type': 'if_statement', 'children': ['163', '168']}; {'id': '163', 'type': 'comparison_operator', 'children': ['164', '167'], 'value': 'is'}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': '_resampling_divergences'}; {'id': '167', 'type': 'None', 'children': []}; {'id': '168', 'type': 'block', 'children': ['169']}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'call', 'children': ['171', '176']}; {'id': '171', 'type': 'attribute', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': '_resampling_divergences'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '176', 'type': 'argument_list', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': '_kl_divergence'}; {'id': '181', 'type': 'argument_list', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'old_locs'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'old_weights'}; {'id': '184', 'type': 'if_statement', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': '_debug_resampling'}; {'id': '188', 'type': 'block', 'children': ['189', '197', '205']}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'new_mean'}; {'id': '192', 'type': 'call', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'est_mean'}; {'id': '196', 'type': 'argument_list', 'children': []}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'assignment', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'new_cov'}; {'id': '200', 'type': 'call', 'children': ['201', '204']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'est_covariance_mtx'}; {'id': '204', 'type': 'argument_list', 'children': []}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'call', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'call', 'children': ['212', '215']}; {'id': '212', 'type': 'attribute', 'children': ['213', '214']}; {'id': '213', 'type': 'string', 'children': [], 'value': '"Resampling changed mean by {}. Norm change in cov: {}."'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '215', 'type': 'argument_list', 'children': ['216', '219']}; {'id': '216', 'type': 'binary_operator', 'children': ['217', '218'], 'value': '-'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'old_mean'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'new_mean'}; {'id': '219', 'type': 'call', 'children': ['220', '225']}; {'id': '220', 'type': 'attribute', 'children': ['221', '224']}; {'id': '221', 'type': 'attribute', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'linalg'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'norm'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'binary_operator', 'children': ['227', '228'], 'value': '-'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'new_cov'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'old_cov'}
Forces the updater to perform a resampling step immediately.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_restore_coordinator'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '16', '36', '42']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'transport_info'}; {'id': '9', 'type': 'call', 'children': ['10', '15']}; {'id': '10', 'type': 'attribute', 'children': ['11', '14']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'device'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'get_current_transport_info'}; {'id': '15', 'type': 'argument_list', 'children': []}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': 'is'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'transport_info'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'if_statement', 'children': ['22', '27']}; {'id': '22', 'type': 'comparison_operator', 'children': ['23', '26'], 'value': '=='}; {'id': '23', 'type': 'subscript', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'transport_info'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'current_transport_state'"}; {'id': '26', 'type': 'string', 'children': [], 'value': "'PLAYING'"}; {'id': '27', 'type': 'block', 'children': ['28']}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'call', 'children': ['30', '35']}; {'id': '30', 'type': 'attribute', 'children': ['31', '34']}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'device'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'pause'}; {'id': '35', 'type': 'argument_list', 'children': []}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'call', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': '_restore_queue'}; {'id': '41', 'type': 'argument_list', 'children': []}; {'id': '42', 'type': 'if_statement', 'children': ['43', '52', '123', '129']}; {'id': '43', 'type': 'boolean_operator', 'children': ['44', '47'], 'value': 'and'}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'is_playing_queue'}; {'id': '47', 'type': 'comparison_operator', 'children': ['48', '51'], 'value': '>'}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'playlist_position'}; {'id': '51', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '52', 'type': 'block', 'children': ['53', '78', '103', '113']}; {'id': '53', 'type': 'if_statement', 'children': ['54', '59']}; {'id': '54', 'type': 'comparison_operator', 'children': ['55', '58'], 'value': 'is'}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'playlist_position'}; {'id': '58', 'type': 'None', 'children': []}; {'id': '59', 'type': 'block', 'children': ['60', '66']}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'augmented_assignment', 'children': ['62', '65'], 'value': '-='}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'playlist_position'}; {'id': '65', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'call', 'children': ['68', '73']}; {'id': '68', 'type': 'attribute', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'device'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'play_from_queue'}; {'id': '73', 'type': 'argument_list', 'children': ['74', '77']}; {'id': '74', 'type': 'attribute', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'playlist_position'}; {'id': '77', 'type': 'False', 'children': []}; {'id': '78', 'type': 'if_statement', 'children': ['79', '84']}; {'id': '79', 'type': 'comparison_operator', 'children': ['80', '83'], 'value': 'is'}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'track_position'}; {'id': '83', 'type': 'None', 'children': []}; {'id': '84', 'type': 'block', 'children': ['85']}; {'id': '85', 'type': 'if_statement', 'children': ['86', '91']}; {'id': '86', 'type': 'comparison_operator', 'children': ['87', '90'], 'value': '!='}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'track_position'}; {'id': '90', 'type': 'string', 'children': [], 'value': '""'}; {'id': '91', 'type': 'block', 'children': ['92']}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'call', 'children': ['94', '99']}; {'id': '94', 'type': 'attribute', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'device'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'seek'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'track_position'}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '110']}; {'id': '105', 'type': 'attribute', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'device'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'play_mode'}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'play_mode'}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '120']}; {'id': '115', 'type': 'attribute', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'device'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'cross_fade'}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'cross_fade'}; {'id': '123', 'type': 'elif_clause', 'children': ['124', '127']}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'is_playing_cloud_queue'}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'pass_statement', 'children': []}; {'id': '129', 'type': 'else_clause', 'children': ['130']}; {'id': '130', 'type': 'block', 'children': ['131']}; {'id': '131', 'type': 'if_statement', 'children': ['132', '137']}; {'id': '132', 'type': 'comparison_operator', 'children': ['133', '136'], 'value': '!='}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'media_uri'}; {'id': '136', 'type': 'string', 'children': [], 'value': '""'}; {'id': '137', 'type': 'block', 'children': ['138']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'call', 'children': ['140', '145']}; {'id': '140', 'type': 'attribute', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'device'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'play_uri'}; {'id': '145', 'type': 'argument_list', 'children': ['146', '149', '152']}; {'id': '146', 'type': 'attribute', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'media_uri'}; {'id': '149', 'type': 'attribute', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'media_metadata'}; {'id': '152', 'type': 'keyword_argument', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '154', 'type': 'False', 'children': []}
Do the coordinator-only part of the restore.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'scan'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '20', '28', '34', '43', '51', '59', '125', '136', '144']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '12']}; {'id': '7', 'type': 'comparison_operator', 'children': ['8', '11'], 'value': 'is'}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'implicit'}; {'id': '11', 'type': 'None', 'children': []}; {'id': '12', 'type': 'block', 'children': ['13']}; {'id': '13', 'type': 'return_statement', 'children': []}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '19']}; {'id': '16', 'type': 'attribute', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'implicit'}; {'id': '19', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'implicit_set'}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '27', 'type': 'argument_list', 'children': []}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': '_children_reset'}; {'id': '33', 'type': 'argument_list', 'children': []}; {'id': '34', 'type': 'if_statement', 'children': ['35', '41']}; {'id': '35', 'type': 'not_operator', 'children': ['36']}; {'id': '36', 'type': 'call', 'children': ['37', '40']}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'has_builder'}; {'id': '40', 'type': 'argument_list', 'children': []}; {'id': '41', 'type': 'block', 'children': ['42']}; {'id': '42', 'type': 'return_statement', 'children': []}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'build_env'}; {'id': '46', 'type': 'call', 'children': ['47', '50']}; {'id': '47', 'type': 'attribute', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'get_build_env'}; {'id': '50', 'type': 'argument_list', 'children': []}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'executor'}; {'id': '54', 'type': 'call', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'get_executor'}; {'id': '58', 'type': 'argument_list', 'children': []}; {'id': '59', 'type': 'if_statement', 'children': ['60', '64']}; {'id': '60', 'type': 'boolean_operator', 'children': ['61', '62'], 'value': 'and'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'implicit_cache'}; {'id': '62', 'type': 'not_operator', 'children': ['63']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'implicit_deps_changed'}; {'id': '64', 'type': 'block', 'children': ['65', '73']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'implicit'}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'get_stored_implicit'}; {'id': '72', 'type': 'argument_list', 'children': []}; {'id': '73', 'type': 'if_statement', 'children': ['74', '77']}; {'id': '74', 'type': 'comparison_operator', 'children': ['75', '76'], 'value': 'is'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'implicit'}; {'id': '76', 'type': 'None', 'children': []}; {'id': '77', 'type': 'block', 'children': ['78', '93', '103']}; {'id': '78', 'type': 'for_statement', 'children': ['79', '80', '85']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'tgt'}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'executor'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'get_all_targets'}; {'id': '84', 'type': 'argument_list', 'children': []}; {'id': '85', 'type': 'block', 'children': ['86']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'call', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'tgt'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'add_to_implicit'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'implicit'}; {'id': '93', 'type': 'if_statement', 'children': ['94', '101']}; {'id': '94', 'type': 'boolean_operator', 'children': ['95', '96'], 'value': 'or'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'implicit_deps_unchanged'}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'is_up_to_date'}; {'id': '100', 'type': 'argument_list', 'children': []}; {'id': '101', 'type': 'block', 'children': ['102']}; {'id': '102', 'type': 'return_statement', 'children': []}; {'id': '103', 'type': 'for_statement', 'children': ['104', '105', '110']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'tgt'}; {'id': '105', 'type': 'call', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'executor'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'get_all_targets'}; {'id': '109', 'type': 'argument_list', 'children': []}; {'id': '110', 'type': 'block', 'children': ['111', '117']}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '116']}; {'id': '113', 'type': 'attribute', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'tgt'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'implicit'}; {'id': '116', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '122']}; {'id': '119', 'type': 'attribute', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'tgt'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'implicit_set'}; {'id': '122', 'type': 'call', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '124', 'type': 'argument_list', 'children': []}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'call', 'children': ['127', '130']}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'executor'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'scan_sources'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'attribute', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'builder'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'source_scanner'}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'scanner'}; {'id': '139', 'type': 'call', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'get_target_scanner'}; {'id': '143', 'type': 'argument_list', 'children': []}; {'id': '144', 'type': 'if_statement', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'scanner'}; {'id': '146', 'type': 'block', 'children': ['147']}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'call', 'children': ['149', '152']}; {'id': '149', 'type': 'attribute', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'executor'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'scan_targets'}; {'id': '152', 'type': 'argument_list', 'children': ['153']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'scanner'}
Scan this node's dependents for implicit dependencies.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'DialectAddToEnv'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'suffixes'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'ppsuffixes'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'support_module'}; {'id': '10', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '11', 'type': 'block', 'children': ['12', '18', '33', '51', '62', '74', '87', '123', '159', '181', '205', '220', '235', '248']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'ComputeFortranSuffixes'}; {'id': '15', 'type': 'argument_list', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'suffixes'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'ppsuffixes'}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'fscan'}; {'id': '21', 'type': 'call', 'children': ['22', '29']}; {'id': '22', 'type': 'attribute', 'children': ['23', '28']}; {'id': '23', 'type': 'attribute', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'Scanner'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'Fortran'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'FortranScan'}; {'id': '29', 'type': 'argument_list', 'children': ['30']}; {'id': '30', 'type': 'binary_operator', 'children': ['31', '32'], 'value': '%'}; {'id': '31', 'type': 'string', 'children': [], 'value': '"%sPATH"'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '33', 'type': 'for_statement', 'children': ['34', '35', '38']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '35', 'type': 'binary_operator', 'children': ['36', '37'], 'value': '+'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'suffixes'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'ppsuffixes'}; {'id': '38', 'type': 'block', 'children': ['39']}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'call', 'children': ['41', '48']}; {'id': '41', 'type': 'attribute', 'children': ['42', '47']}; {'id': '42', 'type': 'attribute', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'Tool'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'SourceFileScanner'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'add_scanner'}; {'id': '48', 'type': 'argument_list', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'fscan'}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'AppendUnique'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'keyword_argument', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'FORTRANSUFFIXES'}; {'id': '59', 'type': 'binary_operator', 'children': ['60', '61'], 'value': '+'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'suffixes'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'ppsuffixes'}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '69', '70']}; {'id': '64', 'type': 'pattern_list', 'children': ['65', '66', '67', '68']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'compaction'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'compppaction'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'shcompaction'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'shcompppaction'}; {'id': '69', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '70', 'type': 'call', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'CreateDialectActions'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'assignment', 'children': ['76', '79']}; {'id': '76', 'type': 'pattern_list', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'static_obj'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'shared_obj'}; {'id': '79', 'type': 'call', 'children': ['80', '85']}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'Tool'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'createObjBuilders'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '87', 'type': 'for_statement', 'children': ['88', '89', '90']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'suffixes'}; {'id': '90', 'type': 'block', 'children': ['91', '99', '107', '115']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'call', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'static_obj'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'add_action'}; {'id': '96', 'type': 'argument_list', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'compaction'}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'call', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'shared_obj'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'add_action'}; {'id': '104', 'type': 'argument_list', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'shcompaction'}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'call', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'static_obj'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'add_emitter'}; {'id': '112', 'type': 'argument_list', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'FortranEmitter'}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'id': '116', 'type': 'call', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'shared_obj'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'add_emitter'}; {'id': '120', 'type': 'argument_list', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'ShFortranEmitter'}; {'id': '123', 'type': 'for_statement', 'children': ['124', '125', '126']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'ppsuffixes'}; {'id': '126', 'type': 'block', 'children': ['127', '135', '143', '151']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'call', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'static_obj'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'add_action'}; {'id': '132', 'type': 'argument_list', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'compppaction'}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'call', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'shared_obj'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'add_action'}; {'id': '140', 'type': 'argument_list', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'shcompppaction'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'call', 'children': ['145', '148']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'static_obj'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'add_emitter'}; {'id': '148', 'type': 'argument_list', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'FortranEmitter'}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'call', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'shared_obj'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'add_emitter'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'ShFortranEmitter'}; {'id': '159', 'type': 'if_statement', 'children': ['160', '165']}; {'id': '160', 'type': 'comparison_operator', 'children': ['161', '164'], 'value': 'not'}; {'id': '161', 'type': 'binary_operator', 'children': ['162', '163'], 'value': '%'}; {'id': '162', 'type': 'string', 'children': [], 'value': "'%sFLAGS'"}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '165', 'type': 'block', 'children': ['166']}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '173']}; {'id': '168', 'type': 'subscript', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '170', 'type': 'binary_operator', 'children': ['171', '172'], 'value': '%'}; {'id': '171', 'type': 'string', 'children': [], 'value': "'%sFLAGS'"}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '173', 'type': 'call', 'children': ['174', '179']}; {'id': '174', 'type': 'attribute', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'string', 'children': [], 'value': "''"}; {'id': '181', 'type': 'if_statement', 'children': ['182', '187']}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '186'], 'value': 'not'}; {'id': '183', 'type': 'binary_operator', 'children': ['184', '185'], 'value': '%'}; {'id': '184', 'type': 'string', 'children': [], 'value': "'SH%sFLAGS'"}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '187', 'type': 'block', 'children': ['188']}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'assignment', 'children': ['190', '195']}; {'id': '190', 'type': 'subscript', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '192', 'type': 'binary_operator', 'children': ['193', '194'], 'value': '%'}; {'id': '193', 'type': 'string', 'children': [], 'value': "'SH%sFLAGS'"}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '195', 'type': 'call', 'children': ['196', '201']}; {'id': '196', 'type': 'attribute', 'children': ['197', '200']}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'binary_operator', 'children': ['203', '204'], 'value': '%'}; {'id': '203', 'type': 'string', 'children': [], 'value': "'$%sFLAGS'"}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '205', 'type': 'if_statement', 'children': ['206', '211']}; {'id': '206', 'type': 'comparison_operator', 'children': ['207', '210'], 'value': 'not'}; {'id': '207', 'type': 'binary_operator', 'children': ['208', '209'], 'value': '%'}; {'id': '208', 'type': 'string', 'children': [], 'value': "'INC%sPREFIX'"}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '211', 'type': 'block', 'children': ['212']}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '219']}; {'id': '214', 'type': 'subscript', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '216', 'type': 'binary_operator', 'children': ['217', '218'], 'value': '%'}; {'id': '217', 'type': 'string', 'children': [], 'value': "'INC%sPREFIX'"}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '219', 'type': 'string', 'children': [], 'value': "'$INCPREFIX'"}; {'id': '220', 'type': 'if_statement', 'children': ['221', '226']}; {'id': '221', 'type': 'comparison_operator', 'children': ['222', '225'], 'value': 'not'}; {'id': '222', 'type': 'binary_operator', 'children': ['223', '224'], 'value': '%'}; {'id': '223', 'type': 'string', 'children': [], 'value': "'INC%sSUFFIX'"}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '226', 'type': 'block', 'children': ['227']}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'assignment', 'children': ['229', '234']}; {'id': '229', 'type': 'subscript', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '231', 'type': 'binary_operator', 'children': ['232', '233'], 'value': '%'}; {'id': '232', 'type': 'string', 'children': [], 'value': "'INC%sSUFFIX'"}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '234', 'type': 'string', 'children': [], 'value': "'$INCSUFFIX'"}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '242']}; {'id': '237', 'type': 'subscript', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '239', 'type': 'binary_operator', 'children': ['240', '241'], 'value': '%'}; {'id': '240', 'type': 'string', 'children': [], 'value': "'_%sINCFLAGS'"}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '242', 'type': 'binary_operator', 'children': ['243', '244'], 'value': '%'}; {'id': '243', 'type': 'string', 'children': [], 'value': "'$( ${_concat(INC%sPREFIX, %sPATH, INC%sSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)'"}; {'id': '244', 'type': 'tuple', 'children': ['245', '246', '247']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '248', 'type': 'if_statement', 'children': ['249', '252', '305']}; {'id': '249', 'type': 'comparison_operator', 'children': ['250', '251'], 'value': '=='}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'support_module'}; {'id': '251', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '252', 'type': 'block', 'children': ['253', '266', '279', '292']}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '260']}; {'id': '255', 'type': 'subscript', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '257', 'type': 'binary_operator', 'children': ['258', '259'], 'value': '%'}; {'id': '258', 'type': 'string', 'children': [], 'value': "'%sCOM'"}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '260', 'type': 'binary_operator', 'children': ['261', '262'], 'value': '%'}; {'id': '261', 'type': 'string', 'children': [], 'value': "'$%s -o $TARGET -c $%sFLAGS $_%sINCFLAGS $_FORTRANMODFLAG $SOURCES'"}; {'id': '262', 'type': 'tuple', 'children': ['263', '264', '265']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '266', 'type': 'expression_statement', 'children': ['267']}; {'id': '267', 'type': 'assignment', 'children': ['268', '273']}; {'id': '268', 'type': 'subscript', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '270', 'type': 'binary_operator', 'children': ['271', '272'], 'value': '%'}; {'id': '271', 'type': 'string', 'children': [], 'value': "'%sPPCOM'"}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '273', 'type': 'binary_operator', 'children': ['274', '275'], 'value': '%'}; {'id': '274', 'type': 'string', 'children': [], 'value': "'$%s -o $TARGET -c $%sFLAGS $CPPFLAGS $_CPPDEFFLAGS $_%sINCFLAGS $_FORTRANMODFLAG $SOURCES'"}; {'id': '275', 'type': 'tuple', 'children': ['276', '277', '278']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '279', 'type': 'expression_statement', 'children': ['280']}; {'id': '280', 'type': 'assignment', 'children': ['281', '286']}; {'id': '281', 'type': 'subscript', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '283', 'type': 'binary_operator', 'children': ['284', '285'], 'value': '%'}; {'id': '284', 'type': 'string', 'children': [], 'value': "'SH%sCOM'"}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '286', 'type': 'binary_operator', 'children': ['287', '288'], 'value': '%'}; {'id': '287', 'type': 'string', 'children': [], 'value': "'$SH%s -o $TARGET -c $SH%sFLAGS $_%sINCFLAGS $_FORTRANMODFLAG $SOURCES'"}; {'id': '288', 'type': 'tuple', 'children': ['289', '290', '291']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'assignment', 'children': ['294', '299']}; {'id': '294', 'type': 'subscript', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '296', 'type': 'binary_operator', 'children': ['297', '298'], 'value': '%'}; {'id': '297', 'type': 'string', 'children': [], 'value': "'SH%sPPCOM'"}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '299', 'type': 'binary_operator', 'children': ['300', '301'], 'value': '%'}; {'id': '300', 'type': 'string', 'children': [], 'value': "'$SH%s -o $TARGET -c $SH%sFLAGS $CPPFLAGS $_CPPDEFFLAGS $_%sINCFLAGS $_FORTRANMODFLAG $SOURCES'"}; {'id': '301', 'type': 'tuple', 'children': ['302', '303', '304']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '305', 'type': 'else_clause', 'children': ['306']}; {'id': '306', 'type': 'block', 'children': ['307', '320', '333', '346']}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'assignment', 'children': ['309', '314']}; {'id': '309', 'type': 'subscript', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '311', 'type': 'binary_operator', 'children': ['312', '313'], 'value': '%'}; {'id': '312', 'type': 'string', 'children': [], 'value': "'%sCOM'"}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '314', 'type': 'binary_operator', 'children': ['315', '316'], 'value': '%'}; {'id': '315', 'type': 'string', 'children': [], 'value': "'$%s -o $TARGET -c $%sFLAGS $_%sINCFLAGS $SOURCES'"}; {'id': '316', 'type': 'tuple', 'children': ['317', '318', '319']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '320', 'type': 'expression_statement', 'children': ['321']}; {'id': '321', 'type': 'assignment', 'children': ['322', '327']}; {'id': '322', 'type': 'subscript', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '324', 'type': 'binary_operator', 'children': ['325', '326'], 'value': '%'}; {'id': '325', 'type': 'string', 'children': [], 'value': "'%sPPCOM'"}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '327', 'type': 'binary_operator', 'children': ['328', '329'], 'value': '%'}; {'id': '328', 'type': 'string', 'children': [], 'value': "'$%s -o $TARGET -c $%sFLAGS $CPPFLAGS $_CPPDEFFLAGS $_%sINCFLAGS $SOURCES'"}; {'id': '329', 'type': 'tuple', 'children': ['330', '331', '332']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '333', 'type': 'expression_statement', 'children': ['334']}; {'id': '334', 'type': 'assignment', 'children': ['335', '340']}; {'id': '335', 'type': 'subscript', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '337', 'type': 'binary_operator', 'children': ['338', '339'], 'value': '%'}; {'id': '338', 'type': 'string', 'children': [], 'value': "'SH%sCOM'"}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '340', 'type': 'binary_operator', 'children': ['341', '342'], 'value': '%'}; {'id': '341', 'type': 'string', 'children': [], 'value': "'$SH%s -o $TARGET -c $SH%sFLAGS $_%sINCFLAGS $SOURCES'"}; {'id': '342', 'type': 'tuple', 'children': ['343', '344', '345']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '346', 'type': 'expression_statement', 'children': ['347']}; {'id': '347', 'type': 'assignment', 'children': ['348', '353']}; {'id': '348', 'type': 'subscript', 'children': ['349', '350']}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '350', 'type': 'binary_operator', 'children': ['351', '352'], 'value': '%'}; {'id': '351', 'type': 'string', 'children': [], 'value': "'SH%sPPCOM'"}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '353', 'type': 'binary_operator', 'children': ['354', '355'], 'value': '%'}; {'id': '354', 'type': 'string', 'children': [], 'value': "'$SH%s -o $TARGET -c $SH%sFLAGS $CPPFLAGS $_CPPDEFFLAGS $_%sINCFLAGS $SOURCES'"}; {'id': '355', 'type': 'tuple', 'children': ['356', '357', '358']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'dialect'}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'dialect'}
Add dialect specific construction variables.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '__xml_scan'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'arg'}; {'id': '8', 'type': 'block', 'children': ['9', '25', '49', '62', '241', '250', '259', '275', '285', '289', '332', '338', '344', '350']}; {'id': '9', 'type': 'if_statement', 'children': ['10', '22']}; {'id': '10', 'type': 'not_operator', 'children': ['11']}; {'id': '11', 'type': 'call', 'children': ['12', '17']}; {'id': '12', 'type': 'attribute', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'isfile'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'call', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '20', 'type': 'argument_list', 'children': ['21']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'return_statement', 'children': ['24']}; {'id': '24', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '25', 'type': 'if_statement', 'children': ['26', '33']}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '30', 'type': 'argument_list', 'children': ['31', '32']}; {'id': '31', 'type': 'string', 'children': [], 'value': "'DOCBOOK_SCANENT'"}; {'id': '32', 'type': 'string', 'children': [], 'value': "''"}; {'id': '33', 'type': 'block', 'children': ['34', '42']}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '37', 'type': 'call', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'get_text_contents'}; {'id': '41', 'type': 'argument_list', 'children': []}; {'id': '42', 'type': 'return_statement', 'children': ['43']}; {'id': '43', 'type': 'call', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'sentity_re'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'findall'}; {'id': '47', 'type': 'argument_list', 'children': ['48']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'xsl_file'}; {'id': '52', 'type': 'call', 'children': ['53', '58']}; {'id': '53', 'type': 'attribute', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '58', 'type': 'argument_list', 'children': ['59', '60', '61']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'scriptpath'}; {'id': '60', 'type': 'string', 'children': [], 'value': "'utils'"}; {'id': '61', 'type': 'string', 'children': [], 'value': "'xmldepend.xsl'"}; {'id': '62', 'type': 'if_statement', 'children': ['63', '67']}; {'id': '63', 'type': 'boolean_operator', 'children': ['64', '66'], 'value': 'or'}; {'id': '64', 'type': 'not_operator', 'children': ['65']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'has_libxml2'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'prefer_xsltproc'}; {'id': '67', 'type': 'block', 'children': ['68']}; {'id': '68', 'type': 'if_statement', 'children': ['69', '73', '146']}; {'id': '69', 'type': 'boolean_operator', 'children': ['70', '71'], 'value': 'and'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'has_lxml'}; {'id': '71', 'type': 'not_operator', 'children': ['72']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'prefer_xsltproc'}; {'id': '73', 'type': 'block', 'children': ['74', '79', '88', '100', '109', '144']}; {'id': '74', 'type': 'import_from_statement', 'children': ['75', '77']}; {'id': '75', 'type': 'dotted_name', 'children': ['76']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'lxml'}; {'id': '77', 'type': 'dotted_name', 'children': ['78']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'etree'}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'assignment', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'xsl_tree'}; {'id': '82', 'type': 'call', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'etree'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '86', 'type': 'argument_list', 'children': ['87']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'xsl_file'}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'assignment', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '91', 'type': 'call', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'etree'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '95', 'type': 'argument_list', 'children': ['96']}; {'id': '96', 'type': 'call', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'xslt'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'xsl_tree'}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'assignment', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'depfiles'}; {'id': '112', 'type': 'list_comprehension', 'children': ['113', '118', '128']}; {'id': '113', 'type': 'call', 'children': ['114', '117']}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '117', 'type': 'argument_list', 'children': []}; {'id': '118', 'type': 'for_in_clause', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '120', 'type': 'call', 'children': ['121', '127']}; {'id': '121', 'type': 'attribute', 'children': ['122', '126']}; {'id': '122', 'type': 'call', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'splitlines'}; {'id': '127', 'type': 'argument_list', 'children': []}; {'id': '128', 'type': 'if_clause', 'children': ['129']}; {'id': '129', 'type': 'boolean_operator', 'children': ['130', '137'], 'value': 'and'}; {'id': '130', 'type': 'comparison_operator', 'children': ['131', '136'], 'value': '!='}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '135', 'type': 'argument_list', 'children': []}; {'id': '136', 'type': 'string', 'children': [], 'value': '""'}; {'id': '137', 'type': 'not_operator', 'children': ['138']}; {'id': '138', 'type': 'call', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '142', 'type': 'argument_list', 'children': ['143']}; {'id': '143', 'type': 'string', 'children': [], 'value': '"<?xml "'}; {'id': '144', 'type': 'return_statement', 'children': ['145']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'depfiles'}; {'id': '146', 'type': 'else_clause', 'children': ['147']}; {'id': '147', 'type': 'block', 'children': ['148', '157']}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'assignment', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'xsltproc'}; {'id': '151', 'type': 'call', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'subst'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'string', 'children': [], 'value': '"$DOCBOOK_XSLTPROC"'}; {'id': '157', 'type': 'if_statement', 'children': ['158', '166', '224']}; {'id': '158', 'type': 'boolean_operator', 'children': ['159', '160'], 'value': 'and'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'xsltproc'}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'xsltproc'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'string', 'children': [], 'value': "'xsltproc'"}; {'id': '166', 'type': 'block', 'children': ['167', '187', '222']}; {'id': '167', 'type': 'expression_statement', 'children': ['168']}; {'id': '168', 'type': 'assignment', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '170', 'type': 'call', 'children': ['171', '174']}; {'id': '171', 'type': 'attribute', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'backtick'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'call', 'children': ['176', '179']}; {'id': '176', 'type': 'attribute', 'children': ['177', '178']}; {'id': '177', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'list', 'children': ['181', '182', '183'], 'value': '[xsltproc, xsl_file, str(node)]'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'xsltproc'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'xsl_file'}; {'id': '183', 'type': 'call', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '185', 'type': 'argument_list', 'children': ['186']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'depfiles'}; {'id': '190', 'type': 'list_comprehension', 'children': ['191', '196', '206']}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '195', 'type': 'argument_list', 'children': []}; {'id': '196', 'type': 'for_in_clause', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '198', 'type': 'call', 'children': ['199', '205']}; {'id': '199', 'type': 'attribute', 'children': ['200', '204']}; {'id': '200', 'type': 'call', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '202', 'type': 'argument_list', 'children': ['203']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'splitlines'}; {'id': '205', 'type': 'argument_list', 'children': []}; {'id': '206', 'type': 'if_clause', 'children': ['207']}; {'id': '207', 'type': 'boolean_operator', 'children': ['208', '215'], 'value': 'and'}; {'id': '208', 'type': 'comparison_operator', 'children': ['209', '214'], 'value': '!='}; {'id': '209', 'type': 'call', 'children': ['210', '213']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '213', 'type': 'argument_list', 'children': []}; {'id': '214', 'type': 'string', 'children': [], 'value': '""'}; {'id': '215', 'type': 'not_operator', 'children': ['216']}; {'id': '216', 'type': 'call', 'children': ['217', '220']}; {'id': '217', 'type': 'attribute', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '220', 'type': 'argument_list', 'children': ['221']}; {'id': '221', 'type': 'string', 'children': [], 'value': '"<?xml "'}; {'id': '222', 'type': 'return_statement', 'children': ['223']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'depfiles'}; {'id': '224', 'type': 'else_clause', 'children': ['225']}; {'id': '225', 'type': 'block', 'children': ['226', '234']}; {'id': '226', 'type': 'expression_statement', 'children': ['227']}; {'id': '227', 'type': 'assignment', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '229', 'type': 'call', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'get_text_contents'}; {'id': '233', 'type': 'argument_list', 'children': []}; {'id': '234', 'type': 'return_statement', 'children': ['235']}; {'id': '235', 'type': 'call', 'children': ['236', '239']}; {'id': '236', 'type': 'attribute', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'include_re'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'findall'}; {'id': '239', 'type': 'argument_list', 'children': ['240']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '241', 'type': 'expression_statement', 'children': ['242']}; {'id': '242', 'type': 'assignment', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'styledoc'}; {'id': '244', 'type': 'call', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'libxml2'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'parseFile'}; {'id': '248', 'type': 'argument_list', 'children': ['249']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'xsl_file'}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'assignment', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '253', 'type': 'call', 'children': ['254', '257']}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'libxslt'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'parseStylesheetDoc'}; {'id': '257', 'type': 'argument_list', 'children': ['258']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'styledoc'}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'assignment', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '262', 'type': 'call', 'children': ['263', '266']}; {'id': '263', 'type': 'attribute', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'libxml2'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'readFile'}; {'id': '266', 'type': 'argument_list', 'children': ['267', '271', '272']}; {'id': '267', 'type': 'call', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '271', 'type': 'None', 'children': []}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'libxml2'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'XML_PARSE_NOENT'}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'assignment', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '278', 'type': 'call', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'applyStylesheet'}; {'id': '282', 'type': 'argument_list', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '284', 'type': 'None', 'children': []}; {'id': '285', 'type': 'expression_statement', 'children': ['286']}; {'id': '286', 'type': 'assignment', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'depfiles'}; {'id': '288', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '289', 'type': 'for_statement', 'children': ['290', '291', '299']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '291', 'type': 'call', 'children': ['292', '298']}; {'id': '292', 'type': 'attribute', 'children': ['293', '297']}; {'id': '293', 'type': 'call', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '295', 'type': 'argument_list', 'children': ['296']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'splitlines'}; {'id': '298', 'type': 'argument_list', 'children': []}; {'id': '299', 'type': 'block', 'children': ['300']}; {'id': '300', 'type': 'if_statement', 'children': ['301', '316']}; {'id': '301', 'type': 'boolean_operator', 'children': ['302', '309'], 'value': 'and'}; {'id': '302', 'type': 'comparison_operator', 'children': ['303', '308'], 'value': '!='}; {'id': '303', 'type': 'call', 'children': ['304', '307']}; {'id': '304', 'type': 'attribute', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '307', 'type': 'argument_list', 'children': []}; {'id': '308', 'type': 'string', 'children': [], 'value': '""'}; {'id': '309', 'type': 'not_operator', 'children': ['310']}; {'id': '310', 'type': 'call', 'children': ['311', '314']}; {'id': '311', 'type': 'attribute', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '314', 'type': 'argument_list', 'children': ['315']}; {'id': '315', 'type': 'string', 'children': [], 'value': '"<?xml "'}; {'id': '316', 'type': 'block', 'children': ['317']}; {'id': '317', 'type': 'expression_statement', 'children': ['318']}; {'id': '318', 'type': 'call', 'children': ['319', '322']}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'depfiles'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '322', 'type': 'argument_list', 'children': ['323']}; {'id': '323', 'type': 'call', 'children': ['324', '331']}; {'id': '324', 'type': 'attribute', 'children': ['325', '330']}; {'id': '325', 'type': 'call', 'children': ['326', '329']}; {'id': '326', 'type': 'attribute', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '329', 'type': 'argument_list', 'children': []}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '331', 'type': 'argument_list', 'children': []}; {'id': '332', 'type': 'expression_statement', 'children': ['333']}; {'id': '333', 'type': 'call', 'children': ['334', '337']}; {'id': '334', 'type': 'attribute', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'freeStylesheet'}; {'id': '337', 'type': 'argument_list', 'children': []}; {'id': '338', 'type': 'expression_statement', 'children': ['339']}; {'id': '339', 'type': 'call', 'children': ['340', '343']}; {'id': '340', 'type': 'attribute', 'children': ['341', '342']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'freeDoc'}; {'id': '343', 'type': 'argument_list', 'children': []}; {'id': '344', 'type': 'expression_statement', 'children': ['345']}; {'id': '345', 'type': 'call', 'children': ['346', '349']}; {'id': '346', 'type': 'attribute', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'freeDoc'}; {'id': '349', 'type': 'argument_list', 'children': []}; {'id': '350', 'type': 'return_statement', 'children': ['351']}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'depfiles'}
Simple XML file scanner, detecting local images and XIncludes as implicit dependencies.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '13']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'DocbookMan'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '9', '11']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'list_splat_pattern', 'children': ['10']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '11', 'type': 'dictionary_splat_pattern', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '13', 'type': 'block', 'children': ['14', '24', '34', '43', '47', '366']}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '19']}; {'id': '16', 'type': 'pattern_list', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': '__extend_targets_sources'}; {'id': '21', 'type': 'argument_list', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': '__init_xsl_stylesheet'}; {'id': '27', 'type': 'argument_list', 'children': ['28', '29', '30', '31']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '30', 'type': 'string', 'children': [], 'value': "'$DOCBOOK_DEFAULT_XSL_MAN'"}; {'id': '31', 'type': 'list', 'children': ['32', '33'], 'value': "['manpages','docbook.xsl']"}; {'id': '32', 'type': 'string', 'children': [], 'value': "'manpages'"}; {'id': '33', 'type': 'string', 'children': [], 'value': "'docbook.xsl'"}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': '__builder'}; {'id': '37', 'type': 'call', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': '__select_builder'}; {'id': '39', 'type': 'argument_list', 'children': ['40', '41', '42']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': '__lxml_builder'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': '__libxml2_builder'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': '__xsltproc_builder'}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '46', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '47', 'type': 'for_statement', 'children': ['48', '51', '56']}; {'id': '48', 'type': 'pattern_list', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'zip'}; {'id': '53', 'type': 'argument_list', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '56', 'type': 'block', 'children': ['57', '61', '65', '76', '310', '323', '335', '344']}; {'id': '57', 'type': 'expression_statement', 'children': ['58']}; {'id': '58', 'type': 'assignment', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'volnum'}; {'id': '60', 'type': 'string', 'children': [], 'value': '"1"'}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '64', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'srcfile'}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': '__ensure_suffix'}; {'id': '70', 'type': 'argument_list', 'children': ['71', '75']}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '75', 'type': 'string', 'children': [], 'value': "'.xml'"}; {'id': '76', 'type': 'if_statement', 'children': ['77', '85', '301']}; {'id': '77', 'type': 'call', 'children': ['78', '83']}; {'id': '78', 'type': 'attribute', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'isfile'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'srcfile'}; {'id': '85', 'type': 'block', 'children': ['86', '244']}; {'id': '86', 'type': 'try_statement', 'children': ['87', '170']}; {'id': '87', 'type': 'block', 'children': ['88', '93', '113', '138']}; {'id': '88', 'type': 'import_statement', 'children': ['89']}; {'id': '89', 'type': 'dotted_name', 'children': ['90', '91', '92']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'xml'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'dom'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'minidom'}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'dom'}; {'id': '96', 'type': 'call', 'children': ['97', '104']}; {'id': '97', 'type': 'attribute', 'children': ['98', '103']}; {'id': '98', 'type': 'attribute', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'xml'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'dom'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'minidom'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '104', 'type': 'argument_list', 'children': ['105']}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': '__ensure_suffix'}; {'id': '107', 'type': 'argument_list', 'children': ['108', '112']}; {'id': '108', 'type': 'call', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '112', 'type': 'string', 'children': [], 'value': "'.xml'"}; {'id': '113', 'type': 'for_statement', 'children': ['114', '115', '121']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '115', 'type': 'call', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'dom'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'getElementsByTagName'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'string', 'children': [], 'value': "'refmeta'"}; {'id': '121', 'type': 'block', 'children': ['122']}; {'id': '122', 'type': 'for_statement', 'children': ['123', '124', '130']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'vol'}; {'id': '124', 'type': 'call', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'getElementsByTagName'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'string', 'children': [], 'value': "'manvolnum'"}; {'id': '130', 'type': 'block', 'children': ['131']}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'volnum'}; {'id': '134', 'type': 'call', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': '__get_xml_text'}; {'id': '136', 'type': 'argument_list', 'children': ['137']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'vol'}; {'id': '138', 'type': 'for_statement', 'children': ['139', '140', '146']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '140', 'type': 'call', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'dom'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'getElementsByTagName'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'string', 'children': [], 'value': "'refnamediv'"}; {'id': '146', 'type': 'block', 'children': ['147']}; {'id': '147', 'type': 'for_statement', 'children': ['148', '149', '155']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'ref'}; {'id': '149', 'type': 'call', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'getElementsByTagName'}; {'id': '153', 'type': 'argument_list', 'children': ['154']}; {'id': '154', 'type': 'string', 'children': [], 'value': "'refname'"}; {'id': '155', 'type': 'block', 'children': ['156']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'call', 'children': ['158', '161']}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'binary_operator', 'children': ['163', '169'], 'value': '+'}; {'id': '163', 'type': 'binary_operator', 'children': ['164', '168'], 'value': '+'}; {'id': '164', 'type': 'call', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': '__get_xml_text'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'ref'}; {'id': '168', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'volnum'}; {'id': '170', 'type': 'except_clause', 'children': ['171']}; {'id': '171', 'type': 'block', 'children': ['172', '187', '195', '201', '219']}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '175', 'type': 'call', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '177', 'type': 'argument_list', 'children': ['178', '186']}; {'id': '178', 'type': 'call', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': '__ensure_suffix'}; {'id': '180', 'type': 'argument_list', 'children': ['181', '185']}; {'id': '181', 'type': 'call', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '183', 'type': 'argument_list', 'children': ['184']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '185', 'type': 'string', 'children': [], 'value': "'.xml'"}; {'id': '186', 'type': 'string', 'children': [], 'value': "'r'"}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '190', 'type': 'call', 'children': ['191', '194']}; {'id': '191', 'type': 'attribute', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '194', 'type': 'argument_list', 'children': []}; {'id': '195', 'type': 'expression_statement', 'children': ['196']}; {'id': '196', 'type': 'call', 'children': ['197', '200']}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '200', 'type': 'argument_list', 'children': []}; {'id': '201', 'type': 'for_statement', 'children': ['202', '203', '209']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '203', 'type': 'call', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 're_manvolnum'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'finditer'}; {'id': '207', 'type': 'argument_list', 'children': ['208']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '209', 'type': 'block', 'children': ['210']}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'assignment', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'volnum'}; {'id': '213', 'type': 'call', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '217', 'type': 'argument_list', 'children': ['218']}; {'id': '218', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '219', 'type': 'for_statement', 'children': ['220', '221', '227']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '221', 'type': 'call', 'children': ['222', '225']}; {'id': '222', 'type': 'attribute', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 're_refname'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'finditer'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '227', 'type': 'block', 'children': ['228']}; {'id': '228', 'type': 'expression_statement', 'children': ['229']}; {'id': '229', 'type': 'call', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '233', 'type': 'argument_list', 'children': ['234']}; {'id': '234', 'type': 'binary_operator', 'children': ['235', '243'], 'value': '+'}; {'id': '235', 'type': 'binary_operator', 'children': ['236', '242'], 'value': '+'}; {'id': '236', 'type': 'call', 'children': ['237', '240']}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '240', 'type': 'argument_list', 'children': ['241']}; {'id': '241', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '242', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'volnum'}; {'id': '244', 'type': 'if_statement', 'children': ['245', '247']}; {'id': '245', 'type': 'not_operator', 'children': ['246']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '247', 'type': 'block', 'children': ['248', '255']}; {'id': '248', 'type': 'expression_statement', 'children': ['249']}; {'id': '249', 'type': 'assignment', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'spath'}; {'id': '251', 'type': 'call', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '253', 'type': 'argument_list', 'children': ['254']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '255', 'type': 'if_statement', 'children': ['256', '263', '275']}; {'id': '256', 'type': 'not_operator', 'children': ['257']}; {'id': '257', 'type': 'call', 'children': ['258', '261']}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'spath'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '261', 'type': 'argument_list', 'children': ['262']}; {'id': '262', 'type': 'string', 'children': [], 'value': "'.xml'"}; {'id': '263', 'type': 'block', 'children': ['264']}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'call', 'children': ['266', '269']}; {'id': '266', 'type': 'attribute', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'binary_operator', 'children': ['271', '274'], 'value': '+'}; {'id': '271', 'type': 'binary_operator', 'children': ['272', '273'], 'value': '+'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'spath'}; {'id': '273', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'volnum'}; {'id': '275', 'type': 'else_clause', 'children': ['276']}; {'id': '276', 'type': 'block', 'children': ['277', '290']}; {'id': '277', 'type': 'expression_statement', 'children': ['278']}; {'id': '278', 'type': 'assignment', 'children': ['279', '282']}; {'id': '279', 'type': 'pattern_list', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'stem'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'ext'}; {'id': '282', 'type': 'call', 'children': ['283', '288']}; {'id': '283', 'type': 'attribute', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'splitext'}; {'id': '288', 'type': 'argument_list', 'children': ['289']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'spath'}; {'id': '290', 'type': 'expression_statement', 'children': ['291']}; {'id': '291', 'type': 'call', 'children': ['292', '295']}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '295', 'type': 'argument_list', 'children': ['296']}; {'id': '296', 'type': 'binary_operator', 'children': ['297', '300'], 'value': '+'}; {'id': '297', 'type': 'binary_operator', 'children': ['298', '299'], 'value': '+'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'stem'}; {'id': '299', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'volnum'}; {'id': '301', 'type': 'else_clause', 'children': ['302']}; {'id': '302', 'type': 'block', 'children': ['303']}; {'id': '303', 'type': 'expression_statement', 'children': ['304']}; {'id': '304', 'type': 'call', 'children': ['305', '308']}; {'id': '305', 'type': 'attribute', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '308', 'type': 'argument_list', 'children': ['309']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '310', 'type': 'expression_statement', 'children': ['311']}; {'id': '311', 'type': 'call', 'children': ['312', '315']}; {'id': '312', 'type': 'attribute', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': '__builder'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': '__call__'}; {'id': '315', 'type': 'argument_list', 'children': ['316', '317', '320', '321']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '317', 'type': 'subscript', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '319', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '321', 'type': 'dictionary_splat', 'children': ['322']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '323', 'type': 'expression_statement', 'children': ['324']}; {'id': '324', 'type': 'call', 'children': ['325', '328']}; {'id': '325', 'type': 'attribute', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'Depends'}; {'id': '328', 'type': 'argument_list', 'children': ['329', '332']}; {'id': '329', 'type': 'subscript', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '331', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '332', 'type': 'subscript', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '334', 'type': 'string', 'children': [], 'value': "'DOCBOOK_XSL'"}; {'id': '335', 'type': 'expression_statement', 'children': ['336']}; {'id': '336', 'type': 'call', 'children': ['337', '340']}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '340', 'type': 'argument_list', 'children': ['341']}; {'id': '341', 'type': 'subscript', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '343', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '344', 'type': 'if_statement', 'children': ['345', '351']}; {'id': '345', 'type': 'comparison_operator', 'children': ['346', '350'], 'value': '>'}; {'id': '346', 'type': 'call', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '348', 'type': 'argument_list', 'children': ['349']}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '350', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '351', 'type': 'block', 'children': ['352']}; {'id': '352', 'type': 'expression_statement', 'children': ['353']}; {'id': '353', 'type': 'call', 'children': ['354', '357']}; {'id': '354', 'type': 'attribute', 'children': ['355', '356']}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'Clean'}; {'id': '357', 'type': 'argument_list', 'children': ['358', '361']}; {'id': '358', 'type': 'subscript', 'children': ['359', '360']}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '360', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '361', 'type': 'subscript', 'children': ['362', '363']}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'outfiles'}; {'id': '363', 'type': 'slice', 'children': ['364', '365']}; {'id': '364', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '365', 'type': 'colon', 'children': []}; {'id': '366', 'type': 'return_statement', 'children': ['367']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'result'}
A pseudo-Builder, providing a Docbook toolchain for Man page output.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'Builder'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'dictionary_splat_pattern', 'children': ['5']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '6', 'type': 'block', 'children': ['7', '11', '133', '223', '231', '245']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'composite'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'if_statement', 'children': ['12', '15', '46']}; {'id': '12', 'type': 'comparison_operator', 'children': ['13', '14'], 'value': 'in'}; {'id': '13', 'type': 'string', 'children': [], 'value': "'generator'"}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '15', 'type': 'block', 'children': ['16', '26', '42']}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': 'in'}; {'id': '18', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'raise_statement', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'UserError'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'string', 'children': [], 'value': '"You must not specify both an action and a generator."'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '31']}; {'id': '28', 'type': 'subscript', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '30', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '31', 'type': 'call', 'children': ['32', '37']}; {'id': '32', 'type': 'attribute', 'children': ['33', '36']}; {'id': '33', 'type': 'attribute', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'CommandGeneratorAction'}; {'id': '37', 'type': 'argument_list', 'children': ['38', '41']}; {'id': '38', 'type': 'subscript', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '40', 'type': 'string', 'children': [], 'value': "'generator'"}; {'id': '41', 'type': 'dictionary', 'children': []}; {'id': '42', 'type': 'delete_statement', 'children': ['43']}; {'id': '43', 'type': 'subscript', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '45', 'type': 'string', 'children': [], 'value': "'generator'"}; {'id': '46', 'type': 'elif_clause', 'children': ['47', '50']}; {'id': '47', 'type': 'comparison_operator', 'children': ['48', '49'], 'value': 'in'}; {'id': '48', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '50', 'type': 'block', 'children': ['51', '61', '70']}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'source_ext_match'}; {'id': '54', 'type': 'call', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '58', 'type': 'argument_list', 'children': ['59', '60']}; {'id': '59', 'type': 'string', 'children': [], 'value': "'source_ext_match'"}; {'id': '60', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '61', 'type': 'if_statement', 'children': ['62', '65']}; {'id': '62', 'type': 'comparison_operator', 'children': ['63', '64'], 'value': 'in'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'source_ext_match'"}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '65', 'type': 'block', 'children': ['66']}; {'id': '66', 'type': 'delete_statement', 'children': ['67']}; {'id': '67', 'type': 'subscript', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '69', 'type': 'string', 'children': [], 'value': "'source_ext_match'"}; {'id': '70', 'type': 'if_statement', 'children': ['71', '81', '116']}; {'id': '71', 'type': 'call', 'children': ['72', '77']}; {'id': '72', 'type': 'attribute', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'is_Dict'}; {'id': '77', 'type': 'argument_list', 'children': ['78']}; {'id': '78', 'type': 'subscript', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '80', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '81', 'type': 'block', 'children': ['82', '92', '106']}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'composite'}; {'id': '85', 'type': 'call', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'DictCmdGenerator'}; {'id': '87', 'type': 'argument_list', 'children': ['88', '91']}; {'id': '88', 'type': 'subscript', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '90', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'source_ext_match'}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'assignment', 'children': ['94', '97']}; {'id': '94', 'type': 'subscript', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '96', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '97', 'type': 'call', 'children': ['98', '103']}; {'id': '98', 'type': 'attribute', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'CommandGeneratorAction'}; {'id': '103', 'type': 'argument_list', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'composite'}; {'id': '105', 'type': 'dictionary', 'children': []}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '111']}; {'id': '108', 'type': 'subscript', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '110', 'type': 'string', 'children': [], 'value': "'src_suffix'"}; {'id': '111', 'type': 'call', 'children': ['112', '115']}; {'id': '112', 'type': 'attribute', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'composite'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'src_suffixes'}; {'id': '115', 'type': 'argument_list', 'children': []}; {'id': '116', 'type': 'else_clause', 'children': ['117']}; {'id': '117', 'type': 'block', 'children': ['118']}; {'id': '118', 'type': 'expression_statement', 'children': ['119']}; {'id': '119', 'type': 'assignment', 'children': ['120', '123']}; {'id': '120', 'type': 'subscript', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '122', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '123', 'type': 'call', 'children': ['124', '129']}; {'id': '124', 'type': 'attribute', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'subscript', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '132', 'type': 'string', 'children': [], 'value': "'action'"}; {'id': '133', 'type': 'if_statement', 'children': ['134', '137']}; {'id': '134', 'type': 'comparison_operator', 'children': ['135', '136'], 'value': 'in'}; {'id': '135', 'type': 'string', 'children': [], 'value': "'emitter'"}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '137', 'type': 'block', 'children': ['138', '144']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'assignment', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '141', 'type': 'subscript', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '143', 'type': 'string', 'children': [], 'value': "'emitter'"}; {'id': '144', 'type': 'if_statement', 'children': ['145', '153', '185', '204']}; {'id': '145', 'type': 'call', 'children': ['146', '151']}; {'id': '146', 'type': 'attribute', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '151', 'type': 'argument_list', 'children': ['152']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '153', 'type': 'block', 'children': ['154', '165', '176']}; {'id': '154', 'type': 'expression_statement', 'children': ['155']}; {'id': '155', 'type': 'assignment', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'var'}; {'id': '157', 'type': 'call', 'children': ['158', '163']}; {'id': '158', 'type': 'attribute', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'get_environment_var'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '165', 'type': 'if_statement', 'children': ['166', '168']}; {'id': '166', 'type': 'not_operator', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'var'}; {'id': '168', 'type': 'block', 'children': ['169']}; {'id': '169', 'type': 'raise_statement', 'children': ['170']}; {'id': '170', 'type': 'call', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'UserError'}; {'id': '172', 'type': 'argument_list', 'children': ['173']}; {'id': '173', 'type': 'binary_operator', 'children': ['174', '175'], 'value': '%'}; {'id': '174', 'type': 'string', 'children': [], 'value': '"Supplied emitter \'%s\' does not appear to refer to an Environment variable"'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'assignment', 'children': ['178', '181']}; {'id': '178', 'type': 'subscript', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '180', 'type': 'string', 'children': [], 'value': "'emitter'"}; {'id': '181', 'type': 'call', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'EmitterProxy'}; {'id': '183', 'type': 'argument_list', 'children': ['184']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'var'}; {'id': '185', 'type': 'elif_clause', 'children': ['186', '194']}; {'id': '186', 'type': 'call', 'children': ['187', '192']}; {'id': '187', 'type': 'attribute', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'is_Dict'}; {'id': '192', 'type': 'argument_list', 'children': ['193']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '194', 'type': 'block', 'children': ['195']}; {'id': '195', 'type': 'expression_statement', 'children': ['196']}; {'id': '196', 'type': 'assignment', 'children': ['197', '200']}; {'id': '197', 'type': 'subscript', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '199', 'type': 'string', 'children': [], 'value': "'emitter'"}; {'id': '200', 'type': 'call', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'DictEmitter'}; {'id': '202', 'type': 'argument_list', 'children': ['203']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '204', 'type': 'elif_clause', 'children': ['205', '213']}; {'id': '205', 'type': 'call', 'children': ['206', '211']}; {'id': '206', 'type': 'attribute', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'is_List'}; {'id': '211', 'type': 'argument_list', 'children': ['212']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '213', 'type': 'block', 'children': ['214']}; {'id': '214', 'type': 'expression_statement', 'children': ['215']}; {'id': '215', 'type': 'assignment', 'children': ['216', '219']}; {'id': '216', 'type': 'subscript', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '218', 'type': 'string', 'children': [], 'value': "'emitter'"}; {'id': '219', 'type': 'call', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'ListEmitter'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '223', 'type': 'expression_statement', 'children': ['224']}; {'id': '224', 'type': 'assignment', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '226', 'type': 'call', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'BuilderBase'}; {'id': '228', 'type': 'argument_list', 'children': ['229']}; {'id': '229', 'type': 'dictionary_splat', 'children': ['230']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'kw'}; {'id': '231', 'type': 'if_statement', 'children': ['232', '236']}; {'id': '232', 'type': 'not_operator', 'children': ['233']}; {'id': '233', 'type': 'comparison_operator', 'children': ['234', '235'], 'value': 'is'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'composite'}; {'id': '235', 'type': 'None', 'children': []}; {'id': '236', 'type': 'block', 'children': ['237']}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '240', 'type': 'call', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'CompositeBuilder'}; {'id': '242', 'type': 'argument_list', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'composite'}; {'id': '245', 'type': 'return_statement', 'children': ['246']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'result'}
A factory for builder objects.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_update_pot_file'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '7', 'type': 'block', 'children': ['8', '11', '14', '18', '27', '37', '45', '53', '64', '81', '91', '166', '183', '193', '200', '205', '211', '312']}; {'id': '8', 'type': 'import_statement', 'children': ['9']}; {'id': '9', 'type': 'dotted_name', 'children': ['10']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '11', 'type': 'import_statement', 'children': ['12']}; {'id': '12', 'type': 'dotted_name', 'children': ['13']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '14', 'type': 'import_statement', 'children': ['15']}; {'id': '15', 'type': 'dotted_name', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'nop'}; {'id': '21', 'type': 'lambda', 'children': ['22', '26']}; {'id': '22', 'type': 'lambda_parameters', 'children': ['23', '24', '25']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '26', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'save_cwd'}; {'id': '30', 'type': 'call', 'children': ['31', '36']}; {'id': '31', 'type': 'attribute', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'fs'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'getcwd'}; {'id': '36', 'type': 'argument_list', 'children': []}; {'id': '37', 'type': 'expression_statement', 'children': ['38']}; {'id': '38', 'type': 'assignment', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'save_os_cwd'}; {'id': '40', 'type': 'call', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'getcwd'}; {'id': '44', 'type': 'argument_list', 'children': []}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'assignment', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '48', 'type': 'attribute', 'children': ['49', '52']}; {'id': '49', 'type': 'subscript', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '51', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'dir'}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'chdir_str'}; {'id': '56', 'type': 'call', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '58', 'type': 'argument_list', 'children': ['59']}; {'id': '59', 'type': 'call', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'get_abspath'}; {'id': '63', 'type': 'argument_list', 'children': []}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'call', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'Execute'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'call', 'children': ['71', '76']}; {'id': '71', 'type': 'attribute', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '76', 'type': 'argument_list', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'nop'}; {'id': '78', 'type': 'binary_operator', 'children': ['79', '80'], 'value': '+'}; {'id': '79', 'type': 'string', 'children': [], 'value': '"Entering "'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'chdir_str'}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'call', 'children': ['83', '88']}; {'id': '83', 'type': 'attribute', 'children': ['84', '87']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'fs'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '88', 'type': 'argument_list', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '90', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '91', 'type': 'try_statement', 'children': ['92', '129']}; {'id': '92', 'type': 'block', 'children': ['93', '101', '117']}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '96', 'type': 'call', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': '_CmdRunner'}; {'id': '98', 'type': 'argument_list', 'children': ['99', '100']}; {'id': '99', 'type': 'string', 'children': [], 'value': "'$XGETTEXTCOM'"}; {'id': '100', 'type': 'string', 'children': [], 'value': "'$XGETTEXTCOMSTR'"}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '104', 'type': 'call', 'children': ['105', '110']}; {'id': '105', 'type': 'attribute', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '110', 'type': 'argument_list', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '112', 'type': 'keyword_argument', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'strfunction'}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'strfunction'}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '120', 'type': 'call', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '122', 'type': 'argument_list', 'children': ['123', '127', '128']}; {'id': '123', 'type': 'list', 'children': ['124'], 'value': '[target[0]]'}; {'id': '124', 'type': 'subscript', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '126', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '129', 'type': 'except_clause', 'children': ['130']}; {'id': '130', 'type': 'block', 'children': ['131', '148', '158', '165']}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'call', 'children': ['133', '136']}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'Execute'}; {'id': '136', 'type': 'argument_list', 'children': ['137']}; {'id': '137', 'type': 'call', 'children': ['138', '143']}; {'id': '138', 'type': 'attribute', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '143', 'type': 'argument_list', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'nop'}; {'id': '145', 'type': 'binary_operator', 'children': ['146', '147'], 'value': '+'}; {'id': '146', 'type': 'string', 'children': [], 'value': '"Leaving "'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'chdir_str'}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'call', 'children': ['150', '155']}; {'id': '150', 'type': 'attribute', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'fs'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '155', 'type': 'argument_list', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'save_cwd'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'call', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'save_os_cwd'}; {'id': '165', 'type': 'raise_statement', 'children': []}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'call', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'Execute'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'call', 'children': ['173', '178']}; {'id': '173', 'type': 'attribute', 'children': ['174', '177']}; {'id': '174', 'type': 'attribute', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '178', 'type': 'argument_list', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'nop'}; {'id': '180', 'type': 'binary_operator', 'children': ['181', '182'], 'value': '+'}; {'id': '181', 'type': 'string', 'children': [], 'value': '"Leaving "'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'chdir_str'}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'call', 'children': ['185', '190']}; {'id': '185', 'type': 'attribute', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'fs'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '190', 'type': 'argument_list', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'save_cwd'}; {'id': '192', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'call', 'children': ['195', '198']}; {'id': '195', 'type': 'attribute', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'chdir'}; {'id': '198', 'type': 'argument_list', 'children': ['199']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'save_os_cwd'}; {'id': '200', 'type': 'if_statement', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '202', 'type': 'block', 'children': ['203']}; {'id': '203', 'type': 'return_statement', 'children': ['204']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'status'}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'assignment', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'new_content'}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'cmd'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '211', 'type': 'if_statement', 'children': ['212', '214', '223']}; {'id': '212', 'type': 'not_operator', 'children': ['213']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'new_content'}; {'id': '214', 'type': 'block', 'children': ['215', '219']}; {'id': '215', 'type': 'expression_statement', 'children': ['216']}; {'id': '216', 'type': 'assignment', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '218', 'type': 'False', 'children': []}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'assignment', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'explain'}; {'id': '222', 'type': 'string', 'children': [], 'value': '"no internationalized messages encountered"'}; {'id': '223', 'type': 'else_clause', 'children': ['224']}; {'id': '224', 'type': 'block', 'children': ['225']}; {'id': '225', 'type': 'if_statement', 'children': ['226', '233', '302']}; {'id': '226', 'type': 'call', 'children': ['227', '232']}; {'id': '227', 'type': 'attribute', 'children': ['228', '231']}; {'id': '228', 'type': 'subscript', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '230', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '232', 'type': 'argument_list', 'children': []}; {'id': '233', 'type': 'block', 'children': ['234', '244', '256', '267', '278']}; {'id': '234', 'type': 'expression_statement', 'children': ['235']}; {'id': '235', 'type': 'assignment', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'old_content'}; {'id': '237', 'type': 'call', 'children': ['238', '243']}; {'id': '238', 'type': 'attribute', 'children': ['239', '242']}; {'id': '239', 'type': 'subscript', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '241', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'get_text_contents'}; {'id': '243', 'type': 'argument_list', 'children': []}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 're_cdate'}; {'id': '247', 'type': 'call', 'children': ['248', '251']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'compile'}; {'id': '251', 'type': 'argument_list', 'children': ['252', '253']}; {'id': '252', 'type': 'string', 'children': [], 'value': 'r\'^"POT-Creation-Date: .*"$[\\r\\n]?\''}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'M'}; {'id': '256', 'type': 'expression_statement', 'children': ['257']}; {'id': '257', 'type': 'assignment', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'old_content_nocdate'}; {'id': '259', 'type': 'call', 'children': ['260', '263']}; {'id': '260', 'type': 'attribute', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '263', 'type': 'argument_list', 'children': ['264', '265', '266']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 're_cdate'}; {'id': '265', 'type': 'string', 'children': [], 'value': '""'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'old_content'}; {'id': '267', 'type': 'expression_statement', 'children': ['268']}; {'id': '268', 'type': 'assignment', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'new_content_nocdate'}; {'id': '270', 'type': 'call', 'children': ['271', '274']}; {'id': '271', 'type': 'attribute', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '274', 'type': 'argument_list', 'children': ['275', '276', '277']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 're_cdate'}; {'id': '276', 'type': 'string', 'children': [], 'value': '""'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'new_content'}; {'id': '278', 'type': 'if_statement', 'children': ['279', '283', '292']}; {'id': '279', 'type': '()', 'children': ['280']}; {'id': '280', 'type': 'comparison_operator', 'children': ['281', '282'], 'value': '=='}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'old_content_nocdate'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'new_content_nocdate'}; {'id': '283', 'type': 'block', 'children': ['284', '288']}; {'id': '284', 'type': 'expression_statement', 'children': ['285']}; {'id': '285', 'type': 'assignment', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '287', 'type': 'False', 'children': []}; {'id': '288', 'type': 'expression_statement', 'children': ['289']}; {'id': '289', 'type': 'assignment', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'explain'}; {'id': '291', 'type': 'string', 'children': [], 'value': '"messages in file found to be up-to-date"'}; {'id': '292', 'type': 'else_clause', 'children': ['293']}; {'id': '293', 'type': 'block', 'children': ['294', '298']}; {'id': '294', 'type': 'expression_statement', 'children': ['295']}; {'id': '295', 'type': 'assignment', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '297', 'type': 'True', 'children': []}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'assignment', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'explain'}; {'id': '301', 'type': 'string', 'children': [], 'value': '"messages in file were outdated"'}; {'id': '302', 'type': 'else_clause', 'children': ['303']}; {'id': '303', 'type': 'block', 'children': ['304', '308']}; {'id': '304', 'type': 'expression_statement', 'children': ['305']}; {'id': '305', 'type': 'assignment', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '307', 'type': 'True', 'children': []}; {'id': '308', 'type': 'expression_statement', 'children': ['309']}; {'id': '309', 'type': 'assignment', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'explain'}; {'id': '311', 'type': 'string', 'children': [], 'value': '"new file"'}; {'id': '312', 'type': 'if_statement', 'children': ['313', '314', '378']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '314', 'type': 'block', 'children': ['315', '335', '350', '363', '370', '376']}; {'id': '315', 'type': 'expression_statement', 'children': ['316']}; {'id': '316', 'type': 'assignment', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '318', 'type': 'binary_operator', 'children': ['319', '334'], 'value': '+'}; {'id': '319', 'type': 'binary_operator', 'children': ['320', '333'], 'value': '+'}; {'id': '320', 'type': 'binary_operator', 'children': ['321', '332'], 'value': '+'}; {'id': '321', 'type': 'binary_operator', 'children': ['322', '323'], 'value': '+'}; {'id': '322', 'type': 'string', 'children': [], 'value': '"Writing "'}; {'id': '323', 'type': 'call', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '325', 'type': 'argument_list', 'children': ['326']}; {'id': '326', 'type': 'call', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '328', 'type': 'argument_list', 'children': ['329']}; {'id': '329', 'type': 'subscript', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '331', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '332', 'type': 'string', 'children': [], 'value': '" ("'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'explain'}; {'id': '334', 'type': 'string', 'children': [], 'value': '")"'}; {'id': '335', 'type': 'expression_statement', 'children': ['336']}; {'id': '336', 'type': 'call', 'children': ['337', '340']}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'Execute'}; {'id': '340', 'type': 'argument_list', 'children': ['341']}; {'id': '341', 'type': 'call', 'children': ['342', '347']}; {'id': '342', 'type': 'attribute', 'children': ['343', '346']}; {'id': '343', 'type': 'attribute', 'children': ['344', '345']}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '347', 'type': 'argument_list', 'children': ['348', '349']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'nop'}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '350', 'type': 'expression_statement', 'children': ['351']}; {'id': '351', 'type': 'assignment', 'children': ['352', '353']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '353', 'type': 'call', 'children': ['354', '355']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '355', 'type': 'argument_list', 'children': ['356', '362']}; {'id': '356', 'type': 'call', 'children': ['357', '358']}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '358', 'type': 'argument_list', 'children': ['359']}; {'id': '359', 'type': 'subscript', 'children': ['360', '361']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '361', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '362', 'type': 'string', 'children': [], 'value': '"w"'}; {'id': '363', 'type': 'expression_statement', 'children': ['364']}; {'id': '364', 'type': 'call', 'children': ['365', '368']}; {'id': '365', 'type': 'attribute', 'children': ['366', '367']}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '368', 'type': 'argument_list', 'children': ['369']}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'new_content'}; {'id': '370', 'type': 'expression_statement', 'children': ['371']}; {'id': '371', 'type': 'call', 'children': ['372', '375']}; {'id': '372', 'type': 'attribute', 'children': ['373', '374']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '375', 'type': 'argument_list', 'children': []}; {'id': '376', 'type': 'return_statement', 'children': ['377']}; {'id': '377', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '378', 'type': 'else_clause', 'children': ['379']}; {'id': '379', 'type': 'block', 'children': ['380', '400', '415']}; {'id': '380', 'type': 'expression_statement', 'children': ['381']}; {'id': '381', 'type': 'assignment', 'children': ['382', '383']}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '383', 'type': 'binary_operator', 'children': ['384', '399'], 'value': '+'}; {'id': '384', 'type': 'binary_operator', 'children': ['385', '398'], 'value': '+'}; {'id': '385', 'type': 'binary_operator', 'children': ['386', '397'], 'value': '+'}; {'id': '386', 'type': 'binary_operator', 'children': ['387', '388'], 'value': '+'}; {'id': '387', 'type': 'string', 'children': [], 'value': '"Not writing "'}; {'id': '388', 'type': 'call', 'children': ['389', '390']}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '390', 'type': 'argument_list', 'children': ['391']}; {'id': '391', 'type': 'call', 'children': ['392', '393']}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '393', 'type': 'argument_list', 'children': ['394']}; {'id': '394', 'type': 'subscript', 'children': ['395', '396']}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '396', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '397', 'type': 'string', 'children': [], 'value': '" ("'}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'explain'}; {'id': '399', 'type': 'string', 'children': [], 'value': '")"'}; {'id': '400', 'type': 'expression_statement', 'children': ['401']}; {'id': '401', 'type': 'call', 'children': ['402', '405']}; {'id': '402', 'type': 'attribute', 'children': ['403', '404']}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'Execute'}; {'id': '405', 'type': 'argument_list', 'children': ['406']}; {'id': '406', 'type': 'call', 'children': ['407', '412']}; {'id': '407', 'type': 'attribute', 'children': ['408', '411']}; {'id': '408', 'type': 'attribute', 'children': ['409', '410']}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '412', 'type': 'argument_list', 'children': ['413', '414']}; {'id': '413', 'type': 'identifier', 'children': [], 'value': 'nop'}; {'id': '414', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '415', 'type': 'return_statement', 'children': ['416']}; {'id': '416', 'type': 'integer', 'children': [], 'value': '0'}
Action function for `POTUpdate` builder
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'ERROR', 'children': ['2', '321']}; {'id': '2', 'type': 'function_definition', 'children': ['3', '4', '14', '211']}; {'id': '3', 'type': 'function_name', 'children': [], 'value': '_scan_xgettext_from_files'}; {'id': '4', 'type': 'parameters', 'children': ['5', '6', '7', '8', '11']}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '13', 'type': 'None', 'children': []}; {'id': '14', 'type': 'ERROR', 'children': ['15', '18', '22', '27', '34', '50', '72', '88', '99', '103', '167', '182', '183', '186', '187']}; {'id': '15', 'type': 'import_statement', 'children': ['16']}; {'id': '16', 'type': 'dotted_name', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '18', 'type': 'import_statement', 'children': ['19']}; {'id': '19', 'type': 'dotted_name', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '22', 'type': 'import_statement', 'children': ['23']}; {'id': '23', 'type': 'dotted_name', 'children': ['24', '25', '26']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'Node'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'FS'}; {'id': '27', 'type': 'if_statement', 'children': ['28', '31']}; {'id': '28', 'type': 'comparison_operator', 'children': ['29', '30'], 'value': 'is'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '30', 'type': 'None', 'children': []}; {'id': '31', 'type': 'block', 'children': ['32']}; {'id': '32', 'type': 'return_statement', 'children': ['33']}; {'id': '33', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '34', 'type': 'if_statement', 'children': ['35', '44']}; {'id': '35', 'type': 'not_operator', 'children': ['36']}; {'id': '36', 'type': 'call', 'children': ['37', '42']}; {'id': '37', 'type': 'attribute', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'is_List'}; {'id': '42', 'type': 'argument_list', 'children': ['43']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '44', 'type': 'block', 'children': ['45']}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'assignment', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '48', 'type': 'list', 'children': ['49'], 'value': '[files]'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '50', 'type': 'if_statement', 'children': ['51', '54']}; {'id': '51', 'type': 'comparison_operator', 'children': ['52', '53'], 'value': 'is'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '53', 'type': 'None', 'children': []}; {'id': '54', 'type': 'block', 'children': ['55']}; {'id': '55', 'type': 'if_statement', 'children': ['56', '59', '66']}; {'id': '56', 'type': 'comparison_operator', 'children': ['57', '58'], 'value': 'in'}; {'id': '57', 'type': 'string', 'children': [], 'value': "'XGETTEXTPATH'"}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '59', 'type': 'block', 'children': ['60']}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '63', 'type': 'subscript', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '65', 'type': 'string', 'children': [], 'value': "'XGETTEXTPATH'"}; {'id': '66', 'type': 'else_clause', 'children': ['67']}; {'id': '67', 'type': 'block', 'children': ['68']}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '71', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '72', 'type': 'if_statement', 'children': ['73', '82']}; {'id': '73', 'type': 'not_operator', 'children': ['74']}; {'id': '74', 'type': 'call', 'children': ['75', '80']}; {'id': '75', 'type': 'attribute', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'is_List'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '82', 'type': 'block', 'children': ['83']}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'assignment', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '86', 'type': 'list', 'children': ['87'], 'value': '[path]'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'assignment', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '91', 'type': 'call', 'children': ['92', '97']}; {'id': '92', 'type': 'attribute', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'flatten'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '102', 'type': 'tuple', 'children': []}; {'id': '103', 'type': 'for_statement', 'children': ['104', '105', '106']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '106', 'type': 'block', 'children': ['107', '160']}; {'id': '107', 'type': 'if_statement', 'children': ['108', '120']}; {'id': '108', 'type': 'not_operator', 'children': ['109']}; {'id': '109', 'type': 'call', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '111', 'type': 'argument_list', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '113', 'type': 'attribute', 'children': ['114', '119']}; {'id': '114', 'type': 'attribute', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'Node'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'FS'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'Base'}; {'id': '120', 'type': 'block', 'children': ['121', '146']}; {'id': '121', 'type': 'if_statement', 'children': ['122', '130']}; {'id': '122', 'type': 'call', 'children': ['123', '128']}; {'id': '123', 'type': 'attribute', 'children': ['124', '127']}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '130', 'type': 'block', 'children': ['131']}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '134', 'type': 'call', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'subst'}; {'id': '138', 'type': 'argument_list', 'children': ['139', '140', '143']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '140', 'type': 'keyword_argument', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '143', 'type': 'keyword_argument', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '146', 'type': 'expression_statement', 'children': ['147']}; {'id': '147', 'type': 'assignment', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '149', 'type': 'call', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'arg2nodes'}; {'id': '153', 'type': 'argument_list', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '155', 'type': 'attribute', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'fs'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'Dir'}; {'id': '160', 'type': 'expression_statement', 'children': ['161']}; {'id': '161', 'type': 'augmented_assignment', 'children': ['162', '163'], 'value': '+='}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '163', 'type': 'call', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '167', 'type': 'if_statement', 'children': ['168', '170']}; {'id': '168', 'type': 'not_operator', 'children': ['169']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '170', 'type': 'block', 'children': ['171']}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'assignment', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '174', 'type': 'tuple', 'children': ['175']}; {'id': '175', 'type': 'call', 'children': ['176', '181']}; {'id': '176', 'type': 'attribute', 'children': ['177', '180']}; {'id': '177', 'type': 'attribute', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'fs'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'getcwd'}; {'id': '181', 'type': 'argument_list', 'children': []}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 're_comment'}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'compile'}; {'id': '186', 'type': 'ERROR', 'children': []}; {'id': '187', 'type': 'keyword_argument', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 're_emptyln'}; {'id': '189', 'type': 'comparison_operator', 'children': ['190', '207', '210'], 'value': 'in'}; {'id': '190', 'type': 'call', 'children': ['191', '205']}; {'id': '191', 'type': 'attribute', 'children': ['192', '201', '204']}; {'id': '192', 'type': 'call', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'compile'}; {'id': '196', 'type': 'argument_list', 'children': ['197', '198']}; {'id': '197', 'type': 'string', 'children': [], 'value': "r'^[ \\t\\r]*$\\r?\\n?'"}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'M'}; {'id': '201', 'type': 'ERROR', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 're_trailws'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'compile'}; {'id': '205', 'type': 'argument_list', 'children': ['206']}; {'id': '206', 'type': 'string', 'children': [], 'value': "r'[ \\t\\r]+$'"}; {'id': '207', 'type': 'ERROR', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'for'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '211', 'type': 'block', 'children': ['212']}; {'id': '212', 'type': 'if_statement', 'children': ['213', '230']}; {'id': '213', 'type': 'boolean_operator', 'children': ['214', '225'], 'value': 'and'}; {'id': '214', 'type': 'call', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '216', 'type': 'argument_list', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '218', 'type': 'attribute', 'children': ['219', '224']}; {'id': '219', 'type': 'attribute', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'Node'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'FS'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'Base'}; {'id': '225', 'type': 'call', 'children': ['226', '229']}; {'id': '226', 'type': 'attribute', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'rexists'}; {'id': '229', 'type': 'argument_list', 'children': []}; {'id': '230', 'type': 'block', 'children': ['231', '239', '249', '259', '269', '277']}; {'id': '231', 'type': 'expression_statement', 'children': ['232']}; {'id': '232', 'type': 'assignment', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '234', 'type': 'call', 'children': ['235', '238']}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'get_text_contents'}; {'id': '238', 'type': 'argument_list', 'children': []}; {'id': '239', 'type': 'expression_statement', 'children': ['240']}; {'id': '240', 'type': 'assignment', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '242', 'type': 'call', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 're_comment'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '246', 'type': 'argument_list', 'children': ['247', '248']}; {'id': '247', 'type': 'string', 'children': [], 'value': '""'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '249', 'type': 'expression_statement', 'children': ['250']}; {'id': '250', 'type': 'assignment', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '252', 'type': 'call', 'children': ['253', '256']}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 're_emptyln'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '256', 'type': 'argument_list', 'children': ['257', '258']}; {'id': '257', 'type': 'string', 'children': [], 'value': '""'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'assignment', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '262', 'type': 'call', 'children': ['263', '266']}; {'id': '263', 'type': 'attribute', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 're_trailws'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '266', 'type': 'argument_list', 'children': ['267', '268']}; {'id': '267', 'type': 'string', 'children': [], 'value': '""'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '269', 'type': 'expression_statement', 'children': ['270']}; {'id': '270', 'type': 'assignment', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'depnames'}; {'id': '272', 'type': 'call', 'children': ['273', '276']}; {'id': '273', 'type': 'attribute', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'contents'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'splitlines'}; {'id': '276', 'type': 'argument_list', 'children': []}; {'id': '277', 'type': 'for_statement', 'children': ['278', '279', '280']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'depname'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'depnames'}; {'id': '280', 'type': 'block', 'children': ['281', '295', '313']}; {'id': '281', 'type': 'expression_statement', 'children': ['282']}; {'id': '282', 'type': 'assignment', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'depfile'}; {'id': '284', 'type': 'call', 'children': ['285', '292']}; {'id': '285', 'type': 'attribute', 'children': ['286', '291']}; {'id': '286', 'type': 'attribute', 'children': ['287', '290']}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'Node'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'FS'}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'find_file'}; {'id': '292', 'type': 'argument_list', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'depname'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '295', 'type': 'if_statement', 'children': ['296', '298']}; {'id': '296', 'type': 'not_operator', 'children': ['297']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'depfile'}; {'id': '298', 'type': 'block', 'children': ['299']}; {'id': '299', 'type': 'expression_statement', 'children': ['300']}; {'id': '300', 'type': 'assignment', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'depfile'}; {'id': '302', 'type': 'call', 'children': ['303', '306']}; {'id': '303', 'type': 'attribute', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'arg2nodes'}; {'id': '306', 'type': 'argument_list', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'depname'}; {'id': '308', 'type': 'attribute', 'children': ['309', '312']}; {'id': '309', 'type': 'subscript', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '311', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'File'}; {'id': '313', 'type': 'expression_statement', 'children': ['314']}; {'id': '314', 'type': 'call', 'children': ['315', '318']}; {'id': '315', 'type': 'attribute', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'Depends'}; {'id': '318', 'type': 'argument_list', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'depfile'}; {'id': '321', 'type': 'return_statement', 'children': ['322']}; {'id': '322', 'type': 'integer', 'children': [], 'value': '0'}
Parses `POTFILES.in`-like file and returns list of extracted file names.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'solutionEmitter'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '7', 'type': 'block', 'children': ['8', '21', '39', '48', '56', '326']}; {'id': '8', 'type': 'if_statement', 'children': ['9', '16']}; {'id': '9', 'type': 'comparison_operator', 'children': ['10', '13'], 'value': '=='}; {'id': '10', 'type': 'subscript', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '12', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '13', 'type': 'subscript', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '15', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '16', 'type': 'block', 'children': ['17']}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '20', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '26']}; {'id': '23', 'type': 'tuple_pattern', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'suff'}; {'id': '26', 'type': 'call', 'children': ['27', '32']}; {'id': '27', 'type': 'attribute', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'splitext'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'call', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '35', 'type': 'argument_list', 'children': ['36']}; {'id': '36', 'type': 'subscript', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '38', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'suff'}; {'id': '42', 'type': 'call', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'subst'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'string', 'children': [], 'value': "'$MSVSSOLUTIONSUFFIX'"}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '53']}; {'id': '50', 'type': 'subscript', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '52', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '53', 'type': 'binary_operator', 'children': ['54', '55'], 'value': '+'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'suff'}; {'id': '56', 'type': 'if_statement', 'children': ['57', '59']}; {'id': '57', 'type': 'not_operator', 'children': ['58']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '59', 'type': 'block', 'children': ['60', '64', '102', '198', '236', '299', '312']}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'sln_inputs:'"}; {'id': '64', 'type': 'if_statement', 'children': ['65', '68']}; {'id': '65', 'type': 'comparison_operator', 'children': ['66', '67'], 'value': 'in'}; {'id': '66', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '68', 'type': 'block', 'children': ['69']}; {'id': '69', 'type': 'if_statement', 'children': ['70', '80', '91']}; {'id': '70', 'type': 'call', 'children': ['71', '76']}; {'id': '71', 'type': 'attribute', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'subscript', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '79', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '80', 'type': 'block', 'children': ['81']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '84', 'type': 'binary_operator', 'children': ['85', '86'], 'value': '+'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '86', 'type': 'binary_operator', 'children': ['87', '88'], 'value': '%'}; {'id': '87', 'type': 'string', 'children': [], 'value': '\' "%s"\''}; {'id': '88', 'type': 'subscript', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '90', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '91', 'type': 'else_clause', 'children': ['92']}; {'id': '92', 'type': 'block', 'children': ['93']}; {'id': '93', 'type': 'raise_statement', 'children': ['94']}; {'id': '94', 'type': 'call', 'children': ['95', '100']}; {'id': '95', 'type': 'attribute', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'Errors'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'InternalError'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'string', 'children': [], 'value': '"name must be a string"'}; {'id': '102', 'type': 'if_statement', 'children': ['103', '106', '187']}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '105'], 'value': 'in'}; {'id': '104', 'type': 'string', 'children': [], 'value': "'variant'"}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '106', 'type': 'block', 'children': ['107']}; {'id': '107', 'type': 'if_statement', 'children': ['108', '118', '129', '176']}; {'id': '108', 'type': 'call', 'children': ['109', '114']}; {'id': '109', 'type': 'attribute', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'subscript', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '117', 'type': 'string', 'children': [], 'value': "'variant'"}; {'id': '118', 'type': 'block', 'children': ['119']}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '122', 'type': 'binary_operator', 'children': ['123', '124'], 'value': '+'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '124', 'type': 'binary_operator', 'children': ['125', '126'], 'value': '%'}; {'id': '125', 'type': 'string', 'children': [], 'value': '\' "%s"\''}; {'id': '126', 'type': 'subscript', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '128', 'type': 'string', 'children': [], 'value': "'variant'"}; {'id': '129', 'type': 'elif_clause', 'children': ['130', '140']}; {'id': '130', 'type': 'call', 'children': ['131', '136']}; {'id': '131', 'type': 'attribute', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'is_List'}; {'id': '136', 'type': 'argument_list', 'children': ['137']}; {'id': '137', 'type': 'subscript', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '139', 'type': 'string', 'children': [], 'value': "'variant'"}; {'id': '140', 'type': 'block', 'children': ['141']}; {'id': '141', 'type': 'for_statement', 'children': ['142', '143', '146']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'variant'}; {'id': '143', 'type': 'subscript', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '145', 'type': 'string', 'children': [], 'value': "'variant'"}; {'id': '146', 'type': 'block', 'children': ['147']}; {'id': '147', 'type': 'if_statement', 'children': ['148', '156', '165']}; {'id': '148', 'type': 'call', 'children': ['149', '154']}; {'id': '149', 'type': 'attribute', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '154', 'type': 'argument_list', 'children': ['155']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'variant'}; {'id': '156', 'type': 'block', 'children': ['157']}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'assignment', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '160', 'type': 'binary_operator', 'children': ['161', '162'], 'value': '+'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '162', 'type': 'binary_operator', 'children': ['163', '164'], 'value': '%'}; {'id': '163', 'type': 'string', 'children': [], 'value': '\' "%s"\''}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'variant'}; {'id': '165', 'type': 'else_clause', 'children': ['166']}; {'id': '166', 'type': 'block', 'children': ['167']}; {'id': '167', 'type': 'raise_statement', 'children': ['168']}; {'id': '168', 'type': 'call', 'children': ['169', '174']}; {'id': '169', 'type': 'attribute', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'Errors'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'InternalError'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'string', 'children': [], 'value': '"name must be a string or a list of strings"'}; {'id': '176', 'type': 'else_clause', 'children': ['177']}; {'id': '177', 'type': 'block', 'children': ['178']}; {'id': '178', 'type': 'raise_statement', 'children': ['179']}; {'id': '179', 'type': 'call', 'children': ['180', '185']}; {'id': '180', 'type': 'attribute', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'Errors'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'InternalError'}; {'id': '185', 'type': 'argument_list', 'children': ['186']}; {'id': '186', 'type': 'string', 'children': [], 'value': '"variant must be a string or a list of strings"'}; {'id': '187', 'type': 'else_clause', 'children': ['188']}; {'id': '188', 'type': 'block', 'children': ['189']}; {'id': '189', 'type': 'raise_statement', 'children': ['190']}; {'id': '190', 'type': 'call', 'children': ['191', '196']}; {'id': '191', 'type': 'attribute', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'Errors'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'InternalError'}; {'id': '196', 'type': 'argument_list', 'children': ['197']}; {'id': '197', 'type': 'string', 'children': [], 'value': '"variant must be specified"'}; {'id': '198', 'type': 'if_statement', 'children': ['199', '202']}; {'id': '199', 'type': 'comparison_operator', 'children': ['200', '201'], 'value': 'in'}; {'id': '200', 'type': 'string', 'children': [], 'value': "'slnguid'"}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '202', 'type': 'block', 'children': ['203']}; {'id': '203', 'type': 'if_statement', 'children': ['204', '214', '225']}; {'id': '204', 'type': 'call', 'children': ['205', '210']}; {'id': '205', 'type': 'attribute', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'subscript', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '213', 'type': 'string', 'children': [], 'value': "'slnguid'"}; {'id': '214', 'type': 'block', 'children': ['215']}; {'id': '215', 'type': 'expression_statement', 'children': ['216']}; {'id': '216', 'type': 'assignment', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '218', 'type': 'binary_operator', 'children': ['219', '220'], 'value': '+'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '220', 'type': 'binary_operator', 'children': ['221', '222'], 'value': '%'}; {'id': '221', 'type': 'string', 'children': [], 'value': '\' "%s"\''}; {'id': '222', 'type': 'subscript', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '224', 'type': 'string', 'children': [], 'value': "'slnguid'"}; {'id': '225', 'type': 'else_clause', 'children': ['226']}; {'id': '226', 'type': 'block', 'children': ['227']}; {'id': '227', 'type': 'raise_statement', 'children': ['228']}; {'id': '228', 'type': 'call', 'children': ['229', '234']}; {'id': '229', 'type': 'attribute', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'Errors'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'InternalError'}; {'id': '234', 'type': 'argument_list', 'children': ['235']}; {'id': '235', 'type': 'string', 'children': [], 'value': '"slnguid must be a string"'}; {'id': '236', 'type': 'if_statement', 'children': ['237', '240']}; {'id': '237', 'type': 'comparison_operator', 'children': ['238', '239'], 'value': 'in'}; {'id': '238', 'type': 'string', 'children': [], 'value': "'projects'"}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '240', 'type': 'block', 'children': ['241']}; {'id': '241', 'type': 'if_statement', 'children': ['242', '252', '263']}; {'id': '242', 'type': 'call', 'children': ['243', '248']}; {'id': '243', 'type': 'attribute', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '248', 'type': 'argument_list', 'children': ['249']}; {'id': '249', 'type': 'subscript', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '251', 'type': 'string', 'children': [], 'value': "'projects'"}; {'id': '252', 'type': 'block', 'children': ['253']}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '256', 'type': 'binary_operator', 'children': ['257', '258'], 'value': '+'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '258', 'type': 'binary_operator', 'children': ['259', '260'], 'value': '%'}; {'id': '259', 'type': 'string', 'children': [], 'value': '\' "%s"\''}; {'id': '260', 'type': 'subscript', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '262', 'type': 'string', 'children': [], 'value': "'projects'"}; {'id': '263', 'type': 'elif_clause', 'children': ['264', '274']}; {'id': '264', 'type': 'call', 'children': ['265', '270']}; {'id': '265', 'type': 'attribute', 'children': ['266', '269']}; {'id': '266', 'type': 'attribute', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'is_List'}; {'id': '270', 'type': 'argument_list', 'children': ['271']}; {'id': '271', 'type': 'subscript', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '273', 'type': 'string', 'children': [], 'value': "'projects'"}; {'id': '274', 'type': 'block', 'children': ['275']}; {'id': '275', 'type': 'for_statement', 'children': ['276', '277', '280']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '277', 'type': 'subscript', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '279', 'type': 'string', 'children': [], 'value': "'projects'"}; {'id': '280', 'type': 'block', 'children': ['281']}; {'id': '281', 'type': 'if_statement', 'children': ['282', '290']}; {'id': '282', 'type': 'call', 'children': ['283', '288']}; {'id': '283', 'type': 'attribute', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'is_String'}; {'id': '288', 'type': 'argument_list', 'children': ['289']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '290', 'type': 'block', 'children': ['291']}; {'id': '291', 'type': 'expression_statement', 'children': ['292']}; {'id': '292', 'type': 'assignment', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '294', 'type': 'binary_operator', 'children': ['295', '296'], 'value': '+'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '296', 'type': 'binary_operator', 'children': ['297', '298'], 'value': '%'}; {'id': '297', 'type': 'string', 'children': [], 'value': '\' "%s"\''}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '299', 'type': 'expression_statement', 'children': ['300']}; {'id': '300', 'type': 'assignment', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '302', 'type': 'binary_operator', 'children': ['303', '304'], 'value': '+'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '304', 'type': 'binary_operator', 'children': ['305', '306'], 'value': '%'}; {'id': '305', 'type': 'string', 'children': [], 'value': '\' "%s"\''}; {'id': '306', 'type': 'call', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '308', 'type': 'argument_list', 'children': ['309']}; {'id': '309', 'type': 'subscript', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '311', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '312', 'type': 'expression_statement', 'children': ['313']}; {'id': '313', 'type': 'assignment', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '315', 'type': 'list', 'children': ['316'], 'value': '[SCons.Node.Python.Value(source)]'}; {'id': '316', 'type': 'call', 'children': ['317', '324']}; {'id': '317', 'type': 'attribute', 'children': ['318', '323']}; {'id': '318', 'type': 'attribute', 'children': ['319', '322']}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'Node'}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'Python'}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'Value'}; {'id': '324', 'type': 'argument_list', 'children': ['325']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '326', 'type': 'return_statement', 'children': ['327']}; {'id': '327', 'type': 'tuple', 'children': ['328', '332']}; {'id': '328', 'type': 'list', 'children': ['329'], 'value': '[target[0]]'}; {'id': '329', 'type': 'subscript', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '331', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'source'}
Sets up the DSW dependencies.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'compile'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '6', 'type': 'block', 'children': ['7', '19', '31', '43', '56', '60', '76', '107', '122', '193']}; {'id': '7', 'type': 'function_definition', 'children': ['8', '9', '11']}; {'id': '8', 'type': 'function_name', 'children': [], 'value': 'is_international'}; {'id': '9', 'type': 'parameters', 'children': ['10']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '11', 'type': 'block', 'children': ['12']}; {'id': '12', 'type': 'return_statement', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '17']}; {'id': '14', 'type': 'attribute', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '19', 'type': 'function_definition', 'children': ['20', '21', '23']}; {'id': '20', 'type': 'function_name', 'children': [], 'value': 'get_country_code'}; {'id': '21', 'type': 'parameters', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '23', 'type': 'block', 'children': ['24']}; {'id': '24', 'type': 'return_statement', 'children': ['25']}; {'id': '25', 'type': 'subscript', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '27', 'type': 'slice', 'children': ['28', '30']}; {'id': '28', 'type': 'unary_operator', 'children': ['29'], 'value': '-'}; {'id': '29', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '30', 'type': 'colon', 'children': []}; {'id': '31', 'type': 'function_definition', 'children': ['32', '33', '35']}; {'id': '32', 'type': 'function_name', 'children': [], 'value': 'strip_country_code'}; {'id': '33', 'type': 'parameters', 'children': ['34']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '35', 'type': 'block', 'children': ['36']}; {'id': '36', 'type': 'return_statement', 'children': ['37']}; {'id': '37', 'type': 'subscript', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '39', 'type': 'slice', 'children': ['40', '41']}; {'id': '40', 'type': 'colon', 'children': []}; {'id': '41', 'type': 'unary_operator', 'children': ['42'], 'value': '-'}; {'id': '42', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'replacements'}; {'id': '46', 'type': 'call', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '48', 'type': 'argument_list', 'children': ['49']}; {'id': '49', 'type': 'call', 'children': ['50', '55']}; {'id': '50', 'type': 'attribute', 'children': ['51', '54']}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'tagset'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '55', 'type': 'argument_list', 'children': []}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '59', 'type': 'string', 'children': [], 'value': '""'}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'domestic'}; {'id': '63', 'type': 'list_comprehension', 'children': ['64', '65', '68']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '65', 'type': 'for_in_clause', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'replacements'}; {'id': '68', 'type': 'if_clause', 'children': ['69']}; {'id': '69', 'type': 'not_operator', 'children': ['70']}; {'id': '70', 'type': 'call', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'is_international'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'subscript', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '75', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '76', 'type': 'for_statement', 'children': ['77', '80', '81']}; {'id': '77', 'type': 'pattern_list', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'replacement'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'domestic'}; {'id': '81', 'type': 'block', 'children': ['82']}; {'id': '82', 'type': 'try_statement', 'children': ['83', '94']}; {'id': '83', 'type': 'block', 'children': ['84']}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '87', 'type': 'binary_operator', 'children': ['88', '89'], 'value': '+'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '89', 'type': 'binary_operator', 'children': ['90', '91'], 'value': '%'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'replacement'}; {'id': '91', 'type': 'subscript', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '94', 'type': 'except_clause', 'children': ['95', '99']}; {'id': '95', 'type': 'as_pattern', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '97', 'type': 'as_pattern_target', 'children': ['98']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '99', 'type': 'block', 'children': ['100']}; {'id': '100', 'type': 'if_statement', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'mandatory'}; {'id': '104', 'type': 'block', 'children': ['105']}; {'id': '105', 'type': 'raise_statement', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'assignment', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'international'}; {'id': '110', 'type': 'list_comprehension', 'children': ['111', '112', '115']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '112', 'type': 'for_in_clause', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'replacements'}; {'id': '115', 'type': 'if_clause', 'children': ['116']}; {'id': '116', 'type': 'call', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'is_international'}; {'id': '118', 'type': 'argument_list', 'children': ['119']}; {'id': '119', 'type': 'subscript', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '121', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '122', 'type': 'for_statement', 'children': ['123', '126', '127']}; {'id': '123', 'type': 'pattern_list', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'replacement'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'international'}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'try_statement', 'children': ['129', '180']}; {'id': '129', 'type': 'block', 'children': ['130', '151', '168']}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '133', 'type': 'list_comprehension', 'children': ['134', '135', '142']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '135', 'type': 'for_in_clause', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '137', 'type': 'call', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '141', 'type': 'argument_list', 'children': []}; {'id': '142', 'type': 'if_clause', 'children': ['143']}; {'id': '143', 'type': 'comparison_operator', 'children': ['144', '150'], 'value': '=='}; {'id': '144', 'type': 'call', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'strip_country_code'}; {'id': '146', 'type': 'argument_list', 'children': ['147']}; {'id': '147', 'type': 'subscript', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '149', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'assignment', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'int_values_for_key'}; {'id': '154', 'type': 'list_comprehension', 'children': ['155', '165']}; {'id': '155', 'type': 'tuple', 'children': ['156', '162']}; {'id': '156', 'type': 'call', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'get_country_code'}; {'id': '158', 'type': 'argument_list', 'children': ['159']}; {'id': '159', 'type': 'subscript', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '161', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '162', 'type': 'subscript', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '164', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '165', 'type': 'for_in_clause', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '168', 'type': 'for_statement', 'children': ['169', '170', '171']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'int_values_for_key'}; {'id': '171', 'type': 'block', 'children': ['172']}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '175', 'type': 'binary_operator', 'children': ['176', '177'], 'value': '+'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '177', 'type': 'binary_operator', 'children': ['178', '179'], 'value': '%'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'replacement'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '180', 'type': 'except_clause', 'children': ['181', '185']}; {'id': '181', 'type': 'as_pattern', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '183', 'type': 'as_pattern_target', 'children': ['184']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '185', 'type': 'block', 'children': ['186']}; {'id': '186', 'type': 'if_statement', 'children': ['187', '190']}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'mandatory'}; {'id': '190', 'type': 'block', 'children': ['191']}; {'id': '191', 'type': 'raise_statement', 'children': ['192']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '193', 'type': 'return_statement', 'children': ['194']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'str'}
Compiles the tagset and returns a str containing the result
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_check_ver_range'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'ver_range'}; {'id': '7', 'type': 'block', 'children': ['8', '16', '27', '51', '75', '133']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '15']}; {'id': '10', 'type': 'pattern_list', 'children': ['11', '12', '13', '14']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'lower_inc'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'upper_inc'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'ver_range'}; {'id': '16', 'type': 'if_statement', 'children': ['17', '24']}; {'id': '17', 'type': 'boolean_operator', 'children': ['18', '21'], 'value': 'and'}; {'id': '18', 'type': 'comparison_operator', 'children': ['19', '20'], 'value': 'is'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '20', 'type': 'None', 'children': []}; {'id': '21', 'type': 'comparison_operator', 'children': ['22', '23'], 'value': 'is'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '23', 'type': 'None', 'children': []}; {'id': '24', 'type': 'block', 'children': ['25']}; {'id': '25', 'type': 'return_statement', 'children': ['26']}; {'id': '26', 'type': 'True', 'children': []}; {'id': '27', 'type': 'if_statement', 'children': ['28', '31']}; {'id': '28', 'type': 'comparison_operator', 'children': ['29', '30'], 'value': 'is'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '30', 'type': 'None', 'children': []}; {'id': '31', 'type': 'block', 'children': ['32']}; {'id': '32', 'type': 'if_statement', 'children': ['33', '38', '41']}; {'id': '33', 'type': 'boolean_operator', 'children': ['34', '35'], 'value': 'and'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'lower_inc'}; {'id': '35', 'type': 'comparison_operator', 'children': ['36', '37'], 'value': '<'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '38', 'type': 'block', 'children': ['39']}; {'id': '39', 'type': 'return_statement', 'children': ['40']}; {'id': '40', 'type': 'False', 'children': []}; {'id': '41', 'type': 'elif_clause', 'children': ['42', '48']}; {'id': '42', 'type': 'boolean_operator', 'children': ['43', '45'], 'value': 'and'}; {'id': '43', 'type': 'not_operator', 'children': ['44']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'lower_inc'}; {'id': '45', 'type': 'comparison_operator', 'children': ['46', '47'], 'value': '<='}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'return_statement', 'children': ['50']}; {'id': '50', 'type': 'False', 'children': []}; {'id': '51', 'type': 'if_statement', 'children': ['52', '55']}; {'id': '52', 'type': 'comparison_operator', 'children': ['53', '54'], 'value': 'is'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '54', 'type': 'None', 'children': []}; {'id': '55', 'type': 'block', 'children': ['56']}; {'id': '56', 'type': 'if_statement', 'children': ['57', '62', '65']}; {'id': '57', 'type': 'boolean_operator', 'children': ['58', '59'], 'value': 'and'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'upper_inc'}; {'id': '59', 'type': 'comparison_operator', 'children': ['60', '61'], 'value': '>'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '62', 'type': 'block', 'children': ['63']}; {'id': '63', 'type': 'return_statement', 'children': ['64']}; {'id': '64', 'type': 'False', 'children': []}; {'id': '65', 'type': 'elif_clause', 'children': ['66', '72']}; {'id': '66', 'type': 'boolean_operator', 'children': ['67', '69'], 'value': 'and'}; {'id': '67', 'type': 'not_operator', 'children': ['68']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'upper_inc'}; {'id': '69', 'type': 'comparison_operator', 'children': ['70', '71'], 'value': '>='}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'return_statement', 'children': ['74']}; {'id': '74', 'type': 'False', 'children': []}; {'id': '75', 'type': 'if_statement', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'is_prerelease'}; {'id': '79', 'type': 'block', 'children': ['80', '103']}; {'id': '80', 'type': 'if_statement', 'children': ['81', '100']}; {'id': '81', 'type': 'boolean_operator', 'children': ['82', '91'], 'value': 'and'}; {'id': '82', 'type': '()', 'children': ['83']}; {'id': '83', 'type': 'boolean_operator', 'children': ['84', '87'], 'value': 'or'}; {'id': '84', 'type': 'comparison_operator', 'children': ['85', '86'], 'value': 'is'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '86', 'type': 'None', 'children': []}; {'id': '87', 'type': 'not_operator', 'children': ['88']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'is_prerelease'}; {'id': '91', 'type': '()', 'children': ['92']}; {'id': '92', 'type': 'boolean_operator', 'children': ['93', '96'], 'value': 'or'}; {'id': '93', 'type': 'comparison_operator', 'children': ['94', '95'], 'value': 'is'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '95', 'type': 'None', 'children': []}; {'id': '96', 'type': 'not_operator', 'children': ['97']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'is_prerelease'}; {'id': '100', 'type': 'block', 'children': ['101']}; {'id': '101', 'type': 'return_statement', 'children': ['102']}; {'id': '102', 'type': 'False', 'children': []}; {'id': '103', 'type': 'if_statement', 'children': ['104', '130']}; {'id': '104', 'type': 'boolean_operator', 'children': ['105', '117', '118'], 'value': 'and'}; {'id': '105', 'type': '()', 'children': ['106']}; {'id': '106', 'type': 'boolean_operator', 'children': ['107', '110'], 'value': 'and'}; {'id': '107', 'type': 'comparison_operator', 'children': ['108', '109'], 'value': 'is'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '109', 'type': 'None', 'children': []}; {'id': '110', 'type': 'comparison_operator', 'children': ['111', '114'], 'value': '!='}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'release_tuple'}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'release_tuple'}; {'id': '117', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '118', 'type': '()', 'children': ['119']}; {'id': '119', 'type': 'boolean_operator', 'children': ['120', '123'], 'value': 'and'}; {'id': '120', 'type': 'comparison_operator', 'children': ['121', '122'], 'value': 'is'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '122', 'type': 'None', 'children': []}; {'id': '123', 'type': 'comparison_operator', 'children': ['124', '127'], 'value': '!='}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'version'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'release_tuple'}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'release_tuple'}; {'id': '130', 'type': 'block', 'children': ['131']}; {'id': '131', 'type': 'return_statement', 'children': ['132']}; {'id': '132', 'type': 'False', 'children': []}; {'id': '133', 'type': 'return_statement', 'children': ['134']}; {'id': '134', 'type': 'True', 'children': []}
Check if version is included in ver_range
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'is_LaTeX'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'flist'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'abspath'}; {'id': '7', 'type': 'block', 'children': ['8', '17', '25', '49', '76', '91', '246']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'savedpath'}; {'id': '11', 'type': 'call', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'modify_env_var'}; {'id': '13', 'type': 'argument_list', 'children': ['14', '15', '16']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '15', 'type': 'string', 'children': [], 'value': "'TEXINPUTS'"}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'abspath'}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '20', 'type': 'subscript', 'children': ['21', '24']}; {'id': '21', 'type': 'subscript', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '23', 'type': 'string', 'children': [], 'value': "'ENV'"}; {'id': '24', 'type': 'string', 'children': [], 'value': "'TEXINPUTS'"}; {'id': '25', 'type': 'if_statement', 'children': ['26', '34', '36']}; {'id': '26', 'type': 'call', 'children': ['27', '32']}; {'id': '27', 'type': 'attribute', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'is_List'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '34', 'type': 'block', 'children': ['35']}; {'id': '35', 'type': 'pass_statement', 'children': []}; {'id': '36', 'type': 'else_clause', 'children': ['37']}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'pathsep'}; {'id': '49', 'type': 'if_statement', 'children': ['50', '53', '66']}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '52'], 'value': 'is'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'savedpath'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': '_null'}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'try_statement', 'children': ['55', '62']}; {'id': '55', 'type': 'block', 'children': ['56']}; {'id': '56', 'type': 'delete_statement', 'children': ['57']}; {'id': '57', 'type': 'subscript', 'children': ['58', '61']}; {'id': '58', 'type': 'subscript', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '60', 'type': 'string', 'children': [], 'value': "'ENV'"}; {'id': '61', 'type': 'string', 'children': [], 'value': "'TEXINPUTS'"}; {'id': '62', 'type': 'except_clause', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '64', 'type': 'block', 'children': ['65']}; {'id': '65', 'type': 'pass_statement', 'children': []}; {'id': '66', 'type': 'else_clause', 'children': ['67']}; {'id': '67', 'type': 'block', 'children': ['68']}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '75']}; {'id': '70', 'type': 'subscript', 'children': ['71', '74']}; {'id': '71', 'type': 'subscript', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '73', 'type': 'string', 'children': [], 'value': "'ENV'"}; {'id': '74', 'type': 'string', 'children': [], 'value': "'TEXINPUTS'"}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'savedpath'}; {'id': '76', 'type': 'if_statement', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'Verbose'}; {'id': '78', 'type': 'block', 'children': ['79', '85']}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'call', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '82', 'type': 'argument_list', 'children': ['83', '84']}; {'id': '83', 'type': 'string', 'children': [], 'value': '"is_LaTeX search path "'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'call', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '88', 'type': 'argument_list', 'children': ['89', '90']}; {'id': '89', 'type': 'string', 'children': [], 'value': '"files to search :"'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'flist'}; {'id': '91', 'type': 'for_statement', 'children': ['92', '93', '94']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'flist'}; {'id': '94', 'type': 'block', 'children': ['95', '107', '115', '138', '151', '155', '167', '181', '234']}; {'id': '95', 'type': 'if_statement', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'Verbose'}; {'id': '97', 'type': 'block', 'children': ['98']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'call', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '101', 'type': 'argument_list', 'children': ['102', '103']}; {'id': '102', 'type': 'string', 'children': [], 'value': '" checking for Latex source "'}; {'id': '103', 'type': 'call', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '105', 'type': 'argument_list', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'assignment', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '110', 'type': 'call', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'get_text_contents'}; {'id': '114', 'type': 'argument_list', 'children': []}; {'id': '115', 'type': 'if_statement', 'children': ['116', '122']}; {'id': '116', 'type': 'call', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'LaTeX_re'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'search'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '122', 'type': 'block', 'children': ['123', '136']}; {'id': '123', 'type': 'if_statement', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'Verbose'}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'call', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'binary_operator', 'children': ['131', '132'], 'value': '%'}; {'id': '131', 'type': 'string', 'children': [], 'value': '"file %s is a LaTeX file"'}; {'id': '132', 'type': 'call', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '134', 'type': 'argument_list', 'children': ['135']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '136', 'type': 'return_statement', 'children': ['137']}; {'id': '137', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '138', 'type': 'if_statement', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'Verbose'}; {'id': '140', 'type': 'block', 'children': ['141']}; {'id': '141', 'type': 'expression_statement', 'children': ['142']}; {'id': '142', 'type': 'call', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '144', 'type': 'argument_list', 'children': ['145']}; {'id': '145', 'type': 'binary_operator', 'children': ['146', '147'], 'value': '%'}; {'id': '146', 'type': 'string', 'children': [], 'value': '"file %s is not a LaTeX file"'}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '151', 'type': 'expression_statement', 'children': ['152']}; {'id': '152', 'type': 'assignment', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'inc_files'}; {'id': '154', 'type': 'list', 'children': [], 'value': '[ ]'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'call', 'children': ['157', '160']}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'inc_files'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '165']}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'include_re'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'findall'}; {'id': '165', 'type': 'argument_list', 'children': ['166']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'content'}; {'id': '167', 'type': 'if_statement', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'Verbose'}; {'id': '169', 'type': 'block', 'children': ['170']}; {'id': '170', 'type': 'expression_statement', 'children': ['171']}; {'id': '171', 'type': 'call', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '173', 'type': 'argument_list', 'children': ['174', '180']}; {'id': '174', 'type': 'binary_operator', 'children': ['175', '176'], 'value': '%'}; {'id': '175', 'type': 'string', 'children': [], 'value': '"files included by \'%s\': "'}; {'id': '176', 'type': 'call', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '178', 'type': 'argument_list', 'children': ['179']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'inc_files'}; {'id': '181', 'type': 'for_statement', 'children': ['182', '183', '184']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'src'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'inc_files'}; {'id': '184', 'type': 'block', 'children': ['185', '201', '206', '215', '229']}; {'id': '185', 'type': 'expression_statement', 'children': ['186']}; {'id': '186', 'type': 'assignment', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'srcNode'}; {'id': '188', 'type': 'call', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'FindFile'}; {'id': '190', 'type': 'argument_list', 'children': ['191', '192', '196', '197', '198']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'src'}; {'id': '192', 'type': 'list', 'children': ['193', '194', '195'], 'value': "['.tex','.ltx','.latex']"}; {'id': '193', 'type': 'string', 'children': [], 'value': "'.tex'"}; {'id': '194', 'type': 'string', 'children': [], 'value': "'.ltx'"}; {'id': '195', 'type': 'string', 'children': [], 'value': "'.latex'"}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '198', 'type': 'keyword_argument', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'requireExt'}; {'id': '200', 'type': 'False', 'children': []}; {'id': '201', 'type': 'expression_statement', 'children': ['202']}; {'id': '202', 'type': 'assignment', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'fileList'}; {'id': '204', 'type': 'list', 'children': ['205'], 'value': '[srcNode,]'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'srcNode'}; {'id': '206', 'type': 'if_statement', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'Verbose'}; {'id': '208', 'type': 'block', 'children': ['209']}; {'id': '209', 'type': 'expression_statement', 'children': ['210']}; {'id': '210', 'type': 'call', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '212', 'type': 'argument_list', 'children': ['213', '214']}; {'id': '213', 'type': 'string', 'children': [], 'value': '"FindFile found "'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'srcNode'}; {'id': '215', 'type': 'if_statement', 'children': ['216', '219']}; {'id': '216', 'type': 'comparison_operator', 'children': ['217', '218'], 'value': 'is'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'srcNode'}; {'id': '218', 'type': 'None', 'children': []}; {'id': '219', 'type': 'block', 'children': ['220']}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'file_test'}; {'id': '223', 'type': 'call', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'is_LaTeX'}; {'id': '225', 'type': 'argument_list', 'children': ['226', '227', '228']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'fileList'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'abspath'}; {'id': '229', 'type': 'if_statement', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'file_test'}; {'id': '231', 'type': 'block', 'children': ['232']}; {'id': '232', 'type': 'return_statement', 'children': ['233']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'file_test'}; {'id': '234', 'type': 'if_statement', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'Verbose'}; {'id': '236', 'type': 'block', 'children': ['237']}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'call', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '240', 'type': 'argument_list', 'children': ['241', '242']}; {'id': '241', 'type': 'string', 'children': [], 'value': '" done scanning "'}; {'id': '242', 'type': 'call', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '244', 'type': 'argument_list', 'children': ['245']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '246', 'type': 'return_statement', 'children': ['247']}; {'id': '247', 'type': 'integer', 'children': [], 'value': '0'}
Scan a file list to decide if it's TeX- or LaTeX-flavored.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'generate'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '22', '30', '187', '219', '234', '274', '314', '322', '330', '343', '350', '357']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '9', 'type': 'attribute', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '17', 'type': 'attribute', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '22', 'type': 'expression_statement', 'children': ['23']}; {'id': '23', 'type': 'assignment', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'Builder'}; {'id': '25', 'type': 'attribute', 'children': ['26', '29']}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'Builder'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'Builder'}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'SetDefault'}; {'id': '35', 'type': 'argument_list', 'children': ['36', '42', '53', '64', '75', '86', '97', '100', '103', '109', '115', '121', '127', '130', '133', '136', '139', '142', '145', '148', '151', '154', '171', '175']}; {'id': '36', 'type': 'keyword_argument', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'QTDIR'}; {'id': '38', 'type': 'call', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': '_detect'}; {'id': '40', 'type': 'argument_list', 'children': ['41']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '42', 'type': 'keyword_argument', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'QT_BINPATH'}; {'id': '44', 'type': 'call', 'children': ['45', '50']}; {'id': '45', 'type': 'attribute', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '50', 'type': 'argument_list', 'children': ['51', '52']}; {'id': '51', 'type': 'string', 'children': [], 'value': "'$QTDIR'"}; {'id': '52', 'type': 'string', 'children': [], 'value': "'bin'"}; {'id': '53', 'type': 'keyword_argument', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'QT_CPPPATH'}; {'id': '55', 'type': 'call', 'children': ['56', '61']}; {'id': '56', 'type': 'attribute', 'children': ['57', '60']}; {'id': '57', 'type': 'attribute', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '61', 'type': 'argument_list', 'children': ['62', '63']}; {'id': '62', 'type': 'string', 'children': [], 'value': "'$QTDIR'"}; {'id': '63', 'type': 'string', 'children': [], 'value': "'include'"}; {'id': '64', 'type': 'keyword_argument', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'QT_LIBPATH'}; {'id': '66', 'type': 'call', 'children': ['67', '72']}; {'id': '67', 'type': 'attribute', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '72', 'type': 'argument_list', 'children': ['73', '74']}; {'id': '73', 'type': 'string', 'children': [], 'value': "'$QTDIR'"}; {'id': '74', 'type': 'string', 'children': [], 'value': "'lib'"}; {'id': '75', 'type': 'keyword_argument', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'QT_MOC'}; {'id': '77', 'type': 'call', 'children': ['78', '83']}; {'id': '78', 'type': 'attribute', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '83', 'type': 'argument_list', 'children': ['84', '85']}; {'id': '84', 'type': 'string', 'children': [], 'value': "'$QT_BINPATH'"}; {'id': '85', 'type': 'string', 'children': [], 'value': "'moc'"}; {'id': '86', 'type': 'keyword_argument', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'QT_UIC'}; {'id': '88', 'type': 'call', 'children': ['89', '94']}; {'id': '89', 'type': 'attribute', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '94', 'type': 'argument_list', 'children': ['95', '96']}; {'id': '95', 'type': 'string', 'children': [], 'value': "'$QT_BINPATH'"}; {'id': '96', 'type': 'string', 'children': [], 'value': "'uic'"}; {'id': '97', 'type': 'keyword_argument', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'QT_LIB'}; {'id': '99', 'type': 'string', 'children': [], 'value': "'qt'"}; {'id': '100', 'type': 'keyword_argument', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'QT_AUTOSCAN'}; {'id': '102', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '103', 'type': 'keyword_argument', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'QT_UICIMPLFLAGS'}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'string', 'children': [], 'value': "''"}; {'id': '109', 'type': 'keyword_argument', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'QT_UICDECLFLAGS'}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'string', 'children': [], 'value': "''"}; {'id': '115', 'type': 'keyword_argument', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'QT_MOCFROMHFLAGS'}; {'id': '117', 'type': 'call', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'string', 'children': [], 'value': "''"}; {'id': '121', 'type': 'keyword_argument', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'QT_MOCFROMCXXFLAGS'}; {'id': '123', 'type': 'call', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '125', 'type': 'argument_list', 'children': ['126']}; {'id': '126', 'type': 'string', 'children': [], 'value': "'-i'"}; {'id': '127', 'type': 'keyword_argument', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'QT_UICDECLPREFIX'}; {'id': '129', 'type': 'string', 'children': [], 'value': "''"}; {'id': '130', 'type': 'keyword_argument', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'QT_UICDECLSUFFIX'}; {'id': '132', 'type': 'string', 'children': [], 'value': "'.h'"}; {'id': '133', 'type': 'keyword_argument', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'QT_UICIMPLPREFIX'}; {'id': '135', 'type': 'string', 'children': [], 'value': "'uic_'"}; {'id': '136', 'type': 'keyword_argument', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'QT_UICIMPLSUFFIX'}; {'id': '138', 'type': 'string', 'children': [], 'value': "'$CXXFILESUFFIX'"}; {'id': '139', 'type': 'keyword_argument', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'QT_MOCHPREFIX'}; {'id': '141', 'type': 'string', 'children': [], 'value': "'moc_'"}; {'id': '142', 'type': 'keyword_argument', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'QT_MOCHSUFFIX'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'$CXXFILESUFFIX'"}; {'id': '145', 'type': 'keyword_argument', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'QT_MOCCXXPREFIX'}; {'id': '147', 'type': 'string', 'children': [], 'value': "''"}; {'id': '148', 'type': 'keyword_argument', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'QT_MOCCXXSUFFIX'}; {'id': '150', 'type': 'string', 'children': [], 'value': "'.moc'"}; {'id': '151', 'type': 'keyword_argument', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'QT_UISUFFIX'}; {'id': '153', 'type': 'string', 'children': [], 'value': "'.ui'"}; {'id': '154', 'type': 'keyword_argument', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'QT_UICCOM'}; {'id': '156', 'type': 'list', 'children': ['157', '161', '167'], 'value': "[\n CLVar('$QT_UIC $QT_UICDECLFLAGS -o ${TARGETS[0]} $SOURCE'),\n CLVar('$QT_UIC $QT_UICIMPLFLAGS -impl ${TARGETS[0].file} '\n '-o ${TARGETS[1]} $SOURCE'),\n CLVar('$QT_MOC $QT_MOCFROMHFLAGS -o ${TARGETS[2]} ${TARGETS[0]}')]"}; {'id': '157', 'type': 'call', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'string', 'children': [], 'value': "'$QT_UIC $QT_UICDECLFLAGS -o ${TARGETS[0]} $SOURCE'"}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'concatenated_string', 'children': ['165', '166']}; {'id': '165', 'type': 'string', 'children': [], 'value': "'$QT_UIC $QT_UICIMPLFLAGS -impl ${TARGETS[0].file} '"}; {'id': '166', 'type': 'string', 'children': [], 'value': "'-o ${TARGETS[1]} $SOURCE'"}; {'id': '167', 'type': 'call', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '169', 'type': 'argument_list', 'children': ['170']}; {'id': '170', 'type': 'string', 'children': [], 'value': "'$QT_MOC $QT_MOCFROMHFLAGS -o ${TARGETS[2]} ${TARGETS[0]}'"}; {'id': '171', 'type': 'keyword_argument', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'QT_MOCFROMHCOM'}; {'id': '173', 'type': '()', 'children': ['174']}; {'id': '174', 'type': 'string', 'children': [], 'value': "'$QT_MOC $QT_MOCFROMHFLAGS -o ${TARGETS[0]} $SOURCE'"}; {'id': '175', 'type': 'keyword_argument', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'QT_MOCFROMCXXCOM'}; {'id': '177', 'type': 'list', 'children': ['178', '182'], 'value': "[\n CLVar('$QT_MOC $QT_MOCFROMCXXFLAGS -o ${TARGETS[0]} $SOURCE'),\n Action(checkMocIncluded,None)]"}; {'id': '178', 'type': 'call', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'CLVar'}; {'id': '180', 'type': 'argument_list', 'children': ['181']}; {'id': '181', 'type': 'string', 'children': [], 'value': "'$QT_MOC $QT_MOCFROMCXXFLAGS -o ${TARGETS[0]} $SOURCE'"}; {'id': '182', 'type': 'call', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '184', 'type': 'argument_list', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'checkMocIncluded'}; {'id': '186', 'type': 'None', 'children': []}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'assignment', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'uicBld'}; {'id': '190', 'type': 'call', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'Builder'}; {'id': '192', 'type': 'argument_list', 'children': ['193', '204', '207', '210', '213', '216']}; {'id': '193', 'type': 'keyword_argument', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '195', 'type': 'call', 'children': ['196', '201']}; {'id': '196', 'type': 'attribute', 'children': ['197', '200']}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '201', 'type': 'argument_list', 'children': ['202', '203']}; {'id': '202', 'type': 'string', 'children': [], 'value': "'$QT_UICCOM'"}; {'id': '203', 'type': 'string', 'children': [], 'value': "'$QT_UICCOMSTR'"}; {'id': '204', 'type': 'keyword_argument', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'emitter'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'uicEmitter'}; {'id': '207', 'type': 'keyword_argument', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'src_suffix'}; {'id': '209', 'type': 'string', 'children': [], 'value': "'$QT_UISUFFIX'"}; {'id': '210', 'type': 'keyword_argument', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '212', 'type': 'string', 'children': [], 'value': "'$QT_UICDECLSUFFIX'"}; {'id': '213', 'type': 'keyword_argument', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '215', 'type': 'string', 'children': [], 'value': "'$QT_UICDECLPREFIX'"}; {'id': '216', 'type': 'keyword_argument', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'source_scanner'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'uicScanner'}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'assignment', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '222', 'type': 'call', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'Builder'}; {'id': '224', 'type': 'argument_list', 'children': ['225', '228', '231']}; {'id': '225', 'type': 'keyword_argument', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '227', 'type': 'dictionary', 'children': []}; {'id': '228', 'type': 'keyword_argument', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '230', 'type': 'dictionary', 'children': []}; {'id': '231', 'type': 'keyword_argument', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '233', 'type': 'dictionary', 'children': []}; {'id': '234', 'type': 'for_statement', 'children': ['235', '236', '237']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'header_extensions'}; {'id': '237', 'type': 'block', 'children': ['238', '250', '258', '266']}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'act'}; {'id': '241', 'type': 'call', 'children': ['242', '247']}; {'id': '242', 'type': 'attribute', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '247', 'type': 'argument_list', 'children': ['248', '249']}; {'id': '248', 'type': 'string', 'children': [], 'value': "'$QT_MOCFROMHCOM'"}; {'id': '249', 'type': 'string', 'children': [], 'value': "'$QT_MOCFROMHCOMSTR'"}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'call', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'add_action'}; {'id': '255', 'type': 'argument_list', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'act'}; {'id': '258', 'type': 'expression_statement', 'children': ['259']}; {'id': '259', 'type': 'assignment', 'children': ['260', '265']}; {'id': '260', 'type': 'subscript', 'children': ['261', '264']}; {'id': '261', 'type': 'attribute', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '265', 'type': 'string', 'children': [], 'value': "'$QT_MOCHPREFIX'"}; {'id': '266', 'type': 'expression_statement', 'children': ['267']}; {'id': '267', 'type': 'assignment', 'children': ['268', '273']}; {'id': '268', 'type': 'subscript', 'children': ['269', '272']}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'h'}; {'id': '273', 'type': 'string', 'children': [], 'value': "'$QT_MOCHSUFFIX'"}; {'id': '274', 'type': 'for_statement', 'children': ['275', '276', '277']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'cxx'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'cxx_suffixes'}; {'id': '277', 'type': 'block', 'children': ['278', '290', '298', '306']}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'assignment', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'act'}; {'id': '281', 'type': 'call', 'children': ['282', '287']}; {'id': '282', 'type': 'attribute', 'children': ['283', '286']}; {'id': '283', 'type': 'attribute', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'Action'}; {'id': '287', 'type': 'argument_list', 'children': ['288', '289']}; {'id': '288', 'type': 'string', 'children': [], 'value': "'$QT_MOCFROMCXXCOM'"}; {'id': '289', 'type': 'string', 'children': [], 'value': "'$QT_MOCFROMCXXCOMSTR'"}; {'id': '290', 'type': 'expression_statement', 'children': ['291']}; {'id': '291', 'type': 'call', 'children': ['292', '295']}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'add_action'}; {'id': '295', 'type': 'argument_list', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'cxx'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'act'}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'assignment', 'children': ['300', '305']}; {'id': '300', 'type': 'subscript', 'children': ['301', '304']}; {'id': '301', 'type': 'attribute', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'cxx'}; {'id': '305', 'type': 'string', 'children': [], 'value': "'$QT_MOCCXXPREFIX'"}; {'id': '306', 'type': 'expression_statement', 'children': ['307']}; {'id': '307', 'type': 'assignment', 'children': ['308', '313']}; {'id': '308', 'type': 'subscript', 'children': ['309', '312']}; {'id': '309', 'type': 'attribute', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'cxx'}; {'id': '313', 'type': 'string', 'children': [], 'value': "'$QT_MOCCXXSUFFIX'"}; {'id': '314', 'type': 'expression_statement', 'children': ['315']}; {'id': '315', 'type': 'assignment', 'children': ['316', '321']}; {'id': '316', 'type': 'subscript', 'children': ['317', '320']}; {'id': '317', 'type': 'subscript', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '319', 'type': 'string', 'children': [], 'value': "'BUILDERS'"}; {'id': '320', 'type': 'string', 'children': [], 'value': "'Uic'"}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'uicBld'}; {'id': '322', 'type': 'expression_statement', 'children': ['323']}; {'id': '323', 'type': 'assignment', 'children': ['324', '329']}; {'id': '324', 'type': 'subscript', 'children': ['325', '328']}; {'id': '325', 'type': 'subscript', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '327', 'type': 'string', 'children': [], 'value': "'BUILDERS'"}; {'id': '328', 'type': 'string', 'children': [], 'value': "'Moc'"}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'mocBld'}; {'id': '330', 'type': 'expression_statement', 'children': ['331']}; {'id': '331', 'type': 'assignment', 'children': ['332', '335']}; {'id': '332', 'type': 'pattern_list', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'static_obj'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'shared_obj'}; {'id': '335', 'type': 'call', 'children': ['336', '341']}; {'id': '336', 'type': 'attribute', 'children': ['337', '340']}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'Tool'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'createObjBuilders'}; {'id': '341', 'type': 'argument_list', 'children': ['342']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '343', 'type': 'expression_statement', 'children': ['344']}; {'id': '344', 'type': 'call', 'children': ['345', '348']}; {'id': '345', 'type': 'attribute', 'children': ['346', '347']}; {'id': '346', 'type': 'identifier', 'children': [], 'value': 'static_obj'}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'add_src_builder'}; {'id': '348', 'type': 'argument_list', 'children': ['349']}; {'id': '349', 'type': 'string', 'children': [], 'value': "'Uic'"}; {'id': '350', 'type': 'expression_statement', 'children': ['351']}; {'id': '351', 'type': 'call', 'children': ['352', '355']}; {'id': '352', 'type': 'attribute', 'children': ['353', '354']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'shared_obj'}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'add_src_builder'}; {'id': '355', 'type': 'argument_list', 'children': ['356']}; {'id': '356', 'type': 'string', 'children': [], 'value': "'Uic'"}; {'id': '357', 'type': 'expression_statement', 'children': ['358']}; {'id': '358', 'type': 'call', 'children': ['359', '362']}; {'id': '359', 'type': 'attribute', 'children': ['360', '361']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'AppendUnique'}; {'id': '362', 'type': 'argument_list', 'children': ['363', '367', '371', '375', '379', '383', '387']}; {'id': '363', 'type': 'keyword_argument', 'children': ['364', '365']}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'PROGEMITTER'}; {'id': '365', 'type': 'list', 'children': ['366'], 'value': '[AutomocStatic]'}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'AutomocStatic'}; {'id': '367', 'type': 'keyword_argument', 'children': ['368', '369']}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'SHLIBEMITTER'}; {'id': '369', 'type': 'list', 'children': ['370'], 'value': '[AutomocShared]'}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'AutomocShared'}; {'id': '371', 'type': 'keyword_argument', 'children': ['372', '373']}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'LDMODULEEMITTER'}; {'id': '373', 'type': 'list', 'children': ['374'], 'value': '[AutomocShared]'}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'AutomocShared'}; {'id': '375', 'type': 'keyword_argument', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'LIBEMITTER'}; {'id': '377', 'type': 'list', 'children': ['378'], 'value': '[AutomocStatic]'}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'AutomocStatic'}; {'id': '379', 'type': 'keyword_argument', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'CPPPATH'}; {'id': '381', 'type': 'list', 'children': ['382'], 'value': '["$QT_CPPPATH"]'}; {'id': '382', 'type': 'string', 'children': [], 'value': '"$QT_CPPPATH"'}; {'id': '383', 'type': 'keyword_argument', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'LIBPATH'}; {'id': '385', 'type': 'list', 'children': ['386'], 'value': '["$QT_LIBPATH"]'}; {'id': '386', 'type': 'string', 'children': [], 'value': '"$QT_LIBPATH"'}; {'id': '387', 'type': 'keyword_argument', 'children': ['388', '389']}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'LIBS'}; {'id': '389', 'type': 'list', 'children': ['390'], 'value': "['$QT_LIB']"}; {'id': '390', 'type': 'string', 'children': [], 'value': "'$QT_LIB'"}
Add Builders and construction variables for qt to an Environment.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_parse_resource_usage'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'action_dict'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'declarations'}; {'id': '7', 'type': 'block', 'children': ['8', '18', '36', '54', '58', '163', '187', '207', '227']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'raw_used'}; {'id': '11', 'type': 'call', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'action_dict'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '15', 'type': 'argument_list', 'children': ['16', '17']}; {'id': '16', 'type': 'string', 'children': [], 'value': "'use'"}; {'id': '17', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'assignment', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'opened'}; {'id': '21', 'type': 'list_comprehension', 'children': ['22', '27']}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '26', 'type': 'argument_list', 'children': []}; {'id': '27', 'type': 'for_in_clause', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'action_dict'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '33', 'type': 'argument_list', 'children': ['34', '35']}; {'id': '34', 'type': 'string', 'children': [], 'value': "'open_before'"}; {'id': '35', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'closed'}; {'id': '39', 'type': 'list_comprehension', 'children': ['40', '45']}; {'id': '40', 'type': 'call', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '44', 'type': 'argument_list', 'children': []}; {'id': '45', 'type': 'for_in_clause', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '47', 'type': 'call', 'children': ['48', '51']}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'action_dict'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '51', 'type': 'argument_list', 'children': ['52', '53']}; {'id': '52', 'type': 'string', 'children': [], 'value': "'close_after'"}; {'id': '53', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'used'}; {'id': '57', 'type': 'dictionary', 'children': []}; {'id': '58', 'type': 'for_statement', 'children': ['59', '60', '61']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'resource'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'raw_used'}; {'id': '61', 'type': 'block', 'children': ['62', '138', '157']}; {'id': '62', 'type': 'if_statement', 'children': ['63', '66', '124']}; {'id': '63', 'type': 'comparison_operator', 'children': ['64', '65'], 'value': 'in'}; {'id': '64', 'type': 'string', 'children': [], 'value': "'as'"}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'resource'}; {'id': '66', 'type': 'block', 'children': ['67', '79', '87', '95']}; {'id': '67', 'type': 'expression_statement', 'children': ['68']}; {'id': '68', 'type': 'assignment', 'children': ['69', '73']}; {'id': '69', 'type': 'pattern_list', 'children': ['70', '71', '72']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '73', 'type': 'call', 'children': ['74', '77']}; {'id': '74', 'type': 'attribute', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'resource'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'partition'}; {'id': '77', 'type': 'argument_list', 'children': ['78']}; {'id': '78', 'type': 'string', 'children': [], 'value': "'as'"}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'assignment', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '82', 'type': 'call', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '86', 'type': 'argument_list', 'children': []}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '94', 'type': 'argument_list', 'children': []}; {'id': '95', 'type': 'if_statement', 'children': ['96', '109']}; {'id': '96', 'type': 'boolean_operator', 'children': ['97', '103'], 'value': 'or'}; {'id': '97', 'type': 'comparison_operator', 'children': ['98', '102'], 'value': '=='}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '102', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '108'], 'value': '=='}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '108', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '109', 'type': 'block', 'children': ['110']}; {'id': '110', 'type': 'raise_statement', 'children': ['111']}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'RecipeFileInvalid'}; {'id': '113', 'type': 'argument_list', 'children': ['114', '115', '118', '121']}; {'id': '114', 'type': 'string', 'children': [], 'value': '"Resource usage specified in action with invalid name using \'as\' statement"'}; {'id': '115', 'type': 'keyword_argument', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '118', 'type': 'keyword_argument', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '121', 'type': 'keyword_argument', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'statement'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'resource'}; {'id': '124', 'type': 'else_clause', 'children': ['125']}; {'id': '125', 'type': 'block', 'children': ['126', '134']}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'assignment', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '129', 'type': 'call', 'children': ['130', '133']}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'resource'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '133', 'type': 'argument_list', 'children': []}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '138', 'type': 'if_statement', 'children': ['139', '142']}; {'id': '139', 'type': 'comparison_operator', 'children': ['140', '141'], 'value': 'in'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'used'}; {'id': '142', 'type': 'block', 'children': ['143']}; {'id': '143', 'type': 'raise_statement', 'children': ['144']}; {'id': '144', 'type': 'call', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'RecipeFileInvalid'}; {'id': '146', 'type': 'argument_list', 'children': ['147', '148', '151', '154']}; {'id': '147', 'type': 'string', 'children': [], 'value': '"Resource specified twice for action"'}; {'id': '148', 'type': 'keyword_argument', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'action_dict'}; {'id': '151', 'type': 'keyword_argument', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'resource'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '154', 'type': 'keyword_argument', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'used_resources'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'used'}; {'id': '157', 'type': 'expression_statement', 'children': ['158']}; {'id': '158', 'type': 'assignment', 'children': ['159', '162']}; {'id': '159', 'type': 'subscript', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'used'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'local_name'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'global_name'}; {'id': '163', 'type': 'for_statement', 'children': ['164', '165', '178']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '165', 'type': 'generator_expression', 'children': ['166', '167', '174']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '167', 'type': 'for_in_clause', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '169', 'type': 'call', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'used'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '173', 'type': 'argument_list', 'children': []}; {'id': '174', 'type': 'if_clause', 'children': ['175']}; {'id': '175', 'type': 'comparison_operator', 'children': ['176', '177'], 'value': 'not'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'declarations'}; {'id': '178', 'type': 'block', 'children': ['179']}; {'id': '179', 'type': 'raise_statement', 'children': ['180']}; {'id': '180', 'type': 'call', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'RecipeFileInvalid'}; {'id': '182', 'type': 'argument_list', 'children': ['183', '184']}; {'id': '183', 'type': 'string', 'children': [], 'value': '"Action makes use of non-declared shared resource"'}; {'id': '184', 'type': 'keyword_argument', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '187', 'type': 'for_statement', 'children': ['188', '189', '198']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '189', 'type': 'generator_expression', 'children': ['190', '191', '194']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '191', 'type': 'for_in_clause', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'opened'}; {'id': '194', 'type': 'if_clause', 'children': ['195']}; {'id': '195', 'type': 'comparison_operator', 'children': ['196', '197'], 'value': 'not'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'declarations'}; {'id': '198', 'type': 'block', 'children': ['199']}; {'id': '199', 'type': 'raise_statement', 'children': ['200']}; {'id': '200', 'type': 'call', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'RecipeFileInvalid'}; {'id': '202', 'type': 'argument_list', 'children': ['203', '204']}; {'id': '203', 'type': 'string', 'children': [], 'value': '"Action specified a non-declared shared resource in open_before"'}; {'id': '204', 'type': 'keyword_argument', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '207', 'type': 'for_statement', 'children': ['208', '209', '218']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '209', 'type': 'generator_expression', 'children': ['210', '211', '214']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '211', 'type': 'for_in_clause', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'closed'}; {'id': '214', 'type': 'if_clause', 'children': ['215']}; {'id': '215', 'type': 'comparison_operator', 'children': ['216', '217'], 'value': 'not'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'declarations'}; {'id': '218', 'type': 'block', 'children': ['219']}; {'id': '219', 'type': 'raise_statement', 'children': ['220']}; {'id': '220', 'type': 'call', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'RecipeFileInvalid'}; {'id': '222', 'type': 'argument_list', 'children': ['223', '224']}; {'id': '223', 'type': 'string', 'children': [], 'value': '"Action specified a non-declared shared resource in close_after"'}; {'id': '224', 'type': 'keyword_argument', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '227', 'type': 'return_statement', 'children': ['228']}; {'id': '228', 'type': 'call', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'ResourceUsage'}; {'id': '230', 'type': 'argument_list', 'children': ['231', '232', '233']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'used'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'opened'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'closed'}
Parse out what resources are used, opened and closed in an action step.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_dllEmitter'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '8', 'type': 'block', 'children': ['9', '20', '24', '28', '43', '53', '75', '84', '124', '145', '188', '231', '276', '331']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'call', 'children': ['11', '18']}; {'id': '11', 'type': 'attribute', 'children': ['12', '17']}; {'id': '12', 'type': 'attribute', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'Tool'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'msvc'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'validate_vars'}; {'id': '18', 'type': 'argument_list', 'children': ['19']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'extratargets'}; {'id': '23', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'assignment', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'extrasources'}; {'id': '27', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'dll'}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'FindIxes'}; {'id': '35', 'type': 'argument_list', 'children': ['36', '37', '40']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '37', 'type': 'binary_operator', 'children': ['38', '39'], 'value': '%'}; {'id': '38', 'type': 'string', 'children': [], 'value': "'%sPREFIX'"}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '40', 'type': 'binary_operator', 'children': ['41', '42'], 'value': '%'}; {'id': '41', 'type': 'string', 'children': [], 'value': "'%sSUFFIX'"}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'no_import_lib'}; {'id': '46', 'type': 'call', 'children': ['47', '50']}; {'id': '47', 'type': 'attribute', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '50', 'type': 'argument_list', 'children': ['51', '52']}; {'id': '51', 'type': 'string', 'children': [], 'value': "'no_import_lib'"}; {'id': '52', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '53', 'type': 'if_statement', 'children': ['54', '56']}; {'id': '54', 'type': 'not_operator', 'children': ['55']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'dll'}; {'id': '56', 'type': 'block', 'children': ['57']}; {'id': '57', 'type': 'raise_statement', 'children': ['58']}; {'id': '58', 'type': 'call', 'children': ['59', '64']}; {'id': '59', 'type': 'attribute', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'Errors'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'UserError'}; {'id': '64', 'type': 'argument_list', 'children': ['65']}; {'id': '65', 'type': 'binary_operator', 'children': ['66', '67'], 'value': '%'}; {'id': '66', 'type': 'string', 'children': [], 'value': "'A shared library should have exactly one target with the suffix: %s'"}; {'id': '67', 'type': 'call', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'subst'}; {'id': '71', 'type': 'argument_list', 'children': ['72']}; {'id': '72', 'type': 'binary_operator', 'children': ['73', '74'], 'value': '%'}; {'id': '73', 'type': 'string', 'children': [], 'value': "'$%sSUFFIX'"}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'insert_def'}; {'id': '78', 'type': 'call', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'subst'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'string', 'children': [], 'value': '"$WINDOWS_INSERT_DEF"'}; {'id': '84', 'type': 'if_statement', 'children': ['85', '103']}; {'id': '85', 'type': 'boolean_operator', 'children': ['86', '93', '94'], 'value': 'and'}; {'id': '86', 'type': 'not_operator', 'children': ['87']}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '89'], 'value': 'in'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'insert_def'}; {'id': '89', 'type': 'list', 'children': ['90', '91', '92'], 'value': "['', '0', 0]"}; {'id': '90', 'type': 'string', 'children': [], 'value': "''"}; {'id': '91', 'type': 'string', 'children': [], 'value': "'0'"}; {'id': '92', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '93', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '94', 'type': 'not_operator', 'children': ['95']}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'FindIxes'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101', '102']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '101', 'type': 'string', 'children': [], 'value': '"WINDOWSDEFPREFIX"'}; {'id': '102', 'type': 'string', 'children': [], 'value': '"WINDOWSDEFSUFFIX"'}; {'id': '103', 'type': 'block', 'children': ['104']}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'call', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'extrasources'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'call', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'ReplaceIxes'}; {'id': '114', 'type': 'argument_list', 'children': ['115', '116', '119', '122', '123']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'dll'}; {'id': '116', 'type': 'binary_operator', 'children': ['117', '118'], 'value': '%'}; {'id': '117', 'type': 'string', 'children': [], 'value': "'%sPREFIX'"}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '119', 'type': 'binary_operator', 'children': ['120', '121'], 'value': '%'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'%sSUFFIX'"}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '122', 'type': 'string', 'children': [], 'value': '"WINDOWSDEFPREFIX"'}; {'id': '123', 'type': 'string', 'children': [], 'value': '"WINDOWSDEFSUFFIX"'}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'assignment', 'children': ['126', '129']}; {'id': '126', 'type': 'pattern_list', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'version_num'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'suite'}; {'id': '129', 'type': 'call', 'children': ['130', '137']}; {'id': '130', 'type': 'attribute', 'children': ['131', '136']}; {'id': '131', 'type': 'attribute', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'Tool'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'msvs'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'msvs_parse_version'}; {'id': '137', 'type': 'argument_list', 'children': ['138']}; {'id': '138', 'type': 'call', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '142', 'type': 'argument_list', 'children': ['143', '144']}; {'id': '143', 'type': 'string', 'children': [], 'value': "'MSVS_VERSION'"}; {'id': '144', 'type': 'string', 'children': [], 'value': "'6.0'"}; {'id': '145', 'type': 'if_statement', 'children': ['146', '167']}; {'id': '146', 'type': 'boolean_operator', 'children': ['147', '150', '151'], 'value': 'and'}; {'id': '147', 'type': 'comparison_operator', 'children': ['148', '149'], 'value': '>='}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'version_num'}; {'id': '149', 'type': 'float', 'children': [], 'value': '8.0'}; {'id': '150', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '151', 'type': '()', 'children': ['152']}; {'id': '152', 'type': 'boolean_operator', 'children': ['153', '160'], 'value': 'or'}; {'id': '153', 'type': 'call', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '157', 'type': 'argument_list', 'children': ['158', '159']}; {'id': '158', 'type': 'string', 'children': [], 'value': "'WINDOWS_INSERT_MANIFEST'"}; {'id': '159', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '164', 'type': 'argument_list', 'children': ['165', '166']}; {'id': '165', 'type': 'string', 'children': [], 'value': "'WINDOWS_EMBED_MANIFEST'"}; {'id': '166', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '167', 'type': 'block', 'children': ['168']}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'call', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'extratargets'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '173', 'type': 'argument_list', 'children': ['174']}; {'id': '174', 'type': 'call', 'children': ['175', '178']}; {'id': '175', 'type': 'attribute', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'ReplaceIxes'}; {'id': '178', 'type': 'argument_list', 'children': ['179', '180', '183', '186', '187']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'dll'}; {'id': '180', 'type': 'binary_operator', 'children': ['181', '182'], 'value': '%'}; {'id': '181', 'type': 'string', 'children': [], 'value': "'%sPREFIX'"}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '183', 'type': 'binary_operator', 'children': ['184', '185'], 'value': '%'}; {'id': '184', 'type': 'string', 'children': [], 'value': "'%sSUFFIX'"}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '186', 'type': 'string', 'children': [], 'value': '"WINDOWSSHLIBMANIFESTPREFIX"'}; {'id': '187', 'type': 'string', 'children': [], 'value': '"WINDOWSSHLIBMANIFESTSUFFIX"'}; {'id': '188', 'type': 'if_statement', 'children': ['189', '196']}; {'id': '189', 'type': 'boolean_operator', 'children': ['190', '193'], 'value': 'and'}; {'id': '190', 'type': 'comparison_operator', 'children': ['191', '192'], 'value': 'in'}; {'id': '191', 'type': 'string', 'children': [], 'value': "'PDB'"}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '193', 'type': 'subscript', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '195', 'type': 'string', 'children': [], 'value': "'PDB'"}; {'id': '196', 'type': 'block', 'children': ['197', '214', '221']}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'assignment', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'pdb'}; {'id': '200', 'type': 'subscript', 'children': ['201', '213']}; {'id': '201', 'type': 'call', 'children': ['202', '205']}; {'id': '202', 'type': 'attribute', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'arg2nodes'}; {'id': '205', 'type': 'argument_list', 'children': ['206', '207', '210']}; {'id': '206', 'type': 'string', 'children': [], 'value': "'$PDB'"}; {'id': '207', 'type': 'keyword_argument', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '210', 'type': 'keyword_argument', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '213', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '214', 'type': 'expression_statement', 'children': ['215']}; {'id': '215', 'type': 'call', 'children': ['216', '219']}; {'id': '216', 'type': 'attribute', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'extratargets'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '219', 'type': 'argument_list', 'children': ['220']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'pdb'}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '230']}; {'id': '223', 'type': 'attribute', 'children': ['224', '229']}; {'id': '224', 'type': 'attribute', 'children': ['225', '228']}; {'id': '225', 'type': 'subscript', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '227', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'attributes'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'pdb'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'pdb'}; {'id': '231', 'type': 'if_statement', 'children': ['232', '243']}; {'id': '232', 'type': 'boolean_operator', 'children': ['233', '236'], 'value': 'and'}; {'id': '233', 'type': 'comparison_operator', 'children': ['234', '235'], 'value': '>='}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'version_num'}; {'id': '235', 'type': 'float', 'children': [], 'value': '11.0'}; {'id': '236', 'type': 'call', 'children': ['237', '240']}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '240', 'type': 'argument_list', 'children': ['241', '242']}; {'id': '241', 'type': 'string', 'children': [], 'value': "'PCH'"}; {'id': '242', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '243', 'type': 'block', 'children': ['244', '264']}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'pchobj'}; {'id': '247', 'type': 'binary_operator', 'children': ['248', '263'], 'value': '+'}; {'id': '248', 'type': 'subscript', 'children': ['249', '262']}; {'id': '249', 'type': 'call', 'children': ['250', '255']}; {'id': '250', 'type': 'attribute', 'children': ['251', '254']}; {'id': '251', 'type': 'attribute', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'SCons'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'Util'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'splitext'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'call', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '258', 'type': 'argument_list', 'children': ['259']}; {'id': '259', 'type': 'subscript', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '261', 'type': 'string', 'children': [], 'value': "'PCH'"}; {'id': '262', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '263', 'type': 'string', 'children': [], 'value': "'.obj'"}; {'id': '264', 'type': 'if_statement', 'children': ['265', '268']}; {'id': '265', 'type': 'comparison_operator', 'children': ['266', '267'], 'value': 'not'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'pchobj'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'extrasources'}; {'id': '268', 'type': 'block', 'children': ['269']}; {'id': '269', 'type': 'expression_statement', 'children': ['270']}; {'id': '270', 'type': 'call', 'children': ['271', '274']}; {'id': '271', 'type': 'attribute', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'extrasources'}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '274', 'type': 'argument_list', 'children': ['275']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'pchobj'}; {'id': '276', 'type': 'if_statement', 'children': ['277', '290']}; {'id': '277', 'type': 'boolean_operator', 'children': ['278', '280', '281'], 'value': 'and'}; {'id': '278', 'type': 'not_operator', 'children': ['279']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'no_import_lib'}; {'id': '280', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '281', 'type': 'not_operator', 'children': ['282']}; {'id': '282', 'type': 'call', 'children': ['283', '286']}; {'id': '283', 'type': 'attribute', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'FindIxes'}; {'id': '286', 'type': 'argument_list', 'children': ['287', '288', '289']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '288', 'type': 'string', 'children': [], 'value': '"LIBPREFIX"'}; {'id': '289', 'type': 'string', 'children': [], 'value': '"LIBSUFFIX"'}; {'id': '290', 'type': 'block', 'children': ['291', '311']}; {'id': '291', 'type': 'expression_statement', 'children': ['292']}; {'id': '292', 'type': 'call', 'children': ['293', '296']}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'extratargets'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '296', 'type': 'argument_list', 'children': ['297']}; {'id': '297', 'type': 'call', 'children': ['298', '301']}; {'id': '298', 'type': 'attribute', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'ReplaceIxes'}; {'id': '301', 'type': 'argument_list', 'children': ['302', '303', '306', '309', '310']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'dll'}; {'id': '303', 'type': 'binary_operator', 'children': ['304', '305'], 'value': '%'}; {'id': '304', 'type': 'string', 'children': [], 'value': "'%sPREFIX'"}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '306', 'type': 'binary_operator', 'children': ['307', '308'], 'value': '%'}; {'id': '307', 'type': 'string', 'children': [], 'value': "'%sSUFFIX'"}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '309', 'type': 'string', 'children': [], 'value': '"LIBPREFIX"'}; {'id': '310', 'type': 'string', 'children': [], 'value': '"LIBSUFFIX"'}; {'id': '311', 'type': 'expression_statement', 'children': ['312']}; {'id': '312', 'type': 'call', 'children': ['313', '316']}; {'id': '313', 'type': 'attribute', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'extratargets'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '316', 'type': 'argument_list', 'children': ['317']}; {'id': '317', 'type': 'call', 'children': ['318', '321']}; {'id': '318', 'type': 'attribute', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'ReplaceIxes'}; {'id': '321', 'type': 'argument_list', 'children': ['322', '323', '326', '329', '330']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'dll'}; {'id': '323', 'type': 'binary_operator', 'children': ['324', '325'], 'value': '%'}; {'id': '324', 'type': 'string', 'children': [], 'value': "'%sPREFIX'"}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '326', 'type': 'binary_operator', 'children': ['327', '328'], 'value': '%'}; {'id': '327', 'type': 'string', 'children': [], 'value': "'%sSUFFIX'"}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'paramtp'}; {'id': '329', 'type': 'string', 'children': [], 'value': '"WINDOWSEXPPREFIX"'}; {'id': '330', 'type': 'string', 'children': [], 'value': '"WINDOWSEXPSUFFIX"'}; {'id': '331', 'type': 'return_statement', 'children': ['332']}; {'id': '332', 'type': 'tuple', 'children': ['333', '336']}; {'id': '333', 'type': 'binary_operator', 'children': ['334', '335'], 'value': '+'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'extratargets'}; {'id': '336', 'type': 'binary_operator', 'children': ['337', '338'], 'value': '+'}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'extrasources'}
Common implementation of dll emitter.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'fastqRead'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'fileHandleOrFile'}; {'id': '5', 'type': 'block', 'children': ['6', '13', '21', '208']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'fileHandle'}; {'id': '9', 'type': 'call', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': '_getFileHandle'}; {'id': '11', 'type': 'argument_list', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'fileHandleOrFile'}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '16', 'type': 'call', 'children': ['17', '20']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'fileHandle'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'readline'}; {'id': '20', 'type': 'argument_list', 'children': []}; {'id': '21', 'type': 'while_statement', 'children': ['22', '25']}; {'id': '22', 'type': 'comparison_operator', 'children': ['23', '24'], 'value': '!='}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '24', 'type': 'string', 'children': [], 'value': "''"}; {'id': '25', 'type': 'block', 'children': ['26', '200']}; {'id': '26', 'type': 'if_statement', 'children': ['27', '32']}; {'id': '27', 'type': 'comparison_operator', 'children': ['28', '31'], 'value': '=='}; {'id': '28', 'type': 'subscript', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '30', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '31', 'type': 'string', 'children': [], 'value': "'@'"}; {'id': '32', 'type': 'block', 'children': ['33', '43', '56', '64', '78', '98', '153', '194']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '36', 'type': 'subscript', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '38', 'type': 'slice', 'children': ['39', '40', '41']}; {'id': '39', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '40', 'type': 'colon', 'children': []}; {'id': '41', 'type': 'unary_operator', 'children': ['42'], 'value': '-'}; {'id': '42', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'seq'}; {'id': '46', 'type': 'subscript', 'children': ['47', '52']}; {'id': '47', 'type': 'call', 'children': ['48', '51']}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'fileHandle'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'readline'}; {'id': '51', 'type': 'argument_list', 'children': []}; {'id': '52', 'type': 'slice', 'children': ['53', '54']}; {'id': '53', 'type': 'colon', 'children': []}; {'id': '54', 'type': 'unary_operator', 'children': ['55'], 'value': '-'}; {'id': '55', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'plus'}; {'id': '59', 'type': 'call', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'fileHandle'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'readline'}; {'id': '63', 'type': 'argument_list', 'children': []}; {'id': '64', 'type': 'if_statement', 'children': ['65', '70']}; {'id': '65', 'type': 'comparison_operator', 'children': ['66', '69'], 'value': '!='}; {'id': '66', 'type': 'subscript', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'plus'}; {'id': '68', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '69', 'type': 'string', 'children': [], 'value': "'+'"}; {'id': '70', 'type': 'block', 'children': ['71']}; {'id': '71', 'type': 'raise_statement', 'children': ['72']}; {'id': '72', 'type': 'call', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'binary_operator', 'children': ['76', '77'], 'value': '%'}; {'id': '76', 'type': 'string', 'children': [], 'value': '"Got unexpected line: %s"'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'plus'}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'qualValues'}; {'id': '81', 'type': 'list_comprehension', 'children': ['82', '86']}; {'id': '82', 'type': 'call', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'ord'}; {'id': '84', 'type': 'argument_list', 'children': ['85']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '86', 'type': 'for_in_clause', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '88', 'type': 'subscript', 'children': ['89', '94']}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'fileHandle'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'readline'}; {'id': '93', 'type': 'argument_list', 'children': []}; {'id': '94', 'type': 'slice', 'children': ['95', '96']}; {'id': '95', 'type': 'colon', 'children': []}; {'id': '96', 'type': 'unary_operator', 'children': ['97'], 'value': '-'}; {'id': '97', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '98', 'type': 'if_statement', 'children': ['99', '108', '131']}; {'id': '99', 'type': 'comparison_operator', 'children': ['100', '104'], 'value': '!='}; {'id': '100', 'type': 'call', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'seq'}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'qualValues'}; {'id': '108', 'type': 'block', 'children': ['109', '127']}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'call', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'critical'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'binary_operator', 'children': ['116', '117'], 'value': '%'}; {'id': '116', 'type': 'string', 'children': [], 'value': '"Got a mismatch between the number of sequence characters (%s) and number of qual values (%s) for sequence: %s, ignoring returning None"'}; {'id': '117', 'type': 'tuple', 'children': ['118', '122', '126']}; {'id': '118', 'type': 'call', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'seq'}; {'id': '122', 'type': 'call', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'qualValues'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'assignment', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'qualValues'}; {'id': '130', 'type': 'None', 'children': []}; {'id': '131', 'type': 'else_clause', 'children': ['132']}; {'id': '132', 'type': 'block', 'children': ['133']}; {'id': '133', 'type': 'for_statement', 'children': ['134', '135', '136']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'qualValues'}; {'id': '136', 'type': 'block', 'children': ['137']}; {'id': '137', 'type': 'if_statement', 'children': ['138', '145']}; {'id': '138', 'type': 'boolean_operator', 'children': ['139', '142'], 'value': 'or'}; {'id': '139', 'type': 'comparison_operator', 'children': ['140', '141'], 'value': '<'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '141', 'type': 'integer', 'children': [], 'value': '33'}; {'id': '142', 'type': 'comparison_operator', 'children': ['143', '144'], 'value': '>'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '144', 'type': 'integer', 'children': [], 'value': '126'}; {'id': '145', 'type': 'block', 'children': ['146']}; {'id': '146', 'type': 'raise_statement', 'children': ['147']}; {'id': '147', 'type': 'call', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '149', 'type': 'argument_list', 'children': ['150']}; {'id': '150', 'type': 'binary_operator', 'children': ['151', '152'], 'value': '%'}; {'id': '151', 'type': 'string', 'children': [], 'value': '"Got a qual value out of range %s (range is 33 to 126)"'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '153', 'type': 'for_statement', 'children': ['154', '155', '156']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'seq'}; {'id': '156', 'type': 'block', 'children': ['157']}; {'id': '157', 'type': 'if_statement', 'children': ['158', '181']}; {'id': '158', 'type': 'not_operator', 'children': ['159']}; {'id': '159', 'type': '()', 'children': ['160']}; {'id': '160', 'type': 'boolean_operator', 'children': ['161', '178'], 'value': 'or'}; {'id': '161', 'type': 'boolean_operator', 'children': ['162', '170'], 'value': 'or'}; {'id': '162', 'type': '()', 'children': ['163']}; {'id': '163', 'type': 'boolean_operator', 'children': ['164', '167'], 'value': 'and'}; {'id': '164', 'type': 'comparison_operator', 'children': ['165', '166'], 'value': '>='}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '166', 'type': 'string', 'children': [], 'value': "'A'"}; {'id': '167', 'type': 'comparison_operator', 'children': ['168', '169'], 'value': '<='}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '169', 'type': 'string', 'children': [], 'value': "'Z'"}; {'id': '170', 'type': '()', 'children': ['171']}; {'id': '171', 'type': 'boolean_operator', 'children': ['172', '175'], 'value': 'and'}; {'id': '172', 'type': 'comparison_operator', 'children': ['173', '174'], 'value': '>='}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '174', 'type': 'string', 'children': [], 'value': "'a'"}; {'id': '175', 'type': 'comparison_operator', 'children': ['176', '177'], 'value': '<='}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '177', 'type': 'string', 'children': [], 'value': "'z'"}; {'id': '178', 'type': 'comparison_operator', 'children': ['179', '180'], 'value': '=='}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '180', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '181', 'type': 'block', 'children': ['182']}; {'id': '182', 'type': 'raise_statement', 'children': ['183']}; {'id': '183', 'type': 'call', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '185', 'type': 'argument_list', 'children': ['186']}; {'id': '186', 'type': 'binary_operator', 'children': ['187', '188'], 'value': '%'}; {'id': '187', 'type': 'string', 'children': [], 'value': '"Invalid FASTQ character, ASCII code = \\\'%d\\\', found in input sequence %s"'}; {'id': '188', 'type': 'tuple', 'children': ['189', '193']}; {'id': '189', 'type': 'call', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'ord'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '194', 'type': 'expression_statement', 'children': ['195']}; {'id': '195', 'type': 'yield', 'children': ['196']}; {'id': '196', 'type': 'expression_list', 'children': ['197', '198', '199']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'seq'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'qualValues'}; {'id': '200', 'type': 'expression_statement', 'children': ['201']}; {'id': '201', 'type': 'assignment', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '203', 'type': 'call', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'fileHandle'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'readline'}; {'id': '207', 'type': 'argument_list', 'children': []}; {'id': '208', 'type': 'if_statement', 'children': ['209', '216']}; {'id': '209', 'type': 'call', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '211', 'type': 'argument_list', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'fileHandleOrFile'}; {'id': '213', 'type': 'attribute', 'children': ['214', '215']}; {'id': '214', 'type': 'string', 'children': [], 'value': '""'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': '__class__'}; {'id': '216', 'type': 'block', 'children': ['217']}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'call', 'children': ['219', '222']}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'fileHandle'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '222', 'type': 'argument_list', 'children': []}
Reads a fastq file iteratively
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '15']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'newickTreeParser'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '9', '12']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'defaultDistance'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'DEFAULT_DISTANCE'}; {'id': '8', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '9', 'type': 'default_parameter', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'sortNonBinaryNodes'}; {'id': '11', 'type': 'False', 'children': []}; {'id': '12', 'type': 'default_parameter', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'reportUnaryNodes'}; {'id': '14', 'type': 'False', 'children': []}; {'id': '15', 'type': 'block', 'children': ['16', '26', '36', '46', '56', '66', '80', '92', '140', '187', '426']}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '19', 'type': 'call', 'children': ['20', '23']}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '23', 'type': 'argument_list', 'children': ['24', '25']}; {'id': '24', 'type': 'string', 'children': [], 'value': '"("'}; {'id': '25', 'type': 'string', 'children': [], 'value': '" ( "'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '33', 'type': 'argument_list', 'children': ['34', '35']}; {'id': '34', 'type': 'string', 'children': [], 'value': '")"'}; {'id': '35', 'type': 'string', 'children': [], 'value': '" ) "'}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '39', 'type': 'call', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '43', 'type': 'argument_list', 'children': ['44', '45']}; {'id': '44', 'type': 'string', 'children': [], 'value': '":"'}; {'id': '45', 'type': 'string', 'children': [], 'value': '" : "'}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '49', 'type': 'call', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '53', 'type': 'argument_list', 'children': ['54', '55']}; {'id': '54', 'type': 'string', 'children': [], 'value': '";"'}; {'id': '55', 'type': 'string', 'children': [], 'value': '""'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '59', 'type': 'call', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '63', 'type': 'argument_list', 'children': ['64', '65']}; {'id': '64', 'type': 'string', 'children': [], 'value': '","'}; {'id': '65', 'type': 'string', 'children': [], 'value': '" , "'}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '69', 'type': 'call', 'children': ['70', '78']}; {'id': '70', 'type': 'attribute', 'children': ['71', '77']}; {'id': '71', 'type': 'call', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'compile'}; {'id': '75', 'type': 'argument_list', 'children': ['76']}; {'id': '76', 'type': 'string', 'children': [], 'value': '"[\\s]*"'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '80', 'type': 'while_statement', 'children': ['81', '84']}; {'id': '81', 'type': 'comparison_operator', 'children': ['82', '83'], 'value': 'in'}; {'id': '82', 'type': 'string', 'children': [], 'value': '""'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '84', 'type': 'block', 'children': ['85']}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'call', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '90', 'type': 'argument_list', 'children': ['91']}; {'id': '91', 'type': 'string', 'children': [], 'value': '""'}; {'id': '92', 'type': 'function_definition', 'children': ['93', '94', '97']}; {'id': '93', 'type': 'function_name', 'children': [], 'value': 'fn'}; {'id': '94', 'type': 'parameters', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '97', 'type': 'block', 'children': ['98', '138']}; {'id': '98', 'type': 'if_statement', 'children': ['99', '107']}; {'id': '99', 'type': 'comparison_operator', 'children': ['100', '103'], 'value': '<'}; {'id': '100', 'type': 'subscript', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '102', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '103', 'type': 'call', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '105', 'type': 'argument_list', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '107', 'type': 'block', 'children': ['108']}; {'id': '108', 'type': 'if_statement', 'children': ['109', '116']}; {'id': '109', 'type': 'comparison_operator', 'children': ['110', '115'], 'value': '=='}; {'id': '110', 'type': 'subscript', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '112', 'type': 'subscript', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '114', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '115', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '116', 'type': 'block', 'children': ['117', '130', '136']}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '120', 'type': 'call', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'subscript', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '125', 'type': 'binary_operator', 'children': ['126', '129'], 'value': '+'}; {'id': '126', 'type': 'subscript', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '128', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '129', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'augmented_assignment', 'children': ['132', '135'], 'value': '+='}; {'id': '132', 'type': 'subscript', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '134', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '136', 'type': 'return_statement', 'children': ['137']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '138', 'type': 'return_statement', 'children': ['139']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'defaultDistance'}; {'id': '140', 'type': 'function_definition', 'children': ['141', '142', '145']}; {'id': '141', 'type': 'function_name', 'children': [], 'value': 'fn2'}; {'id': '142', 'type': 'parameters', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '145', 'type': 'block', 'children': ['146', '185']}; {'id': '146', 'type': 'if_statement', 'children': ['147', '155']}; {'id': '147', 'type': 'comparison_operator', 'children': ['148', '151'], 'value': '<'}; {'id': '148', 'type': 'subscript', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '150', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '151', 'type': 'call', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '153', 'type': 'argument_list', 'children': ['154']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '155', 'type': 'block', 'children': ['156', '164']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '159', 'type': 'subscript', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '161', 'type': 'subscript', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '163', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '164', 'type': 'if_statement', 'children': ['165', '176']}; {'id': '165', 'type': 'boolean_operator', 'children': ['166', '173'], 'value': 'and'}; {'id': '166', 'type': 'boolean_operator', 'children': ['167', '170'], 'value': 'and'}; {'id': '167', 'type': 'comparison_operator', 'children': ['168', '169'], 'value': '!='}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '169', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '170', 'type': 'comparison_operator', 'children': ['171', '172'], 'value': '!='}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '172', 'type': 'string', 'children': [], 'value': "')'"}; {'id': '173', 'type': 'comparison_operator', 'children': ['174', '175'], 'value': '!='}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '175', 'type': 'string', 'children': [], 'value': "','"}; {'id': '176', 'type': 'block', 'children': ['177', '183']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'augmented_assignment', 'children': ['179', '182'], 'value': '+='}; {'id': '179', 'type': 'subscript', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '181', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '182', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '183', 'type': 'return_statement', 'children': ['184']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '185', 'type': 'return_statement', 'children': ['186']}; {'id': '186', 'type': 'None', 'children': []}; {'id': '187', 'type': 'function_definition', 'children': ['188', '189', '192']}; {'id': '188', 'type': 'function_name', 'children': [], 'value': 'fn3'}; {'id': '189', 'type': 'parameters', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '192', 'type': 'block', 'children': ['193', '405', '413']}; {'id': '193', 'type': 'if_statement', 'children': ['194', '201']}; {'id': '194', 'type': 'comparison_operator', 'children': ['195', '200'], 'value': '=='}; {'id': '195', 'type': 'subscript', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '197', 'type': 'subscript', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '199', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '200', 'type': 'string', 'children': [], 'value': "'('"}; {'id': '201', 'type': 'block', 'children': ['202', '206', '212', '216', '251', '257', '288', '298', '304', '403']}; {'id': '202', 'type': 'expression_statement', 'children': ['203']}; {'id': '203', 'type': 'assignment', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'subTreeList'}; {'id': '205', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'augmented_assignment', 'children': ['208', '211'], 'value': '+='}; {'id': '208', 'type': 'subscript', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '210', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '211', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '215', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '216', 'type': 'while_statement', 'children': ['217', '224']}; {'id': '217', 'type': 'comparison_operator', 'children': ['218', '223'], 'value': '!='}; {'id': '218', 'type': 'subscript', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '220', 'type': 'subscript', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '222', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '223', 'type': 'string', 'children': [], 'value': "')'"}; {'id': '224', 'type': 'block', 'children': ['225', '240']}; {'id': '225', 'type': 'if_statement', 'children': ['226', '233']}; {'id': '226', 'type': 'comparison_operator', 'children': ['227', '232'], 'value': '=='}; {'id': '227', 'type': 'subscript', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '229', 'type': 'subscript', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '231', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '232', 'type': 'string', 'children': [], 'value': "','"}; {'id': '233', 'type': 'block', 'children': ['234']}; {'id': '234', 'type': 'expression_statement', 'children': ['235']}; {'id': '235', 'type': 'augmented_assignment', 'children': ['236', '239'], 'value': '+='}; {'id': '236', 'type': 'subscript', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '238', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '239', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '240', 'type': 'expression_statement', 'children': ['241']}; {'id': '241', 'type': 'call', 'children': ['242', '245']}; {'id': '242', 'type': 'attribute', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'subTreeList'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '245', 'type': 'argument_list', 'children': ['246']}; {'id': '246', 'type': 'call', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'fn3'}; {'id': '248', 'type': 'argument_list', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '251', 'type': 'expression_statement', 'children': ['252']}; {'id': '252', 'type': 'augmented_assignment', 'children': ['253', '256'], 'value': '+='}; {'id': '253', 'type': 'subscript', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '255', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '256', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '257', 'type': 'function_definition', 'children': ['258', '259', '262']}; {'id': '258', 'type': 'function_name', 'children': [], 'value': 'cmp'}; {'id': '259', 'type': 'parameters', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '262', 'type': 'block', 'children': ['263', '275', '286']}; {'id': '263', 'type': 'if_statement', 'children': ['264', '271']}; {'id': '264', 'type': 'comparison_operator', 'children': ['265', '268'], 'value': '<'}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '268', 'type': 'attribute', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '271', 'type': 'block', 'children': ['272']}; {'id': '272', 'type': 'return_statement', 'children': ['273']}; {'id': '273', 'type': 'unary_operator', 'children': ['274'], 'value': '-'}; {'id': '274', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '275', 'type': 'if_statement', 'children': ['276', '283']}; {'id': '276', 'type': 'comparison_operator', 'children': ['277', '280'], 'value': '>'}; {'id': '277', 'type': 'attribute', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '280', 'type': 'attribute', 'children': ['281', '282']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '283', 'type': 'block', 'children': ['284']}; {'id': '284', 'type': 'return_statement', 'children': ['285']}; {'id': '285', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '286', 'type': 'return_statement', 'children': ['287']}; {'id': '287', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '288', 'type': 'if_statement', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'sortNonBinaryNodes'}; {'id': '290', 'type': 'block', 'children': ['291']}; {'id': '291', 'type': 'expression_statement', 'children': ['292']}; {'id': '292', 'type': 'call', 'children': ['293', '296']}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'subTreeList'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '296', 'type': 'argument_list', 'children': ['297']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'cmp'}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'assignment', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '301', 'type': 'subscript', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'subTreeList'}; {'id': '303', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '304', 'type': 'if_statement', 'children': ['305', '311', '351', '385']}; {'id': '305', 'type': 'comparison_operator', 'children': ['306', '310'], 'value': '>'}; {'id': '306', 'type': 'call', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '308', 'type': 'argument_list', 'children': ['309']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'subTreeList'}; {'id': '310', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '311', 'type': 'block', 'children': ['312', '331', '341']}; {'id': '312', 'type': 'for_statement', 'children': ['313', '314', '319']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'subTree2'}; {'id': '314', 'type': 'subscript', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'subTreeList'}; {'id': '316', 'type': 'slice', 'children': ['317', '318']}; {'id': '317', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '318', 'type': 'colon', 'children': []}; {'id': '319', 'type': 'block', 'children': ['320']}; {'id': '320', 'type': 'expression_statement', 'children': ['321']}; {'id': '321', 'type': 'assignment', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '323', 'type': 'call', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'BinaryTree'}; {'id': '325', 'type': 'argument_list', 'children': ['326', '327', '328', '329', '330']}; {'id': '326', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '327', 'type': 'True', 'children': []}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'subTree2'}; {'id': '330', 'type': 'None', 'children': []}; {'id': '331', 'type': 'expression_statement', 'children': ['332']}; {'id': '332', 'type': 'assignment', 'children': ['333', '336']}; {'id': '333', 'type': 'attribute', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'iD'}; {'id': '336', 'type': 'call', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'fn2'}; {'id': '338', 'type': 'argument_list', 'children': ['339', '340']}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '341', 'type': 'expression_statement', 'children': ['342']}; {'id': '342', 'type': 'augmented_assignment', 'children': ['343', '346'], 'value': '+='}; {'id': '343', 'type': 'attribute', 'children': ['344', '345']}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '346', 'type': 'call', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '348', 'type': 'argument_list', 'children': ['349', '350']}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '351', 'type': 'elif_clause', 'children': ['352', '353']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'reportUnaryNodes'}; {'id': '353', 'type': 'block', 'children': ['354', '365', '375']}; {'id': '354', 'type': 'expression_statement', 'children': ['355']}; {'id': '355', 'type': 'assignment', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '357', 'type': 'call', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'BinaryTree'}; {'id': '359', 'type': 'argument_list', 'children': ['360', '361', '362', '363', '364']}; {'id': '360', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '361', 'type': 'True', 'children': []}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '363', 'type': 'None', 'children': []}; {'id': '364', 'type': 'None', 'children': []}; {'id': '365', 'type': 'expression_statement', 'children': ['366']}; {'id': '366', 'type': 'assignment', 'children': ['367', '370']}; {'id': '367', 'type': 'attribute', 'children': ['368', '369']}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'iD'}; {'id': '370', 'type': 'call', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'fn2'}; {'id': '372', 'type': 'argument_list', 'children': ['373', '374']}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '375', 'type': 'expression_statement', 'children': ['376']}; {'id': '376', 'type': 'augmented_assignment', 'children': ['377', '380'], 'value': '+='}; {'id': '377', 'type': 'attribute', 'children': ['378', '379']}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '380', 'type': 'call', 'children': ['381', '382']}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '382', 'type': 'argument_list', 'children': ['383', '384']}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '385', 'type': 'else_clause', 'children': ['386']}; {'id': '386', 'type': 'block', 'children': ['387', '393']}; {'id': '387', 'type': 'expression_statement', 'children': ['388']}; {'id': '388', 'type': 'call', 'children': ['389', '390']}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'fn2'}; {'id': '390', 'type': 'argument_list', 'children': ['391', '392']}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '393', 'type': 'expression_statement', 'children': ['394']}; {'id': '394', 'type': 'augmented_assignment', 'children': ['395', '398'], 'value': '+='}; {'id': '395', 'type': 'attribute', 'children': ['396', '397']}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'distance'}; {'id': '398', 'type': 'call', 'children': ['399', '400']}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '400', 'type': 'argument_list', 'children': ['401', '402']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '403', 'type': 'return_statement', 'children': ['404']}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'subTree1'}; {'id': '405', 'type': 'expression_statement', 'children': ['406']}; {'id': '406', 'type': 'assignment', 'children': ['407', '408']}; {'id': '407', 'type': 'identifier', 'children': [], 'value': 'leafID'}; {'id': '408', 'type': 'call', 'children': ['409', '410']}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'fn2'}; {'id': '410', 'type': 'argument_list', 'children': ['411', '412']}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '412', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '413', 'type': 'return_statement', 'children': ['414']}; {'id': '414', 'type': 'call', 'children': ['415', '416']}; {'id': '415', 'type': 'identifier', 'children': [], 'value': 'BinaryTree'}; {'id': '416', 'type': 'argument_list', 'children': ['417', '422', '423', '424', '425']}; {'id': '417', 'type': 'call', 'children': ['418', '419']}; {'id': '418', 'type': 'identifier', 'children': [], 'value': 'fn'}; {'id': '419', 'type': 'argument_list', 'children': ['420', '421']}; {'id': '420', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '421', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '422', 'type': 'False', 'children': []}; {'id': '423', 'type': 'None', 'children': []}; {'id': '424', 'type': 'None', 'children': []}; {'id': '425', 'type': 'identifier', 'children': [], 'value': 'leafID'}; {'id': '426', 'type': 'return_statement', 'children': ['427']}; {'id': '427', 'type': 'call', 'children': ['428', '429']}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'fn3'}; {'id': '429', 'type': 'argument_list', 'children': ['430', '431']}; {'id': '430', 'type': 'identifier', 'children': [], 'value': 'newickTree'}; {'id': '431', 'type': 'list', 'children': ['432'], 'value': '[0]'}; {'id': '432', 'type': 'integer', 'children': [], 'value': '0'}
lax newick tree parser
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '20']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'make_command'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14', '17']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'su_user'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'sudo'}; {'id': '13', 'type': 'False', 'children': []}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'sudo_user'}; {'id': '16', 'type': 'None', 'children': []}; {'id': '17', 'type': 'default_parameter', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'preserve_sudo_env'}; {'id': '19', 'type': 'False', 'children': []}; {'id': '20', 'type': 'block', 'children': ['21', '23', '27', '54', '88', '127', '134', '158', '204']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'string', 'children': [], 'value': "'''\n Builds a shell command with various kwargs.\n '''"}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'debug_meta'}; {'id': '26', 'type': 'dictionary', 'children': []}; {'id': '27', 'type': 'for_statement', 'children': ['28', '31', '44']}; {'id': '28', 'type': 'pattern_list', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '31', 'type': 'tuple', 'children': ['32', '35', '38', '41']}; {'id': '32', 'type': 'tuple', 'children': ['33', '34']}; {'id': '33', 'type': 'string', 'children': [], 'value': "'sudo'"}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'sudo'}; {'id': '35', 'type': 'tuple', 'children': ['36', '37']}; {'id': '36', 'type': 'string', 'children': [], 'value': "'sudo_user'"}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'sudo_user'}; {'id': '38', 'type': 'tuple', 'children': ['39', '40']}; {'id': '39', 'type': 'string', 'children': [], 'value': "'su_user'"}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'su_user'}; {'id': '41', 'type': 'tuple', 'children': ['42', '43']}; {'id': '42', 'type': 'string', 'children': [], 'value': "'env'"}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '44', 'type': 'block', 'children': ['45']}; {'id': '45', 'type': 'if_statement', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '47', 'type': 'block', 'children': ['48']}; {'id': '48', 'type': 'expression_statement', 'children': ['49']}; {'id': '49', 'type': 'assignment', 'children': ['50', '53']}; {'id': '50', 'type': 'subscript', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'debug_meta'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'call', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'call', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'string', 'children': [], 'value': "'Building command ({0}): {1}'"}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '64', 'type': 'argument_list', 'children': ['65', '87']}; {'id': '65', 'type': 'call', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '69', 'type': 'generator_expression', 'children': ['70', '77']}; {'id': '70', 'type': 'call', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'string', 'children': [], 'value': "'{0}: {1}'"}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '74', 'type': 'argument_list', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '77', 'type': 'for_in_clause', 'children': ['78', '81']}; {'id': '78', 'type': 'pattern_list', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'debug_meta'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '88', 'type': 'if_statement', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '90', 'type': 'block', 'children': ['91', '117']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'env_string'}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'list_comprehension', 'children': ['100', '107']}; {'id': '100', 'type': 'call', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'string', 'children': [], 'value': "'{0}={1}'"}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '104', 'type': 'argument_list', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '107', 'type': 'for_in_clause', 'children': ['108', '111']}; {'id': '108', 'type': 'pattern_list', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '111', 'type': 'call', 'children': ['112', '115']}; {'id': '112', 'type': 'attribute', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '115', 'type': 'argument_list', 'children': ['116']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '120', 'type': 'call', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'string', 'children': [], 'value': "'export {0}; {1}'"}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '124', 'type': 'argument_list', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'env_string'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'assignment', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '130', 'type': 'call', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'shlex_quote'}; {'id': '132', 'type': 'argument_list', 'children': ['133']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '134', 'type': 'if_statement', 'children': ['135', '136', '147']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'su_user'}; {'id': '136', 'type': 'block', 'children': ['137']}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'assignment', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '140', 'type': 'call', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'string', 'children': [], 'value': "'su {0} -c {1}'"}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '144', 'type': 'argument_list', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'su_user'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '147', 'type': 'else_clause', 'children': ['148']}; {'id': '148', 'type': 'block', 'children': ['149']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '152', 'type': 'call', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'string', 'children': [], 'value': "'sh -c {0}'"}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '158', 'type': 'if_statement', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'sudo'}; {'id': '160', 'type': 'block', 'children': ['161', '167', '177', '189']}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'assignment', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'sudo_bits'}; {'id': '164', 'type': 'list', 'children': ['165', '166'], 'value': "['sudo', '-H']"}; {'id': '165', 'type': 'string', 'children': [], 'value': "'sudo'"}; {'id': '166', 'type': 'string', 'children': [], 'value': "'-H'"}; {'id': '167', 'type': 'if_statement', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'preserve_sudo_env'}; {'id': '169', 'type': 'block', 'children': ['170']}; {'id': '170', 'type': 'expression_statement', 'children': ['171']}; {'id': '171', 'type': 'call', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'sudo_bits'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '175', 'type': 'argument_list', 'children': ['176']}; {'id': '176', 'type': 'string', 'children': [], 'value': "'-E'"}; {'id': '177', 'type': 'if_statement', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'sudo_user'}; {'id': '179', 'type': 'block', 'children': ['180']}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'call', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'sudo_bits'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '185', 'type': 'argument_list', 'children': ['186']}; {'id': '186', 'type': 'tuple', 'children': ['187', '188']}; {'id': '187', 'type': 'string', 'children': [], 'value': "'-u'"}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'sudo_user'}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '192', 'type': 'call', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'string', 'children': [], 'value': "'{0} {1}'"}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '196', 'type': 'argument_list', 'children': ['197', '203']}; {'id': '197', 'type': 'call', 'children': ['198', '201']}; {'id': '198', 'type': 'attribute', 'children': ['199', '200']}; {'id': '199', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'sudo_bits'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '204', 'type': 'return_statement', 'children': ['205']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'command'}
Builds a shell command with various kwargs.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'read_buffer'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'io'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'print_output'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'print_func'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '14', '55', '59', '102']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'string', 'children': [], 'value': "'''\n Reads a file-like buffer object into lines and optionally prints the output.\n '''"}; {'id': '14', 'type': 'function_definition', 'children': ['15', '16', '18']}; {'id': '15', 'type': 'function_name', 'children': [], 'value': '_print'}; {'id': '16', 'type': 'parameters', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '18', 'type': 'block', 'children': ['19']}; {'id': '19', 'type': 'if_statement', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'print_output'}; {'id': '21', 'type': 'block', 'children': ['22', '38', '50']}; {'id': '22', 'type': 'if_statement', 'children': ['23', '24', '32']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'print_func'}; {'id': '24', 'type': 'block', 'children': ['25']}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'formatted_line'}; {'id': '28', 'type': 'call', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'print_func'}; {'id': '30', 'type': 'argument_list', 'children': ['31']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '32', 'type': 'else_clause', 'children': ['33']}; {'id': '33', 'type': 'block', 'children': ['34']}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'formatted_line'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'encoded_line'}; {'id': '41', 'type': 'call', 'children': ['42', '48']}; {'id': '42', 'type': 'attribute', 'children': ['43', '47']}; {'id': '43', 'type': 'call', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'formatted_line'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'encode'}; {'id': '48', 'type': 'argument_list', 'children': ['49']}; {'id': '49', 'type': 'string', 'children': [], 'value': "'utf-8'"}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'encoded_line'}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '58', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '59', 'type': 'for_statement', 'children': ['60', '61', '62']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'io'}; {'id': '62', 'type': 'block', 'children': ['63', '82', '90', '97']}; {'id': '63', 'type': 'if_statement', 'children': ['64', '72']}; {'id': '64', 'type': 'not_operator', 'children': ['65']}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '67', 'type': 'argument_list', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'assignment', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '76', 'type': 'call', 'children': ['77', '80']}; {'id': '77', 'type': 'attribute', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'decode'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'string', 'children': [], 'value': "'utf-8'"}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '85', 'type': 'call', 'children': ['86', '89']}; {'id': '86', 'type': 'attribute', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '89', 'type': 'argument_list', 'children': []}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'call', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '95', 'type': 'argument_list', 'children': ['96']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '97', 'type': 'expression_statement', 'children': ['98']}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': '_print'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '102', 'type': 'return_statement', 'children': ['103']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'out'}
Reads a file-like buffer object into lines and optionally prints the output.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_run_single_op'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'op_hash'}; {'id': '6', 'type': 'block', 'children': ['7', '9', '17', '21', '33', '45', '108', '114', '300', '313']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'string', 'children': [], 'value': "'''\n Run a single operation for all servers. Can be configured to run in serial.\n '''"}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '12', 'type': 'subscript', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'op_hash'}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'op_types'}; {'id': '20', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '21', 'type': 'if_statement', 'children': ['22', '25']}; {'id': '22', 'type': 'subscript', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '24', 'type': 'string', 'children': [], 'value': "'serial'"}; {'id': '25', 'type': 'block', 'children': ['26']}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'op_types'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'string', 'children': [], 'value': "'serial'"}; {'id': '33', 'type': 'if_statement', 'children': ['34', '37']}; {'id': '34', 'type': 'subscript', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '36', 'type': 'string', 'children': [], 'value': "'run_once'"}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'call', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'op_types'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'string', 'children': [], 'value': "'run once'"}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'call', 'children': ['47', '50']}; {'id': '47', 'type': 'attribute', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'call', 'children': ['52', '55']}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'string', 'children': [], 'value': "'{0} {1} {2}'"}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '55', 'type': 'argument_list', 'children': ['56', '81', '97']}; {'id': '56', 'type': 'call', 'children': ['57', '60']}; {'id': '57', 'type': 'attribute', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'click'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '60', 'type': 'argument_list', 'children': ['61', '80']}; {'id': '61', 'type': 'call', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'string', 'children': [], 'value': "'--> Starting{0}operation:'"}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'conditional_expression', 'children': ['67', '78', '79'], 'value': 'if'}; {'id': '67', 'type': 'call', 'children': ['68', '71']}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'string', 'children': [], 'value': "' {0} '"}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '71', 'type': 'argument_list', 'children': ['72']}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'op_types'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'op_types'}; {'id': '79', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '80', 'type': 'string', 'children': [], 'value': "'blue'"}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'click'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '85', 'type': 'argument_list', 'children': ['86', '94']}; {'id': '86', 'type': 'call', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '90', 'type': 'argument_list', 'children': ['91']}; {'id': '91', 'type': 'subscript', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '93', 'type': 'string', 'children': [], 'value': "'names'"}; {'id': '94', 'type': 'keyword_argument', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'bold'}; {'id': '96', 'type': 'True', 'children': []}; {'id': '97', 'type': 'conditional_expression', 'children': ['98', '104', '107'], 'value': 'if'}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '100', 'type': 'argument_list', 'children': ['101']}; {'id': '101', 'type': 'subscript', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '103', 'type': 'string', 'children': [], 'value': "'args'"}; {'id': '104', 'type': 'subscript', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '106', 'type': 'string', 'children': [], 'value': "'args'"}; {'id': '107', 'type': 'string', 'children': [], 'value': "''"}; {'id': '108', 'type': 'expression_statement', 'children': ['109']}; {'id': '109', 'type': 'assignment', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'failed_hosts'}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '113', 'type': 'argument_list', 'children': []}; {'id': '114', 'type': 'if_statement', 'children': ['115', '118', '163']}; {'id': '115', 'type': 'subscript', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '117', 'type': 'string', 'children': [], 'value': "'serial'"}; {'id': '118', 'type': 'block', 'children': ['119']}; {'id': '119', 'type': 'with_statement', 'children': ['120', '131']}; {'id': '120', 'type': 'with_clause', 'children': ['121']}; {'id': '121', 'type': 'with_item', 'children': ['122']}; {'id': '122', 'type': 'as_pattern', 'children': ['123', '129']}; {'id': '123', 'type': 'call', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'progress_spinner'}; {'id': '125', 'type': 'argument_list', 'children': ['126']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'inventory'}; {'id': '129', 'type': 'as_pattern_target', 'children': ['130']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'progress'}; {'id': '131', 'type': 'block', 'children': ['132']}; {'id': '132', 'type': 'for_statement', 'children': ['133', '134', '137']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'inventory'}; {'id': '137', 'type': 'block', 'children': ['138', '147', '152']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'assignment', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '141', 'type': 'call', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': '_run_server_op'}; {'id': '143', 'type': 'argument_list', 'children': ['144', '145', '146']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'op_hash'}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'call', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'progress'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '152', 'type': 'if_statement', 'children': ['153', '155']}; {'id': '153', 'type': 'not_operator', 'children': ['154']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '155', 'type': 'block', 'children': ['156']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'call', 'children': ['158', '161']}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'failed_hosts'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '163', 'type': 'else_clause', 'children': ['164']}; {'id': '164', 'type': 'block', 'children': ['165', '172', '215']}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'assignment', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'batches'}; {'id': '168', 'type': 'list', 'children': ['169'], 'value': '[state.inventory]'}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'inventory'}; {'id': '172', 'type': 'if_statement', 'children': ['173', '176']}; {'id': '173', 'type': 'subscript', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '175', 'type': 'string', 'children': [], 'value': "'parallel'"}; {'id': '176', 'type': 'block', 'children': ['177', '183', '192']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'parallel'}; {'id': '180', 'type': 'subscript', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '182', 'type': 'string', 'children': [], 'value': "'parallel'"}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'assignment', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'hosts'}; {'id': '186', 'type': 'call', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '188', 'type': 'argument_list', 'children': ['189']}; {'id': '189', 'type': 'attribute', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'inventory'}; {'id': '192', 'type': 'expression_statement', 'children': ['193']}; {'id': '193', 'type': 'assignment', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'batches'}; {'id': '195', 'type': 'list_comprehension', 'children': ['196', '204']}; {'id': '196', 'type': 'subscript', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'hosts'}; {'id': '198', 'type': 'slice', 'children': ['199', '200', '201']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '200', 'type': 'colon', 'children': []}; {'id': '201', 'type': 'binary_operator', 'children': ['202', '203'], 'value': '+'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'parallel'}; {'id': '204', 'type': 'for_in_clause', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '206', 'type': 'call', 'children': ['207', '208']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '208', 'type': 'argument_list', 'children': ['209', '210', '214']}; {'id': '209', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '210', 'type': 'call', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'hosts'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'parallel'}; {'id': '215', 'type': 'for_statement', 'children': ['216', '217', '218']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'batch'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'batches'}; {'id': '218', 'type': 'block', 'children': ['219']}; {'id': '219', 'type': 'with_statement', 'children': ['220', '229']}; {'id': '220', 'type': 'with_clause', 'children': ['221']}; {'id': '221', 'type': 'with_item', 'children': ['222']}; {'id': '222', 'type': 'as_pattern', 'children': ['223', '227']}; {'id': '223', 'type': 'call', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'progress_spinner'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'batch'}; {'id': '227', 'type': 'as_pattern_target', 'children': ['228']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'progress'}; {'id': '229', 'type': 'block', 'children': ['230', '250', '274']}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'assignment', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'greenlet_to_host'}; {'id': '233', 'type': 'dictionary_comprehension', 'children': ['234', '247']}; {'id': '234', 'type': 'pair', 'children': ['235', '246']}; {'id': '235', 'type': 'call', 'children': ['236', '241']}; {'id': '236', 'type': 'attribute', 'children': ['237', '240']}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'pool'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'spawn'}; {'id': '241', 'type': 'argument_list', 'children': ['242', '243', '244', '245']}; {'id': '242', 'type': 'identifier', 'children': [], 'value': '_run_server_op'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'op_hash'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '247', 'type': 'for_in_clause', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'batch'}; {'id': '250', 'type': 'for_statement', 'children': ['251', '252', '262']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'greenlet'}; {'id': '252', 'type': 'call', 'children': ['253', '256']}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'gevent'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'iwait'}; {'id': '256', 'type': 'argument_list', 'children': ['257']}; {'id': '257', 'type': 'call', 'children': ['258', '261']}; {'id': '258', 'type': 'attribute', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'greenlet_to_host'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '261', 'type': 'argument_list', 'children': []}; {'id': '262', 'type': 'block', 'children': ['263', '269']}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'assignment', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '266', 'type': 'subscript', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'greenlet_to_host'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'greenlet'}; {'id': '269', 'type': 'expression_statement', 'children': ['270']}; {'id': '270', 'type': 'call', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'progress'}; {'id': '272', 'type': 'argument_list', 'children': ['273']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '274', 'type': 'for_statement', 'children': ['275', '278', '284']}; {'id': '275', 'type': 'pattern_list', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'greenlet'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '278', 'type': 'call', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '282', 'type': 'argument_list', 'children': ['283']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'greenlet_to_host'}; {'id': '284', 'type': 'block', 'children': ['285']}; {'id': '285', 'type': 'if_statement', 'children': ['286', '292']}; {'id': '286', 'type': 'not_operator', 'children': ['287']}; {'id': '287', 'type': 'call', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'greenlet'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '291', 'type': 'argument_list', 'children': []}; {'id': '292', 'type': 'block', 'children': ['293']}; {'id': '293', 'type': 'expression_statement', 'children': ['294']}; {'id': '294', 'type': 'call', 'children': ['295', '298']}; {'id': '295', 'type': 'attribute', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'failed_hosts'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '298', 'type': 'argument_list', 'children': ['299']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '300', 'type': 'if_statement', 'children': ['301', '305']}; {'id': '301', 'type': 'not_operator', 'children': ['302']}; {'id': '302', 'type': 'subscript', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'op_meta'}; {'id': '304', 'type': 'string', 'children': [], 'value': "'ignore_errors'"}; {'id': '305', 'type': 'block', 'children': ['306']}; {'id': '306', 'type': 'expression_statement', 'children': ['307']}; {'id': '307', 'type': 'call', 'children': ['308', '311']}; {'id': '308', 'type': 'attribute', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'state'}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'fail_hosts'}; {'id': '311', 'type': 'argument_list', 'children': ['312']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'failed_hosts'}; {'id': '313', 'type': 'if_statement', 'children': ['314', '317']}; {'id': '314', 'type': 'attribute', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'pyinfra'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'is_cli'}; {'id': '317', 'type': 'block', 'children': ['318']}; {'id': '318', 'type': 'expression_statement', 'children': ['319']}; {'id': '319', 'type': 'call', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '321', 'type': 'argument_list', 'children': []}
Run a single operation for all servers. Can be configured to run in serial.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_parse'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'registers'}; {'id': '6', 'type': 'block', 'children': ['7', '19', '38', '52', '62', '85', '95', '119', '132', '143', '155', '161', '171', '177', '185', '224', '237', '247', '253', '263', '275', '281', '291', '297', '311', '325', '350']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '10', 'type': 'dictionary', 'children': ['11', '16']}; {'id': '11', 'type': 'pair', 'children': ['12', '13']}; {'id': '12', 'type': 'string', 'children': [], 'value': "'ip'"}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'ip'}; {'id': '16', 'type': 'pair', 'children': ['17', '18']}; {'id': '17', 'type': 'string', 'children': [], 'value': "'connected'"}; {'id': '18', 'type': 'True', 'children': []}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'BinaryPayloadDecoder'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'fromRegisters'}; {'id': '26', 'type': 'argument_list', 'children': ['27', '28', '33']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'registers'}; {'id': '28', 'type': 'keyword_argument', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'byteorder'}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'Endian'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'Big'}; {'id': '33', 'type': 'keyword_argument', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'wordorder'}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'Endian'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'Little'}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '41', 'type': 'list', 'children': ['42', '47'], 'value': '[decoder.decode_bits(), decoder.decode_bits()]'}; {'id': '42', 'type': 'call', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'decode_bits'}; {'id': '46', 'type': 'argument_list', 'children': []}; {'id': '47', 'type': 'call', 'children': ['48', '51']}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'decode_bits'}; {'id': '51', 'type': 'argument_list', 'children': []}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'reg_40001'}; {'id': '55', 'type': 'binary_operator', 'children': ['56', '59'], 'value': '+'}; {'id': '56', 'type': 'subscript', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '58', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '59', 'type': 'subscript', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '61', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'monitor_integer'}; {'id': '65', 'type': 'call', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '67', 'type': 'generator_expression', 'children': ['68', '71', '83']}; {'id': '68', 'type': 'binary_operator', 'children': ['69', '70'], 'value': '<<'}; {'id': '69', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '71', 'type': 'for_in_clause', 'children': ['72', '75']}; {'id': '72', 'type': 'pattern_list', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '75', 'type': 'call', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '77', 'type': 'argument_list', 'children': ['78']}; {'id': '78', 'type': 'subscript', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'reg_40001'}; {'id': '80', 'type': 'slice', 'children': ['81', '82']}; {'id': '81', 'type': 'colon', 'children': []}; {'id': '82', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '83', 'type': 'if_clause', 'children': ['84']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'assignment', 'children': ['87', '90']}; {'id': '87', 'type': 'subscript', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '89', 'type': 'string', 'children': [], 'value': "'state'"}; {'id': '90', 'type': 'subscript', 'children': ['91', '94']}; {'id': '91', 'type': 'subscript', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '93', 'type': 'string', 'children': [], 'value': "'monitor state'"}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'monitor_integer'}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'fault_integer'}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '100', 'type': 'generator_expression', 'children': ['101', '104', '117']}; {'id': '101', 'type': 'binary_operator', 'children': ['102', '103'], 'value': '<<'}; {'id': '102', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '104', 'type': 'for_in_clause', 'children': ['105', '108']}; {'id': '105', 'type': 'pattern_list', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '108', 'type': 'call', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'subscript', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'reg_40001'}; {'id': '113', 'type': 'slice', 'children': ['114', '115', '116']}; {'id': '114', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '115', 'type': 'colon', 'children': []}; {'id': '116', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '117', 'type': 'if_clause', 'children': ['118']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '124']}; {'id': '121', 'type': 'subscript', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '123', 'type': 'string', 'children': [], 'value': "'fault'"}; {'id': '124', 'type': 'dictionary', 'children': ['125']}; {'id': '125', 'type': 'pair', 'children': ['126', '127']}; {'id': '126', 'type': 'string', 'children': [], 'value': "'status'"}; {'id': '127', 'type': 'subscript', 'children': ['128', '131']}; {'id': '128', 'type': 'subscript', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '130', 'type': 'string', 'children': [], 'value': "'fault status'"}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'fault_integer'}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'assignment', 'children': ['134', '137']}; {'id': '134', 'type': 'pattern_list', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'low'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'high'}; {'id': '137', 'type': 'subscript', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'reg_40001'}; {'id': '139', 'type': 'slice', 'children': ['140', '141', '142']}; {'id': '140', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '141', 'type': 'colon', 'children': []}; {'id': '142', 'type': 'integer', 'children': [], 'value': '8'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '148']}; {'id': '145', 'type': 'subscript', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '147', 'type': 'string', 'children': [], 'value': "'alarm'"}; {'id': '148', 'type': 'subscript', 'children': ['149', '152']}; {'id': '149', 'type': 'subscript', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '151', 'type': 'string', 'children': [], 'value': "'alarm level'"}; {'id': '152', 'type': 'binary_operator', 'children': ['153', '154'], 'value': '+'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'low'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'high'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'augmented_assignment', 'children': ['157', '160'], 'value': '+='}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': '_pointer'}; {'id': '160', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'assignment', 'children': ['163', '166']}; {'id': '163', 'type': 'subscript', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '165', 'type': 'string', 'children': [], 'value': "'concentration'"}; {'id': '166', 'type': 'call', 'children': ['167', '170']}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'decode_32bit_float'}; {'id': '170', 'type': 'argument_list', 'children': []}; {'id': '171', 'type': 'expression_statement', 'children': ['172']}; {'id': '172', 'type': 'augmented_assignment', 'children': ['173', '176'], 'value': '+='}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': '_pointer'}; {'id': '176', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'fault_number'}; {'id': '180', 'type': 'call', 'children': ['181', '184']}; {'id': '181', 'type': 'attribute', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'decode_16bit_uint'}; {'id': '184', 'type': 'argument_list', 'children': []}; {'id': '185', 'type': 'if_statement', 'children': ['186', '189']}; {'id': '186', 'type': 'comparison_operator', 'children': ['187', '188'], 'value': '!='}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'fault_number'}; {'id': '188', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '189', 'type': 'block', 'children': ['190', '205', '213']}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'code'}; {'id': '193', 'type': 'binary_operator', 'children': ['194', '201'], 'value': '+'}; {'id': '194', 'type': '()', 'children': ['195']}; {'id': '195', 'type': 'conditional_expression', 'children': ['196', '197', '200'], 'value': 'if'}; {'id': '196', 'type': 'string', 'children': [], 'value': "'m'"}; {'id': '197', 'type': 'comparison_operator', 'children': ['198', '199'], 'value': '<'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'fault_number'}; {'id': '199', 'type': 'integer', 'children': [], 'value': '30'}; {'id': '200', 'type': 'string', 'children': [], 'value': "'F'"}; {'id': '201', 'type': 'call', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '203', 'type': 'argument_list', 'children': ['204']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'fault_number'}; {'id': '205', 'type': 'expression_statement', 'children': ['206']}; {'id': '206', 'type': 'assignment', 'children': ['207', '212']}; {'id': '207', 'type': 'subscript', 'children': ['208', '211']}; {'id': '208', 'type': 'subscript', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '210', 'type': 'string', 'children': [], 'value': "'fault'"}; {'id': '211', 'type': 'string', 'children': [], 'value': "'code'"}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'code'}; {'id': '213', 'type': 'expression_statement', 'children': ['214']}; {'id': '214', 'type': 'call', 'children': ['215', '220']}; {'id': '215', 'type': 'attribute', 'children': ['216', '219']}; {'id': '216', 'type': 'subscript', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '218', 'type': 'string', 'children': [], 'value': "'fault'"}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '220', 'type': 'argument_list', 'children': ['221']}; {'id': '221', 'type': 'subscript', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'faults'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'code'}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'unit_bit'}; {'id': '227', 'type': 'call', 'children': ['228', '235']}; {'id': '228', 'type': 'attribute', 'children': ['229', '234']}; {'id': '229', 'type': 'call', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'decode_bits'}; {'id': '233', 'type': 'argument_list', 'children': []}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'index'}; {'id': '235', 'type': 'argument_list', 'children': ['236']}; {'id': '236', 'type': 'True', 'children': []}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '242']}; {'id': '239', 'type': 'subscript', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '241', 'type': 'string', 'children': [], 'value': "'units'"}; {'id': '242', 'type': 'subscript', 'children': ['243', '246']}; {'id': '243', 'type': 'subscript', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'options'}; {'id': '245', 'type': 'string', 'children': [], 'value': "'concentration unit'"}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'unit_bit'}; {'id': '247', 'type': 'expression_statement', 'children': ['248']}; {'id': '248', 'type': 'augmented_assignment', 'children': ['249', '252'], 'value': '+='}; {'id': '249', 'type': 'attribute', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '251', 'type': 'identifier', 'children': [], 'value': '_pointer'}; {'id': '252', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '258']}; {'id': '255', 'type': 'subscript', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '257', 'type': 'string', 'children': [], 'value': "'temperature'"}; {'id': '258', 'type': 'call', 'children': ['259', '262']}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'decode_16bit_int'}; {'id': '262', 'type': 'argument_list', 'children': []}; {'id': '263', 'type': 'expression_statement', 'children': ['264']}; {'id': '264', 'type': 'assignment', 'children': ['265', '268']}; {'id': '265', 'type': 'subscript', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '267', 'type': 'string', 'children': [], 'value': "'life'"}; {'id': '268', 'type': 'binary_operator', 'children': ['269', '274'], 'value': '/'}; {'id': '269', 'type': 'call', 'children': ['270', '273']}; {'id': '270', 'type': 'attribute', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'decode_16bit_uint'}; {'id': '273', 'type': 'argument_list', 'children': []}; {'id': '274', 'type': 'float', 'children': [], 'value': '24.0'}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'augmented_assignment', 'children': ['277', '280'], 'value': '+='}; {'id': '277', 'type': 'attribute', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': '_pointer'}; {'id': '280', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '281', 'type': 'expression_statement', 'children': ['282']}; {'id': '282', 'type': 'assignment', 'children': ['283', '286']}; {'id': '283', 'type': 'subscript', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '285', 'type': 'string', 'children': [], 'value': "'flow'"}; {'id': '286', 'type': 'call', 'children': ['287', '290']}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'decode_16bit_uint'}; {'id': '290', 'type': 'argument_list', 'children': []}; {'id': '291', 'type': 'expression_statement', 'children': ['292']}; {'id': '292', 'type': 'augmented_assignment', 'children': ['293', '296'], 'value': '+='}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': '_pointer'}; {'id': '296', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '297', 'type': 'expression_statement', 'children': ['298']}; {'id': '298', 'type': 'assignment', 'children': ['299', '302']}; {'id': '299', 'type': 'subscript', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '301', 'type': 'string', 'children': [], 'value': "'low-alarm threshold'"}; {'id': '302', 'type': 'call', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'round'}; {'id': '304', 'type': 'argument_list', 'children': ['305', '310']}; {'id': '305', 'type': 'call', 'children': ['306', '309']}; {'id': '306', 'type': 'attribute', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'decode_32bit_float'}; {'id': '309', 'type': 'argument_list', 'children': []}; {'id': '310', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '311', 'type': 'expression_statement', 'children': ['312']}; {'id': '312', 'type': 'assignment', 'children': ['313', '316']}; {'id': '313', 'type': 'subscript', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '315', 'type': 'string', 'children': [], 'value': "'high-alarm threshold'"}; {'id': '316', 'type': 'call', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'round'}; {'id': '318', 'type': 'argument_list', 'children': ['319', '324']}; {'id': '319', 'type': 'call', 'children': ['320', '323']}; {'id': '320', 'type': 'attribute', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'decoder'}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'decode_32bit_float'}; {'id': '323', 'type': 'argument_list', 'children': []}; {'id': '324', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '325', 'type': 'if_statement', 'children': ['326', '331']}; {'id': '326', 'type': 'comparison_operator', 'children': ['327', '330'], 'value': '=='}; {'id': '327', 'type': 'subscript', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '329', 'type': 'string', 'children': [], 'value': "'units'"}; {'id': '330', 'type': 'string', 'children': [], 'value': "'ppb'"}; {'id': '331', 'type': 'block', 'children': ['332', '338', '344']}; {'id': '332', 'type': 'expression_statement', 'children': ['333']}; {'id': '333', 'type': 'augmented_assignment', 'children': ['334', '337'], 'value': '*='}; {'id': '334', 'type': 'subscript', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '336', 'type': 'string', 'children': [], 'value': "'concentration'"}; {'id': '337', 'type': 'integer', 'children': [], 'value': '1000'}; {'id': '338', 'type': 'expression_statement', 'children': ['339']}; {'id': '339', 'type': 'augmented_assignment', 'children': ['340', '343'], 'value': '*='}; {'id': '340', 'type': 'subscript', 'children': ['341', '342']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '342', 'type': 'string', 'children': [], 'value': "'low-alarm threshold'"}; {'id': '343', 'type': 'integer', 'children': [], 'value': '1000'}; {'id': '344', 'type': 'expression_statement', 'children': ['345']}; {'id': '345', 'type': 'augmented_assignment', 'children': ['346', '349'], 'value': '*='}; {'id': '346', 'type': 'subscript', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '348', 'type': 'string', 'children': [], 'value': "'high-alarm threshold'"}; {'id': '349', 'type': 'integer', 'children': [], 'value': '1000'}; {'id': '350', 'type': 'return_statement', 'children': ['351']}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'result'}
Parse the response, returning a dictionary.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'ParseCFlags'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'start_line'}; {'id': '7', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '8', 'type': 'block', 'children': ['9', '13', '17', '21', '217']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '12', 'type': 'None', 'children': []}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'modlist'}; {'id': '16', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '20', 'type': 'None', 'children': []}; {'id': '21', 'type': 'for_statement', 'children': ['22', '23', '33']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'line_num'}; {'id': '23', 'type': 'call', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '25', 'type': 'argument_list', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'start_line'}; {'id': '27', 'type': 'call', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '29', 'type': 'argument_list', 'children': ['30']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '33', 'type': 'block', 'children': ['34', '46', '65', '76', '139', '150', '191']}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '37', 'type': 'call', 'children': ['38', '45']}; {'id': '38', 'type': 'attribute', 'children': ['39', '44']}; {'id': '39', 'type': 'subscript', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'line_num'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'rstrip'}; {'id': '45', 'type': 'argument_list', 'children': []}; {'id': '46', 'type': 'if_statement', 'children': ['47', '49']}; {'id': '47', 'type': 'not_operator', 'children': ['48']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '49', 'type': 'block', 'children': ['50', '64']}; {'id': '50', 'type': 'if_statement', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '52', 'type': 'block', 'children': ['53', '60']}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'call', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'modlist'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '58', 'type': 'argument_list', 'children': ['59']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '63', 'type': 'None', 'children': []}; {'id': '64', 'type': 'continue_statement', 'children': []}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'mobj'}; {'id': '68', 'type': 'call', 'children': ['69', '74']}; {'id': '69', 'type': 'attribute', 'children': ['70', '73']}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'module_c_re'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '74', 'type': 'argument_list', 'children': ['75']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '76', 'type': 'if_statement', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'mobj'}; {'id': '78', 'type': 'block', 'children': ['79', '88', '97', '107', '116', '126', '134', '138']}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'assignment', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '82', 'type': 'call', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'mobj'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '86', 'type': 'argument_list', 'children': ['87']}; {'id': '87', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '93', 'type': 'argument_list', 'children': ['94']}; {'id': '94', 'type': 'binary_operator', 'children': ['95', '96'], 'value': '%'}; {'id': '95', 'type': 'string', 'children': [], 'value': "'Module: %s'"}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '97', 'type': 'if_statement', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '99', 'type': 'block', 'children': ['100']}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'call', 'children': ['102', '105']}; {'id': '102', 'type': 'attribute', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'modlist'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '105', 'type': 'argument_list', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'call', 'children': ['109', '114']}; {'id': '109', 'type': 'attribute', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'module_list'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'call', 'children': ['118', '123']}; {'id': '118', 'type': 'attribute', 'children': ['119', '122']}; {'id': '119', 'type': 'attribute', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'modules'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'setdefault'}; {'id': '123', 'type': 'argument_list', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '125', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '126', 'type': 'expression_statement', 'children': ['127']}; {'id': '127', 'type': 'assignment', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'modlist'}; {'id': '129', 'type': 'subscript', 'children': ['130', '133']}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'modules'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'modname'}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '137', 'type': 'None', 'children': []}; {'id': '138', 'type': 'continue_statement', 'children': []}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'mobj'}; {'id': '142', 'type': 'call', 'children': ['143', '148']}; {'id': '143', 'type': 'attribute', 'children': ['144', '147']}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'flag_c_re'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '148', 'type': 'argument_list', 'children': ['149']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '150', 'type': 'if_statement', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'mobj'}; {'id': '152', 'type': 'block', 'children': ['153', '163', '172', '190']}; {'id': '153', 'type': 'if_statement', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '155', 'type': 'block', 'children': ['156']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'call', 'children': ['158', '161']}; {'id': '158', 'type': 'attribute', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'modlist'}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '168', 'type': 'argument_list', 'children': ['169']}; {'id': '169', 'type': 'binary_operator', 'children': ['170', '171'], 'value': '%'}; {'id': '170', 'type': 'string', 'children': [], 'value': "'Flag: %s'"}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '175', 'type': 'call', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'Flag'}; {'id': '177', 'type': 'argument_list', 'children': ['178', '184']}; {'id': '178', 'type': 'call', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'mobj'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '182', 'type': 'argument_list', 'children': ['183']}; {'id': '183', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '184', 'type': 'call', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'mobj'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '188', 'type': 'argument_list', 'children': ['189']}; {'id': '189', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '190', 'type': 'continue_statement', 'children': []}; {'id': '191', 'type': 'if_statement', 'children': ['192', '193', '206']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '193', 'type': 'block', 'children': ['194']}; {'id': '194', 'type': 'expression_statement', 'children': ['195']}; {'id': '195', 'type': 'augmented_assignment', 'children': ['196', '199'], 'value': '+='}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'help'}; {'id': '199', 'type': 'binary_operator', 'children': ['200', '201'], 'value': '+'}; {'id': '200', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '201', 'type': 'call', 'children': ['202', '205']}; {'id': '202', 'type': 'attribute', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '205', 'type': 'argument_list', 'children': []}; {'id': '206', 'type': 'else_clause', 'children': ['207']}; {'id': '207', 'type': 'block', 'children': ['208']}; {'id': '208', 'type': 'expression_statement', 'children': ['209']}; {'id': '209', 'type': 'call', 'children': ['210', '213']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'logging'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '213', 'type': 'argument_list', 'children': ['214']}; {'id': '214', 'type': 'binary_operator', 'children': ['215', '216'], 'value': '%'}; {'id': '215', 'type': 'string', 'children': [], 'value': "'Extra: %s'"}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '217', 'type': 'if_statement', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '219', 'type': 'block', 'children': ['220']}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'call', 'children': ['222', '225']}; {'id': '222', 'type': 'attribute', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'modlist'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '225', 'type': 'argument_list', 'children': ['226']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'flag'}
Parse C style flags.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_repr_html_'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '10', '56', '60', '64', '112', '131', '135', '156']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '9', 'type': 'string', 'children': [], 'value': '"<table class=\'taqltable\' style=\'overflow-x:auto\'>\\n"'}; {'id': '10', 'type': 'if_statement', 'children': ['11', '31']}; {'id': '11', 'type': 'not_operator', 'children': ['12']}; {'id': '12', 'type': '()', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'all'}; {'id': '15', 'type': 'argument_list', 'children': ['16']}; {'id': '16', 'type': 'list_comprehension', 'children': ['17', '24']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '23'], 'value': '=='}; {'id': '18', 'type': 'subscript', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'colname'}; {'id': '20', 'type': 'slice', 'children': ['21', '22']}; {'id': '21', 'type': 'colon', 'children': []}; {'id': '22', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '23', 'type': 'string', 'children': [], 'value': '"Col_"'}; {'id': '24', 'type': 'for_in_clause', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'colname'}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'colnames'}; {'id': '30', 'type': 'argument_list', 'children': []}; {'id': '31', 'type': 'block', 'children': ['32', '36', '52']}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'augmented_assignment', 'children': ['34', '35'], 'value': '+='}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '35', 'type': 'string', 'children': [], 'value': '"<tr>"'}; {'id': '36', 'type': 'for_statement', 'children': ['37', '38', '43']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'colname'}; {'id': '38', 'type': 'call', 'children': ['39', '42']}; {'id': '39', 'type': 'attribute', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'colnames'}; {'id': '42', 'type': 'argument_list', 'children': []}; {'id': '43', 'type': 'block', 'children': ['44']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'augmented_assignment', 'children': ['46', '47'], 'value': '+='}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '47', 'type': 'binary_operator', 'children': ['48', '51'], 'value': '+'}; {'id': '48', 'type': 'binary_operator', 'children': ['49', '50'], 'value': '+'}; {'id': '49', 'type': 'string', 'children': [], 'value': '"<th><b>"'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'colname'}; {'id': '51', 'type': 'string', 'children': [], 'value': '"</b></th>"'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'augmented_assignment', 'children': ['54', '55'], 'value': '+='}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '55', 'type': 'string', 'children': [], 'value': '"</tr>"'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'cropped'}; {'id': '59', 'type': 'False', 'children': []}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'assignment', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'rowcount'}; {'id': '63', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '64', 'type': 'for_statement', 'children': ['65', '66', '67']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '67', 'type': 'block', 'children': ['68', '81', '85', '89', '98', '102']}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'rowout'}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': '_format_row'}; {'id': '73', 'type': 'argument_list', 'children': ['74', '75', '80']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '75', 'type': 'call', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'colnames'}; {'id': '79', 'type': 'argument_list', 'children': []}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'augmented_assignment', 'children': ['83', '84'], 'value': '+='}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'rowcount'}; {'id': '84', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'augmented_assignment', 'children': ['87', '88'], 'value': '+='}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'rowout'}; {'id': '89', 'type': 'if_statement', 'children': ['90', '93']}; {'id': '90', 'type': 'comparison_operator', 'children': ['91', '92'], 'value': 'in'}; {'id': '91', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'rowout'}; {'id': '93', 'type': 'block', 'children': ['94']}; {'id': '94', 'type': 'expression_statement', 'children': ['95']}; {'id': '95', 'type': 'augmented_assignment', 'children': ['96', '97'], 'value': '+='}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '97', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'augmented_assignment', 'children': ['100', '101'], 'value': '+='}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '101', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '102', 'type': 'if_statement', 'children': ['103', '106']}; {'id': '103', 'type': 'comparison_operator', 'children': ['104', '105'], 'value': '>='}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'rowcount'}; {'id': '105', 'type': 'integer', 'children': [], 'value': '20'}; {'id': '106', 'type': 'block', 'children': ['107', '111']}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'assignment', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'cropped'}; {'id': '110', 'type': 'True', 'children': []}; {'id': '111', 'type': 'break_statement', 'children': []}; {'id': '112', 'type': 'if_statement', 'children': ['113', '121']}; {'id': '113', 'type': 'comparison_operator', 'children': ['114', '120'], 'value': '=='}; {'id': '114', 'type': 'subscript', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '116', 'type': 'slice', 'children': ['117', '119']}; {'id': '117', 'type': 'unary_operator', 'children': ['118'], 'value': '-'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '119', 'type': 'colon', 'children': []}; {'id': '120', 'type': 'string', 'children': [], 'value': '"\\n\\n"'}; {'id': '121', 'type': 'block', 'children': ['122']}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'assignment', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '125', 'type': 'subscript', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '127', 'type': 'slice', 'children': ['128', '129']}; {'id': '128', 'type': 'colon', 'children': []}; {'id': '129', 'type': 'unary_operator', 'children': ['130'], 'value': '-'}; {'id': '130', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'augmented_assignment', 'children': ['133', '134'], 'value': '+='}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '134', 'type': 'string', 'children': [], 'value': '"</table>"'}; {'id': '135', 'type': 'if_statement', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'cropped'}; {'id': '137', 'type': 'block', 'children': ['138']}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'augmented_assignment', 'children': ['140', '141'], 'value': '+='}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '141', 'type': '()', 'children': ['142']}; {'id': '142', 'type': 'binary_operator', 'children': ['143', '155'], 'value': '+'}; {'id': '143', 'type': 'binary_operator', 'children': ['144', '145'], 'value': '+'}; {'id': '144', 'type': 'string', 'children': [], 'value': '"<p style=\'text-align:center\'>("'}; {'id': '145', 'type': 'call', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'binary_operator', 'children': ['149', '154'], 'value': '-'}; {'id': '149', 'type': 'call', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'nrows'}; {'id': '153', 'type': 'argument_list', 'children': []}; {'id': '154', 'type': 'integer', 'children': [], 'value': '20'}; {'id': '155', 'type': 'string', 'children': [], 'value': '" more rows)</p>\\n"'}; {'id': '156', 'type': 'return_statement', 'children': ['157']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'out'}
Give a nice representation of tables in notebooks.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_get_properties'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '8', 'type': 'block', 'children': ['9', '31', '44', '67', '76', '87', '95', '104', '109', '118']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '14']}; {'id': '11', 'type': 'pattern_list', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '14', 'type': 'subscript', 'children': ['15', '28']}; {'id': '15', 'type': '()', 'children': ['16']}; {'id': '16', 'type': 'binary_operator', 'children': ['17', '26'], 'value': '+'}; {'id': '17', 'type': 'call', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': '_prop_split_re'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '21', 'type': 'argument_list', 'children': ['22', '25']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '25', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '26', 'type': 'list', 'children': ['27'], 'value': '[None]'}; {'id': '27', 'type': 'None', 'children': []}; {'id': '28', 'type': 'slice', 'children': ['29', '30']}; {'id': '29', 'type': 'colon', 'children': []}; {'id': '30', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '31', 'type': 'if_statement', 'children': ['32', '35']}; {'id': '32', 'type': 'comparison_operator', 'children': ['33', '34'], 'value': 'is'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '34', 'type': 'None', 'children': []}; {'id': '35', 'type': 'block', 'children': ['36']}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '39', 'type': 'call', 'children': ['40', '43']}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '43', 'type': 'argument_list', 'children': []}; {'id': '44', 'type': 'try_statement', 'children': ['45', '60']}; {'id': '45', 'type': 'block', 'children': ['46']}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'is_var'}; {'id': '49', 'type': '()', 'children': ['50']}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '59'], 'value': '=='}; {'id': '51', 'type': 'subscript', 'children': ['52', '55']}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'block'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '55', 'type': 'call', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '57', 'type': 'argument_list', 'children': ['58']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '59', 'type': 'string', 'children': [], 'value': "'='"}; {'id': '60', 'type': 'except_clause', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'IndexError'}; {'id': '62', 'type': 'block', 'children': ['63']}; {'id': '63', 'type': 'expression_statement', 'children': ['64']}; {'id': '64', 'type': 'assignment', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'is_var'}; {'id': '66', 'type': 'False', 'children': []}; {'id': '67', 'type': 'if_statement', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'is_var'}; {'id': '69', 'type': 'block', 'children': ['70']}; {'id': '70', 'type': 'expression_statement', 'children': ['71']}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'warn_deprecated'}; {'id': '73', 'type': 'argument_list', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '75', 'type': 'string', 'children': [], 'value': '"Assignment with = is deprecated; use : instead."'}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'calculator'}; {'id': '79', 'type': 'call', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': '_make_calculator'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '90', 'type': 'call', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'strip'}; {'id': '94', 'type': 'argument_list', 'children': []}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'calculator'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'do_glob_math'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '104', 'type': 'if_statement', 'children': ['105', '107']}; {'id': '105', 'type': 'not_operator', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '107', 'type': 'block', 'children': ['108']}; {'id': '108', 'type': 'return_statement', 'children': []}; {'id': '109', 'type': 'expression_statement', 'children': ['110']}; {'id': '110', 'type': 'assignment', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '112', 'type': 'binary_operator', 'children': ['113', '117'], 'value': '+'}; {'id': '113', 'type': '()', 'children': ['114']}; {'id': '114', 'type': 'boolean_operator', 'children': ['115', '116'], 'value': 'or'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'scope'}; {'id': '116', 'type': 'string', 'children': [], 'value': "''"}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '118', 'type': 'if_statement', 'children': ['119', '131', '306']}; {'id': '119', 'type': 'boolean_operator', 'children': ['120', '121'], 'value': 'or'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'is_var'}; {'id': '121', 'type': 'boolean_operator', 'children': ['122', '128'], 'value': 'and'}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'string', 'children': [], 'value': "'$'"}; {'id': '128', 'type': 'comparison_operator', 'children': ['129', '130'], 'value': 'is'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '130', 'type': 'None', 'children': []}; {'id': '131', 'type': 'block', 'children': ['132', '136', '140', '208', '215', '235', '246']}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'assignment', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'is_default'}; {'id': '135', 'type': 'False', 'children': []}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'is_global'}; {'id': '139', 'type': 'True', 'children': []}; {'id': '140', 'type': 'while_statement', 'children': ['141', '142']}; {'id': '141', 'type': 'True', 'children': []}; {'id': '142', 'type': 'block', 'children': ['143', '153', '172', '178']}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'splits'}; {'id': '146', 'type': 'call', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'rsplit'}; {'id': '150', 'type': 'argument_list', 'children': ['151', '152']}; {'id': '151', 'type': 'None', 'children': []}; {'id': '152', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '153', 'type': 'if_statement', 'children': ['154', '170']}; {'id': '154', 'type': 'boolean_operator', 'children': ['155', '161'], 'value': 'or'}; {'id': '155', 'type': 'comparison_operator', 'children': ['156', '160'], 'value': '<'}; {'id': '156', 'type': 'call', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '158', 'type': 'argument_list', 'children': ['159']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'splits'}; {'id': '160', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '161', 'type': 'not_operator', 'children': ['162']}; {'id': '162', 'type': 'call', 'children': ['163', '168']}; {'id': '163', 'type': 'attribute', 'children': ['164', '167']}; {'id': '164', 'type': 'subscript', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'splits'}; {'id': '166', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '168', 'type': 'argument_list', 'children': ['169']}; {'id': '169', 'type': 'string', 'children': [], 'value': "'!'"}; {'id': '170', 'type': 'block', 'children': ['171']}; {'id': '171', 'type': 'break_statement', 'children': []}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '177']}; {'id': '174', 'type': 'pattern_list', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'splits'}; {'id': '178', 'type': 'if_statement', 'children': ['179', '182', '187', '196']}; {'id': '179', 'type': 'comparison_operator', 'children': ['180', '181'], 'value': '=='}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '181', 'type': 'string', 'children': [], 'value': "'!default'"}; {'id': '182', 'type': 'block', 'children': ['183']}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'assignment', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'is_default'}; {'id': '186', 'type': 'True', 'children': []}; {'id': '187', 'type': 'elif_clause', 'children': ['188', '191']}; {'id': '188', 'type': 'comparison_operator', 'children': ['189', '190'], 'value': '=='}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '190', 'type': 'string', 'children': [], 'value': "'!global'"}; {'id': '191', 'type': 'block', 'children': ['192']}; {'id': '192', 'type': 'expression_statement', 'children': ['193']}; {'id': '193', 'type': 'assignment', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'is_global'}; {'id': '195', 'type': 'True', 'children': []}; {'id': '196', 'type': 'else_clause', 'children': ['197']}; {'id': '197', 'type': 'block', 'children': ['198']}; {'id': '198', 'type': 'raise_statement', 'children': ['199']}; {'id': '199', 'type': 'call', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '201', 'type': 'argument_list', 'children': ['202']}; {'id': '202', 'type': 'call', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'string', 'children': [], 'value': '"Unrecognized flag: {0}"'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '206', 'type': 'argument_list', 'children': ['207']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'flag'}; {'id': '208', 'type': 'expression_statement', 'children': ['209']}; {'id': '209', 'type': 'assignment', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '211', 'type': 'call', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'normalize_var'}; {'id': '213', 'type': 'argument_list', 'children': ['214']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '215', 'type': 'try_statement', 'children': ['216', '228']}; {'id': '216', 'type': 'block', 'children': ['217']}; {'id': '217', 'type': 'expression_statement', 'children': ['218']}; {'id': '218', 'type': 'assignment', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'existing_value'}; {'id': '220', 'type': 'call', 'children': ['221', '226']}; {'id': '221', 'type': 'attribute', 'children': ['222', '225']}; {'id': '222', 'type': 'attribute', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'variable'}; {'id': '226', 'type': 'argument_list', 'children': ['227']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '228', 'type': 'except_clause', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '230', 'type': 'block', 'children': ['231']}; {'id': '231', 'type': 'expression_statement', 'children': ['232']}; {'id': '232', 'type': 'assignment', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'existing_value'}; {'id': '234', 'type': 'None', 'children': []}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'is_defined'}; {'id': '238', 'type': 'boolean_operator', 'children': ['239', '242'], 'value': 'and'}; {'id': '239', 'type': 'comparison_operator', 'children': ['240', '241'], 'value': 'is'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'existing_value'}; {'id': '241', 'type': 'None', 'children': []}; {'id': '242', 'type': 'not_operator', 'children': ['243']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'existing_value'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'is_null'}; {'id': '246', 'type': 'if_statement', 'children': ['247', '250', '252']}; {'id': '247', 'type': 'boolean_operator', 'children': ['248', '249'], 'value': 'and'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'is_default'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'is_defined'}; {'id': '250', 'type': 'block', 'children': ['251']}; {'id': '251', 'type': 'pass_statement', 'children': []}; {'id': '252', 'type': 'else_clause', 'children': ['253']}; {'id': '253', 'type': 'block', 'children': ['254', '280', '292']}; {'id': '254', 'type': 'if_statement', 'children': ['255', '271']}; {'id': '255', 'type': 'boolean_operator', 'children': ['256', '264'], 'value': 'and'}; {'id': '256', 'type': 'boolean_operator', 'children': ['257', '258'], 'value': 'and'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'is_defined'}; {'id': '258', 'type': 'call', 'children': ['259', '262']}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '262', 'type': 'argument_list', 'children': ['263']}; {'id': '263', 'type': 'string', 'children': [], 'value': "'$'"}; {'id': '264', 'type': 'call', 'children': ['265', '270']}; {'id': '265', 'type': 'attribute', 'children': ['266', '269']}; {'id': '266', 'type': 'subscript', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '268', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'isupper'}; {'id': '270', 'type': 'argument_list', 'children': []}; {'id': '271', 'type': 'block', 'children': ['272']}; {'id': '272', 'type': 'expression_statement', 'children': ['273']}; {'id': '273', 'type': 'call', 'children': ['274', '277']}; {'id': '274', 'type': 'attribute', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'warn'}; {'id': '277', 'type': 'argument_list', 'children': ['278', '279']}; {'id': '278', 'type': 'string', 'children': [], 'value': '"Constant %r redefined"'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'prop'}; {'id': '280', 'type': 'expression_statement', 'children': ['281']}; {'id': '281', 'type': 'assignment', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '283', 'type': 'call', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'calculator'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'calculate'}; {'id': '287', 'type': 'argument_list', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '289', 'type': 'keyword_argument', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'divide'}; {'id': '291', 'type': 'True', 'children': []}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'call', 'children': ['294', '299']}; {'id': '294', 'type': 'attribute', 'children': ['295', '298']}; {'id': '295', 'type': 'attribute', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'namespace'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'set_variable'}; {'id': '299', 'type': 'argument_list', 'children': ['300', '301', '302']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '302', 'type': 'keyword_argument', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'local_only'}; {'id': '304', 'type': 'not_operator', 'children': ['305']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'is_global'}; {'id': '306', 'type': 'else_clause', 'children': ['307']}; {'id': '307', 'type': 'block', 'children': ['308', '317', '337', '394']}; {'id': '308', 'type': 'expression_statement', 'children': ['309']}; {'id': '309', 'type': 'assignment', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '311', 'type': 'call', 'children': ['312', '315']}; {'id': '312', 'type': 'attribute', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'calculator'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'apply_vars'}; {'id': '315', 'type': 'argument_list', 'children': ['316']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '317', 'type': 'if_statement', 'children': ['318', '321', '326']}; {'id': '318', 'type': 'comparison_operator', 'children': ['319', '320'], 'value': 'is'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '320', 'type': 'None', 'children': []}; {'id': '321', 'type': 'block', 'children': ['322']}; {'id': '322', 'type': 'expression_statement', 'children': ['323']}; {'id': '323', 'type': 'assignment', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '325', 'type': 'None', 'children': []}; {'id': '326', 'type': 'else_clause', 'children': ['327']}; {'id': '327', 'type': 'block', 'children': ['328']}; {'id': '328', 'type': 'expression_statement', 'children': ['329']}; {'id': '329', 'type': 'assignment', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '331', 'type': 'call', 'children': ['332', '335']}; {'id': '332', 'type': 'attribute', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'calculator'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'calculate'}; {'id': '335', 'type': 'argument_list', 'children': ['336']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'raw_value'}; {'id': '337', 'type': 'if_statement', 'children': ['338', '341', '343', '353']}; {'id': '338', 'type': 'comparison_operator', 'children': ['339', '340'], 'value': 'is'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '340', 'type': 'None', 'children': []}; {'id': '341', 'type': 'block', 'children': ['342']}; {'id': '342', 'type': 'pass_statement', 'children': []}; {'id': '343', 'type': 'elif_clause', 'children': ['344', '351']}; {'id': '344', 'type': 'call', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '346', 'type': 'argument_list', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '348', 'type': 'attribute', 'children': ['349', '350']}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'string_types'}; {'id': '351', 'type': 'block', 'children': ['352']}; {'id': '352', 'type': 'pass_statement', 'children': []}; {'id': '353', 'type': 'else_clause', 'children': ['354']}; {'id': '354', 'type': 'block', 'children': ['355', '361', '377', '383']}; {'id': '355', 'type': 'if_statement', 'children': ['356', '359']}; {'id': '356', 'type': 'attribute', 'children': ['357', '358']}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'is_null'}; {'id': '359', 'type': 'block', 'children': ['360']}; {'id': '360', 'type': 'return_statement', 'children': []}; {'id': '361', 'type': 'expression_statement', 'children': ['362']}; {'id': '362', 'type': 'assignment', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '364', 'type': 'call', 'children': ['365', '370']}; {'id': '365', 'type': 'attribute', 'children': ['366', '369']}; {'id': '366', 'type': 'attribute', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'legacy_compiler_options'}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '370', 'type': 'argument_list', 'children': ['371', '372']}; {'id': '371', 'type': 'string', 'children': [], 'value': "'style'"}; {'id': '372', 'type': 'attribute', 'children': ['373', '376']}; {'id': '373', 'type': 'attribute', 'children': ['374', '375']}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '375', 'type': 'identifier', 'children': [], 'value': 'compiler'}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'output_style'}; {'id': '377', 'type': 'expression_statement', 'children': ['378']}; {'id': '378', 'type': 'assignment', 'children': ['379', '380']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'compress'}; {'id': '380', 'type': 'comparison_operator', 'children': ['381', '382'], 'value': '=='}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'style'}; {'id': '382', 'type': 'string', 'children': [], 'value': "'compressed'"}; {'id': '383', 'type': 'expression_statement', 'children': ['384']}; {'id': '384', 'type': 'assignment', 'children': ['385', '386']}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '386', 'type': 'call', 'children': ['387', '390']}; {'id': '387', 'type': 'attribute', 'children': ['388', '389']}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'render'}; {'id': '390', 'type': 'argument_list', 'children': ['391']}; {'id': '391', 'type': 'keyword_argument', 'children': ['392', '393']}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'compress'}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'compress'}; {'id': '394', 'type': 'expression_statement', 'children': ['395']}; {'id': '395', 'type': 'call', 'children': ['396', '401']}; {'id': '396', 'type': 'attribute', 'children': ['397', '400']}; {'id': '397', 'type': 'attribute', 'children': ['398', '399']}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'rule'}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'properties'}; {'id': '400', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '401', 'type': 'argument_list', 'children': ['402']}; {'id': '402', 'type': 'tuple', 'children': ['403', '404']}; {'id': '403', 'type': 'identifier', 'children': [], 'value': '_prop'}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'value'}
Implements properties and variables extraction and assignment
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'listfiles'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'data_name'}; {'id': '5', 'type': 'block', 'children': ['6', '16', '38', '43', '47', '189']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'data_source'}; {'id': '9', 'type': 'call', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'get_data_object'}; {'id': '11', 'type': 'argument_list', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'data_name'}; {'id': '13', 'type': 'keyword_argument', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'use_data_config'}; {'id': '15', 'type': 'False', 'children': []}; {'id': '16', 'type': 'if_statement', 'children': ['17', '19']}; {'id': '17', 'type': 'not_operator', 'children': ['18']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'data_source'}; {'id': '19', 'type': 'block', 'children': ['20', '32']}; {'id': '20', 'type': 'if_statement', 'children': ['21', '24']}; {'id': '21', 'type': 'comparison_operator', 'children': ['22', '23'], 'value': 'in'}; {'id': '22', 'type': 'string', 'children': [], 'value': "'output'"}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'data_name'}; {'id': '24', 'type': 'block', 'children': ['25']}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '30', 'type': 'argument_list', 'children': ['31']}; {'id': '31', 'type': 'string', 'children': [], 'value': '"Note: You cannot clone the output of a running job. You need to wait for it to finish."'}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'call', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '37', 'type': 'argument_list', 'children': []}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '41', 'type': 'list', 'children': ['42'], 'value': "['']"}; {'id': '42', 'type': 'string', 'children': [], 'value': "''"}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '46', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '47', 'type': 'while_statement', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '49', 'type': 'block', 'children': ['50', '58', '70', '86', '107', '113', '127']}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'cur_dir'}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '57', 'type': 'argument_list', 'children': []}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '61', 'type': 'call', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'string', 'children': [], 'value': '"/resources/{}/{}?content=true"'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '65', 'type': 'argument_list', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'data_source'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'resource_id'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'cur_dir'}; {'id': '70', 'type': 'expression_statement', 'children': ['71']}; {'id': '71', 'type': 'assignment', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '73', 'type': 'call', 'children': ['74', '85']}; {'id': '74', 'type': 'attribute', 'children': ['75', '84']}; {'id': '75', 'type': 'call', 'children': ['76', '81']}; {'id': '76', 'type': 'attribute', 'children': ['77', '80']}; {'id': '77', 'type': 'call', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'DataClient'}; {'id': '79', 'type': 'argument_list', 'children': []}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '81', 'type': 'argument_list', 'children': ['82', '83']}; {'id': '82', 'type': 'string', 'children': [], 'value': '"GET"'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'json'}; {'id': '85', 'type': 'argument_list', 'children': []}; {'id': '86', 'type': 'if_statement', 'children': ['87', '92']}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '91'], 'value': '>'}; {'id': '88', 'type': 'subscript', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '90', 'type': 'string', 'children': [], 'value': "'skipped_files'"}; {'id': '91', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '92', 'type': 'block', 'children': ['93']}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '98', 'type': 'argument_list', 'children': ['99', '100', '101', '104']}; {'id': '99', 'type': 'string', 'children': [], 'value': '"Warning: in directory \'%s\', %s/%s files skipped (too many files)"'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'cur_dir'}; {'id': '101', 'type': 'subscript', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '103', 'type': 'string', 'children': [], 'value': "'skipped_files'"}; {'id': '104', 'type': 'subscript', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '106', 'type': 'string', 'children': [], 'value': "'total_files'"}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'assignment', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '110', 'type': 'subscript', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '112', 'type': 'string', 'children': [], 'value': "'files'"}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'call', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '118', 'type': 'argument_list', 'children': ['119']}; {'id': '119', 'type': 'keyword_argument', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '121', 'type': 'lambda', 'children': ['122', '124']}; {'id': '122', 'type': 'lambda_parameters', 'children': ['123']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '124', 'type': 'subscript', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '126', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '127', 'type': 'for_statement', 'children': ['128', '129', '130']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '130', 'type': 'block', 'children': ['131', '145', '158', '165']}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '134', 'type': 'call', 'children': ['135', '140']}; {'id': '135', 'type': 'attribute', 'children': ['136', '139']}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '140', 'type': 'argument_list', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'cur_dir'}; {'id': '142', 'type': 'subscript', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '145', 'type': 'if_statement', 'children': ['146', '151']}; {'id': '146', 'type': 'comparison_operator', 'children': ['147', '150'], 'value': '=='}; {'id': '147', 'type': 'subscript', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '149', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '150', 'type': 'string', 'children': [], 'value': "'directory'"}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'augmented_assignment', 'children': ['154', '155'], 'value': '+='}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'sep'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'call', 'children': ['160', '163']}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '165', 'type': 'if_statement', 'children': ['166', '171']}; {'id': '166', 'type': 'comparison_operator', 'children': ['167', '170'], 'value': '=='}; {'id': '167', 'type': 'subscript', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '169', 'type': 'string', 'children': [], 'value': "'type'"}; {'id': '170', 'type': 'string', 'children': [], 'value': "'directory'"}; {'id': '171', 'type': 'block', 'children': ['172']}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'call', 'children': ['174', '177']}; {'id': '174', 'type': 'attribute', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '177', 'type': 'argument_list', 'children': ['178']}; {'id': '178', 'type': 'call', 'children': ['179', '184']}; {'id': '179', 'type': 'attribute', 'children': ['180', '183']}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '184', 'type': 'argument_list', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'cur_dir'}; {'id': '186', 'type': 'subscript', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '188', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '189', 'type': 'for_statement', 'children': ['190', '191', '192']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'paths'}; {'id': '192', 'type': 'block', 'children': ['193']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'call', 'children': ['195', '198']}; {'id': '195', 'type': 'attribute', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '198', 'type': 'argument_list', 'children': ['199']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'path'}
List files in a dataset.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '16']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'download'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '10', '13']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'relative'}; {'id': '9', 'type': 'False', 'children': []}; {'id': '10', 'type': 'default_parameter', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '12', 'type': 'None', 'children': []}; {'id': '13', 'type': 'default_parameter', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'timeout'}; {'id': '15', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '16', 'type': 'block', 'children': ['17', '28', '40', '44', '57', '67']}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'request_url'}; {'id': '20', 'type': 'conditional_expression', 'children': ['21', '26', '27'], 'value': 'if'}; {'id': '21', 'type': 'binary_operator', 'children': ['22', '25'], 'value': '+'}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'base_url'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'relative'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'url'}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'call', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '33', 'type': 'argument_list', 'children': ['34']}; {'id': '34', 'type': 'call', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'string', 'children': [], 'value': '"Downloading file from url: {}"'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'request_url'}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'assignment', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'request_headers'}; {'id': '43', 'type': 'dictionary', 'children': []}; {'id': '44', 'type': 'if_statement', 'children': ['45', '48']}; {'id': '45', 'type': 'attribute', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'auth_header'}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '54']}; {'id': '51', 'type': 'subscript', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'request_headers'}; {'id': '53', 'type': 'string', 'children': [], 'value': '"Authorization"'}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'auth_header'}; {'id': '57', 'type': 'if_statement', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '59', 'type': 'block', 'children': ['60']}; {'id': '60', 'type': 'expression_statement', 'children': ['61']}; {'id': '61', 'type': 'call', 'children': ['62', '65']}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'request_headers'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '67', 'type': 'try_statement', 'children': ['68', '197']}; {'id': '68', 'type': 'block', 'children': ['69', '87', '94', '195']}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'assignment', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '76', 'type': 'argument_list', 'children': ['77', '78', '81', '84']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'request_url'}; {'id': '78', 'type': 'keyword_argument', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'request_headers'}; {'id': '81', 'type': 'keyword_argument', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'timeout'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'timeout'}; {'id': '84', 'type': 'keyword_argument', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'stream'}; {'id': '86', 'type': 'True', 'children': []}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'call', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'check_response_status'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '94', 'type': 'with_statement', 'children': ['95', '105']}; {'id': '95', 'type': 'with_clause', 'children': ['96']}; {'id': '96', 'type': 'with_item', 'children': ['97']}; {'id': '97', 'type': 'as_pattern', 'children': ['98', '103']}; {'id': '98', 'type': 'call', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '100', 'type': 'argument_list', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '102', 'type': 'string', 'children': [], 'value': "'wb'"}; {'id': '103', 'type': 'as_pattern_target', 'children': ['104']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '105', 'type': 'block', 'children': ['106', '117', '132']}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'content_length'}; {'id': '109', 'type': 'call', 'children': ['110', '115']}; {'id': '110', 'type': 'attribute', 'children': ['111', '114']}; {'id': '111', 'type': 'attribute', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '115', 'type': 'argument_list', 'children': ['116']}; {'id': '116', 'type': 'string', 'children': [], 'value': "'x-floydhub-content-length'"}; {'id': '117', 'type': 'if_statement', 'children': ['118', '120']}; {'id': '118', 'type': 'not_operator', 'children': ['119']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'content_length'}; {'id': '120', 'type': 'block', 'children': ['121']}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'assignment', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'content_length'}; {'id': '124', 'type': 'call', 'children': ['125', '130']}; {'id': '125', 'type': 'attribute', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'headers'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '130', 'type': 'argument_list', 'children': ['131']}; {'id': '131', 'type': 'string', 'children': [], 'value': "'content-length'"}; {'id': '132', 'type': 'if_statement', 'children': ['133', '134', '172']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'content_length'}; {'id': '134', 'type': 'block', 'children': ['135']}; {'id': '135', 'type': 'for_statement', 'children': ['136', '137', '161']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '137', 'type': 'call', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'progress'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'bar'}; {'id': '141', 'type': 'argument_list', 'children': ['142', '150']}; {'id': '142', 'type': 'call', 'children': ['143', '146']}; {'id': '143', 'type': 'attribute', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'iter_content'}; {'id': '146', 'type': 'argument_list', 'children': ['147']}; {'id': '147', 'type': 'keyword_argument', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'chunk_size'}; {'id': '149', 'type': 'integer', 'children': [], 'value': '1024'}; {'id': '150', 'type': 'keyword_argument', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'expected_size'}; {'id': '152', 'type': 'binary_operator', 'children': ['153', '160'], 'value': '+'}; {'id': '153', 'type': '()', 'children': ['154']}; {'id': '154', 'type': 'binary_operator', 'children': ['155', '159'], 'value': '/'}; {'id': '155', 'type': 'call', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '157', 'type': 'argument_list', 'children': ['158']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'content_length'}; {'id': '159', 'type': 'integer', 'children': [], 'value': '1024'}; {'id': '160', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '161', 'type': 'block', 'children': ['162']}; {'id': '162', 'type': 'if_statement', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '164', 'type': 'block', 'children': ['165']}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'call', 'children': ['167', '170']}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '170', 'type': 'argument_list', 'children': ['171']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '172', 'type': 'else_clause', 'children': ['173']}; {'id': '173', 'type': 'block', 'children': ['174']}; {'id': '174', 'type': 'for_statement', 'children': ['175', '176', '184']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '176', 'type': 'call', 'children': ['177', '180']}; {'id': '177', 'type': 'attribute', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'iter_content'}; {'id': '180', 'type': 'argument_list', 'children': ['181']}; {'id': '181', 'type': 'keyword_argument', 'children': ['182', '183']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'chunk_size'}; {'id': '183', 'type': 'integer', 'children': [], 'value': '1024'}; {'id': '184', 'type': 'block', 'children': ['185']}; {'id': '185', 'type': 'if_statement', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '187', 'type': 'block', 'children': ['188']}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'call', 'children': ['190', '193']}; {'id': '190', 'type': 'attribute', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '193', 'type': 'argument_list', 'children': ['194']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '195', 'type': 'return_statement', 'children': ['196']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '197', 'type': 'except_clause', 'children': ['198', '206']}; {'id': '198', 'type': 'as_pattern', 'children': ['199', '204']}; {'id': '199', 'type': 'attribute', 'children': ['200', '203']}; {'id': '200', 'type': 'attribute', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'requests'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'exceptions'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'ConnectionError'}; {'id': '204', 'type': 'as_pattern_target', 'children': ['205']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'exception'}; {'id': '206', 'type': 'block', 'children': ['207', '219']}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'call', 'children': ['209', '212']}; {'id': '209', 'type': 'attribute', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '212', 'type': 'argument_list', 'children': ['213']}; {'id': '213', 'type': 'call', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'string', 'children': [], 'value': '"Exception: {}"'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '217', 'type': 'argument_list', 'children': ['218']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'exception'}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'call', 'children': ['221', '224']}; {'id': '221', 'type': 'attribute', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '224', 'type': 'argument_list', 'children': ['225']}; {'id': '225', 'type': 'string', 'children': [], 'value': '"Cannot connect to the Floyd server. Check your internet connection."'}
Download the file from the given url at the current path
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_command_line'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8', '9', '10']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'mode'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'open_notebook'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'command_str'}; {'id': '11', 'type': 'block', 'children': ['12', '18', '32', '46', '58', '106', '150']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '15', 'type': 'list', 'children': ['16', '17'], 'value': '["floyd", "run"]'}; {'id': '16', 'type': 'string', 'children': [], 'value': '"floyd"'}; {'id': '17', 'type': 'string', 'children': [], 'value': '"run"'}; {'id': '18', 'type': 'if_statement', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '26', 'type': 'argument_list', 'children': ['27']}; {'id': '27', 'type': 'binary_operator', 'children': ['28', '29'], 'value': '+'}; {'id': '28', 'type': 'string', 'children': [], 'value': "'--'"}; {'id': '29', 'type': 'subscript', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'INSTANCE_NAME_MAP'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '32', 'type': 'if_statement', 'children': ['33', '39']}; {'id': '33', 'type': 'boolean_operator', 'children': ['34', '35'], 'value': 'and'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '35', 'type': 'not_operator', 'children': ['36']}; {'id': '36', 'type': 'comparison_operator', 'children': ['37', '38'], 'value': '=='}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'DEFAULT_ENV'}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'augmented_assignment', 'children': ['42', '43'], 'value': '+='}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '43', 'type': 'list', 'children': ['44', '45'], 'value': '["--env", env]'}; {'id': '44', 'type': 'string', 'children': [], 'value': '"--env"'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '46', 'type': 'if_statement', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '48', 'type': 'block', 'children': ['49']}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'augmented_assignment', 'children': ['51', '52'], 'value': '+='}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '52', 'type': 'list', 'children': ['53', '54'], 'value': '["--message", shell_quote(message)]'}; {'id': '53', 'type': 'string', 'children': [], 'value': '"--message"'}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'shell_quote'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '58', 'type': 'if_statement', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '60', 'type': 'block', 'children': ['61']}; {'id': '61', 'type': 'for_statement', 'children': ['62', '63', '64']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'data_item'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '64', 'type': 'block', 'children': ['65', '74', '100']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'data_item'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '74', 'type': 'if_statement', 'children': ['75', '81']}; {'id': '75', 'type': 'comparison_operator', 'children': ['76', '80'], 'value': '>'}; {'id': '76', 'type': 'call', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '80', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '81', 'type': 'block', 'children': ['82']}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'data_item'}; {'id': '85', 'type': 'binary_operator', 'children': ['86', '97'], 'value': '+'}; {'id': '86', 'type': 'binary_operator', 'children': ['87', '96'], 'value': '+'}; {'id': '87', 'type': 'call', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'normalize_data_name'}; {'id': '89', 'type': 'argument_list', 'children': ['90', '93']}; {'id': '90', 'type': 'subscript', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '92', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '93', 'type': 'keyword_argument', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'use_data_config'}; {'id': '95', 'type': 'False', 'children': []}; {'id': '96', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '97', 'type': 'subscript', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '99', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'augmented_assignment', 'children': ['102', '103'], 'value': '+='}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '103', 'type': 'list', 'children': ['104', '105'], 'value': '["--data", data_item]'}; {'id': '104', 'type': 'string', 'children': [], 'value': '"--data"'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'data_item'}; {'id': '106', 'type': 'if_statement', 'children': ['107', '112', '135']}; {'id': '107', 'type': 'boolean_operator', 'children': ['108', '109'], 'value': 'and'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'mode'}; {'id': '109', 'type': 'comparison_operator', 'children': ['110', '111'], 'value': '!='}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'mode'}; {'id': '111', 'type': 'string', 'children': [], 'value': '"job"'}; {'id': '112', 'type': 'block', 'children': ['113', '119']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'augmented_assignment', 'children': ['115', '116'], 'value': '+='}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '116', 'type': 'list', 'children': ['117', '118'], 'value': '["--mode", mode]'}; {'id': '117', 'type': 'string', 'children': [], 'value': '"--mode"'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'mode'}; {'id': '119', 'type': 'if_statement', 'children': ['120', '123']}; {'id': '120', 'type': 'comparison_operator', 'children': ['121', '122'], 'value': '=='}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'mode'}; {'id': '122', 'type': 'string', 'children': [], 'value': "'jupyter'"}; {'id': '123', 'type': 'block', 'children': ['124']}; {'id': '124', 'type': 'if_statement', 'children': ['125', '127']}; {'id': '125', 'type': 'not_operator', 'children': ['126']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'open_notebook'}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'call', 'children': ['130', '133']}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '133', 'type': 'argument_list', 'children': ['134']}; {'id': '134', 'type': 'string', 'children': [], 'value': '"--no-open"'}; {'id': '135', 'type': 'else_clause', 'children': ['136']}; {'id': '136', 'type': 'block', 'children': ['137']}; {'id': '137', 'type': 'if_statement', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'command_str'}; {'id': '139', 'type': 'block', 'children': ['140']}; {'id': '140', 'type': 'expression_statement', 'children': ['141']}; {'id': '141', 'type': 'call', 'children': ['142', '145']}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '145', 'type': 'argument_list', 'children': ['146']}; {'id': '146', 'type': 'call', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'shell_quote'}; {'id': '148', 'type': 'argument_list', 'children': ['149']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'command_str'}; {'id': '150', 'type': 'return_statement', 'children': ['151']}; {'id': '151', 'type': 'call', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'floyd_command'}
Return a string representing the full floyd command entered in the command line
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '15']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'restart'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'ctx'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'job_name'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'open_notebook'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'gpu'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'cpu'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'gpup'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'cpup'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '15', 'type': 'block', 'children': ['16', '43', '49', '53', '59', '85', '107', '126', '158', '168', '179', '188', '197', '211', '219', '233', '251']}; {'id': '16', 'type': 'if_statement', 'children': ['17', '23']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '22'], 'value': '>'}; {'id': '18', 'type': 'call', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '20', 'type': 'argument_list', 'children': ['21']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '22', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '23', 'type': 'block', 'children': ['24', '36']}; {'id': '24', 'type': 'expression_statement', 'children': ['25']}; {'id': '25', 'type': 'call', 'children': ['26', '29']}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '29', 'type': 'argument_list', 'children': ['30']}; {'id': '30', 'type': 'call', 'children': ['31', '34']}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'string', 'children': [], 'value': '"You passed more than one environment: {}. Please specify a single environment."'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'call', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '46', 'type': 'subscript', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '48', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '52', 'type': 'dictionary', 'children': []}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'expt_client'}; {'id': '56', 'type': 'call', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'ExperimentClient'}; {'id': '58', 'type': 'argument_list', 'children': []}; {'id': '59', 'type': 'try_statement', 'children': ['60', '73']}; {'id': '60', 'type': 'block', 'children': ['61']}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'job'}; {'id': '64', 'type': 'call', 'children': ['65', '68']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'expt_client'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '68', 'type': 'argument_list', 'children': ['69']}; {'id': '69', 'type': 'call', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'normalize_job_name'}; {'id': '71', 'type': 'argument_list', 'children': ['72']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'job_name'}; {'id': '73', 'type': 'except_clause', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'FloydException'}; {'id': '75', 'type': 'block', 'children': ['76']}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'job'}; {'id': '79', 'type': 'call', 'children': ['80', '83']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'expt_client'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '83', 'type': 'argument_list', 'children': ['84']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'job_name'}; {'id': '85', 'type': 'if_statement', 'children': ['86', '87', '92', '99']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'gpu'}; {'id': '87', 'type': 'block', 'children': ['88']}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'assignment', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'G1_INSTANCE_TYPE'}; {'id': '92', 'type': 'elif_clause', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'cpu'}; {'id': '94', 'type': 'block', 'children': ['95']}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'C1_INSTANCE_TYPE'}; {'id': '99', 'type': 'else_clause', 'children': ['100']}; {'id': '100', 'type': 'block', 'children': ['101']}; {'id': '101', 'type': 'expression_statement', 'children': ['102']}; {'id': '102', 'type': 'assignment', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'job'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '107', 'type': 'if_statement', 'children': ['108', '111', '118']}; {'id': '108', 'type': 'comparison_operator', 'children': ['109', '110'], 'value': 'is'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '110', 'type': 'None', 'children': []}; {'id': '111', 'type': 'block', 'children': ['112']}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '117']}; {'id': '114', 'type': 'subscript', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '116', 'type': 'string', 'children': [], 'value': "'instance_type'"}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '118', 'type': 'else_clause', 'children': ['119']}; {'id': '119', 'type': 'block', 'children': ['120']}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'job'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '126', 'type': 'if_statement', 'children': ['127', '130']}; {'id': '127', 'type': 'comparison_operator', 'children': ['128', '129'], 'value': 'is'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '129', 'type': 'None', 'children': []}; {'id': '130', 'type': 'block', 'children': ['131', '137', '152']}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'arch'}; {'id': '134', 'type': 'subscript', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'INSTANCE_ARCH_MAP'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'instance_type'}; {'id': '137', 'type': 'if_statement', 'children': ['138', '144']}; {'id': '138', 'type': 'not_operator', 'children': ['139']}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'validate_env'}; {'id': '141', 'type': 'argument_list', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'arch'}; {'id': '144', 'type': 'block', 'children': ['145']}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'call', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'assignment', 'children': ['154', '157']}; {'id': '154', 'type': 'subscript', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '156', 'type': 'string', 'children': [], 'value': "'env'"}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '164']}; {'id': '160', 'type': 'pattern_list', 'children': ['161', '162', '163']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'data_ids'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'show_data_info'}; {'id': '164', 'type': 'call', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'process_data_ids'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '168', 'type': 'if_statement', 'children': ['169', '171']}; {'id': '169', 'type': 'not_operator', 'children': ['170']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'success'}; {'id': '171', 'type': 'block', 'children': ['172']}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'call', 'children': ['174', '177']}; {'id': '174', 'type': 'attribute', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '177', 'type': 'argument_list', 'children': ['178']}; {'id': '178', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '179', 'type': 'if_statement', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'data_ids'}; {'id': '181', 'type': 'block', 'children': ['182']}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'assignment', 'children': ['184', '187']}; {'id': '184', 'type': 'subscript', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '186', 'type': 'string', 'children': [], 'value': "'data_ids'"}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'data_ids'}; {'id': '188', 'type': 'if_statement', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '190', 'type': 'block', 'children': ['191']}; {'id': '191', 'type': 'expression_statement', 'children': ['192']}; {'id': '192', 'type': 'assignment', 'children': ['193', '196']}; {'id': '193', 'type': 'subscript', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '195', 'type': 'string', 'children': [], 'value': "'description'"}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '197', 'type': 'if_statement', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '199', 'type': 'block', 'children': ['200']}; {'id': '200', 'type': 'expression_statement', 'children': ['201']}; {'id': '201', 'type': 'assignment', 'children': ['202', '205']}; {'id': '202', 'type': 'subscript', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '204', 'type': 'string', 'children': [], 'value': "'command'"}; {'id': '205', 'type': 'call', 'children': ['206', '209']}; {'id': '206', 'type': 'attribute', 'children': ['207', '208']}; {'id': '207', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '209', 'type': 'argument_list', 'children': ['210']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '211', 'type': 'expression_statement', 'children': ['212']}; {'id': '212', 'type': 'call', 'children': ['213', '216']}; {'id': '213', 'type': 'attribute', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '216', 'type': 'argument_list', 'children': ['217', '218']}; {'id': '217', 'type': 'string', 'children': [], 'value': "'Restarting job %s...'"}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'job_name'}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'assignment', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'new_job_info'}; {'id': '222', 'type': 'call', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'expt_client'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'restart'}; {'id': '226', 'type': 'argument_list', 'children': ['227', '230']}; {'id': '227', 'type': 'attribute', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'job'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '230', 'type': 'keyword_argument', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'parameters'}; {'id': '233', 'type': 'if_statement', 'children': ['234', '236']}; {'id': '234', 'type': 'not_operator', 'children': ['235']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'new_job_info'}; {'id': '236', 'type': 'block', 'children': ['237', '244']}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'call', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'floyd_logger'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '242', 'type': 'argument_list', 'children': ['243']}; {'id': '243', 'type': 'string', 'children': [], 'value': '"Failed to restart job"'}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'call', 'children': ['246', '249']}; {'id': '246', 'type': 'attribute', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'exit'}; {'id': '249', 'type': 'argument_list', 'children': ['250']}; {'id': '250', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '251', 'type': 'expression_statement', 'children': ['252']}; {'id': '252', 'type': 'call', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'show_new_job_info'}; {'id': '254', 'type': 'argument_list', 'children': ['255', '256', '259', '260', '263', '264']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'expt_client'}; {'id': '256', 'type': 'subscript', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'new_job_info'}; {'id': '258', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'new_job_info'}; {'id': '260', 'type': 'attribute', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'job'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'mode'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'open_notebook'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'show_data_info'}
Restart a finished job as a new job.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'resolve_addresses'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '6', 'type': 'block', 'children': ['7', '16', '25', '29', '258', '282']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'prop_alignment'}; {'id': '10', 'type': 'subscript', 'children': ['11', '14']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'alignment_stack'}; {'id': '14', 'type': 'unary_operator', 'children': ['15'], 'value': '-'}; {'id': '15', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': 'is'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'prop_alignment'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'prop_alignment'}; {'id': '24', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'prev_node'}; {'id': '28', 'type': 'None', 'children': []}; {'id': '29', 'type': 'for_statement', 'children': ['30', '31', '39']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '35', 'type': 'argument_list', 'children': ['36']}; {'id': '36', 'type': 'keyword_argument', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'skip_not_present'}; {'id': '38', 'type': 'False', 'children': []}; {'id': '39', 'type': 'block', 'children': ['40', '49', '63', '97', '105', '114', '210', '219', '242', '254']}; {'id': '40', 'type': 'if_statement', 'children': ['41', '47']}; {'id': '41', 'type': 'not_operator', 'children': ['42']}; {'id': '42', 'type': 'call', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '44', 'type': 'argument_list', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'AddressableNode'}; {'id': '47', 'type': 'block', 'children': ['48']}; {'id': '48', 'type': 'continue_statement', 'children': []}; {'id': '49', 'type': 'if_statement', 'children': ['50', '57']}; {'id': '50', 'type': 'comparison_operator', 'children': ['51', '56'], 'value': 'is'}; {'id': '51', 'type': 'attribute', 'children': ['52', '55']}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'addr_offset'}; {'id': '56', 'type': 'None', 'children': []}; {'id': '57', 'type': 'block', 'children': ['58', '62']}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'prev_node'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '62', 'type': 'continue_statement', 'children': []}; {'id': '63', 'type': 'if_statement', 'children': ['64', '69']}; {'id': '64', 'type': 'attribute', 'children': ['65', '68']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'chk_implicit_addr'}; {'id': '69', 'type': 'block', 'children': ['70']}; {'id': '70', 'type': 'expression_statement', 'children': ['71']}; {'id': '71', 'type': 'call', 'children': ['72', '79']}; {'id': '72', 'type': 'attribute', 'children': ['73', '78']}; {'id': '73', 'type': 'attribute', 'children': ['74', '77']}; {'id': '74', 'type': 'attribute', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '79', 'type': 'argument_list', 'children': ['80', '85', '92']}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'env'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'chk_implicit_addr'}; {'id': '85', 'type': 'binary_operator', 'children': ['86', '87'], 'value': '%'}; {'id': '86', 'type': 'string', 'children': [], 'value': '"Address offset of component \'%s\' is not explicitly set"'}; {'id': '87', 'type': 'attribute', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'inst_name'}; {'id': '92', 'type': 'attribute', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'inst_src_ref'}; {'id': '97', 'type': 'expression_statement', 'children': ['98']}; {'id': '98', 'type': 'assignment', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'alloc_alignment'}; {'id': '100', 'type': 'attribute', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'addr_align'}; {'id': '105', 'type': 'if_statement', 'children': ['106', '109']}; {'id': '106', 'type': 'comparison_operator', 'children': ['107', '108'], 'value': 'is'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'alloc_alignment'}; {'id': '108', 'type': 'None', 'children': []}; {'id': '109', 'type': 'block', 'children': ['110']}; {'id': '110', 'type': 'expression_statement', 'children': ['111']}; {'id': '111', 'type': 'assignment', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'alloc_alignment'}; {'id': '113', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '114', 'type': 'if_statement', 'children': ['115', '127', '152', '179', '206']}; {'id': '115', 'type': 'comparison_operator', 'children': ['116', '122'], 'value': '=='}; {'id': '116', 'type': 'subscript', 'children': ['117', '120']}; {'id': '117', 'type': 'attribute', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'addressing_mode_stack'}; {'id': '120', 'type': 'unary_operator', 'children': ['121'], 'value': '-'}; {'id': '121', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '122', 'type': 'attribute', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'rdltypes'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'AddressingType'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'compact'}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'if_statement', 'children': ['129', '134', '146']}; {'id': '129', 'type': 'call', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '131', 'type': 'argument_list', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'RegNode'}; {'id': '134', 'type': 'block', 'children': ['135']}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '138', 'type': 'binary_operator', 'children': ['139', '145'], 'value': '//'}; {'id': '139', 'type': 'call', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'get_property'}; {'id': '143', 'type': 'argument_list', 'children': ['144']}; {'id': '144', 'type': 'string', 'children': [], 'value': "'accesswidth'"}; {'id': '145', 'type': 'integer', 'children': [], 'value': '8'}; {'id': '146', 'type': 'else_clause', 'children': ['147']}; {'id': '147', 'type': 'block', 'children': ['148']}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'assignment', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '151', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '152', 'type': 'elif_clause', 'children': ['153', '165']}; {'id': '153', 'type': 'comparison_operator', 'children': ['154', '160'], 'value': '=='}; {'id': '154', 'type': 'subscript', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'addressing_mode_stack'}; {'id': '158', 'type': 'unary_operator', 'children': ['159'], 'value': '-'}; {'id': '159', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '160', 'type': 'attribute', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'rdltypes'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'AddressingType'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'regalign'}; {'id': '165', 'type': 'block', 'children': ['166', '172']}; {'id': '166', 'type': 'expression_statement', 'children': ['167']}; {'id': '167', 'type': 'assignment', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'assignment', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '175', 'type': 'call', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'roundup_pow2'}; {'id': '177', 'type': 'argument_list', 'children': ['178']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '179', 'type': 'elif_clause', 'children': ['180', '192']}; {'id': '180', 'type': 'comparison_operator', 'children': ['181', '187'], 'value': '=='}; {'id': '181', 'type': 'subscript', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'addressing_mode_stack'}; {'id': '185', 'type': 'unary_operator', 'children': ['186'], 'value': '-'}; {'id': '186', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '187', 'type': 'attribute', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'rdltypes'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'AddressingType'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'fullalign'}; {'id': '192', 'type': 'block', 'children': ['193', '199']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'total_size'}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'assignment', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '202', 'type': 'call', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'roundup_pow2'}; {'id': '204', 'type': 'argument_list', 'children': ['205']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '206', 'type': 'else_clause', 'children': ['207']}; {'id': '207', 'type': 'block', 'children': ['208']}; {'id': '208', 'type': 'raise_statement', 'children': ['209']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'RuntimeError'}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'assignment', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'alignment'}; {'id': '213', 'type': 'call', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '215', 'type': 'argument_list', 'children': ['216', '217', '218']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'prop_alignment'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'alloc_alignment'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'mode_alignment'}; {'id': '219', 'type': 'if_statement', 'children': ['220', '223', '228']}; {'id': '220', 'type': 'comparison_operator', 'children': ['221', '222'], 'value': 'is'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'prev_node'}; {'id': '222', 'type': 'None', 'children': []}; {'id': '223', 'type': 'block', 'children': ['224']}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'next_offset'}; {'id': '227', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '228', 'type': 'else_clause', 'children': ['229']}; {'id': '229', 'type': 'block', 'children': ['230']}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'assignment', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'next_offset'}; {'id': '233', 'type': 'binary_operator', 'children': ['234', '239'], 'value': '+'}; {'id': '234', 'type': 'attribute', 'children': ['235', '238']}; {'id': '235', 'type': 'attribute', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'prev_node'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'addr_offset'}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'prev_node'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'total_size'}; {'id': '242', 'type': 'expression_statement', 'children': ['243']}; {'id': '243', 'type': 'assignment', 'children': ['244', '249']}; {'id': '244', 'type': 'attribute', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'addr_offset'}; {'id': '249', 'type': 'call', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'roundup_to'}; {'id': '251', 'type': 'argument_list', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'next_offset'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'alignment'}; {'id': '254', 'type': 'expression_statement', 'children': ['255']}; {'id': '255', 'type': 'assignment', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'prev_node'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'child_node'}; {'id': '258', 'type': 'function_definition', 'children': ['259', '260', '262']}; {'id': '259', 'type': 'function_name', 'children': [], 'value': 'get_child_sort_key'}; {'id': '260', 'type': 'parameters', 'children': ['261']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '262', 'type': 'block', 'children': ['263']}; {'id': '263', 'type': 'if_statement', 'children': ['264', '272', '276']}; {'id': '264', 'type': 'not_operator', 'children': ['265']}; {'id': '265', 'type': 'call', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '267', 'type': 'argument_list', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '269', 'type': 'attribute', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'comp'}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'AddressableComponent'}; {'id': '272', 'type': 'block', 'children': ['273']}; {'id': '273', 'type': 'return_statement', 'children': ['274']}; {'id': '274', 'type': 'unary_operator', 'children': ['275'], 'value': '-'}; {'id': '275', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '276', 'type': 'else_clause', 'children': ['277']}; {'id': '277', 'type': 'block', 'children': ['278']}; {'id': '278', 'type': 'return_statement', 'children': ['279']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'addr_offset'}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'call', 'children': ['284', '291']}; {'id': '284', 'type': 'attribute', 'children': ['285', '290']}; {'id': '285', 'type': 'attribute', 'children': ['286', '289']}; {'id': '286', 'type': 'attribute', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'node'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'inst'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '291', 'type': 'argument_list', 'children': ['292']}; {'id': '292', 'type': 'keyword_argument', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'get_child_sort_key'}
Resolve addresses of children of Addrmap and Regfile components
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_paths'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'patterns'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'start_dirs'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'max_depth'}; {'id': '10', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '11', 'type': 'block', 'children': ['12', '63', '79']}; {'id': '12', 'type': 'if_statement', 'children': ['13', '22']}; {'id': '13', 'type': 'boolean_operator', 'children': ['14', '20'], 'value': 'and'}; {'id': '14', 'type': 'comparison_operator', 'children': ['15', '19'], 'value': '=='}; {'id': '15', 'type': 'call', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'patterns'}; {'id': '19', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '20', 'type': 'not_operator', 'children': ['21']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'start_dirs'}; {'id': '22', 'type': 'block', 'children': ['23', '29', '40']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '26', 'type': 'subscript', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'patterns'}; {'id': '28', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'directory'}; {'id': '32', 'type': 'call', 'children': ['33', '38']}; {'id': '33', 'type': 'attribute', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'dirname'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '40', 'type': 'if_statement', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'directory'}; {'id': '42', 'type': 'block', 'children': ['43', '55', '59']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'patterns'}; {'id': '46', 'type': 'list', 'children': ['47'], 'value': '[os.path.basename(pattern)]'}; {'id': '47', 'type': 'call', 'children': ['48', '53']}; {'id': '48', 'type': 'attribute', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'basename'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'start_dirs'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'directory'}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'assignment', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'max_depth'}; {'id': '62', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '63', 'type': 'if_statement', 'children': ['64', '70']}; {'id': '64', 'type': 'boolean_operator', 'children': ['65', '67'], 'value': 'or'}; {'id': '65', 'type': 'not_operator', 'children': ['66']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'start_dirs'}; {'id': '67', 'type': 'comparison_operator', 'children': ['68', '69'], 'value': '=='}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'start_dirs'}; {'id': '69', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '70', 'type': 'block', 'children': ['71']}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'assignment', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'start_dirs'}; {'id': '74', 'type': 'call', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'getcwd'}; {'id': '78', 'type': 'argument_list', 'children': []}; {'id': '79', 'type': 'for_statement', 'children': ['80', '81', '87']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'start_dir'}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'start_dirs'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'string', 'children': [], 'value': "','"}; {'id': '87', 'type': 'block', 'children': ['88']}; {'id': '88', 'type': 'for_statement', 'children': ['89', '93', '99']}; {'id': '89', 'type': 'pattern_list', 'children': ['90', '91', '92']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'dirs'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '93', 'type': 'call', 'children': ['94', '97']}; {'id': '94', 'type': 'attribute', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'walk'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'start_dir'}; {'id': '99', 'type': 'block', 'children': ['100', '139', '143', '157']}; {'id': '100', 'type': 'if_statement', 'children': ['101', '104']}; {'id': '101', 'type': 'comparison_operator', 'children': ['102', '103'], 'value': 'is'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'max_depth'}; {'id': '103', 'type': 'None', 'children': []}; {'id': '104', 'type': 'block', 'children': ['105', '119', '133']}; {'id': '105', 'type': 'expression_statement', 'children': ['106']}; {'id': '106', 'type': 'assignment', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '108', 'type': 'call', 'children': ['109', '114']}; {'id': '109', 'type': 'attribute', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '114', 'type': 'argument_list', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '116', 'type': 'keyword_argument', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'start_dir'}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'depth'}; {'id': '122', 'type': 'call', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'attribute', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'sep'}; {'id': '133', 'type': 'if_statement', 'children': ['134', '137']}; {'id': '134', 'type': 'comparison_operator', 'children': ['135', '136'], 'value': '>'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'depth'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'max_depth'}; {'id': '137', 'type': 'block', 'children': ['138']}; {'id': '138', 'type': 'continue_statement', 'children': []}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '142', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '143', 'type': 'for_statement', 'children': ['144', '145', '146']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'patterns'}; {'id': '146', 'type': 'block', 'children': ['147']}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'augmented_assignment', 'children': ['149', '150'], 'value': '+='}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '150', 'type': 'call', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'fnmatch'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'filter'}; {'id': '154', 'type': 'argument_list', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'files'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '157', 'type': 'for_statement', 'children': ['158', '159', '160']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'names'}; {'id': '160', 'type': 'block', 'children': ['161', '173']}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'assignment', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '164', 'type': 'call', 'children': ['165', '170']}; {'id': '165', 'type': 'attribute', 'children': ['166', '169']}; {'id': '166', 'type': 'attribute', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '170', 'type': 'argument_list', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '173', 'type': 'expression_statement', 'children': ['174']}; {'id': '174', 'type': 'yield', 'children': ['175']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'path'}
Retrieve files that match any of the patterns.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '12']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_concat'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'bundles'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '7', 'type': 'tuple', 'children': ['8', '9', '10', '11']}; {'id': '8', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '9', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '10', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '11', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '12', 'type': 'block', 'children': ['13', '29', '45', '61', '77', '81', '85', '89', '112', '128', '144', '154', '164', '174', '178', '299', '407', '419']}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '16', 'type': 'call', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '18', 'type': 'argument_list', 'children': ['19']}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'list_comprehension', 'children': ['23', '26']}; {'id': '23', 'type': 'subscript', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'chan'"}; {'id': '26', 'type': 'for_in_clause', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'bundles'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '32', 'type': 'call', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'call', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '37', 'type': 'argument_list', 'children': ['38']}; {'id': '38', 'type': 'list_comprehension', 'children': ['39', '42']}; {'id': '39', 'type': 'subscript', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '41', 'type': 'string', 'children': [], 'value': "'cycle'"}; {'id': '42', 'type': 'for_in_clause', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'bundles'}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'assignment', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '48', 'type': 'call', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'list_comprehension', 'children': ['55', '58']}; {'id': '55', 'type': 'subscript', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '57', 'type': 'string', 'children': [], 'value': "'stage'"}; {'id': '58', 'type': 'for_in_clause', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'bundles'}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '64', 'type': 'call', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '66', 'type': 'argument_list', 'children': ['67']}; {'id': '67', 'type': 'call', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '69', 'type': 'argument_list', 'children': ['70']}; {'id': '70', 'type': 'list_comprehension', 'children': ['71', '74']}; {'id': '71', 'type': 'subscript', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '73', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '74', 'type': 'for_in_clause', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'bundles'}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'all_cycle'}; {'id': '80', 'type': 'None', 'children': []}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'all_stage'}; {'id': '84', 'type': 'None', 'children': []}; {'id': '85', 'type': 'expression_statement', 'children': ['86']}; {'id': '86', 'type': 'assignment', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'all_evt_type'}; {'id': '88', 'type': 'None', 'children': []}; {'id': '89', 'type': 'if_statement', 'children': ['90', '95']}; {'id': '90', 'type': 'comparison_operator', 'children': ['91', '94'], 'value': 'is'}; {'id': '91', 'type': 'subscript', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '93', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '94', 'type': 'None', 'children': []}; {'id': '95', 'type': 'block', 'children': ['96']}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'assignment', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'all_cycle'}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '103', 'type': 'argument_list', 'children': ['104']}; {'id': '104', 'type': 'list_comprehension', 'children': ['105', '109']}; {'id': '105', 'type': 'call', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '109', 'type': 'for_in_clause', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '112', 'type': 'if_statement', 'children': ['113', '118']}; {'id': '113', 'type': 'comparison_operator', 'children': ['114', '117'], 'value': 'is'}; {'id': '114', 'type': 'subscript', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '116', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '117', 'type': 'None', 'children': []}; {'id': '118', 'type': 'block', 'children': ['119']}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'all_stage'}; {'id': '122', 'type': 'call', 'children': ['123', '126']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '128', 'type': 'if_statement', 'children': ['129', '134']}; {'id': '129', 'type': 'comparison_operator', 'children': ['130', '133'], 'value': 'is'}; {'id': '130', 'type': 'subscript', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '132', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '133', 'type': 'None', 'children': []}; {'id': '134', 'type': 'block', 'children': ['135']}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'all_evt_type'}; {'id': '138', 'type': 'call', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '142', 'type': 'argument_list', 'children': ['143']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '144', 'type': 'if_statement', 'children': ['145', '148']}; {'id': '145', 'type': 'subscript', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '147', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '148', 'type': 'block', 'children': ['149']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '152', 'type': 'list', 'children': ['153'], 'value': '[all_cycle]'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'all_cycle'}; {'id': '154', 'type': 'if_statement', 'children': ['155', '158']}; {'id': '155', 'type': 'subscript', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '158', 'type': 'block', 'children': ['159']}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'assignment', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '162', 'type': 'list', 'children': ['163'], 'value': '[all_stage]'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'all_stage'}; {'id': '164', 'type': 'if_statement', 'children': ['165', '168']}; {'id': '165', 'type': 'subscript', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '167', 'type': 'integer', 'children': [], 'value': '3'}; {'id': '168', 'type': 'block', 'children': ['169']}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '172', 'type': 'list', 'children': ['173'], 'value': '[all_evt_type]'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'all_evt_type'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'assignment', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'to_concat'}; {'id': '177', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '178', 'type': 'for_statement', 'children': ['179', '180', '181']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'ch'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '181', 'type': 'block', 'children': ['182']}; {'id': '182', 'type': 'for_statement', 'children': ['183', '184', '185']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'cyc'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '185', 'type': 'block', 'children': ['186']}; {'id': '186', 'type': 'for_statement', 'children': ['187', '188', '189']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'st'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '189', 'type': 'block', 'children': ['190']}; {'id': '190', 'type': 'for_statement', 'children': ['191', '192', '193']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'et'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '193', 'type': 'block', 'children': ['194', '198', '258', '273', '292']}; {'id': '194', 'type': 'expression_statement', 'children': ['195']}; {'id': '195', 'type': 'assignment', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'new_times'}; {'id': '197', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '198', 'type': 'for_statement', 'children': ['199', '200', '201']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'bundles'}; {'id': '201', 'type': 'block', 'children': ['202', '210', '220', '230', '240']}; {'id': '202', 'type': 'expression_statement', 'children': ['203']}; {'id': '203', 'type': 'assignment', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'chan_cond'}; {'id': '205', 'type': 'comparison_operator', 'children': ['206', '207'], 'value': '=='}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'ch'}; {'id': '207', 'type': 'subscript', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '209', 'type': 'string', 'children': [], 'value': "'chan'"}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'assignment', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'cyc_cond'}; {'id': '213', 'type': 'comparison_operator', 'children': ['214', '215'], 'value': 'in'}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'cyc'}; {'id': '215', 'type': 'tuple', 'children': ['216', '219']}; {'id': '216', 'type': 'subscript', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '218', 'type': 'string', 'children': [], 'value': "'cycle'"}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'all_cycle'}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'st_cond'}; {'id': '223', 'type': 'comparison_operator', 'children': ['224', '225'], 'value': 'in'}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'st'}; {'id': '225', 'type': 'tuple', 'children': ['226', '229']}; {'id': '226', 'type': 'subscript', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '228', 'type': 'string', 'children': [], 'value': "'stage'"}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'all_stage'}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'assignment', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'et_cond'}; {'id': '233', 'type': 'comparison_operator', 'children': ['234', '235'], 'value': 'in'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'et'}; {'id': '235', 'type': 'tuple', 'children': ['236', '239']}; {'id': '236', 'type': 'subscript', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '238', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'all_evt_type'}; {'id': '240', 'type': 'if_statement', 'children': ['241', '248']}; {'id': '241', 'type': 'boolean_operator', 'children': ['242', '247'], 'value': 'and'}; {'id': '242', 'type': 'boolean_operator', 'children': ['243', '246'], 'value': 'and'}; {'id': '243', 'type': 'boolean_operator', 'children': ['244', '245'], 'value': 'and'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'chan_cond'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'cyc_cond'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'st_cond'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'et_cond'}; {'id': '248', 'type': 'block', 'children': ['249']}; {'id': '249', 'type': 'expression_statement', 'children': ['250']}; {'id': '250', 'type': 'call', 'children': ['251', '254']}; {'id': '251', 'type': 'attribute', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'new_times'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'extend'}; {'id': '254', 'type': 'argument_list', 'children': ['255']}; {'id': '255', 'type': 'subscript', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '257', 'type': 'string', 'children': [], 'value': "'times'"}; {'id': '258', 'type': 'expression_statement', 'children': ['259']}; {'id': '259', 'type': 'assignment', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'new_times'}; {'id': '261', 'type': 'call', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '263', 'type': 'argument_list', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'new_times'}; {'id': '265', 'type': 'keyword_argument', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '267', 'type': 'lambda', 'children': ['268', '270']}; {'id': '268', 'type': 'lambda_parameters', 'children': ['269']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '270', 'type': 'subscript', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '272', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'assignment', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'new_bund'}; {'id': '276', 'type': 'dictionary', 'children': ['277', '280', '283', '286', '289']}; {'id': '277', 'type': 'pair', 'children': ['278', '279']}; {'id': '278', 'type': 'string', 'children': [], 'value': "'times'"}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'new_times'}; {'id': '280', 'type': 'pair', 'children': ['281', '282']}; {'id': '281', 'type': 'string', 'children': [], 'value': "'chan'"}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'ch'}; {'id': '283', 'type': 'pair', 'children': ['284', '285']}; {'id': '284', 'type': 'string', 'children': [], 'value': "'cycle'"}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'cyc'}; {'id': '286', 'type': 'pair', 'children': ['287', '288']}; {'id': '287', 'type': 'string', 'children': [], 'value': "'stage'"}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'st'}; {'id': '289', 'type': 'pair', 'children': ['290', '291']}; {'id': '290', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'et'}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'call', 'children': ['294', '297']}; {'id': '294', 'type': 'attribute', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'to_concat'}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '297', 'type': 'argument_list', 'children': ['298']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'new_bund'}; {'id': '299', 'type': 'if_statement', 'children': ['300', '304']}; {'id': '300', 'type': 'not_operator', 'children': ['301']}; {'id': '301', 'type': 'subscript', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '303', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '304', 'type': 'block', 'children': ['305', '309', '403']}; {'id': '305', 'type': 'expression_statement', 'children': ['306']}; {'id': '306', 'type': 'assignment', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'to_concat_new'}; {'id': '308', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '309', 'type': 'for_statement', 'children': ['310', '311', '312']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'to_concat'}; {'id': '312', 'type': 'block', 'children': ['313', '317', '328', '332']}; {'id': '313', 'type': 'expression_statement', 'children': ['314']}; {'id': '314', 'type': 'assignment', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'last'}; {'id': '316', 'type': 'None', 'children': []}; {'id': '317', 'type': 'expression_statement', 'children': ['318']}; {'id': '318', 'type': 'call', 'children': ['319', '324']}; {'id': '319', 'type': 'attribute', 'children': ['320', '323']}; {'id': '320', 'type': 'subscript', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '322', 'type': 'string', 'children': [], 'value': "'times'"}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '324', 'type': 'argument_list', 'children': ['325']}; {'id': '325', 'type': 'tuple', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'inf'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'inf'}; {'id': '328', 'type': 'expression_statement', 'children': ['329']}; {'id': '329', 'type': 'assignment', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '331', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '332', 'type': 'for_statement', 'children': ['333', '336', '342']}; {'id': '333', 'type': 'pattern_list', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '336', 'type': 'call', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '338', 'type': 'argument_list', 'children': ['339']}; {'id': '339', 'type': 'subscript', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '341', 'type': 'string', 'children': [], 'value': "'times'"}; {'id': '342', 'type': 'block', 'children': ['343', '397']}; {'id': '343', 'type': 'if_statement', 'children': ['344', '347']}; {'id': '344', 'type': 'comparison_operator', 'children': ['345', '346'], 'value': 'is'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'last'}; {'id': '346', 'type': 'None', 'children': []}; {'id': '347', 'type': 'block', 'children': ['348']}; {'id': '348', 'type': 'if_statement', 'children': ['349', '360']}; {'id': '349', 'type': 'not_operator', 'children': ['350']}; {'id': '350', 'type': 'call', 'children': ['351', '352']}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'isclose'}; {'id': '352', 'type': 'argument_list', 'children': ['353', '356', '357']}; {'id': '353', 'type': 'subscript', 'children': ['354', '355']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '355', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'last'}; {'id': '357', 'type': 'keyword_argument', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'abs_tol'}; {'id': '359', 'type': 'float', 'children': [], 'value': '0.01'}; {'id': '360', 'type': 'block', 'children': ['361', '372', '380', '386', '393']}; {'id': '361', 'type': 'expression_statement', 'children': ['362']}; {'id': '362', 'type': 'assignment', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'new_times'}; {'id': '364', 'type': 'subscript', 'children': ['365', '368']}; {'id': '365', 'type': 'subscript', 'children': ['366', '367']}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '367', 'type': 'string', 'children': [], 'value': "'times'"}; {'id': '368', 'type': 'slice', 'children': ['369', '370', '371']}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '370', 'type': 'colon', 'children': []}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '372', 'type': 'expression_statement', 'children': ['373']}; {'id': '373', 'type': 'assignment', 'children': ['374', '375']}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'new_bund'}; {'id': '375', 'type': 'call', 'children': ['376', '379']}; {'id': '376', 'type': 'attribute', 'children': ['377', '378']}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'bund'}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '379', 'type': 'argument_list', 'children': []}; {'id': '380', 'type': 'expression_statement', 'children': ['381']}; {'id': '381', 'type': 'assignment', 'children': ['382', '385']}; {'id': '382', 'type': 'subscript', 'children': ['383', '384']}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'new_bund'}; {'id': '384', 'type': 'string', 'children': [], 'value': "'times'"}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'new_times'}; {'id': '386', 'type': 'expression_statement', 'children': ['387']}; {'id': '387', 'type': 'call', 'children': ['388', '391']}; {'id': '388', 'type': 'attribute', 'children': ['389', '390']}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'to_concat_new'}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '391', 'type': 'argument_list', 'children': ['392']}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'new_bund'}; {'id': '393', 'type': 'expression_statement', 'children': ['394']}; {'id': '394', 'type': 'assignment', 'children': ['395', '396']}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '397', 'type': 'expression_statement', 'children': ['398']}; {'id': '398', 'type': 'assignment', 'children': ['399', '400']}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'last'}; {'id': '400', 'type': 'subscript', 'children': ['401', '402']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '402', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '403', 'type': 'expression_statement', 'children': ['404']}; {'id': '404', 'type': 'assignment', 'children': ['405', '406']}; {'id': '405', 'type': 'identifier', 'children': [], 'value': 'to_concat'}; {'id': '406', 'type': 'identifier', 'children': [], 'value': 'to_concat_new'}; {'id': '407', 'type': 'expression_statement', 'children': ['408']}; {'id': '408', 'type': 'assignment', 'children': ['409', '410']}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'to_concat'}; {'id': '410', 'type': 'list_comprehension', 'children': ['411', '412', '415']}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '412', 'type': 'for_in_clause', 'children': ['413', '414']}; {'id': '413', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '414', 'type': 'identifier', 'children': [], 'value': 'to_concat'}; {'id': '415', 'type': 'if_clause', 'children': ['416']}; {'id': '416', 'type': 'subscript', 'children': ['417', '418']}; {'id': '417', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '418', 'type': 'string', 'children': [], 'value': "'times'"}; {'id': '419', 'type': 'return_statement', 'children': ['420']}; {'id': '420', 'type': 'identifier', 'children': [], 'value': 'to_concat'}
Prepare event or epoch start and end times for concatenation.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'toggle_pac'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '93']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '10']}; {'id': '7', 'type': 'comparison_operator', 'children': ['8', '9'], 'value': 'is'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'Pac'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'block', 'children': ['11', '23', '34', '45', '56', '67', '78']}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'assignment', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '14', 'type': 'call', 'children': ['15', '22']}; {'id': '15', 'type': 'attribute', 'children': ['16', '21']}; {'id': '16', 'type': 'subscript', 'children': ['17', '20']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '20', 'type': 'string', 'children': [], 'value': "'pac_on'"}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '22', 'type': 'argument_list', 'children': []}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'call', 'children': ['25', '32']}; {'id': '25', 'type': 'attribute', 'children': ['26', '31']}; {'id': '26', 'type': 'subscript', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '30', 'type': 'string', 'children': [], 'value': "'prep'"}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'call', 'children': ['36', '43']}; {'id': '36', 'type': 'attribute', 'children': ['37', '42']}; {'id': '37', 'type': 'subscript', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '41', 'type': 'string', 'children': [], 'value': "'box_metric'"}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '45', 'type': 'expression_statement', 'children': ['46']}; {'id': '46', 'type': 'call', 'children': ['47', '54']}; {'id': '47', 'type': 'attribute', 'children': ['48', '53']}; {'id': '48', 'type': 'subscript', 'children': ['49', '52']}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '52', 'type': 'string', 'children': [], 'value': "'box_complex'"}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '54', 'type': 'argument_list', 'children': ['55']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'call', 'children': ['58', '65']}; {'id': '58', 'type': 'attribute', 'children': ['59', '64']}; {'id': '59', 'type': 'subscript', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'box_surro'"}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '65', 'type': 'argument_list', 'children': ['66']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '67', 'type': 'expression_statement', 'children': ['68']}; {'id': '68', 'type': 'call', 'children': ['69', '76']}; {'id': '69', 'type': 'attribute', 'children': ['70', '75']}; {'id': '70', 'type': 'subscript', 'children': ['71', '74']}; {'id': '71', 'type': 'attribute', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '74', 'type': 'string', 'children': [], 'value': "'box_opts'"}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '78', 'type': 'if_statement', 'children': ['79', '81']}; {'id': '79', 'type': 'not_operator', 'children': ['80']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '81', 'type': 'block', 'children': ['82']}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'call', 'children': ['84', '91']}; {'id': '84', 'type': 'attribute', 'children': ['85', '90']}; {'id': '85', 'type': 'subscript', 'children': ['86', '89']}; {'id': '86', 'type': 'attribute', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '89', 'type': 'string', 'children': [], 'value': "'prep'"}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'set_value'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'False', 'children': []}; {'id': '93', 'type': 'if_statement', 'children': ['94', '99']}; {'id': '94', 'type': 'boolean_operator', 'children': ['95', '98'], 'value': 'and'}; {'id': '95', 'type': 'comparison_operator', 'children': ['96', '97'], 'value': 'is'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'Pac'}; {'id': '97', 'type': 'None', 'children': []}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'pac_on'}; {'id': '99', 'type': 'block', 'children': ['100', '106', '116', '126', '161', '172', '183', '242', '297', '309', '328', '340', '352', '362', '401', '414', '427']}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'hilb_on'}; {'id': '109', 'type': 'call', 'children': ['110', '115']}; {'id': '110', 'type': 'attribute', 'children': ['111', '114']}; {'id': '111', 'type': 'subscript', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '113', 'type': 'string', 'children': [], 'value': "'hilbert_on'"}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'isChecked'}; {'id': '115', 'type': 'argument_list', 'children': []}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'wav_on'}; {'id': '119', 'type': 'call', 'children': ['120', '125']}; {'id': '120', 'type': 'attribute', 'children': ['121', '124']}; {'id': '121', 'type': 'subscript', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '123', 'type': 'string', 'children': [], 'value': "'wavelet_on'"}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'isChecked'}; {'id': '125', 'type': 'argument_list', 'children': []}; {'id': '126', 'type': 'for_statement', 'children': ['127', '128', '135']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '128', 'type': 'call', 'children': ['129', '134']}; {'id': '129', 'type': 'attribute', 'children': ['130', '133']}; {'id': '130', 'type': 'subscript', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '132', 'type': 'string', 'children': [], 'value': "'hilbert'"}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '134', 'type': 'argument_list', 'children': []}; {'id': '135', 'type': 'block', 'children': ['136', '145']}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'call', 'children': ['138', '143']}; {'id': '138', 'type': 'attribute', 'children': ['139', '142']}; {'id': '139', 'type': 'subscript', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '141', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '143', 'type': 'argument_list', 'children': ['144']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'hilb_on'}; {'id': '145', 'type': 'if_statement', 'children': ['146', '151']}; {'id': '146', 'type': 'comparison_operator', 'children': ['147', '150'], 'value': 'is'}; {'id': '147', 'type': 'subscript', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '149', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '150', 'type': 'None', 'children': []}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'call', 'children': ['154', '159']}; {'id': '154', 'type': 'attribute', 'children': ['155', '158']}; {'id': '155', 'type': 'subscript', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'hilb_on'}; {'id': '161', 'type': 'expression_statement', 'children': ['162']}; {'id': '162', 'type': 'call', 'children': ['163', '170']}; {'id': '163', 'type': 'attribute', 'children': ['164', '169']}; {'id': '164', 'type': 'subscript', 'children': ['165', '168']}; {'id': '165', 'type': 'subscript', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '167', 'type': 'string', 'children': [], 'value': "'wav_width'"}; {'id': '168', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '170', 'type': 'argument_list', 'children': ['171']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'wav_on'}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'call', 'children': ['174', '181']}; {'id': '174', 'type': 'attribute', 'children': ['175', '180']}; {'id': '175', 'type': 'subscript', 'children': ['176', '179']}; {'id': '176', 'type': 'subscript', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '178', 'type': 'string', 'children': [], 'value': "'wav_width'"}; {'id': '179', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '181', 'type': 'argument_list', 'children': ['182']}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'wav_on'}; {'id': '183', 'type': 'if_statement', 'children': ['184', '195', '218']}; {'id': '184', 'type': 'comparison_operator', 'children': ['185', '192'], 'value': 'in'}; {'id': '185', 'type': 'call', 'children': ['186', '191']}; {'id': '186', 'type': 'attribute', 'children': ['187', '190']}; {'id': '187', 'type': 'subscript', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '189', 'type': 'string', 'children': [], 'value': "'metric'"}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '191', 'type': 'argument_list', 'children': []}; {'id': '192', 'type': 'list', 'children': ['193', '194'], 'value': "[\n 'Kullback-Leibler Distance',\n 'Heights ratio']"}; {'id': '193', 'type': 'string', 'children': [], 'value': "'Kullback-Leibler Distance'"}; {'id': '194', 'type': 'string', 'children': [], 'value': "'Heights ratio'"}; {'id': '195', 'type': 'block', 'children': ['196', '207']}; {'id': '196', 'type': 'expression_statement', 'children': ['197']}; {'id': '197', 'type': 'call', 'children': ['198', '205']}; {'id': '198', 'type': 'attribute', 'children': ['199', '204']}; {'id': '199', 'type': 'subscript', 'children': ['200', '203']}; {'id': '200', 'type': 'subscript', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '202', 'type': 'string', 'children': [], 'value': "'nbin'"}; {'id': '203', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '205', 'type': 'argument_list', 'children': ['206']}; {'id': '206', 'type': 'True', 'children': []}; {'id': '207', 'type': 'expression_statement', 'children': ['208']}; {'id': '208', 'type': 'call', 'children': ['209', '216']}; {'id': '209', 'type': 'attribute', 'children': ['210', '215']}; {'id': '210', 'type': 'subscript', 'children': ['211', '214']}; {'id': '211', 'type': 'subscript', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '213', 'type': 'string', 'children': [], 'value': "'nbin'"}; {'id': '214', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '216', 'type': 'argument_list', 'children': ['217']}; {'id': '217', 'type': 'True', 'children': []}; {'id': '218', 'type': 'else_clause', 'children': ['219']}; {'id': '219', 'type': 'block', 'children': ['220', '231']}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'call', 'children': ['222', '229']}; {'id': '222', 'type': 'attribute', 'children': ['223', '228']}; {'id': '223', 'type': 'subscript', 'children': ['224', '227']}; {'id': '224', 'type': 'subscript', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '226', 'type': 'string', 'children': [], 'value': "'nbin'"}; {'id': '227', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '229', 'type': 'argument_list', 'children': ['230']}; {'id': '230', 'type': 'False', 'children': []}; {'id': '231', 'type': 'expression_statement', 'children': ['232']}; {'id': '232', 'type': 'call', 'children': ['233', '240']}; {'id': '233', 'type': 'attribute', 'children': ['234', '239']}; {'id': '234', 'type': 'subscript', 'children': ['235', '238']}; {'id': '235', 'type': 'subscript', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '237', 'type': 'string', 'children': [], 'value': "'nbin'"}; {'id': '238', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '240', 'type': 'argument_list', 'children': ['241']}; {'id': '241', 'type': 'False', 'children': []}; {'id': '242', 'type': 'if_statement', 'children': ['243', '248']}; {'id': '243', 'type': 'comparison_operator', 'children': ['244', '247'], 'value': '=='}; {'id': '244', 'type': 'subscript', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '246', 'type': 'string', 'children': [], 'value': "'metric'"}; {'id': '247', 'type': 'string', 'children': [], 'value': "'ndPac'"}; {'id': '248', 'type': 'block', 'children': ['249', '284']}; {'id': '249', 'type': 'for_statement', 'children': ['250', '251', '258']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '251', 'type': 'call', 'children': ['252', '257']}; {'id': '252', 'type': 'attribute', 'children': ['253', '256']}; {'id': '253', 'type': 'subscript', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '255', 'type': 'string', 'children': [], 'value': "'surro'"}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '257', 'type': 'argument_list', 'children': []}; {'id': '258', 'type': 'block', 'children': ['259', '268']}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'call', 'children': ['261', '266']}; {'id': '261', 'type': 'attribute', 'children': ['262', '265']}; {'id': '262', 'type': 'subscript', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '264', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '266', 'type': 'argument_list', 'children': ['267']}; {'id': '267', 'type': 'False', 'children': []}; {'id': '268', 'type': 'if_statement', 'children': ['269', '274']}; {'id': '269', 'type': 'comparison_operator', 'children': ['270', '273'], 'value': 'is'}; {'id': '270', 'type': 'subscript', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '272', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '273', 'type': 'None', 'children': []}; {'id': '274', 'type': 'block', 'children': ['275']}; {'id': '275', 'type': 'expression_statement', 'children': ['276']}; {'id': '276', 'type': 'call', 'children': ['277', '282']}; {'id': '277', 'type': 'attribute', 'children': ['278', '281']}; {'id': '278', 'type': 'subscript', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '280', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '282', 'type': 'argument_list', 'children': ['283']}; {'id': '283', 'type': 'False', 'children': []}; {'id': '284', 'type': 'expression_statement', 'children': ['285']}; {'id': '285', 'type': 'call', 'children': ['286', '295']}; {'id': '286', 'type': 'attribute', 'children': ['287', '294']}; {'id': '287', 'type': 'subscript', 'children': ['288', '293']}; {'id': '288', 'type': 'subscript', 'children': ['289', '292']}; {'id': '289', 'type': 'subscript', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '291', 'type': 'string', 'children': [], 'value': "'surro'"}; {'id': '292', 'type': 'string', 'children': [], 'value': "'pval'"}; {'id': '293', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '295', 'type': 'argument_list', 'children': ['296']}; {'id': '296', 'type': 'True', 'children': []}; {'id': '297', 'type': 'expression_statement', 'children': ['298']}; {'id': '298', 'type': 'assignment', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'ndpac_on'}; {'id': '300', 'type': 'comparison_operator', 'children': ['301', '308'], 'value': '=='}; {'id': '301', 'type': 'call', 'children': ['302', '307']}; {'id': '302', 'type': 'attribute', 'children': ['303', '306']}; {'id': '303', 'type': 'subscript', 'children': ['304', '305']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '305', 'type': 'string', 'children': [], 'value': "'metric'"}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '307', 'type': 'argument_list', 'children': []}; {'id': '308', 'type': 'string', 'children': [], 'value': "'ndPac'"}; {'id': '309', 'type': 'expression_statement', 'children': ['310']}; {'id': '310', 'type': 'assignment', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'surro_on'}; {'id': '312', 'type': 'call', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'logical_and'}; {'id': '314', 'type': 'argument_list', 'children': ['315', '326']}; {'id': '315', 'type': 'comparison_operator', 'children': ['316', '323'], 'value': '!='}; {'id': '316', 'type': 'call', 'children': ['317', '322']}; {'id': '317', 'type': 'attribute', 'children': ['318', '321']}; {'id': '318', 'type': 'subscript', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '320', 'type': 'string', 'children': [], 'value': "'surro_method'"}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '322', 'type': 'argument_list', 'children': []}; {'id': '323', 'type': 'concatenated_string', 'children': ['324', '325']}; {'id': '324', 'type': 'string', 'children': [], 'value': "''"}; {'id': '325', 'type': 'string', 'children': [], 'value': "'No surrogates'"}; {'id': '326', 'type': 'not_operator', 'children': ['327']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'ndpac_on'}; {'id': '328', 'type': 'expression_statement', 'children': ['329']}; {'id': '329', 'type': 'assignment', 'children': ['330', '331']}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'norm_on'}; {'id': '331', 'type': 'comparison_operator', 'children': ['332', '339'], 'value': '!='}; {'id': '332', 'type': 'call', 'children': ['333', '338']}; {'id': '333', 'type': 'attribute', 'children': ['334', '337']}; {'id': '334', 'type': 'subscript', 'children': ['335', '336']}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '336', 'type': 'string', 'children': [], 'value': "'surro_norm'"}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '338', 'type': 'argument_list', 'children': []}; {'id': '339', 'type': 'string', 'children': [], 'value': "'No normalization'"}; {'id': '340', 'type': 'expression_statement', 'children': ['341']}; {'id': '341', 'type': 'assignment', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'blocks_on'}; {'id': '343', 'type': 'comparison_operator', 'children': ['344', '345'], 'value': 'in'}; {'id': '344', 'type': 'string', 'children': [], 'value': "'across time'"}; {'id': '345', 'type': 'call', 'children': ['346', '351']}; {'id': '346', 'type': 'attribute', 'children': ['347', '350']}; {'id': '347', 'type': 'subscript', 'children': ['348', '349']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '349', 'type': 'string', 'children': [], 'value': "'surro_method'"}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '351', 'type': 'argument_list', 'children': []}; {'id': '352', 'type': 'expression_statement', 'children': ['353']}; {'id': '353', 'type': 'call', 'children': ['354', '359']}; {'id': '354', 'type': 'attribute', 'children': ['355', '358']}; {'id': '355', 'type': 'subscript', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '357', 'type': 'string', 'children': [], 'value': "'surro_method'"}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '359', 'type': 'argument_list', 'children': ['360']}; {'id': '360', 'type': 'not_operator', 'children': ['361']}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'ndpac_on'}; {'id': '362', 'type': 'for_statement', 'children': ['363', '364', '371']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '364', 'type': 'call', 'children': ['365', '370']}; {'id': '365', 'type': 'attribute', 'children': ['366', '369']}; {'id': '366', 'type': 'subscript', 'children': ['367', '368']}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '368', 'type': 'string', 'children': [], 'value': "'surro'"}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '370', 'type': 'argument_list', 'children': []}; {'id': '371', 'type': 'block', 'children': ['372', '383']}; {'id': '372', 'type': 'expression_statement', 'children': ['373']}; {'id': '373', 'type': 'call', 'children': ['374', '379']}; {'id': '374', 'type': 'attribute', 'children': ['375', '378']}; {'id': '375', 'type': 'subscript', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '377', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '379', 'type': 'argument_list', 'children': ['380']}; {'id': '380', 'type': 'boolean_operator', 'children': ['381', '382'], 'value': 'and'}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'surro_on'}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'norm_on'}; {'id': '383', 'type': 'if_statement', 'children': ['384', '389']}; {'id': '384', 'type': 'comparison_operator', 'children': ['385', '388'], 'value': 'is'}; {'id': '385', 'type': 'subscript', 'children': ['386', '387']}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '387', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '388', 'type': 'None', 'children': []}; {'id': '389', 'type': 'block', 'children': ['390']}; {'id': '390', 'type': 'expression_statement', 'children': ['391']}; {'id': '391', 'type': 'call', 'children': ['392', '397']}; {'id': '392', 'type': 'attribute', 'children': ['393', '396']}; {'id': '393', 'type': 'subscript', 'children': ['394', '395']}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'button'}; {'id': '395', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '397', 'type': 'argument_list', 'children': ['398']}; {'id': '398', 'type': 'boolean_operator', 'children': ['399', '400'], 'value': 'and'}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'surro_on'}; {'id': '400', 'type': 'identifier', 'children': [], 'value': 'norm_on'}; {'id': '401', 'type': 'expression_statement', 'children': ['402']}; {'id': '402', 'type': 'call', 'children': ['403', '412']}; {'id': '403', 'type': 'attribute', 'children': ['404', '411']}; {'id': '404', 'type': 'subscript', 'children': ['405', '410']}; {'id': '405', 'type': 'subscript', 'children': ['406', '409']}; {'id': '406', 'type': 'subscript', 'children': ['407', '408']}; {'id': '407', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '408', 'type': 'string', 'children': [], 'value': "'surro'"}; {'id': '409', 'type': 'string', 'children': [], 'value': "'nblocks'"}; {'id': '410', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '412', 'type': 'argument_list', 'children': ['413']}; {'id': '413', 'type': 'identifier', 'children': [], 'value': 'blocks_on'}; {'id': '414', 'type': 'expression_statement', 'children': ['415']}; {'id': '415', 'type': 'call', 'children': ['416', '425']}; {'id': '416', 'type': 'attribute', 'children': ['417', '424']}; {'id': '417', 'type': 'subscript', 'children': ['418', '423']}; {'id': '418', 'type': 'subscript', 'children': ['419', '422']}; {'id': '419', 'type': 'subscript', 'children': ['420', '421']}; {'id': '420', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '421', 'type': 'string', 'children': [], 'value': "'surro'"}; {'id': '422', 'type': 'string', 'children': [], 'value': "'nblocks'"}; {'id': '423', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '424', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '425', 'type': 'argument_list', 'children': ['426']}; {'id': '426', 'type': 'identifier', 'children': [], 'value': 'blocks_on'}; {'id': '427', 'type': 'if_statement', 'children': ['428', '429']}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'ndpac_on'}; {'id': '429', 'type': 'block', 'children': ['430', '439']}; {'id': '430', 'type': 'expression_statement', 'children': ['431']}; {'id': '431', 'type': 'call', 'children': ['432', '437']}; {'id': '432', 'type': 'attribute', 'children': ['433', '436']}; {'id': '433', 'type': 'subscript', 'children': ['434', '435']}; {'id': '434', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '435', 'type': 'string', 'children': [], 'value': "'surro_method'"}; {'id': '436', 'type': 'identifier', 'children': [], 'value': 'set_value'}; {'id': '437', 'type': 'argument_list', 'children': ['438']}; {'id': '438', 'type': 'string', 'children': [], 'value': "'No surrogates'"}; {'id': '439', 'type': 'expression_statement', 'children': ['440']}; {'id': '440', 'type': 'call', 'children': ['441', '450']}; {'id': '441', 'type': 'attribute', 'children': ['442', '449']}; {'id': '442', 'type': 'subscript', 'children': ['443', '448']}; {'id': '443', 'type': 'subscript', 'children': ['444', '447']}; {'id': '444', 'type': 'subscript', 'children': ['445', '446']}; {'id': '445', 'type': 'identifier', 'children': [], 'value': 'pac'}; {'id': '446', 'type': 'string', 'children': [], 'value': "'surro'"}; {'id': '447', 'type': 'string', 'children': [], 'value': "'pval'"}; {'id': '448', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '449', 'type': 'identifier', 'children': [], 'value': 'setEnabled'}; {'id': '450', 'type': 'argument_list', 'children': ['451']}; {'id': '451', 'type': 'True', 'children': []}
Enable and disable PAC options.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_segments'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '28', '38', '50', '62', '66', '70', '120', '130', '137', '141', '145', '212', '224', '234', '270', '292', '320', '330', '378', '388', '398', '412', '468']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '9', 'type': 'dictionary_comprehension', 'children': ['10', '17']}; {'id': '10', 'type': 'pair', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '12', 'type': 'call', 'children': ['13', '16']}; {'id': '13', 'type': 'attribute', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'isChecked'}; {'id': '16', 'type': 'argument_list', 'children': []}; {'id': '17', 'type': 'for_in_clause', 'children': ['18', '21']}; {'id': '18', 'type': 'pattern_list', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '21', 'type': 'call', 'children': ['22', '27']}; {'id': '22', 'type': 'attribute', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '27', 'type': 'argument_list', 'children': []}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'lock_to_staging'}; {'id': '31', 'type': 'call', 'children': ['32', '37']}; {'id': '32', 'type': 'attribute', 'children': ['33', '36']}; {'id': '33', 'type': 'attribute', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'lock_to_staging'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '37', 'type': 'argument_list', 'children': []}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'epoch_dur'}; {'id': '41', 'type': 'call', 'children': ['42', '49']}; {'id': '42', 'type': 'attribute', 'children': ['43', '48']}; {'id': '43', 'type': 'subscript', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'epoch_param'}; {'id': '47', 'type': 'string', 'children': [], 'value': "'dur'"}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '49', 'type': 'argument_list', 'children': []}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'epoch_overlap'}; {'id': '53', 'type': 'call', 'children': ['54', '61']}; {'id': '54', 'type': 'attribute', 'children': ['55', '60']}; {'id': '55', 'type': 'subscript', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'epoch_param'}; {'id': '59', 'type': 'string', 'children': [], 'value': "'overlap_val'"}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '61', 'type': 'argument_list', 'children': []}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'assignment', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'epoch_step'}; {'id': '65', 'type': 'None', 'children': []}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'epoch'}; {'id': '69', 'type': 'None', 'children': []}; {'id': '70', 'type': 'if_statement', 'children': ['71', '74']}; {'id': '71', 'type': 'subscript', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '73', 'type': 'string', 'children': [], 'value': "'epoch'"}; {'id': '74', 'type': 'block', 'children': ['75']}; {'id': '75', 'type': 'if_statement', 'children': ['76', '77', '82']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'lock_to_staging'}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'epoch'}; {'id': '81', 'type': 'string', 'children': [], 'value': "'locked'"}; {'id': '82', 'type': 'else_clause', 'children': ['83']}; {'id': '83', 'type': 'block', 'children': ['84', '88']}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'assignment', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'epoch'}; {'id': '87', 'type': 'string', 'children': [], 'value': "'unlocked'"}; {'id': '88', 'type': 'if_statement', 'children': ['89', '98']}; {'id': '89', 'type': 'call', 'children': ['90', '97']}; {'id': '90', 'type': 'attribute', 'children': ['91', '96']}; {'id': '91', 'type': 'subscript', 'children': ['92', '95']}; {'id': '92', 'type': 'attribute', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'epoch_param'}; {'id': '95', 'type': 'string', 'children': [], 'value': "'step'"}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'isChecked'}; {'id': '97', 'type': 'argument_list', 'children': []}; {'id': '98', 'type': 'block', 'children': ['99', '111']}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'epoch_step'}; {'id': '102', 'type': 'call', 'children': ['103', '110']}; {'id': '103', 'type': 'attribute', 'children': ['104', '109']}; {'id': '104', 'type': 'subscript', 'children': ['105', '108']}; {'id': '105', 'type': 'attribute', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'epoch_param'}; {'id': '108', 'type': 'string', 'children': [], 'value': "'step_val'"}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '110', 'type': 'argument_list', 'children': []}; {'id': '111', 'type': 'if_statement', 'children': ['112', '115']}; {'id': '112', 'type': 'comparison_operator', 'children': ['113', '114'], 'value': '<='}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'epoch_step'}; {'id': '114', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '115', 'type': 'block', 'children': ['116']}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'epoch_step'}; {'id': '119', 'type': 'float', 'children': [], 'value': '0.1'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '125']}; {'id': '122', 'type': 'attribute', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'get_channels'}; {'id': '129', 'type': 'argument_list', 'children': []}; {'id': '130', 'type': 'if_statement', 'children': ['131', '135']}; {'id': '131', 'type': 'not_operator', 'children': ['132']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '135', 'type': 'block', 'children': ['136']}; {'id': '136', 'type': 'return_statement', 'children': []}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'assignment', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'chan_full'}; {'id': '140', 'type': 'None', 'children': []}; {'id': '141', 'type': 'expression_statement', 'children': ['142']}; {'id': '142', 'type': 'assignment', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '144', 'type': 'None', 'children': []}; {'id': '145', 'type': 'if_statement', 'children': ['146', '149']}; {'id': '146', 'type': 'subscript', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'chunk'}; {'id': '148', 'type': 'string', 'children': [], 'value': "'event'"}; {'id': '149', 'type': 'block', 'children': ['150', '183', '193']}; {'id': '150', 'type': 'if_statement', 'children': ['151', '158']}; {'id': '151', 'type': 'call', 'children': ['152', '157']}; {'id': '152', 'type': 'attribute', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'evt_chan_only'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '157', 'type': 'argument_list', 'children': []}; {'id': '158', 'type': 'block', 'children': ['159']}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'assignment', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'chan_full'}; {'id': '162', 'type': 'list_comprehension', 'children': ['163', '178']}; {'id': '163', 'type': 'binary_operator', 'children': ['164', '175'], 'value': '+'}; {'id': '164', 'type': 'binary_operator', 'children': ['165', '168'], 'value': '+'}; {'id': '165', 'type': 'binary_operator', 'children': ['166', '167'], 'value': '+'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '167', 'type': 'string', 'children': [], 'value': "' ('"}; {'id': '168', 'type': 'call', 'children': ['169', '174']}; {'id': '169', 'type': 'attribute', 'children': ['170', '173']}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'idx_group'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'currentText'}; {'id': '174', 'type': 'argument_list', 'children': []}; {'id': '175', 'type': 'concatenated_string', 'children': ['176', '177']}; {'id': '176', 'type': 'string', 'children': [], 'value': "''"}; {'id': '177', 'type': 'string', 'children': [], 'value': "')'"}; {'id': '178', 'type': 'for_in_clause', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'assignment', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '186', 'type': 'call', 'children': ['187', '192']}; {'id': '187', 'type': 'attribute', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'idx_evt_type'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'selectedItems'}; {'id': '192', 'type': 'argument_list', 'children': []}; {'id': '193', 'type': 'if_statement', 'children': ['194', '196', '198']}; {'id': '194', 'type': 'not_operator', 'children': ['195']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'return_statement', 'children': []}; {'id': '198', 'type': 'else_clause', 'children': ['199']}; {'id': '199', 'type': 'block', 'children': ['200']}; {'id': '200', 'type': 'expression_statement', 'children': ['201']}; {'id': '201', 'type': 'assignment', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '203', 'type': 'list_comprehension', 'children': ['204', '209']}; {'id': '204', 'type': 'call', 'children': ['205', '208']}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '208', 'type': 'argument_list', 'children': []}; {'id': '209', 'type': 'for_in_clause', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '215', 'type': 'assignment', 'children': ['216', '219']}; {'id': '216', 'type': 'attribute', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '219', 'type': 'call', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'get_cycles'}; {'id': '223', 'type': 'argument_list', 'children': []}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '227', 'type': 'call', 'children': ['228', '233']}; {'id': '228', 'type': 'attribute', 'children': ['229', '232']}; {'id': '229', 'type': 'attribute', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'idx_stage'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'selectedItems'}; {'id': '233', 'type': 'argument_list', 'children': []}; {'id': '234', 'type': 'if_statement', 'children': ['235', '237', '246']}; {'id': '235', 'type': 'not_operator', 'children': ['236']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '237', 'type': 'block', 'children': ['238']}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'assignment', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '241', 'type': 'assignment', 'children': ['242', '245']}; {'id': '242', 'type': 'attribute', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '245', 'type': 'None', 'children': []}; {'id': '246', 'type': 'else_clause', 'children': ['247']}; {'id': '247', 'type': 'block', 'children': ['248']}; {'id': '248', 'type': 'expression_statement', 'children': ['249']}; {'id': '249', 'type': 'assignment', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '251', 'type': 'assignment', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '255', 'type': 'list_comprehension', 'children': ['256', '261']}; {'id': '256', 'type': 'call', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '260', 'type': 'argument_list', 'children': []}; {'id': '261', 'type': 'for_in_clause', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '263', 'type': 'call', 'children': ['264', '269']}; {'id': '264', 'type': 'attribute', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'idx_stage'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'selectedItems'}; {'id': '269', 'type': 'argument_list', 'children': []}; {'id': '270', 'type': 'expression_statement', 'children': ['271']}; {'id': '271', 'type': 'assignment', 'children': ['272', '273']}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '273', 'type': 'dictionary_comprehension', 'children': ['274', '281']}; {'id': '274', 'type': 'pair', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '276', 'type': 'call', 'children': ['277', '280']}; {'id': '277', 'type': 'attribute', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '280', 'type': 'argument_list', 'children': []}; {'id': '281', 'type': 'for_in_clause', 'children': ['282', '285']}; {'id': '282', 'type': 'pattern_list', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '285', 'type': 'call', 'children': ['286', '291']}; {'id': '286', 'type': 'attribute', 'children': ['287', '290']}; {'id': '287', 'type': 'attribute', 'children': ['288', '289']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '291', 'type': 'argument_list', 'children': []}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'assignment', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '295', 'type': 'tuple', 'children': ['296', '302', '308', '314']}; {'id': '296', 'type': 'call', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '298', 'type': 'argument_list', 'children': ['299']}; {'id': '299', 'type': 'subscript', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '301', 'type': 'string', 'children': [], 'value': "'cycle'"}; {'id': '302', 'type': 'call', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '304', 'type': 'argument_list', 'children': ['305']}; {'id': '305', 'type': 'subscript', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '307', 'type': 'string', 'children': [], 'value': "'stage'"}; {'id': '308', 'type': 'call', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '310', 'type': 'argument_list', 'children': ['311']}; {'id': '311', 'type': 'subscript', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '313', 'type': 'string', 'children': [], 'value': "'discontinuous'"}; {'id': '314', 'type': 'call', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '316', 'type': 'argument_list', 'children': ['317']}; {'id': '317', 'type': 'subscript', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '319', 'type': 'string', 'children': [], 'value': "'evt_type'"}; {'id': '320', 'type': 'expression_statement', 'children': ['321']}; {'id': '321', 'type': 'assignment', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'reject_event'}; {'id': '323', 'type': 'call', 'children': ['324', '329']}; {'id': '324', 'type': 'attribute', 'children': ['325', '328']}; {'id': '325', 'type': 'attribute', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'reject_event'}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '329', 'type': 'argument_list', 'children': []}; {'id': '330', 'type': 'if_statement', 'children': ['331', '334', '363', '372']}; {'id': '331', 'type': 'comparison_operator', 'children': ['332', '333'], 'value': '=='}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'reject_event'}; {'id': '333', 'type': 'string', 'children': [], 'value': "'channel-specific'"}; {'id': '334', 'type': 'block', 'children': ['335', '359']}; {'id': '335', 'type': 'expression_statement', 'children': ['336']}; {'id': '336', 'type': 'assignment', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'chan_full'}; {'id': '338', 'type': 'list_comprehension', 'children': ['339', '354']}; {'id': '339', 'type': 'binary_operator', 'children': ['340', '351'], 'value': '+'}; {'id': '340', 'type': 'binary_operator', 'children': ['341', '344'], 'value': '+'}; {'id': '341', 'type': 'binary_operator', 'children': ['342', '343'], 'value': '+'}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '343', 'type': 'string', 'children': [], 'value': "' ('"}; {'id': '344', 'type': 'call', 'children': ['345', '350']}; {'id': '345', 'type': 'attribute', 'children': ['346', '349']}; {'id': '346', 'type': 'attribute', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'idx_group'}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'currentText'}; {'id': '350', 'type': 'argument_list', 'children': []}; {'id': '351', 'type': 'concatenated_string', 'children': ['352', '353']}; {'id': '352', 'type': 'string', 'children': [], 'value': "''"}; {'id': '353', 'type': 'string', 'children': [], 'value': "')'"}; {'id': '354', 'type': 'for_in_clause', 'children': ['355', '356']}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '356', 'type': 'attribute', 'children': ['357', '358']}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '359', 'type': 'expression_statement', 'children': ['360']}; {'id': '360', 'type': 'assignment', 'children': ['361', '362']}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'reject_artf'}; {'id': '362', 'type': 'True', 'children': []}; {'id': '363', 'type': 'elif_clause', 'children': ['364', '367']}; {'id': '364', 'type': 'comparison_operator', 'children': ['365', '366'], 'value': '=='}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'reject_event'}; {'id': '366', 'type': 'string', 'children': [], 'value': "'from any channel'"}; {'id': '367', 'type': 'block', 'children': ['368']}; {'id': '368', 'type': 'expression_statement', 'children': ['369']}; {'id': '369', 'type': 'assignment', 'children': ['370', '371']}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'reject_artf'}; {'id': '371', 'type': 'True', 'children': []}; {'id': '372', 'type': 'else_clause', 'children': ['373']}; {'id': '373', 'type': 'block', 'children': ['374']}; {'id': '374', 'type': 'expression_statement', 'children': ['375']}; {'id': '375', 'type': 'assignment', 'children': ['376', '377']}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'reject_artf'}; {'id': '377', 'type': 'False', 'children': []}; {'id': '378', 'type': 'expression_statement', 'children': ['379']}; {'id': '379', 'type': 'assignment', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'min_dur'}; {'id': '381', 'type': 'call', 'children': ['382', '387']}; {'id': '382', 'type': 'attribute', 'children': ['383', '386']}; {'id': '383', 'type': 'attribute', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'min_dur'}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '387', 'type': 'argument_list', 'children': []}; {'id': '388', 'type': 'expression_statement', 'children': ['389']}; {'id': '389', 'type': 'assignment', 'children': ['390', '391']}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'reject_epoch'}; {'id': '391', 'type': 'call', 'children': ['392', '397']}; {'id': '392', 'type': 'attribute', 'children': ['393', '396']}; {'id': '393', 'type': 'attribute', 'children': ['394', '395']}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'reject_epoch'}; {'id': '396', 'type': 'identifier', 'children': [], 'value': 'get_value'}; {'id': '397', 'type': 'argument_list', 'children': []}; {'id': '398', 'type': 'expression_statement', 'children': ['399']}; {'id': '399', 'type': 'assignment', 'children': ['400', '403']}; {'id': '400', 'type': 'attribute', 'children': ['401', '402']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '403', 'type': 'call', 'children': ['404', '407']}; {'id': '404', 'type': 'attribute', 'children': ['405', '406']}; {'id': '405', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '406', 'type': 'identifier', 'children': [], 'value': 'make_title'}; {'id': '407', 'type': 'argument_list', 'children': ['408', '409', '410', '411']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'chan_full'}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '412', 'type': 'expression_statement', 'children': ['413']}; {'id': '413', 'type': 'assignment', 'children': ['414', '415']}; {'id': '414', 'type': 'identifier', 'children': [], 'value': 'segments'}; {'id': '415', 'type': 'call', 'children': ['416', '417']}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'fetch'}; {'id': '417', 'type': 'argument_list', 'children': ['418', '425', '432', '435', '438', '441', '444', '447', '450', '453', '456', '459', '462', '465']}; {'id': '418', 'type': 'attribute', 'children': ['419', '424']}; {'id': '419', 'type': 'attribute', 'children': ['420', '423']}; {'id': '420', 'type': 'attribute', 'children': ['421', '422']}; {'id': '421', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '423', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '424', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '425', 'type': 'attribute', 'children': ['426', '431']}; {'id': '426', 'type': 'attribute', 'children': ['427', '430']}; {'id': '427', 'type': 'attribute', 'children': ['428', '429']}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '429', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '430', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '431', 'type': 'identifier', 'children': [], 'value': 'annot'}; {'id': '432', 'type': 'keyword_argument', 'children': ['433', '434']}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '434', 'type': 'identifier', 'children': [], 'value': 'cat'}; {'id': '435', 'type': 'keyword_argument', 'children': ['436', '437']}; {'id': '436', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '437', 'type': 'identifier', 'children': [], 'value': 'evt_type'}; {'id': '438', 'type': 'keyword_argument', 'children': ['439', '440']}; {'id': '439', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '440', 'type': 'identifier', 'children': [], 'value': 'stage'}; {'id': '441', 'type': 'keyword_argument', 'children': ['442', '443']}; {'id': '442', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '443', 'type': 'identifier', 'children': [], 'value': 'cycle'}; {'id': '444', 'type': 'keyword_argument', 'children': ['445', '446']}; {'id': '445', 'type': 'identifier', 'children': [], 'value': 'chan_full'}; {'id': '446', 'type': 'identifier', 'children': [], 'value': 'chan_full'}; {'id': '447', 'type': 'keyword_argument', 'children': ['448', '449']}; {'id': '448', 'type': 'identifier', 'children': [], 'value': 'epoch'}; {'id': '449', 'type': 'identifier', 'children': [], 'value': 'epoch'}; {'id': '450', 'type': 'keyword_argument', 'children': ['451', '452']}; {'id': '451', 'type': 'identifier', 'children': [], 'value': 'epoch_dur'}; {'id': '452', 'type': 'identifier', 'children': [], 'value': 'epoch_dur'}; {'id': '453', 'type': 'keyword_argument', 'children': ['454', '455']}; {'id': '454', 'type': 'identifier', 'children': [], 'value': 'epoch_overlap'}; {'id': '455', 'type': 'identifier', 'children': [], 'value': 'epoch_overlap'}; {'id': '456', 'type': 'keyword_argument', 'children': ['457', '458']}; {'id': '457', 'type': 'identifier', 'children': [], 'value': 'epoch_step'}; {'id': '458', 'type': 'identifier', 'children': [], 'value': 'epoch_step'}; {'id': '459', 'type': 'keyword_argument', 'children': ['460', '461']}; {'id': '460', 'type': 'identifier', 'children': [], 'value': 'reject_epoch'}; {'id': '461', 'type': 'identifier', 'children': [], 'value': 'reject_epoch'}; {'id': '462', 'type': 'keyword_argument', 'children': ['463', '464']}; {'id': '463', 'type': 'identifier', 'children': [], 'value': 'reject_artf'}; {'id': '464', 'type': 'identifier', 'children': [], 'value': 'reject_artf'}; {'id': '465', 'type': 'keyword_argument', 'children': ['466', '467']}; {'id': '466', 'type': 'identifier', 'children': [], 'value': 'min_dur'}; {'id': '467', 'type': 'identifier', 'children': [], 'value': 'min_dur'}; {'id': '468', 'type': 'return_statement', 'children': ['469']}; {'id': '469', 'type': 'identifier', 'children': [], 'value': 'segments'}
Get segments for analysis. Creates instance of trans.Segments.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'export_freq_band'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'xfreq'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'bands'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '7', 'type': 'block', 'children': ['8', '21', '34', '54', '62', '104', '145', '152']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'heading_row_1'}; {'id': '11', 'type': 'list', 'children': ['12', '13', '14', '15', '16', '17', '18', '19', '20'], 'value': "['Segment index',\n 'Start time',\n 'End time',\n 'Duration',\n 'Stitches',\n 'Stage',\n 'Cycle',\n 'Event type',\n 'Channel',\n ]"}; {'id': '12', 'type': 'string', 'children': [], 'value': "'Segment index'"}; {'id': '13', 'type': 'string', 'children': [], 'value': "'Start time'"}; {'id': '14', 'type': 'string', 'children': [], 'value': "'End time'"}; {'id': '15', 'type': 'string', 'children': [], 'value': "'Duration'"}; {'id': '16', 'type': 'string', 'children': [], 'value': "'Stitches'"}; {'id': '17', 'type': 'string', 'children': [], 'value': "'Stage'"}; {'id': '18', 'type': 'string', 'children': [], 'value': "'Cycle'"}; {'id': '19', 'type': 'string', 'children': [], 'value': "'Event type'"}; {'id': '20', 'type': 'string', 'children': [], 'value': "'Channel'"}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'spacer'}; {'id': '24', 'type': 'binary_operator', 'children': ['25', '27'], 'value': '*'}; {'id': '25', 'type': 'list', 'children': ['26'], 'value': "['']"}; {'id': '26', 'type': 'string', 'children': [], 'value': "''"}; {'id': '27', 'type': '()', 'children': ['28']}; {'id': '28', 'type': 'binary_operator', 'children': ['29', '33'], 'value': '-'}; {'id': '29', 'type': 'call', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'heading_row_1'}; {'id': '33', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'band_hdr'}; {'id': '37', 'type': 'list_comprehension', 'children': ['38', '49']}; {'id': '38', 'type': 'binary_operator', 'children': ['39', '45'], 'value': '+'}; {'id': '39', 'type': 'binary_operator', 'children': ['40', '44'], 'value': '+'}; {'id': '40', 'type': 'call', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '42', 'type': 'argument_list', 'children': ['43']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'b1'}; {'id': '44', 'type': 'string', 'children': [], 'value': "'-'"}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '47', 'type': 'argument_list', 'children': ['48']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'b2'}; {'id': '49', 'type': 'for_in_clause', 'children': ['50', '53']}; {'id': '50', 'type': 'pattern_list', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'b1'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'b2'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'bands'}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'xband'}; {'id': '57', 'type': 'call', 'children': ['58', '61']}; {'id': '58', 'type': 'attribute', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'xfreq'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '61', 'type': 'argument_list', 'children': []}; {'id': '62', 'type': 'for_statement', 'children': ['63', '64', '65']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'xband'}; {'id': '65', 'type': 'block', 'children': ['66', '70', '98']}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'bandlist'}; {'id': '69', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '70', 'type': 'for_statement', 'children': ['71', '74', '78']}; {'id': '71', 'type': 'pattern_list', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '74', 'type': 'call', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'bands'}; {'id': '78', 'type': 'block', 'children': ['79', '91']}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'assignment', 'children': ['81', '84']}; {'id': '81', 'type': 'pattern_list', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'pwr'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': '_'}; {'id': '84', 'type': 'call', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'band_power'}; {'id': '86', 'type': 'argument_list', 'children': ['87', '90']}; {'id': '87', 'type': 'subscript', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '89', 'type': 'string', 'children': [], 'value': "'data'"}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'call', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'bandlist'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '96', 'type': 'argument_list', 'children': ['97']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'pwr'}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '103']}; {'id': '100', 'type': 'subscript', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '102', 'type': 'string', 'children': [], 'value': "'band'"}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'bandlist'}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'assignment', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'as_matrix'}; {'id': '107', 'type': 'call', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'asarray'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'list_comprehension', 'children': ['111', '130', '131', '134']}; {'id': '111', 'type': 'list_comprehension', 'children': ['112', '119']}; {'id': '112', 'type': 'subscript', 'children': ['113', '118']}; {'id': '113', 'type': 'subscript', 'children': ['114', '117']}; {'id': '114', 'type': 'subscript', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '116', 'type': 'string', 'children': [], 'value': "'band'"}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '119', 'type': 'for_in_clause', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '121', 'type': 'call', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '123', 'type': 'argument_list', 'children': ['124']}; {'id': '124', 'type': 'call', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '126', 'type': 'argument_list', 'children': ['127']}; {'id': '127', 'type': 'subscript', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '129', 'type': 'string', 'children': [], 'value': "'band'"}; {'id': '130', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '131', 'type': 'for_in_clause', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'xband'}; {'id': '134', 'type': 'for_in_clause', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '136', 'type': 'call', 'children': ['137', '144']}; {'id': '137', 'type': 'attribute', 'children': ['138', '143']}; {'id': '138', 'type': 'subscript', 'children': ['139', '142']}; {'id': '139', 'type': 'subscript', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '141', 'type': 'string', 'children': [], 'value': "'band'"}; {'id': '142', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '144', 'type': 'argument_list', 'children': []}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'assignment', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '148', 'type': 'call', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'get_descriptives'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'as_matrix'}; {'id': '152', 'type': 'with_statement', 'children': ['153', '166']}; {'id': '153', 'type': 'with_clause', 'children': ['154']}; {'id': '154', 'type': 'with_item', 'children': ['155']}; {'id': '155', 'type': 'as_pattern', 'children': ['156', '164']}; {'id': '156', 'type': 'call', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'open'}; {'id': '158', 'type': 'argument_list', 'children': ['159', '160', '161']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '160', 'type': 'string', 'children': [], 'value': "'w'"}; {'id': '161', 'type': 'keyword_argument', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '163', 'type': 'string', 'children': [], 'value': "''"}; {'id': '164', 'type': 'as_pattern_target', 'children': ['165']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '166', 'type': 'block', 'children': ['167', '179', '186', '199', '208', '225', '242', '259', '276', '280']}; {'id': '167', 'type': 'expression_statement', 'children': ['168']}; {'id': '168', 'type': 'call', 'children': ['169', '172']}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'lg'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '172', 'type': 'argument_list', 'children': ['173']}; {'id': '173', 'type': 'binary_operator', 'children': ['174', '175'], 'value': '+'}; {'id': '174', 'type': 'string', 'children': [], 'value': "'Writing to '"}; {'id': '175', 'type': 'call', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '177', 'type': 'argument_list', 'children': ['178']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'filename'}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'assignment', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '182', 'type': 'call', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'writer'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'writerow'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'list', 'children': ['193'], 'value': "['Wonambi v{}'.format(__version__)]"}; {'id': '193', 'type': 'call', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'string', 'children': [], 'value': "'Wonambi v{}'"}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '197', 'type': 'argument_list', 'children': ['198']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': '__version__'}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'call', 'children': ['201', '204']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'writerow'}; {'id': '204', 'type': 'argument_list', 'children': ['205']}; {'id': '205', 'type': 'binary_operator', 'children': ['206', '207'], 'value': '+'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'heading_row_1'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'band_hdr'}; {'id': '208', 'type': 'expression_statement', 'children': ['209']}; {'id': '209', 'type': 'call', 'children': ['210', '213']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'writerow'}; {'id': '213', 'type': 'argument_list', 'children': ['214']}; {'id': '214', 'type': 'binary_operator', 'children': ['215', '219'], 'value': '+'}; {'id': '215', 'type': 'binary_operator', 'children': ['216', '218'], 'value': '+'}; {'id': '216', 'type': 'list', 'children': ['217'], 'value': "['Mean']"}; {'id': '217', 'type': 'string', 'children': [], 'value': "'Mean'"}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'spacer'}; {'id': '219', 'type': 'call', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '221', 'type': 'argument_list', 'children': ['222']}; {'id': '222', 'type': 'subscript', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '224', 'type': 'string', 'children': [], 'value': "'mean'"}; {'id': '225', 'type': 'expression_statement', 'children': ['226']}; {'id': '226', 'type': 'call', 'children': ['227', '230']}; {'id': '227', 'type': 'attribute', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'writerow'}; {'id': '230', 'type': 'argument_list', 'children': ['231']}; {'id': '231', 'type': 'binary_operator', 'children': ['232', '236'], 'value': '+'}; {'id': '232', 'type': 'binary_operator', 'children': ['233', '235'], 'value': '+'}; {'id': '233', 'type': 'list', 'children': ['234'], 'value': "['SD']"}; {'id': '234', 'type': 'string', 'children': [], 'value': "'SD'"}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'spacer'}; {'id': '236', 'type': 'call', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'subscript', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '241', 'type': 'string', 'children': [], 'value': "'sd'"}; {'id': '242', 'type': 'expression_statement', 'children': ['243']}; {'id': '243', 'type': 'call', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'writerow'}; {'id': '247', 'type': 'argument_list', 'children': ['248']}; {'id': '248', 'type': 'binary_operator', 'children': ['249', '253'], 'value': '+'}; {'id': '249', 'type': 'binary_operator', 'children': ['250', '252'], 'value': '+'}; {'id': '250', 'type': 'list', 'children': ['251'], 'value': "['Mean of ln']"}; {'id': '251', 'type': 'string', 'children': [], 'value': "'Mean of ln'"}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'spacer'}; {'id': '253', 'type': 'call', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'subscript', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '258', 'type': 'string', 'children': [], 'value': "'mean_log'"}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'call', 'children': ['261', '264']}; {'id': '261', 'type': 'attribute', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'writerow'}; {'id': '264', 'type': 'argument_list', 'children': ['265']}; {'id': '265', 'type': 'binary_operator', 'children': ['266', '270'], 'value': '+'}; {'id': '266', 'type': 'binary_operator', 'children': ['267', '269'], 'value': '+'}; {'id': '267', 'type': 'list', 'children': ['268'], 'value': "['SD of ln']"}; {'id': '268', 'type': 'string', 'children': [], 'value': "'SD of ln'"}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'spacer'}; {'id': '270', 'type': 'call', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '272', 'type': 'argument_list', 'children': ['273']}; {'id': '273', 'type': 'subscript', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'desc'}; {'id': '275', 'type': 'string', 'children': [], 'value': "'sd_log'"}; {'id': '276', 'type': 'expression_statement', 'children': ['277']}; {'id': '277', 'type': 'assignment', 'children': ['278', '279']}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '279', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '280', 'type': 'for_statement', 'children': ['281', '282', '283']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'xband'}; {'id': '283', 'type': 'block', 'children': ['284']}; {'id': '284', 'type': 'for_statement', 'children': ['285', '286', '295']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '286', 'type': 'call', 'children': ['287', '294']}; {'id': '287', 'type': 'attribute', 'children': ['288', '293']}; {'id': '288', 'type': 'subscript', 'children': ['289', '292']}; {'id': '289', 'type': 'subscript', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '291', 'type': 'string', 'children': [], 'value': "'band'"}; {'id': '292', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '294', 'type': 'argument_list', 'children': []}; {'id': '295', 'type': 'block', 'children': ['296', '300', '304', '319', '344']}; {'id': '296', 'type': 'expression_statement', 'children': ['297']}; {'id': '297', 'type': 'augmented_assignment', 'children': ['298', '299'], 'value': '+='}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '299', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '300', 'type': 'expression_statement', 'children': ['301']}; {'id': '301', 'type': 'assignment', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'cyc'}; {'id': '303', 'type': 'None', 'children': []}; {'id': '304', 'type': 'if_statement', 'children': ['305', '310']}; {'id': '305', 'type': 'comparison_operator', 'children': ['306', '309'], 'value': 'is'}; {'id': '306', 'type': 'subscript', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '308', 'type': 'string', 'children': [], 'value': "'cycle'"}; {'id': '309', 'type': 'None', 'children': []}; {'id': '310', 'type': 'block', 'children': ['311']}; {'id': '311', 'type': 'expression_statement', 'children': ['312']}; {'id': '312', 'type': 'assignment', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'cyc'}; {'id': '314', 'type': 'subscript', 'children': ['315', '318']}; {'id': '315', 'type': 'subscript', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '317', 'type': 'string', 'children': [], 'value': "'cycle'"}; {'id': '318', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '319', 'type': 'expression_statement', 'children': ['320']}; {'id': '320', 'type': 'assignment', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'data_row'}; {'id': '322', 'type': 'call', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '324', 'type': 'argument_list', 'children': ['325']}; {'id': '325', 'type': 'list_comprehension', 'children': ['326', '333']}; {'id': '326', 'type': 'subscript', 'children': ['327', '332']}; {'id': '327', 'type': 'subscript', 'children': ['328', '331']}; {'id': '328', 'type': 'subscript', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '330', 'type': 'string', 'children': [], 'value': "'band'"}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '333', 'type': 'for_in_clause', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '335', 'type': 'call', 'children': ['336', '337']}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '337', 'type': 'argument_list', 'children': ['338']}; {'id': '338', 'type': 'call', 'children': ['339', '340']}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '340', 'type': 'argument_list', 'children': ['341']}; {'id': '341', 'type': 'subscript', 'children': ['342', '343']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '343', 'type': 'string', 'children': [], 'value': "'band'"}; {'id': '344', 'type': 'expression_statement', 'children': ['345']}; {'id': '345', 'type': 'call', 'children': ['346', '349']}; {'id': '346', 'type': 'attribute', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'csv_file'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'writerow'}; {'id': '349', 'type': 'argument_list', 'children': ['350']}; {'id': '350', 'type': 'binary_operator', 'children': ['351', '373'], 'value': '+'}; {'id': '351', 'type': 'list', 'children': ['352', '353', '356', '359', '362', '365', '368', '369', '372'], 'value': "[idx,\n seg['start'],\n seg['end'],\n seg['duration'],\n seg['n_stitch'],\n seg['stage'],\n cyc,\n seg['name'],\n chan,\n ]"}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '353', 'type': 'subscript', 'children': ['354', '355']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '355', 'type': 'string', 'children': [], 'value': "'start'"}; {'id': '356', 'type': 'subscript', 'children': ['357', '358']}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '358', 'type': 'string', 'children': [], 'value': "'end'"}; {'id': '359', 'type': 'subscript', 'children': ['360', '361']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '361', 'type': 'string', 'children': [], 'value': "'duration'"}; {'id': '362', 'type': 'subscript', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '364', 'type': 'string', 'children': [], 'value': "'n_stitch'"}; {'id': '365', 'type': 'subscript', 'children': ['366', '367']}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '367', 'type': 'string', 'children': [], 'value': "'stage'"}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'cyc'}; {'id': '369', 'type': 'subscript', 'children': ['370', '371']}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'seg'}; {'id': '371', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'data_row'}
Write frequency analysis data to CSV by pre-defined band.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'return_markers'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '17', '36', '318']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'ent_file'}; {'id': '9', 'type': 'call', 'children': ['10', '15']}; {'id': '10', 'type': 'attribute', 'children': ['11', '14']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': '_filename'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'with_suffix'}; {'id': '15', 'type': 'argument_list', 'children': ['16']}; {'id': '16', 'type': 'string', 'children': [], 'value': "'.ent'"}; {'id': '17', 'type': 'if_statement', 'children': ['18', '24']}; {'id': '18', 'type': 'not_operator', 'children': ['19']}; {'id': '19', 'type': 'call', 'children': ['20', '23']}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'ent_file'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '23', 'type': 'argument_list', 'children': []}; {'id': '24', 'type': 'block', 'children': ['25']}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'ent_file'}; {'id': '28', 'type': 'call', 'children': ['29', '34']}; {'id': '29', 'type': 'attribute', 'children': ['30', '33']}; {'id': '30', 'type': 'attribute', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': '_filename'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'with_suffix'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'string', 'children': [], 'value': "'.ent.old'"}; {'id': '36', 'type': 'try_statement', 'children': ['37', '45', '54']}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'ent_notes'}; {'id': '41', 'type': 'call', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': '_read_ent'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'ent_file'}; {'id': '45', 'type': 'except_clause', 'children': ['46', '49']}; {'id': '46', 'type': 'tuple', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'FileNotFoundError'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'PermissionError'}; {'id': '49', 'type': 'block', 'children': ['50']}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'markers'}; {'id': '53', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '54', 'type': 'else_clause', 'children': ['55']}; {'id': '55', 'type': 'block', 'children': ['56', '60', '102', '112', '116', '120', '124', '128', '273', '277']}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'allnote'}; {'id': '59', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '60', 'type': 'for_statement', 'children': ['61', '62', '63']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'ent_notes'}; {'id': '63', 'type': 'block', 'children': ['64']}; {'id': '64', 'type': 'try_statement', 'children': ['65', '83']}; {'id': '65', 'type': 'block', 'children': ['66', '74']}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'call', 'children': ['68', '73']}; {'id': '68', 'type': 'attribute', 'children': ['69', '72']}; {'id': '69', 'type': 'subscript', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '71', 'type': 'string', 'children': [], 'value': "'value'"}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '73', 'type': 'argument_list', 'children': []}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'call', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'allnote'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'subscript', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '82', 'type': 'string', 'children': [], 'value': "'value'"}; {'id': '83', 'type': 'except_clause', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'AttributeError'}; {'id': '85', 'type': 'block', 'children': ['86']}; {'id': '86', 'type': 'expression_statement', 'children': ['87']}; {'id': '87', 'type': 'call', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'lg'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '91', 'type': 'argument_list', 'children': ['92']}; {'id': '92', 'type': 'call', 'children': ['93', '98']}; {'id': '93', 'type': 'attribute', 'children': ['94', '97']}; {'id': '94', 'type': 'concatenated_string', 'children': ['95', '96']}; {'id': '95', 'type': 'string', 'children': [], 'value': "'Note of length {} was not '"}; {'id': '96', 'type': 'string', 'children': [], 'value': "'converted to dict'"}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'subscript', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '101', 'type': 'string', 'children': [], 'value': "'length'"}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 's_freq'}; {'id': '105', 'type': 'subscript', 'children': ['106', '111']}; {'id': '106', 'type': 'subscript', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': '_hdr'}; {'id': '110', 'type': 'string', 'children': [], 'value': "'erd'"}; {'id': '111', 'type': 'string', 'children': [], 'value': "'sample_freq'"}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'pcname'}; {'id': '115', 'type': 'string', 'children': [], 'value': "'0CFEBE72-DA20-4b3a-A8AC-CDD41BFE2F0D'"}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'note_time'}; {'id': '119', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '120', 'type': 'expression_statement', 'children': ['121']}; {'id': '121', 'type': 'assignment', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'note_name'}; {'id': '123', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'assignment', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'note_note'}; {'id': '127', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '128', 'type': 'for_statement', 'children': ['129', '130', '131']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'allnote'}; {'id': '131', 'type': 'block', 'children': ['132', '140', '147', '159', '169', '173', '183', '193', '203', '215', '253', '264']}; {'id': '132', 'type': 'if_statement', 'children': ['133', '138']}; {'id': '133', 'type': 'comparison_operator', 'children': ['134', '137'], 'value': '=='}; {'id': '134', 'type': 'subscript', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '136', 'type': 'string', 'children': [], 'value': "'Text'"}; {'id': '137', 'type': 'string', 'children': [], 'value': "'Analyzed Data Note'"}; {'id': '138', 'type': 'block', 'children': ['139']}; {'id': '139', 'type': 'continue_statement', 'children': []}; {'id': '140', 'type': 'if_statement', 'children': ['141', '145']}; {'id': '141', 'type': 'not_operator', 'children': ['142']}; {'id': '142', 'type': 'subscript', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'Text'"}; {'id': '145', 'type': 'block', 'children': ['146']}; {'id': '146', 'type': 'continue_statement', 'children': []}; {'id': '147', 'type': 'if_statement', 'children': ['148', '157']}; {'id': '148', 'type': 'comparison_operator', 'children': ['149', '150'], 'value': 'not'}; {'id': '149', 'type': 'string', 'children': [], 'value': "'User'"}; {'id': '150', 'type': 'call', 'children': ['151', '156']}; {'id': '151', 'type': 'attribute', 'children': ['152', '155']}; {'id': '152', 'type': 'subscript', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '154', 'type': 'string', 'children': [], 'value': "'Data'"}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '156', 'type': 'argument_list', 'children': []}; {'id': '157', 'type': 'block', 'children': ['158']}; {'id': '158', 'type': 'continue_statement', 'children': []}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'assignment', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'user1'}; {'id': '162', 'type': 'comparison_operator', 'children': ['163', '168'], 'value': '=='}; {'id': '163', 'type': 'subscript', 'children': ['164', '167']}; {'id': '164', 'type': 'subscript', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '166', 'type': 'string', 'children': [], 'value': "'Data'"}; {'id': '167', 'type': 'string', 'children': [], 'value': "'User'"}; {'id': '168', 'type': 'string', 'children': [], 'value': "'Persyst'"}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'user2'}; {'id': '172', 'type': 'False', 'children': []}; {'id': '173', 'type': 'expression_statement', 'children': ['174']}; {'id': '174', 'type': 'assignment', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'user3'}; {'id': '176', 'type': 'comparison_operator', 'children': ['177', '182'], 'value': '=='}; {'id': '177', 'type': 'subscript', 'children': ['178', '181']}; {'id': '178', 'type': 'subscript', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '180', 'type': 'string', 'children': [], 'value': "'Data'"}; {'id': '181', 'type': 'string', 'children': [], 'value': "'User'"}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'pcname'}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'assignment', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'user4'}; {'id': '186', 'type': 'comparison_operator', 'children': ['187', '192'], 'value': '=='}; {'id': '187', 'type': 'subscript', 'children': ['188', '191']}; {'id': '188', 'type': 'subscript', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '190', 'type': 'string', 'children': [], 'value': "'Data'"}; {'id': '191', 'type': 'string', 'children': [], 'value': "'User'"}; {'id': '192', 'type': 'string', 'children': [], 'value': "'XLSpike - Intracranial'"}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'user5'}; {'id': '196', 'type': 'comparison_operator', 'children': ['197', '202'], 'value': '=='}; {'id': '197', 'type': 'subscript', 'children': ['198', '201']}; {'id': '198', 'type': 'subscript', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '200', 'type': 'string', 'children': [], 'value': "'Data'"}; {'id': '201', 'type': 'string', 'children': [], 'value': "'User'"}; {'id': '202', 'type': 'string', 'children': [], 'value': "'XLEvent - Intracranial'"}; {'id': '203', 'type': 'if_statement', 'children': ['204', '213']}; {'id': '204', 'type': 'boolean_operator', 'children': ['205', '212'], 'value': 'or'}; {'id': '205', 'type': 'boolean_operator', 'children': ['206', '211'], 'value': 'or'}; {'id': '206', 'type': 'boolean_operator', 'children': ['207', '210'], 'value': 'or'}; {'id': '207', 'type': 'boolean_operator', 'children': ['208', '209'], 'value': 'or'}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'user1'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'user2'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'user3'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'user4'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'user5'}; {'id': '213', 'type': 'block', 'children': ['214']}; {'id': '214', 'type': 'continue_statement', 'children': []}; {'id': '215', 'type': 'if_statement', 'children': ['216', '226', '234']}; {'id': '216', 'type': 'comparison_operator', 'children': ['217', '225'], 'value': '=='}; {'id': '217', 'type': 'call', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '219', 'type': 'argument_list', 'children': ['220']}; {'id': '220', 'type': 'subscript', 'children': ['221', '224']}; {'id': '221', 'type': 'subscript', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '223', 'type': 'string', 'children': [], 'value': "'Data'"}; {'id': '224', 'type': 'string', 'children': [], 'value': "'User'"}; {'id': '225', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '226', 'type': 'block', 'children': ['227']}; {'id': '227', 'type': 'expression_statement', 'children': ['228']}; {'id': '228', 'type': 'call', 'children': ['229', '232']}; {'id': '229', 'type': 'attribute', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'note_name'}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '232', 'type': 'argument_list', 'children': ['233']}; {'id': '233', 'type': 'string', 'children': [], 'value': "'-unknown-'"}; {'id': '234', 'type': 'else_clause', 'children': ['235']}; {'id': '235', 'type': 'block', 'children': ['236']}; {'id': '236', 'type': 'expression_statement', 'children': ['237']}; {'id': '237', 'type': 'call', 'children': ['238', '241']}; {'id': '238', 'type': 'attribute', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'note_name'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '241', 'type': 'argument_list', 'children': ['242']}; {'id': '242', 'type': 'subscript', 'children': ['243', '252']}; {'id': '243', 'type': 'call', 'children': ['244', '251']}; {'id': '244', 'type': 'attribute', 'children': ['245', '250']}; {'id': '245', 'type': 'subscript', 'children': ['246', '249']}; {'id': '246', 'type': 'subscript', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '248', 'type': 'string', 'children': [], 'value': "'Data'"}; {'id': '249', 'type': 'string', 'children': [], 'value': "'User'"}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '251', 'type': 'argument_list', 'children': []}; {'id': '252', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'call', 'children': ['255', '258']}; {'id': '255', 'type': 'attribute', 'children': ['256', '257']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'note_time'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '258', 'type': 'argument_list', 'children': ['259']}; {'id': '259', 'type': 'binary_operator', 'children': ['260', '263'], 'value': '/'}; {'id': '260', 'type': 'subscript', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '262', 'type': 'string', 'children': [], 'value': "'Stamp'"}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 's_freq'}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'call', 'children': ['266', '269']}; {'id': '266', 'type': 'attribute', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'note_note'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'subscript', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '272', 'type': 'string', 'children': [], 'value': "'Text'"}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'assignment', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'markers'}; {'id': '276', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '277', 'type': 'for_statement', 'children': ['278', '282', '288']}; {'id': '278', 'type': 'pattern_list', 'children': ['279', '280', '281']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'note'}; {'id': '282', 'type': 'call', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'zip'}; {'id': '284', 'type': 'argument_list', 'children': ['285', '286', '287']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'note_time'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'note_name'}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'note_note'}; {'id': '288', 'type': 'block', 'children': ['289', '311']}; {'id': '289', 'type': 'expression_statement', 'children': ['290']}; {'id': '290', 'type': 'assignment', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '292', 'type': 'dictionary', 'children': ['293', '302', '305', '308']}; {'id': '293', 'type': 'pair', 'children': ['294', '295']}; {'id': '294', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '295', 'type': 'binary_operator', 'children': ['296', '301'], 'value': '+'}; {'id': '296', 'type': 'binary_operator', 'children': ['297', '300'], 'value': '+'}; {'id': '297', 'type': 'binary_operator', 'children': ['298', '299'], 'value': '+'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'note'}; {'id': '299', 'type': 'string', 'children': [], 'value': "' ('"}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '301', 'type': 'string', 'children': [], 'value': "')'"}; {'id': '302', 'type': 'pair', 'children': ['303', '304']}; {'id': '303', 'type': 'string', 'children': [], 'value': "'start'"}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '305', 'type': 'pair', 'children': ['306', '307']}; {'id': '306', 'type': 'string', 'children': [], 'value': "'end'"}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '308', 'type': 'pair', 'children': ['309', '310']}; {'id': '309', 'type': 'string', 'children': [], 'value': "'chan'"}; {'id': '310', 'type': 'None', 'children': []}; {'id': '311', 'type': 'expression_statement', 'children': ['312']}; {'id': '312', 'type': 'call', 'children': ['313', '316']}; {'id': '313', 'type': 'attribute', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'markers'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '316', 'type': 'argument_list', 'children': ['317']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '318', 'type': 'return_statement', 'children': ['319']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'markers'}
Reads the notes of the Ktlx recordings.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'mouseReleaseEvent'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '6', 'type': 'block', 'children': ['7', '14', '20', '32', '39', '55', '71', '82', '362', '368', '376']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '12']}; {'id': '8', 'type': 'not_operator', 'children': ['9']}; {'id': '9', 'type': 'attribute', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '12', 'type': 'block', 'children': ['13']}; {'id': '13', 'type': 'return_statement', 'children': []}; {'id': '14', 'type': 'if_statement', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '18', 'type': 'block', 'children': ['19']}; {'id': '19', 'type': 'return_statement', 'children': []}; {'id': '20', 'type': 'if_statement', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'deselect'}; {'id': '24', 'type': 'block', 'children': ['25', '31']}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'deselect'}; {'id': '30', 'type': 'False', 'children': []}; {'id': '31', 'type': 'return_statement', 'children': []}; {'id': '32', 'type': 'if_statement', 'children': ['33', '37']}; {'id': '33', 'type': 'not_operator', 'children': ['34']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'ready'}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'return_statement', 'children': []}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'chk_marker'}; {'id': '42', 'type': 'call', 'children': ['43', '54']}; {'id': '43', 'type': 'attribute', 'children': ['44', '53']}; {'id': '44', 'type': 'subscript', 'children': ['45', '52']}; {'id': '45', 'type': 'attribute', 'children': ['46', '51']}; {'id': '46', 'type': 'attribute', 'children': ['47', '50']}; {'id': '47', 'type': 'attribute', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '52', 'type': 'string', 'children': [], 'value': "'new_bookmark'"}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'isChecked'}; {'id': '54', 'type': 'argument_list', 'children': []}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'chk_event'}; {'id': '58', 'type': 'call', 'children': ['59', '70']}; {'id': '59', 'type': 'attribute', 'children': ['60', '69']}; {'id': '60', 'type': 'subscript', 'children': ['61', '68']}; {'id': '61', 'type': 'attribute', 'children': ['62', '67']}; {'id': '62', 'type': 'attribute', 'children': ['63', '66']}; {'id': '63', 'type': 'attribute', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '68', 'type': 'string', 'children': [], 'value': "'new_event'"}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'isChecked'}; {'id': '70', 'type': 'argument_list', 'children': []}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'assignment', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'y_distance'}; {'id': '74', 'type': 'call', 'children': ['75', '80']}; {'id': '75', 'type': 'attribute', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'string', 'children': [], 'value': "'y_distance'"}; {'id': '82', 'type': 'if_statement', 'children': ['83', '86', '310']}; {'id': '83', 'type': 'boolean_operator', 'children': ['84', '85'], 'value': 'or'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'chk_marker'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'chk_event'}; {'id': '86', 'type': 'block', 'children': ['87', '104', '121']}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'x_in_scene'}; {'id': '90', 'type': 'call', 'children': ['91', '103']}; {'id': '91', 'type': 'attribute', 'children': ['92', '102']}; {'id': '92', 'type': 'call', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'mapToScene'}; {'id': '96', 'type': 'argument_list', 'children': ['97']}; {'id': '97', 'type': 'call', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '101', 'type': 'argument_list', 'children': []}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '103', 'type': 'argument_list', 'children': []}; {'id': '104', 'type': 'expression_statement', 'children': ['105']}; {'id': '105', 'type': 'assignment', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'y_in_scene'}; {'id': '107', 'type': 'call', 'children': ['108', '120']}; {'id': '108', 'type': 'attribute', 'children': ['109', '119']}; {'id': '109', 'type': 'call', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'mapToScene'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'call', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'event'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '118', 'type': 'argument_list', 'children': []}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '120', 'type': 'argument_list', 'children': []}; {'id': '121', 'type': 'if_statement', 'children': ['122', '129']}; {'id': '122', 'type': 'comparison_operator', 'children': ['123', '128'], 'value': 'is'}; {'id': '123', 'type': 'subscript', 'children': ['124', '127']}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'sel_xy'}; {'id': '127', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '128', 'type': 'None', 'children': []}; {'id': '129', 'type': 'block', 'children': ['130', '144', '158', '169', '176', '197', '216']}; {'id': '130', 'type': 'expression_statement', 'children': ['131']}; {'id': '131', 'type': 'assignment', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 's_freq'}; {'id': '133', 'type': 'subscript', 'children': ['134', '143']}; {'id': '134', 'type': 'attribute', 'children': ['135', '142']}; {'id': '135', 'type': 'attribute', 'children': ['136', '141']}; {'id': '136', 'type': 'attribute', 'children': ['137', '140']}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'dataset'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'header'}; {'id': '143', 'type': 'string', 'children': [], 'value': "'s_freq'"}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'assignment', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'at_s_freq'}; {'id': '147', 'type': 'lambda', 'children': ['148', '150']}; {'id': '148', 'type': 'lambda_parameters', 'children': ['149']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '150', 'type': 'binary_operator', 'children': ['151', '157'], 'value': '/'}; {'id': '151', 'type': 'call', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'round'}; {'id': '153', 'type': 'argument_list', 'children': ['154']}; {'id': '154', 'type': 'binary_operator', 'children': ['155', '156'], 'value': '*'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 's_freq'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 's_freq'}; {'id': '158', 'type': 'expression_statement', 'children': ['159']}; {'id': '159', 'type': 'assignment', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'at_s_freq'}; {'id': '163', 'type': 'argument_list', 'children': ['164']}; {'id': '164', 'type': 'subscript', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'sel_xy'}; {'id': '168', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '172', 'type': 'call', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'at_s_freq'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'x_in_scene'}; {'id': '176', 'type': 'if_statement', 'children': ['177', '192']}; {'id': '177', 'type': 'comparison_operator', 'children': ['178', '184'], 'value': '<'}; {'id': '178', 'type': 'call', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '180', 'type': 'argument_list', 'children': ['181']}; {'id': '181', 'type': 'binary_operator', 'children': ['182', '183'], 'value': '-'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '184', 'type': 'call', 'children': ['185', '190']}; {'id': '185', 'type': 'attribute', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'string', 'children': [], 'value': "'min_marker_dur'"}; {'id': '192', 'type': 'block', 'children': ['193']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'assignment', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '197', 'type': 'if_statement', 'children': ['198', '201', '208']}; {'id': '198', 'type': 'comparison_operator', 'children': ['199', '200'], 'value': '<='}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '201', 'type': 'block', 'children': ['202']}; {'id': '202', 'type': 'expression_statement', 'children': ['203']}; {'id': '203', 'type': 'assignment', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '205', 'type': 'tuple', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '208', 'type': 'else_clause', 'children': ['209']}; {'id': '209', 'type': 'block', 'children': ['210']}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'assignment', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '213', 'type': 'tuple', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '216', 'type': 'if_statement', 'children': ['217', '218', '230']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'chk_marker'}; {'id': '218', 'type': 'block', 'children': ['219']}; {'id': '219', 'type': 'expression_statement', 'children': ['220']}; {'id': '220', 'type': 'call', 'children': ['221', '228']}; {'id': '221', 'type': 'attribute', 'children': ['222', '227']}; {'id': '222', 'type': 'attribute', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'add_bookmark'}; {'id': '228', 'type': 'argument_list', 'children': ['229']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '230', 'type': 'elif_clause', 'children': ['231', '236']}; {'id': '231', 'type': 'boolean_operator', 'children': ['232', '233'], 'value': 'and'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'chk_event'}; {'id': '233', 'type': 'comparison_operator', 'children': ['234', '235'], 'value': '!='}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'start'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'end'}; {'id': '236', 'type': 'block', 'children': ['237', '251', '297']}; {'id': '237', 'type': 'expression_statement', 'children': ['238']}; {'id': '238', 'type': 'assignment', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'eventtype'}; {'id': '240', 'type': 'call', 'children': ['241', '250']}; {'id': '241', 'type': 'attribute', 'children': ['242', '249']}; {'id': '242', 'type': 'attribute', 'children': ['243', '248']}; {'id': '243', 'type': 'attribute', 'children': ['244', '247']}; {'id': '244', 'type': 'attribute', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'idx_eventtype'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'currentText'}; {'id': '250', 'type': 'argument_list', 'children': []}; {'id': '251', 'type': 'if_statement', 'children': ['252', '266', '271']}; {'id': '252', 'type': 'comparison_operator', 'children': ['253', '263'], 'value': '>'}; {'id': '253', 'type': 'call', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'binary_operator', 'children': ['257', '258'], 'value': '-'}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'y_in_scene'}; {'id': '258', 'type': 'subscript', 'children': ['259', '262']}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'sel_xy'}; {'id': '262', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '263', 'type': 'binary_operator', 'children': ['264', '265'], 'value': '*'}; {'id': '264', 'type': 'float', 'children': [], 'value': '1.5'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'y_distance'}; {'id': '266', 'type': 'block', 'children': ['267']}; {'id': '267', 'type': 'expression_statement', 'children': ['268']}; {'id': '268', 'type': 'assignment', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '270', 'type': 'string', 'children': [], 'value': "''"}; {'id': '271', 'type': 'else_clause', 'children': ['272']}; {'id': '272', 'type': 'block', 'children': ['273', '289']}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'assignment', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'chan_idx'}; {'id': '276', 'type': 'call', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '278', 'type': 'argument_list', 'children': ['279']}; {'id': '279', 'type': 'call', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'floor'}; {'id': '281', 'type': 'argument_list', 'children': ['282']}; {'id': '282', 'type': 'binary_operator', 'children': ['283', '288'], 'value': '/'}; {'id': '283', 'type': 'subscript', 'children': ['284', '287']}; {'id': '284', 'type': 'attribute', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'sel_xy'}; {'id': '287', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'y_distance'}; {'id': '289', 'type': 'expression_statement', 'children': ['290']}; {'id': '290', 'type': 'assignment', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '292', 'type': 'subscript', 'children': ['293', '296']}; {'id': '293', 'type': 'attribute', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'chan_idx'}; {'id': '297', 'type': 'expression_statement', 'children': ['298']}; {'id': '298', 'type': 'call', 'children': ['299', '306']}; {'id': '299', 'type': 'attribute', 'children': ['300', '305']}; {'id': '300', 'type': 'attribute', 'children': ['301', '304']}; {'id': '301', 'type': 'attribute', 'children': ['302', '303']}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'add_event'}; {'id': '306', 'type': 'argument_list', 'children': ['307', '308', '309']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'eventtype'}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'chan'}; {'id': '310', 'type': 'else_clause', 'children': ['311']}; {'id': '311', 'type': 'block', 'children': ['312', '336', '342', '352']}; {'id': '312', 'type': 'if_statement', 'children': ['313', '324']}; {'id': '313', 'type': 'comparison_operator', 'children': ['314', '317'], 'value': 'in'}; {'id': '314', 'type': 'attribute', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'idx_info'}; {'id': '317', 'type': 'call', 'children': ['318', '323']}; {'id': '318', 'type': 'attribute', 'children': ['319', '322']}; {'id': '319', 'type': 'attribute', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '323', 'type': 'argument_list', 'children': []}; {'id': '324', 'type': 'block', 'children': ['325']}; {'id': '325', 'type': 'expression_statement', 'children': ['326']}; {'id': '326', 'type': 'call', 'children': ['327', '332']}; {'id': '327', 'type': 'attribute', 'children': ['328', '331']}; {'id': '328', 'type': 'attribute', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'removeItem'}; {'id': '332', 'type': 'argument_list', 'children': ['333']}; {'id': '333', 'type': 'attribute', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'idx_info'}; {'id': '336', 'type': 'expression_statement', 'children': ['337']}; {'id': '337', 'type': 'assignment', 'children': ['338', '341']}; {'id': '338', 'type': 'attribute', 'children': ['339', '340']}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'idx_info'}; {'id': '341', 'type': 'None', 'children': []}; {'id': '342', 'type': 'expression_statement', 'children': ['343']}; {'id': '343', 'type': 'call', 'children': ['344', '351']}; {'id': '344', 'type': 'attribute', 'children': ['345', '350']}; {'id': '345', 'type': 'attribute', 'children': ['346', '349']}; {'id': '346', 'type': 'attribute', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'spectrum'}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'update'}; {'id': '351', 'type': 'argument_list', 'children': []}; {'id': '352', 'type': 'expression_statement', 'children': ['353']}; {'id': '353', 'type': 'call', 'children': ['354', '361']}; {'id': '354', 'type': 'attribute', 'children': ['355', '360']}; {'id': '355', 'type': 'attribute', 'children': ['356', '359']}; {'id': '356', 'type': 'attribute', 'children': ['357', '358']}; {'id': '357', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'spectrum'}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'display_window'}; {'id': '361', 'type': 'argument_list', 'children': []}; {'id': '362', 'type': 'expression_statement', 'children': ['363']}; {'id': '363', 'type': 'assignment', 'children': ['364', '367']}; {'id': '364', 'type': 'attribute', 'children': ['365', '366']}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'sel_chan'}; {'id': '367', 'type': 'None', 'children': []}; {'id': '368', 'type': 'expression_statement', 'children': ['369']}; {'id': '369', 'type': 'assignment', 'children': ['370', '373']}; {'id': '370', 'type': 'attribute', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'sel_xy'}; {'id': '373', 'type': 'tuple', 'children': ['374', '375']}; {'id': '374', 'type': 'None', 'children': []}; {'id': '375', 'type': 'None', 'children': []}; {'id': '376', 'type': 'if_statement', 'children': ['377', '388']}; {'id': '377', 'type': 'comparison_operator', 'children': ['378', '381'], 'value': 'in'}; {'id': '378', 'type': 'attribute', 'children': ['379', '380']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'idx_sel'}; {'id': '381', 'type': 'call', 'children': ['382', '387']}; {'id': '382', 'type': 'attribute', 'children': ['383', '386']}; {'id': '383', 'type': 'attribute', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '387', 'type': 'argument_list', 'children': []}; {'id': '388', 'type': 'block', 'children': ['389', '400']}; {'id': '389', 'type': 'expression_statement', 'children': ['390']}; {'id': '390', 'type': 'call', 'children': ['391', '396']}; {'id': '391', 'type': 'attribute', 'children': ['392', '395']}; {'id': '392', 'type': 'attribute', 'children': ['393', '394']}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'scene'}; {'id': '395', 'type': 'identifier', 'children': [], 'value': 'removeItem'}; {'id': '396', 'type': 'argument_list', 'children': ['397']}; {'id': '397', 'type': 'attribute', 'children': ['398', '399']}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'idx_sel'}; {'id': '400', 'type': 'expression_statement', 'children': ['401']}; {'id': '401', 'type': 'assignment', 'children': ['402', '405']}; {'id': '402', 'type': 'attribute', 'children': ['403', '404']}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'idx_sel'}; {'id': '405', 'type': 'None', 'children': []}
Create a new event or marker, or show the previous power spectrum
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'next_event'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'delete'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '65', '71', '77', '85', '129', '141', '160', '216', '230', '292', '298', '307']}; {'id': '9', 'type': 'if_statement', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'delete'}; {'id': '11', 'type': 'block', 'children': ['12', '16', '27', '40', '49', '57']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '15', 'type': 'string', 'children': [], 'value': '"Delete this event? This cannot be undone."'}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'msgbox'}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '21', 'type': 'argument_list', 'children': ['22', '25', '26']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'Question'}; {'id': '25', 'type': 'string', 'children': [], 'value': "'Delete event'"}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'call', 'children': ['29', '32']}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'msgbox'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'setStandardButtons'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'binary_operator', 'children': ['34', '37'], 'value': '|'}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'Yes'}; {'id': '37', 'type': 'attribute', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'No'}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'msgbox'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'setDefaultButton'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'Yes'}; {'id': '49', 'type': 'expression_statement', 'children': ['50']}; {'id': '50', 'type': 'assignment', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '52', 'type': 'call', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'msgbox'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'exec_'}; {'id': '56', 'type': 'argument_list', 'children': []}; {'id': '57', 'type': 'if_statement', 'children': ['58', '63']}; {'id': '58', 'type': 'comparison_operator', 'children': ['59', '60'], 'value': '=='}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'response'}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'QMessageBox'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'No'}; {'id': '63', 'type': 'block', 'children': ['64']}; {'id': '64', 'type': 'return_statement', 'children': []}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '68', 'type': 'attribute', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '71', 'type': 'if_statement', 'children': ['72', '75']}; {'id': '72', 'type': 'comparison_operator', 'children': ['73', '74'], 'value': 'is'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '74', 'type': 'None', 'children': []}; {'id': '75', 'type': 'block', 'children': ['76']}; {'id': '76', 'type': 'return_statement', 'children': []}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '85', 'type': 'if_statement', 'children': ['86', '90', '121']}; {'id': '86', 'type': 'not_operator', 'children': ['87']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'current_event_row'}; {'id': '90', 'type': 'block', 'children': ['91']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'find_row'}; {'id': '98', 'type': 'argument_list', 'children': ['99', '106']}; {'id': '99', 'type': 'call', 'children': ['100', '105']}; {'id': '100', 'type': 'attribute', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'marker'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '105', 'type': 'argument_list', 'children': []}; {'id': '106', 'type': 'binary_operator', 'children': ['107', '114'], 'value': '+'}; {'id': '107', 'type': 'call', 'children': ['108', '113']}; {'id': '108', 'type': 'attribute', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'marker'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '113', 'type': 'argument_list', 'children': []}; {'id': '114', 'type': 'call', 'children': ['115', '120']}; {'id': '115', 'type': 'attribute', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'marker'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '120', 'type': 'argument_list', 'children': []}; {'id': '121', 'type': 'else_clause', 'children': ['122']}; {'id': '122', 'type': 'block', 'children': ['123']}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'assignment', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'current_event_row'}; {'id': '129', 'type': 'expression_statement', 'children': ['130']}; {'id': '130', 'type': 'assignment', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'same_type'}; {'id': '132', 'type': 'call', 'children': ['133', '140']}; {'id': '133', 'type': 'attribute', 'children': ['134', '139']}; {'id': '134', 'type': 'subscript', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'action'}; {'id': '138', 'type': 'string', 'children': [], 'value': "'next_of_same_type'"}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'isChecked'}; {'id': '140', 'type': 'argument_list', 'children': []}; {'id': '141', 'type': 'if_statement', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'same_type'}; {'id': '143', 'type': 'block', 'children': ['144']}; {'id': '144', 'type': 'expression_statement', 'children': ['145']}; {'id': '145', 'type': 'assignment', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '147', 'type': 'call', 'children': ['148', '159']}; {'id': '148', 'type': 'attribute', 'children': ['149', '158']}; {'id': '149', 'type': 'call', 'children': ['150', '155']}; {'id': '150', 'type': 'attribute', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'idx_annot_list'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '155', 'type': 'argument_list', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '157', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '159', 'type': 'argument_list', 'children': []}; {'id': '160', 'type': 'if_statement', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'delete'}; {'id': '162', 'type': 'block', 'children': ['163', '169', '199', '212']}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'delete_row'}; {'id': '168', 'type': 'argument_list', 'children': []}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '172', 'type': 'call', 'children': ['173', '176']}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'string', 'children': [], 'value': "'Deleted event from {} to {}.'"}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '176', 'type': 'argument_list', 'children': ['177', '184']}; {'id': '177', 'type': 'call', 'children': ['178', '183']}; {'id': '178', 'type': 'attribute', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'marker'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '183', 'type': 'argument_list', 'children': []}; {'id': '184', 'type': 'binary_operator', 'children': ['185', '192'], 'value': '+'}; {'id': '185', 'type': 'call', 'children': ['186', '191']}; {'id': '186', 'type': 'attribute', 'children': ['187', '190']}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'marker'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '191', 'type': 'argument_list', 'children': []}; {'id': '192', 'type': 'call', 'children': ['193', '198']}; {'id': '193', 'type': 'attribute', 'children': ['194', '197']}; {'id': '194', 'type': 'attribute', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'event_sel'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'marker'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'width'}; {'id': '198', 'type': 'argument_list', 'children': []}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'call', 'children': ['201', '210']}; {'id': '201', 'type': 'attribute', 'children': ['202', '209']}; {'id': '202', 'type': 'call', 'children': ['203', '208']}; {'id': '203', 'type': 'attribute', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'statusBar'}; {'id': '208', 'type': 'argument_list', 'children': []}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'showMessage'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'msg'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'augmented_assignment', 'children': ['214', '215'], 'value': '-='}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '215', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '216', 'type': 'if_statement', 'children': ['217', '228']}; {'id': '217', 'type': 'comparison_operator', 'children': ['218', '221'], 'value': '=='}; {'id': '218', 'type': 'binary_operator', 'children': ['219', '220'], 'value': '+'}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '220', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '221', 'type': 'call', 'children': ['222', '227']}; {'id': '222', 'type': 'attribute', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'idx_annot_list'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'rowCount'}; {'id': '227', 'type': 'argument_list', 'children': []}; {'id': '228', 'type': 'block', 'children': ['229']}; {'id': '229', 'type': 'return_statement', 'children': []}; {'id': '230', 'type': 'if_statement', 'children': ['231', '233', '240']}; {'id': '231', 'type': 'not_operator', 'children': ['232']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'same_type'}; {'id': '233', 'type': 'block', 'children': ['234']}; {'id': '234', 'type': 'expression_statement', 'children': ['235']}; {'id': '235', 'type': 'assignment', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'next_row'}; {'id': '237', 'type': 'binary_operator', 'children': ['238', '239'], 'value': '+'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '239', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '240', 'type': 'else_clause', 'children': ['241']}; {'id': '241', 'type': 'block', 'children': ['242', '246', '263', '286']}; {'id': '242', 'type': 'expression_statement', 'children': ['243']}; {'id': '243', 'type': 'assignment', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'next_row'}; {'id': '245', 'type': 'None', 'children': []}; {'id': '246', 'type': 'expression_statement', 'children': ['247']}; {'id': '247', 'type': 'assignment', 'children': ['248', '249']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'types'}; {'id': '249', 'type': 'subscript', 'children': ['250', '258']}; {'id': '250', 'type': 'call', 'children': ['251', '256']}; {'id': '251', 'type': 'attribute', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'idx_annot_list'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'property'}; {'id': '256', 'type': 'argument_list', 'children': ['257']}; {'id': '257', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '258', 'type': 'slice', 'children': ['259', '262']}; {'id': '259', 'type': 'binary_operator', 'children': ['260', '261'], 'value': '+'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '261', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '262', 'type': 'colon', 'children': []}; {'id': '263', 'type': 'for_statement', 'children': ['264', '267', '271']}; {'id': '264', 'type': 'pattern_list', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'ty'}; {'id': '267', 'type': 'call', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'types'}; {'id': '271', 'type': 'block', 'children': ['272']}; {'id': '272', 'type': 'if_statement', 'children': ['273', '276']}; {'id': '273', 'type': 'comparison_operator', 'children': ['274', '275'], 'value': '=='}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'ty'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'target'}; {'id': '276', 'type': 'block', 'children': ['277', '285']}; {'id': '277', 'type': 'expression_statement', 'children': ['278']}; {'id': '278', 'type': 'assignment', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'next_row'}; {'id': '280', 'type': 'binary_operator', 'children': ['281', '284'], 'value': '+'}; {'id': '281', 'type': 'binary_operator', 'children': ['282', '283'], 'value': '+'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'row'}; {'id': '283', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '285', 'type': 'break_statement', 'children': []}; {'id': '286', 'type': 'if_statement', 'children': ['287', '290']}; {'id': '287', 'type': 'comparison_operator', 'children': ['288', '289'], 'value': 'is'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'next_row'}; {'id': '289', 'type': 'None', 'children': []}; {'id': '290', 'type': 'block', 'children': ['291']}; {'id': '291', 'type': 'return_statement', 'children': []}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'assignment', 'children': ['294', '297']}; {'id': '294', 'type': 'attribute', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'current_event_row'}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'next_row'}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'call', 'children': ['300', '303']}; {'id': '300', 'type': 'attribute', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'go_to_marker'}; {'id': '303', 'type': 'argument_list', 'children': ['304', '305', '306']}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'next_row'}; {'id': '305', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '306', 'type': 'string', 'children': [], 'value': "'annot'"}; {'id': '307', 'type': 'expression_statement', 'children': ['308']}; {'id': '308', 'type': 'call', 'children': ['309', '314']}; {'id': '309', 'type': 'attribute', 'children': ['310', '313']}; {'id': '310', 'type': 'attribute', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'notes'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'idx_annot_list'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'setCurrentCell'}; {'id': '314', 'type': 'argument_list', 'children': ['315', '316']}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'next_row'}; {'id': '316', 'type': 'integer', 'children': [], 'value': '0'}
Go to next event.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '10']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_handle_get'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'block', 'children': ['11', '13', '27', '82', '89', '127', '138', '143', '154', '174', '184', '200']}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'string', 'children': [], 'value': "'''\n Routes ``GET`` actions to the appropriate controller.\n '''"}; {'id': '13', 'type': 'if_statement', 'children': ['14', '17']}; {'id': '14', 'type': 'comparison_operator', 'children': ['15', '16'], 'value': 'is'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '16', 'type': 'None', 'children': []}; {'id': '17', 'type': 'block', 'children': ['18']}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'call', 'children': ['20', '23']}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': '_raise_method_deprecation_warning'}; {'id': '23', 'type': 'argument_list', 'children': ['24']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': '_handle_get'}; {'id': '27', 'type': 'if_statement', 'children': ['28', '35']}; {'id': '28', 'type': 'boolean_operator', 'children': ['29', '31'], 'value': 'or'}; {'id': '29', 'type': 'not_operator', 'children': ['30']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '31', 'type': 'comparison_operator', 'children': ['32', '33'], 'value': '=='}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '33', 'type': 'list', 'children': ['34'], 'value': "['']"}; {'id': '34', 'type': 'string', 'children': [], 'value': "''"}; {'id': '35', 'type': 'block', 'children': ['36', '51', '61', '77']}; {'id': '36', 'type': 'expression_statement', 'children': ['37']}; {'id': '37', 'type': 'assignment', 'children': ['38', '39']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '39', 'type': 'call', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'call', 'children': ['43', '48']}; {'id': '43', 'type': 'attribute', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'moves'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'filter'}; {'id': '48', 'type': 'argument_list', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '54', 'type': 'call', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': '_find_controller'}; {'id': '58', 'type': 'argument_list', 'children': ['59', '60']}; {'id': '59', 'type': 'string', 'children': [], 'value': "'get_all'"}; {'id': '60', 'type': 'string', 'children': [], 'value': "'get'"}; {'id': '61', 'type': 'if_statement', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '63', 'type': 'block', 'children': ['64', '73']}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'call', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': '_handle_bad_rest_arguments'}; {'id': '69', 'type': 'argument_list', 'children': ['70', '71', '72']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '73', 'type': 'return_statement', 'children': ['74']}; {'id': '74', 'type': 'expression_list', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '76', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'call', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'abort'}; {'id': '80', 'type': 'argument_list', 'children': ['81']}; {'id': '81', 'type': 'integer', 'children': [], 'value': '405'}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'assignment', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '85', 'type': 'subscript', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '87', 'type': 'unary_operator', 'children': ['88'], 'value': '-'}; {'id': '88', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '89', 'type': 'if_statement', 'children': ['90', '96']}; {'id': '90', 'type': 'comparison_operator', 'children': ['91', '92'], 'value': 'in'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '92', 'type': 'tuple', 'children': ['93', '94', '95']}; {'id': '93', 'type': 'string', 'children': [], 'value': "'new'"}; {'id': '94', 'type': 'string', 'children': [], 'value': "'edit'"}; {'id': '95', 'type': 'string', 'children': [], 'value': "'delete'"}; {'id': '96', 'type': 'block', 'children': ['97', '106', '115']}; {'id': '97', 'type': 'if_statement', 'children': ['98', '101']}; {'id': '98', 'type': 'comparison_operator', 'children': ['99', '100'], 'value': '=='}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '100', 'type': 'string', 'children': [], 'value': "'delete'"}; {'id': '101', 'type': 'block', 'children': ['102']}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '105', 'type': 'string', 'children': [], 'value': "'get_delete'"}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '109', 'type': 'call', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': '_find_controller'}; {'id': '113', 'type': 'argument_list', 'children': ['114']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'method_name'}; {'id': '115', 'type': 'if_statement', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '117', 'type': 'block', 'children': ['118']}; {'id': '118', 'type': 'return_statement', 'children': ['119']}; {'id': '119', 'type': 'expression_list', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '121', 'type': 'subscript', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '123', 'type': 'slice', 'children': ['124', '125']}; {'id': '124', 'type': 'colon', 'children': []}; {'id': '125', 'type': 'unary_operator', 'children': ['126'], 'value': '-'}; {'id': '126', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'assignment', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '130', 'type': 'call', 'children': ['131', '134']}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': '_handle_custom_action'}; {'id': '134', 'type': 'argument_list', 'children': ['135', '136', '137']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '138', 'type': 'if_statement', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '140', 'type': 'block', 'children': ['141']}; {'id': '141', 'type': 'return_statement', 'children': ['142']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '146', 'type': 'call', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': '_lookup_child'}; {'id': '150', 'type': 'argument_list', 'children': ['151']}; {'id': '151', 'type': 'subscript', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '153', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '154', 'type': 'if_statement', 'children': ['155', '162']}; {'id': '155', 'type': 'boolean_operator', 'children': ['156', '157'], 'value': 'and'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '157', 'type': 'not_operator', 'children': ['158']}; {'id': '158', 'type': 'call', 'children': ['159', '160']}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'ismethod'}; {'id': '160', 'type': 'argument_list', 'children': ['161']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '162', 'type': 'block', 'children': ['163']}; {'id': '163', 'type': 'return_statement', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'lookup_controller'}; {'id': '166', 'type': 'argument_list', 'children': ['167', '168', '173']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '168', 'type': 'subscript', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '170', 'type': 'slice', 'children': ['171', '172']}; {'id': '171', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '172', 'type': 'colon', 'children': []}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '174', 'type': 'expression_statement', 'children': ['175']}; {'id': '175', 'type': 'assignment', 'children': ['176', '177']}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '177', 'type': 'call', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': '_find_controller'}; {'id': '181', 'type': 'argument_list', 'children': ['182', '183']}; {'id': '182', 'type': 'string', 'children': [], 'value': "'get_one'"}; {'id': '183', 'type': 'string', 'children': [], 'value': "'get'"}; {'id': '184', 'type': 'if_statement', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '186', 'type': 'block', 'children': ['187', '196']}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'call', 'children': ['189', '192']}; {'id': '189', 'type': 'attribute', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': '_handle_bad_rest_arguments'}; {'id': '192', 'type': 'argument_list', 'children': ['193', '194', '195']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '196', 'type': 'return_statement', 'children': ['197']}; {'id': '197', 'type': 'expression_list', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '200', 'type': 'expression_statement', 'children': ['201']}; {'id': '201', 'type': 'call', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'abort'}; {'id': '203', 'type': 'argument_list', 'children': ['204']}; {'id': '204', 'type': 'integer', 'children': [], 'value': '405'}
Routes ``GET`` actions to the appropriate controller.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '10']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_handle_delete'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '7', 'type': 'default_parameter', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'block', 'children': ['11', '13', '27', '77', '87', '94', '137']}; {'id': '11', 'type': 'expression_statement', 'children': ['12']}; {'id': '12', 'type': 'string', 'children': [], 'value': "'''\n Routes ``DELETE`` actions to the appropriate controller.\n '''"}; {'id': '13', 'type': 'if_statement', 'children': ['14', '17']}; {'id': '14', 'type': 'comparison_operator', 'children': ['15', '16'], 'value': 'is'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '16', 'type': 'None', 'children': []}; {'id': '17', 'type': 'block', 'children': ['18']}; {'id': '18', 'type': 'expression_statement', 'children': ['19']}; {'id': '19', 'type': 'call', 'children': ['20', '23']}; {'id': '20', 'type': 'attribute', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': '_raise_method_deprecation_warning'}; {'id': '23', 'type': 'argument_list', 'children': ['24']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': '_handle_delete'}; {'id': '27', 'type': 'if_statement', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '29', 'type': 'block', 'children': ['30', '41', '46', '57']}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '33', 'type': 'call', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': '_handle_custom_action'}; {'id': '37', 'type': 'argument_list', 'children': ['38', '39', '40']}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'method'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '41', 'type': 'if_statement', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '43', 'type': 'block', 'children': ['44']}; {'id': '44', 'type': 'return_statement', 'children': ['45']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '46', 'type': 'expression_statement', 'children': ['47']}; {'id': '47', 'type': 'assignment', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '49', 'type': 'call', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': '_lookup_child'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'subscript', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '56', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '57', 'type': 'if_statement', 'children': ['58', '65']}; {'id': '58', 'type': 'boolean_operator', 'children': ['59', '60'], 'value': 'and'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '60', 'type': 'not_operator', 'children': ['61']}; {'id': '61', 'type': 'call', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'ismethod'}; {'id': '63', 'type': 'argument_list', 'children': ['64']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '65', 'type': 'block', 'children': ['66']}; {'id': '66', 'type': 'return_statement', 'children': ['67']}; {'id': '67', 'type': 'call', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'lookup_controller'}; {'id': '69', 'type': 'argument_list', 'children': ['70', '71', '76']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '71', 'type': 'subscript', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '73', 'type': 'slice', 'children': ['74', '75']}; {'id': '74', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '75', 'type': 'colon', 'children': []}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '77', 'type': 'expression_statement', 'children': ['78']}; {'id': '78', 'type': 'assignment', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': '_find_controller'}; {'id': '84', 'type': 'argument_list', 'children': ['85', '86']}; {'id': '85', 'type': 'string', 'children': [], 'value': "'post_delete'"}; {'id': '86', 'type': 'string', 'children': [], 'value': "'delete'"}; {'id': '87', 'type': 'if_statement', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '89', 'type': 'block', 'children': ['90']}; {'id': '90', 'type': 'return_statement', 'children': ['91']}; {'id': '91', 'type': 'expression_list', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'controller'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '94', 'type': 'if_statement', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '96', 'type': 'block', 'children': ['97', '112', '123']}; {'id': '97', 'type': 'if_statement', 'children': ['98', '106']}; {'id': '98', 'type': 'call', 'children': ['99', '102']}; {'id': '99', 'type': 'attribute', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': '_find_controller'}; {'id': '102', 'type': 'argument_list', 'children': ['103']}; {'id': '103', 'type': 'subscript', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '105', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '106', 'type': 'block', 'children': ['107']}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'call', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'abort'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'integer', 'children': [], 'value': '405'}; {'id': '112', 'type': 'expression_statement', 'children': ['113']}; {'id': '113', 'type': 'assignment', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'sub_controller'}; {'id': '115', 'type': 'call', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': '_lookup_child'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'subscript', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '122', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '123', 'type': 'if_statement', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'sub_controller'}; {'id': '125', 'type': 'block', 'children': ['126']}; {'id': '126', 'type': 'return_statement', 'children': ['127']}; {'id': '127', 'type': 'call', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'lookup_controller'}; {'id': '129', 'type': 'argument_list', 'children': ['130', '131', '136']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'sub_controller'}; {'id': '131', 'type': 'subscript', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'remainder'}; {'id': '133', 'type': 'slice', 'children': ['134', '135']}; {'id': '134', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '135', 'type': 'colon', 'children': []}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'request'}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'call', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'abort'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'integer', 'children': [], 'value': '405'}
Routes ``DELETE`` actions to the appropriate controller.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '4']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'gunicorn_run'}; {'id': '3', 'type': 'parameters', 'children': []}; {'id': '4', 'type': 'block', 'children': ['5', '53', '230']}; {'id': '5', 'type': 'try_statement', 'children': ['6', '14']}; {'id': '6', 'type': 'block', 'children': ['7']}; {'id': '7', 'type': 'import_from_statement', 'children': ['8', '12']}; {'id': '8', 'type': 'dotted_name', 'children': ['9', '10', '11']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'gunicorn'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'app'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'wsgiapp'}; {'id': '12', 'type': 'dotted_name', 'children': ['13']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'WSGIApplication'}; {'id': '14', 'type': 'except_clause', 'children': ['15', '19']}; {'id': '15', 'type': 'as_pattern', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'ImportError'}; {'id': '17', 'type': 'as_pattern_target', 'children': ['18']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'exc'}; {'id': '19', 'type': 'block', 'children': ['20', '26', '35', '39', '52']}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'exc'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'arg0'}; {'id': '29', 'type': 'conditional_expression', 'children': ['30', '33', '34'], 'value': 'if'}; {'id': '30', 'type': 'subscript', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '32', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '34', 'type': 'string', 'children': [], 'value': "''"}; {'id': '35', 'type': 'expression_statement', 'children': ['36']}; {'id': '36', 'type': 'augmented_assignment', 'children': ['37', '38'], 'value': '+='}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'arg0'}; {'id': '38', 'type': 'string', 'children': [], 'value': "' (are you sure `gunicorn` is installed?)'"}; {'id': '39', 'type': 'expression_statement', 'children': ['40']}; {'id': '40', 'type': 'assignment', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'exc'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '44', 'type': 'binary_operator', 'children': ['45', '47'], 'value': '+'}; {'id': '45', 'type': 'tuple', 'children': ['46']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'arg0'}; {'id': '47', 'type': 'subscript', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '49', 'type': 'slice', 'children': ['50', '51']}; {'id': '50', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '51', 'type': 'colon', 'children': []}; {'id': '52', 'type': 'raise_statement', 'children': []}; {'id': '53', 'type': 'class_definition', 'children': ['54', '55', '57']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'PecanApplication'}; {'id': '55', 'type': 'argument_list', 'children': ['56']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'WSGIApplication'}; {'id': '57', 'type': 'block', 'children': ['58', '212']}; {'id': '58', 'type': 'function_definition', 'children': ['59', '60', '65']}; {'id': '59', 'type': 'function_name', 'children': [], 'value': 'init'}; {'id': '60', 'type': 'parameters', 'children': ['61', '62', '63', '64']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'parser'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'opts'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '65', 'type': 'block', 'children': ['66', '81', '108', '123', '147', '155', '165', '169', '210']}; {'id': '66', 'type': 'if_statement', 'children': ['67', '73']}; {'id': '67', 'type': 'comparison_operator', 'children': ['68', '72'], 'value': '!='}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '70', 'type': 'argument_list', 'children': ['71']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '72', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '73', 'type': 'block', 'children': ['74']}; {'id': '74', 'type': 'expression_statement', 'children': ['75']}; {'id': '75', 'type': 'call', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'parser'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'string', 'children': [], 'value': '"No configuration file was specified."'}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'cfgfname'}; {'id': '86', 'type': 'call', 'children': ['87', '92']}; {'id': '87', 'type': 'attribute', 'children': ['88', '91']}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'normpath'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'call', 'children': ['94', '99']}; {'id': '94', 'type': 'attribute', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '105']}; {'id': '100', 'type': 'call', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'getcwd'}; {'id': '104', 'type': 'argument_list', 'children': []}; {'id': '105', 'type': 'subscript', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '107', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '108', 'type': 'expression_statement', 'children': ['109']}; {'id': '109', 'type': 'assignment', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'cfgfname'}; {'id': '113', 'type': 'call', 'children': ['114', '119']}; {'id': '114', 'type': 'attribute', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'abspath'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'attribute', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'cfgfname'}; {'id': '123', 'type': 'if_statement', 'children': ['124', '135']}; {'id': '124', 'type': 'not_operator', 'children': ['125']}; {'id': '125', 'type': 'call', 'children': ['126', '131']}; {'id': '126', 'type': 'attribute', 'children': ['127', '130']}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '131', 'type': 'argument_list', 'children': ['132']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'cfgfname'}; {'id': '135', 'type': 'block', 'children': ['136']}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'call', 'children': ['138', '141']}; {'id': '138', 'type': 'attribute', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'parser'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '141', 'type': 'argument_list', 'children': ['142']}; {'id': '142', 'type': 'binary_operator', 'children': ['143', '144'], 'value': '%'}; {'id': '143', 'type': 'string', 'children': [], 'value': '"Config file not found: %s"'}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'cfgfname'}; {'id': '147', 'type': 'import_from_statement', 'children': ['148', '151', '153']}; {'id': '148', 'type': 'dotted_name', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'pecan'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'configuration'}; {'id': '151', 'type': 'dotted_name', 'children': ['152']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': '_runtime_conf'}; {'id': '153', 'type': 'dotted_name', 'children': ['154']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'set_config'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'call', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'set_config'}; {'id': '158', 'type': 'argument_list', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'cfgfname'}; {'id': '162', 'type': 'keyword_argument', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'overwrite'}; {'id': '164', 'type': 'True', 'children': []}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'assignment', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '168', 'type': 'dictionary', 'children': []}; {'id': '169', 'type': 'if_statement', 'children': ['170', '176']}; {'id': '170', 'type': 'call', 'children': ['171', '174']}; {'id': '171', 'type': 'attribute', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': '_runtime_conf'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'string', 'children': [], 'value': "'server'"}; {'id': '176', 'type': 'block', 'children': ['177', '183']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '180', 'type': 'subscript', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': '_runtime_conf'}; {'id': '182', 'type': 'string', 'children': [], 'value': "'server'"}; {'id': '183', 'type': 'if_statement', 'children': ['184', '195']}; {'id': '184', 'type': 'boolean_operator', 'children': ['185', '190'], 'value': 'and'}; {'id': '185', 'type': 'call', 'children': ['186', '187']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '187', 'type': 'argument_list', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '189', 'type': 'string', 'children': [], 'value': "'host'"}; {'id': '190', 'type': 'call', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '192', 'type': 'argument_list', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '194', 'type': 'string', 'children': [], 'value': "'port'"}; {'id': '195', 'type': 'block', 'children': ['196']}; {'id': '196', 'type': 'expression_statement', 'children': ['197']}; {'id': '197', 'type': 'assignment', 'children': ['198', '201']}; {'id': '198', 'type': 'subscript', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '200', 'type': 'string', 'children': [], 'value': "'bind'"}; {'id': '201', 'type': 'binary_operator', 'children': ['202', '203'], 'value': '%'}; {'id': '202', 'type': 'string', 'children': [], 'value': "'%s:%s'"}; {'id': '203', 'type': 'tuple', 'children': ['204', '207']}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'host'}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'port'}; {'id': '210', 'type': 'return_statement', 'children': ['211']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'cfg'}; {'id': '212', 'type': 'function_definition', 'children': ['213', '214', '216']}; {'id': '213', 'type': 'function_name', 'children': [], 'value': 'load'}; {'id': '214', 'type': 'parameters', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '216', 'type': 'block', 'children': ['217', '223']}; {'id': '217', 'type': 'import_from_statement', 'children': ['218', '221']}; {'id': '218', 'type': 'dotted_name', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'pecan'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'deploy'}; {'id': '221', 'type': 'dotted_name', 'children': ['222']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'deploy'}; {'id': '223', 'type': 'return_statement', 'children': ['224']}; {'id': '224', 'type': 'call', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'deploy'}; {'id': '226', 'type': 'argument_list', 'children': ['227']}; {'id': '227', 'type': 'attribute', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'cfgfname'}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'call', 'children': ['232', '238']}; {'id': '232', 'type': 'attribute', 'children': ['233', '237']}; {'id': '233', 'type': 'call', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'PecanApplication'}; {'id': '235', 'type': 'argument_list', 'children': ['236']}; {'id': '236', 'type': 'string', 'children': [], 'value': '"%(prog)s [OPTIONS] config.py"'}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'run'}; {'id': '238', 'type': 'argument_list', 'children': []}
The ``gunicorn_pecan`` command for launching ``pecan`` applications
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '8']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'construct'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '7', 'type': 'False', 'children': []}; {'id': '8', 'type': 'block', 'children': ['9', '18', '55', '63', '73', '143', '160', '202', '208', '248']}; {'id': '9', 'type': 'expression_statement', 'children': ['10']}; {'id': '10', 'type': 'assignment', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '12', 'type': 'call', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '14', 'type': 'argument_list', 'children': ['15']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '18', 'type': 'if_statement', 'children': ['19', '31']}; {'id': '19', 'type': 'boolean_operator', 'children': ['20', '29'], 'value': 'and'}; {'id': '20', 'type': 'not_operator', 'children': ['21']}; {'id': '21', 'type': 'call', 'children': ['22', '27']}; {'id': '22', 'type': 'attribute', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'COMMAND_PATTERN'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '27', 'type': 'argument_list', 'children': ['28']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '29', 'type': 'not_operator', 'children': ['30']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '31', 'type': 'block', 'children': ['32']}; {'id': '32', 'type': 'raise_statement', 'children': ['33']}; {'id': '33', 'type': 'call', 'children': ['34', '39']}; {'id': '34', 'type': 'attribute', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'pydle'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'ProtocolViolation'}; {'id': '39', 'type': 'argument_list', 'children': ['40', '52']}; {'id': '40', 'type': 'call', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'string', 'children': [], 'value': "'The constructed command does not follow the command pattern ({pat})'"}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '44', 'type': 'argument_list', 'children': ['45']}; {'id': '45', 'type': 'keyword_argument', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'pat'}; {'id': '47', 'type': 'attribute', 'children': ['48', '51']}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'COMMAND_PATTERN'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'pattern'}; {'id': '52', 'type': 'keyword_argument', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '58', 'type': 'call', 'children': ['59', '62']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'command'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '62', 'type': 'argument_list', 'children': []}; {'id': '63', 'type': 'if_statement', 'children': ['64', '68']}; {'id': '64', 'type': 'not_operator', 'children': ['65']}; {'id': '65', 'type': 'attribute', 'children': ['66', '67']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '68', 'type': 'block', 'children': ['69']}; {'id': '69', 'type': 'expression_statement', 'children': ['70']}; {'id': '70', 'type': 'augmented_assignment', 'children': ['71', '72'], 'value': '+='}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '72', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '73', 'type': 'for_statement', 'children': ['74', '77', '83']}; {'id': '74', 'type': 'pattern_list', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'param'}; {'id': '77', 'type': 'call', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '83', 'type': 'block', 'children': ['84']}; {'id': '84', 'type': 'if_statement', 'children': ['85', '97', '135']}; {'id': '85', 'type': 'boolean_operator', 'children': ['86', '92'], 'value': 'or'}; {'id': '86', 'type': 'boolean_operator', 'children': ['87', '89'], 'value': 'or'}; {'id': '87', 'type': 'not_operator', 'children': ['88']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'param'}; {'id': '89', 'type': 'comparison_operator', 'children': ['90', '91'], 'value': 'in'}; {'id': '90', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'param'}; {'id': '92', 'type': 'comparison_operator', 'children': ['93', '96'], 'value': '=='}; {'id': '93', 'type': 'subscript', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'param'}; {'id': '95', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '96', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '97', 'type': 'block', 'children': ['98', '125']}; {'id': '98', 'type': 'if_statement', 'children': ['99', '112']}; {'id': '99', 'type': 'boolean_operator', 'children': ['100', '110'], 'value': 'and'}; {'id': '100', 'type': 'comparison_operator', 'children': ['101', '104'], 'value': '<'}; {'id': '101', 'type': 'binary_operator', 'children': ['102', '103'], 'value': '+'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '103', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '104', 'type': 'call', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '106', 'type': 'argument_list', 'children': ['107']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '110', 'type': 'not_operator', 'children': ['111']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '112', 'type': 'block', 'children': ['113']}; {'id': '113', 'type': 'raise_statement', 'children': ['114']}; {'id': '114', 'type': 'call', 'children': ['115', '120']}; {'id': '115', 'type': 'attribute', 'children': ['116', '119']}; {'id': '116', 'type': 'attribute', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'pydle'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'ProtocolViolation'}; {'id': '120', 'type': 'argument_list', 'children': ['121', '122']}; {'id': '121', 'type': 'string', 'children': [], 'value': "'Only the final parameter of an IRC message can be trailing and thus contain spaces, or start with a colon.'"}; {'id': '122', 'type': 'keyword_argument', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'param'}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'augmented_assignment', 'children': ['127', '128'], 'value': '+='}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '128', 'type': 'binary_operator', 'children': ['129', '134'], 'value': '+'}; {'id': '129', 'type': 'binary_operator', 'children': ['130', '131'], 'value': '+'}; {'id': '130', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '131', 'type': 'attribute', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'TRAILING_PREFIX'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'param'}; {'id': '135', 'type': 'else_clause', 'children': ['136']}; {'id': '136', 'type': 'block', 'children': ['137']}; {'id': '137', 'type': 'expression_statement', 'children': ['138']}; {'id': '138', 'type': 'augmented_assignment', 'children': ['139', '140'], 'value': '+='}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '140', 'type': 'binary_operator', 'children': ['141', '142'], 'value': '+'}; {'id': '141', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'param'}; {'id': '143', 'type': 'if_statement', 'children': ['144', '147']}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '147', 'type': 'block', 'children': ['148']}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'assignment', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '151', 'type': 'binary_operator', 'children': ['152', '159'], 'value': '+'}; {'id': '152', 'type': 'binary_operator', 'children': ['153', '158'], 'value': '+'}; {'id': '153', 'type': 'binary_operator', 'children': ['154', '155'], 'value': '+'}; {'id': '154', 'type': 'string', 'children': [], 'value': "':'"}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'source'}; {'id': '158', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '160', 'type': 'if_statement', 'children': ['161', '175']}; {'id': '161', 'type': 'boolean_operator', 'children': ['162', '173'], 'value': 'and'}; {'id': '162', 'type': 'call', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '164', 'type': 'generator_expression', 'children': ['165', '168']}; {'id': '165', 'type': 'comparison_operator', 'children': ['166', '167'], 'value': 'in'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'ch'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '168', 'type': 'for_in_clause', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'ch'}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'FORBIDDEN_CHARACTERS'}; {'id': '173', 'type': 'not_operator', 'children': ['174']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '175', 'type': 'block', 'children': ['176']}; {'id': '176', 'type': 'raise_statement', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '183']}; {'id': '178', 'type': 'attribute', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'pydle'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'ProtocolViolation'}; {'id': '183', 'type': 'argument_list', 'children': ['184', '199']}; {'id': '184', 'type': 'call', 'children': ['185', '188']}; {'id': '185', 'type': 'attribute', 'children': ['186', '187']}; {'id': '186', 'type': 'string', 'children': [], 'value': "'The constructed message contains forbidden characters ({chs}).'"}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '188', 'type': 'argument_list', 'children': ['189']}; {'id': '189', 'type': 'keyword_argument', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'chs'}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'FORBIDDEN_CHARACTERS'}; {'id': '199', 'type': 'keyword_argument', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '202', 'type': 'expression_statement', 'children': ['203']}; {'id': '203', 'type': 'augmented_assignment', 'children': ['204', '205'], 'value': '+='}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'LINE_SEPARATOR'}; {'id': '208', 'type': 'if_statement', 'children': ['209', '220']}; {'id': '209', 'type': 'boolean_operator', 'children': ['210', '218'], 'value': 'and'}; {'id': '210', 'type': 'comparison_operator', 'children': ['211', '215'], 'value': '>'}; {'id': '211', 'type': 'call', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '213', 'type': 'argument_list', 'children': ['214']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '215', 'type': 'attribute', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'MESSAGE_LENGTH_LIMIT'}; {'id': '218', 'type': 'not_operator', 'children': ['219']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'force'}; {'id': '220', 'type': 'block', 'children': ['221']}; {'id': '221', 'type': 'raise_statement', 'children': ['222']}; {'id': '222', 'type': 'call', 'children': ['223', '228']}; {'id': '223', 'type': 'attribute', 'children': ['224', '227']}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'pydle'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'ProtocolViolation'}; {'id': '228', 'type': 'argument_list', 'children': ['229', '245']}; {'id': '229', 'type': 'call', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'string', 'children': [], 'value': "'The constructed message is too long. ({len} > {maxlen})'"}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'format'}; {'id': '233', 'type': 'argument_list', 'children': ['234', '240']}; {'id': '234', 'type': 'keyword_argument', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '236', 'type': 'call', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '238', 'type': 'argument_list', 'children': ['239']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '240', 'type': 'keyword_argument', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'maxlen'}; {'id': '242', 'type': 'attribute', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'protocol'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'MESSAGE_LENGTH_LIMIT'}; {'id': '245', 'type': 'keyword_argument', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'message'}; {'id': '248', 'type': 'return_statement', 'children': ['249']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'message'}
Construct a raw IRC message.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_check_yaml_and_paths'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'ymlfilepath'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'yamldefs'}; {'id': '6', 'type': 'block', 'children': ['7', '18', '29', '47']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '10', 'type': 'call', 'children': ['11', '16']}; {'id': '11', 'type': 'attribute', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '16', 'type': 'argument_list', 'children': ['17']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'ymlfilepath'}; {'id': '18', 'type': 'if_statement', 'children': ['19', '22']}; {'id': '19', 'type': 'comparison_operator', 'children': ['20', '21'], 'value': 'not'}; {'id': '20', 'type': 'string', 'children': [], 'value': "'/'"}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '26', 'type': 'binary_operator', 'children': ['27', '28'], 'value': '%'}; {'id': '27', 'type': 'string', 'children': [], 'value': "'./%s'"}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'assignment', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'pathroot'}; {'id': '32', 'type': 'call', 'children': ['33', '38']}; {'id': '33', 'type': 'attribute', 'children': ['34', '37']}; {'id': '34', 'type': 'attribute', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'abspath'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'call', 'children': ['40', '45']}; {'id': '40', 'type': 'attribute', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'dirname'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'ymlfilepath'}; {'id': '47', 'type': 'for_statement', 'children': ['48', '51', '55']}; {'id': '48', 'type': 'pattern_list', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '51', 'type': 'call', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'iteritems'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'yamldefs'}; {'id': '55', 'type': 'block', 'children': ['56', '91', '115', '186', '192', '212', '235', '263']}; {'id': '56', 'type': 'if_statement', 'children': ['57', '60', '85']}; {'id': '57', 'type': 'comparison_operator', 'children': ['58', '59'], 'value': '=='}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '59', 'type': 'string', 'children': [], 'value': "'_SOURCES_'"}; {'id': '60', 'type': 'block', 'children': ['61', '84']}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '66']}; {'id': '63', 'type': 'subscript', 'children': ['64', '65']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'yamldefs'}; {'id': '65', 'type': 'string', 'children': [], 'value': "'_SOURCES_'"}; {'id': '66', 'type': 'list_comprehension', 'children': ['67', '79']}; {'id': '67', 'type': 'call', 'children': ['68', '73']}; {'id': '68', 'type': 'attribute', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'call', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': '_get_abspath'}; {'id': '76', 'type': 'argument_list', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'pathroot'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '79', 'type': 'for_in_clause', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'p'}; {'id': '81', 'type': 'subscript', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'yamldefs'}; {'id': '83', 'type': 'string', 'children': [], 'value': "'_SOURCES_'"}; {'id': '84', 'type': 'continue_statement', 'children': []}; {'id': '85', 'type': 'elif_clause', 'children': ['86', '89']}; {'id': '86', 'type': 'comparison_operator', 'children': ['87', '88'], 'value': 'in'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'SPECIAL_FIELDS'}; {'id': '89', 'type': 'block', 'children': ['90']}; {'id': '90', 'type': 'continue_statement', 'children': []}; {'id': '91', 'type': 'for_statement', 'children': ['92', '93', '97']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '93', 'type': 'tuple', 'children': ['94', '95', '96']}; {'id': '94', 'type': 'string', 'children': [], 'value': "'build_directory'"}; {'id': '95', 'type': 'string', 'children': [], 'value': "'FROM_DOCKERFILE'"}; {'id': '96', 'type': 'string', 'children': [], 'value': "'ignorefile'"}; {'id': '97', 'type': 'block', 'children': ['98']}; {'id': '98', 'type': 'if_statement', 'children': ['99', '102']}; {'id': '99', 'type': 'comparison_operator', 'children': ['100', '101'], 'value': 'in'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '108']}; {'id': '105', 'type': 'subscript', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '108', 'type': 'call', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': '_get_abspath'}; {'id': '110', 'type': 'argument_list', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'pathroot'}; {'id': '112', 'type': 'subscript', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '115', 'type': 'if_statement', 'children': ['116', '119']}; {'id': '116', 'type': 'comparison_operator', 'children': ['117', '118'], 'value': 'in'}; {'id': '117', 'type': 'string', 'children': [], 'value': "'copy_from'"}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '119', 'type': 'block', 'children': ['120', '146']}; {'id': '120', 'type': 'if_statement', 'children': ['121', '129']}; {'id': '121', 'type': 'not_operator', 'children': ['122']}; {'id': '122', 'type': 'call', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '124', 'type': 'argument_list', 'children': ['125', '128']}; {'id': '125', 'type': 'subscript', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '127', 'type': 'string', 'children': [], 'value': "'copy_from'"}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '129', 'type': 'block', 'children': ['130']}; {'id': '130', 'type': 'raise_statement', 'children': ['131']}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'ParsingFailure'}; {'id': '135', 'type': 'argument_list', 'children': ['136']}; {'id': '136', 'type': 'binary_operator', 'children': ['137', '143'], 'value': '%'}; {'id': '137', 'type': '()', 'children': ['138']}; {'id': '138', 'type': 'binary_operator', 'children': ['139', '140'], 'value': '+'}; {'id': '139', 'type': 'string', 'children': [], 'value': '\'Syntax error in file "%s": \\n\''}; {'id': '140', 'type': 'concatenated_string', 'children': ['141', '142']}; {'id': '141', 'type': 'string', 'children': [], 'value': '\'The "copy_from" field in image definition "%s" is not \\n\''}; {'id': '142', 'type': 'string', 'children': [], 'value': "'a key:value list.'"}; {'id': '143', 'type': 'tuple', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'ymlfilepath'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '146', 'type': 'for_statement', 'children': ['147', '150', '161']}; {'id': '147', 'type': 'pattern_list', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'otherimg'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '150', 'type': 'call', 'children': ['151', '160']}; {'id': '151', 'type': 'attribute', 'children': ['152', '159']}; {'id': '152', 'type': 'call', 'children': ['153', '156']}; {'id': '153', 'type': 'attribute', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '156', 'type': 'argument_list', 'children': ['157', '158']}; {'id': '157', 'type': 'string', 'children': [], 'value': "'copy_from'"}; {'id': '158', 'type': 'dictionary', 'children': []}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '160', 'type': 'argument_list', 'children': []}; {'id': '161', 'type': 'block', 'children': ['162']}; {'id': '162', 'type': 'if_statement', 'children': ['163', '169']}; {'id': '163', 'type': 'not_operator', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '166', 'type': 'argument_list', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '169', 'type': 'block', 'children': ['170']}; {'id': '170', 'type': 'raise_statement', 'children': ['171']}; {'id': '171', 'type': 'call', 'children': ['172', '175']}; {'id': '172', 'type': 'attribute', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'ParsingFailure'}; {'id': '175', 'type': 'argument_list', 'children': ['176']}; {'id': '176', 'type': 'binary_operator', 'children': ['177', '182'], 'value': '%'}; {'id': '177', 'type': '()', 'children': ['178']}; {'id': '178', 'type': 'concatenated_string', 'children': ['179', '180', '181']}; {'id': '179', 'type': 'string', 'children': [], 'value': "'Syntax error in field:\\n'"}; {'id': '180', 'type': 'string', 'children': [], 'value': '\' %s . copy_from . %s\\nin file "%s". \\n\''}; {'id': '181', 'type': 'string', 'children': [], 'value': '\'All entries must be of the form "sourcepath: destpath"\''}; {'id': '182', 'type': 'tuple', 'children': ['183', '184', '185']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'otherimg'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'ymlfilepath'}; {'id': '186', 'type': 'expression_statement', 'children': ['187']}; {'id': '187', 'type': 'assignment', 'children': ['188', '191']}; {'id': '188', 'type': 'subscript', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '190', 'type': 'string', 'children': [], 'value': "'_sourcefile'"}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'relpath'}; {'id': '192', 'type': 'if_statement', 'children': ['193', '200']}; {'id': '193', 'type': 'boolean_operator', 'children': ['194', '197'], 'value': 'and'}; {'id': '194', 'type': 'comparison_operator', 'children': ['195', '196'], 'value': 'in'}; {'id': '195', 'type': 'string', 'children': [], 'value': "'ignore'"}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '197', 'type': 'comparison_operator', 'children': ['198', '199'], 'value': 'in'}; {'id': '198', 'type': 'string', 'children': [], 'value': "'ignorefile'"}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '200', 'type': 'block', 'children': ['201']}; {'id': '201', 'type': 'raise_statement', 'children': ['202']}; {'id': '202', 'type': 'call', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'MultipleIgnoreError'}; {'id': '206', 'type': 'argument_list', 'children': ['207']}; {'id': '207', 'type': 'binary_operator', 'children': ['208', '211'], 'value': '+'}; {'id': '208', 'type': 'binary_operator', 'children': ['209', '210'], 'value': '%'}; {'id': '209', 'type': 'string', 'children': [], 'value': '\'Image "%s" has both "ignore" AND "ignorefile" fields.\''}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '211', 'type': 'string', 'children': [], 'value': "' At most ONE of these should be defined'"}; {'id': '212', 'type': 'if_statement', 'children': ['213', '225']}; {'id': '213', 'type': 'boolean_operator', 'children': ['214', '217'], 'value': 'and'}; {'id': '214', 'type': 'comparison_operator', 'children': ['215', '216'], 'value': 'in'}; {'id': '215', 'type': 'string', 'children': [], 'value': "'secret_files'"}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '217', 'type': 'not_operator', 'children': ['218']}; {'id': '218', 'type': 'call', 'children': ['219', '222']}; {'id': '219', 'type': 'attribute', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '222', 'type': 'argument_list', 'children': ['223', '224']}; {'id': '223', 'type': 'string', 'children': [], 'value': "'squash'"}; {'id': '224', 'type': 'True', 'children': []}; {'id': '225', 'type': 'block', 'children': ['226']}; {'id': '226', 'type': 'raise_statement', 'children': ['227']}; {'id': '227', 'type': 'call', 'children': ['228', '231']}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'ParsingFailure'}; {'id': '231', 'type': 'argument_list', 'children': ['232']}; {'id': '232', 'type': 'binary_operator', 'children': ['233', '234'], 'value': '%'}; {'id': '233', 'type': 'string', 'children': [], 'value': '"Step \'%s\' defines secret_files, so \'squash\' cannot be set to \'false\'"'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '235', 'type': 'if_statement', 'children': ['236', '251']}; {'id': '236', 'type': 'boolean_operator', 'children': ['237', '244'], 'value': 'and'}; {'id': '237', 'type': 'call', 'children': ['238', '241']}; {'id': '238', 'type': 'attribute', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '241', 'type': 'argument_list', 'children': ['242', '243']}; {'id': '242', 'type': 'string', 'children': [], 'value': "'secret_files'"}; {'id': '243', 'type': 'None', 'children': []}; {'id': '244', 'type': 'call', 'children': ['245', '248']}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '248', 'type': 'argument_list', 'children': ['249', '250']}; {'id': '249', 'type': 'string', 'children': [], 'value': "'copy_from'"}; {'id': '250', 'type': 'False', 'children': []}; {'id': '251', 'type': 'block', 'children': ['252']}; {'id': '252', 'type': 'raise_statement', 'children': ['253']}; {'id': '253', 'type': 'call', 'children': ['254', '257']}; {'id': '254', 'type': 'attribute', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'ParsingFailure'}; {'id': '257', 'type': 'argument_list', 'children': ['258']}; {'id': '258', 'type': 'binary_operator', 'children': ['259', '262'], 'value': '%'}; {'id': '259', 'type': 'concatenated_string', 'children': ['260', '261']}; {'id': '260', 'type': 'string', 'children': [], 'value': "'`secret_files` currently is not implmemented to handle `copy_from`'"}; {'id': '261', 'type': 'string', 'children': [], 'value': "' (step %s)'"}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '263', 'type': 'for_statement', 'children': ['264', '265', '266']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'defn'}; {'id': '266', 'type': 'block', 'children': ['267']}; {'id': '267', 'type': 'if_statement', 'children': ['268', '271']}; {'id': '268', 'type': 'comparison_operator', 'children': ['269', '270'], 'value': 'not'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'RECOGNIZED_KEYS'}; {'id': '271', 'type': 'block', 'children': ['272']}; {'id': '272', 'type': 'raise_statement', 'children': ['273']}; {'id': '273', 'type': 'call', 'children': ['274', '277']}; {'id': '274', 'type': 'attribute', 'children': ['275', '276']}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'UnrecognizedKeyError'}; {'id': '277', 'type': 'argument_list', 'children': ['278']}; {'id': '278', 'type': 'binary_operator', 'children': ['279', '280'], 'value': '%'}; {'id': '279', 'type': 'string', 'children': [], 'value': '\'Field "%s" in image "%s" in file "%s" not recognized\''}; {'id': '280', 'type': 'tuple', 'children': ['281', '282', '283']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'imagename'}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'relpath'}
Checks YAML for errors and resolves all paths
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_external_base_image'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'block', 'children': ['10', '21', '29', '55', '62', '82', '136', '146', '163', '224', '232']}; {'id': '10', 'type': 'if_statement', 'children': ['11', '14']}; {'id': '11', 'type': 'comparison_operator', 'children': ['12', '13'], 'value': 'is'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '13', 'type': 'None', 'children': []}; {'id': '14', 'type': 'block', 'children': ['15']}; {'id': '15', 'type': 'expression_statement', 'children': ['16']}; {'id': '16', 'type': 'assignment', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '18', 'type': 'call', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '20', 'type': 'argument_list', 'children': []}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '24', 'type': 'subscript', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'ymldefs'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '29', 'type': 'if_statement', 'children': ['30', '33']}; {'id': '30', 'type': 'comparison_operator', 'children': ['31', '32'], 'value': 'in'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '33', 'type': 'block', 'children': ['34', '41']}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'call', 'children': ['36', '39']}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '39', 'type': 'argument_list', 'children': ['40']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '41', 'type': 'raise_statement', 'children': ['42']}; {'id': '42', 'type': 'call', 'children': ['43', '46']}; {'id': '43', 'type': 'attribute', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'CircularDependencyError'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'binary_operator', 'children': ['48', '49'], 'value': '+'}; {'id': '48', 'type': 'string', 'children': [], 'value': "'Circular dependency found:\\n'"}; {'id': '49', 'type': 'call', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'string', 'children': [], 'value': "'->'"}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'call', 'children': ['57', '60']}; {'id': '57', 'type': 'attribute', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '60', 'type': 'argument_list', 'children': ['61']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '62', 'type': 'if_statement', 'children': ['63', '70']}; {'id': '63', 'type': 'boolean_operator', 'children': ['64', '67'], 'value': 'and'}; {'id': '64', 'type': 'comparison_operator', 'children': ['65', '66'], 'value': 'in'}; {'id': '65', 'type': 'string', 'children': [], 'value': "'FROM'"}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '67', 'type': 'comparison_operator', 'children': ['68', '69'], 'value': 'in'}; {'id': '68', 'type': 'string', 'children': [], 'value': "'FROM_DOCKERFILE'"}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '70', 'type': 'block', 'children': ['71']}; {'id': '71', 'type': 'raise_statement', 'children': ['72']}; {'id': '72', 'type': 'call', 'children': ['73', '76']}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'MultipleBaseError'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'binary_operator', 'children': ['78', '81'], 'value': '+'}; {'id': '78', 'type': 'binary_operator', 'children': ['79', '80'], 'value': '%'}; {'id': '79', 'type': 'string', 'children': [], 'value': '\'ERROR: Image "%s" has both a "FROM" and a "FROM_DOCKERFILE" field.\''}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '81', 'type': 'string', 'children': [], 'value': "' It should have at most ONE of these fields.'"}; {'id': '82', 'type': 'if_statement', 'children': ['83', '86', '93', '130']}; {'id': '83', 'type': 'comparison_operator', 'children': ['84', '85'], 'value': 'in'}; {'id': '84', 'type': 'string', 'children': [], 'value': "'FROM'"}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '86', 'type': 'block', 'children': ['87']}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'externalbase'}; {'id': '90', 'type': 'subscript', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '92', 'type': 'string', 'children': [], 'value': "'FROM'"}; {'id': '93', 'type': 'elif_clause', 'children': ['94', '97']}; {'id': '94', 'type': 'comparison_operator', 'children': ['95', '96'], 'value': 'in'}; {'id': '95', 'type': 'string', 'children': [], 'value': "'FROM_DOCKERFILE'"}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '97', 'type': 'block', 'children': ['98', '104', '122']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'assignment', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '101', 'type': 'subscript', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '103', 'type': 'string', 'children': [], 'value': "'FROM_DOCKERFILE'"}; {'id': '104', 'type': 'if_statement', 'children': ['105', '110']}; {'id': '105', 'type': 'comparison_operator', 'children': ['106', '107'], 'value': 'not'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': '_external_dockerfiles'}; {'id': '110', 'type': 'block', 'children': ['111']}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'assignment', 'children': ['113', '118']}; {'id': '113', 'type': 'subscript', 'children': ['114', '117']}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': '_external_dockerfiles'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '118', 'type': 'call', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'ExternalDockerfile'}; {'id': '120', 'type': 'argument_list', 'children': ['121']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'assignment', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'externalbase'}; {'id': '125', 'type': 'subscript', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': '_external_dockerfiles'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '130', 'type': 'else_clause', 'children': ['131']}; {'id': '131', 'type': 'block', 'children': ['132']}; {'id': '132', 'type': 'expression_statement', 'children': ['133']}; {'id': '133', 'type': 'assignment', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'externalbase'}; {'id': '135', 'type': 'None', 'children': []}; {'id': '136', 'type': 'expression_statement', 'children': ['137']}; {'id': '137', 'type': 'assignment', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'requires'}; {'id': '139', 'type': 'call', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'mydef'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '143', 'type': 'argument_list', 'children': ['144', '145']}; {'id': '144', 'type': 'string', 'children': [], 'value': "'requires'"}; {'id': '145', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '146', 'type': 'if_statement', 'children': ['147', '153']}; {'id': '147', 'type': 'not_operator', 'children': ['148']}; {'id': '148', 'type': 'call', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '150', 'type': 'argument_list', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'requires'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '153', 'type': 'block', 'children': ['154']}; {'id': '154', 'type': 'raise_statement', 'children': ['155']}; {'id': '155', 'type': 'call', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'InvalidRequiresList'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'binary_operator', 'children': ['161', '162'], 'value': '%'}; {'id': '161', 'type': 'string', 'children': [], 'value': '\'Requirements for image "%s" are not a list\''}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '163', 'type': 'for_statement', 'children': ['164', '165', '166']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'requires'}; {'id': '166', 'type': 'block', 'children': ['167', '183']}; {'id': '167', 'type': 'try_statement', 'children': ['168', '179']}; {'id': '168', 'type': 'block', 'children': ['169']}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'assignment', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'otherexternal'}; {'id': '172', 'type': 'call', 'children': ['173', '176']}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'get_external_base_image'}; {'id': '176', 'type': 'argument_list', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '179', 'type': 'except_clause', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '181', 'type': 'block', 'children': ['182']}; {'id': '182', 'type': 'continue_statement', 'children': []}; {'id': '183', 'type': 'if_statement', 'children': ['184', '187', '192', '198']}; {'id': '184', 'type': 'comparison_operator', 'children': ['185', '186'], 'value': 'is'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'externalbase'}; {'id': '186', 'type': 'None', 'children': []}; {'id': '187', 'type': 'block', 'children': ['188']}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'assignment', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'externalbase'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'otherexternal'}; {'id': '192', 'type': 'elif_clause', 'children': ['193', '196']}; {'id': '193', 'type': 'comparison_operator', 'children': ['194', '195'], 'value': 'is'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'otherexternal'}; {'id': '195', 'type': 'None', 'children': []}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'continue_statement', 'children': []}; {'id': '198', 'type': 'elif_clause', 'children': ['199', '202']}; {'id': '199', 'type': 'comparison_operator', 'children': ['200', '201'], 'value': '!='}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'externalbase'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'otherexternal'}; {'id': '202', 'type': 'block', 'children': ['203']}; {'id': '203', 'type': 'raise_statement', 'children': ['204']}; {'id': '204', 'type': 'call', 'children': ['205', '208']}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'errors'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'ConflictingBaseError'}; {'id': '208', 'type': 'argument_list', 'children': ['209']}; {'id': '209', 'type': 'binary_operator', 'children': ['210', '219'], 'value': '+'}; {'id': '210', 'type': 'binary_operator', 'children': ['211', '214'], 'value': '+'}; {'id': '211', 'type': 'binary_operator', 'children': ['212', '213'], 'value': '%'}; {'id': '212', 'type': 'string', 'children': [], 'value': '\'Multiple external dependencies: definition "%s" depends on:\\n\''}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '214', 'type': 'binary_operator', 'children': ['215', '216'], 'value': '%'}; {'id': '215', 'type': 'string', 'children': [], 'value': "' %s (FROM: %s), and\\n'"}; {'id': '216', 'type': 'tuple', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'externalbase'}; {'id': '219', 'type': 'binary_operator', 'children': ['220', '221'], 'value': '%'}; {'id': '220', 'type': 'string', 'children': [], 'value': "' %s (FROM: %s).'"}; {'id': '221', 'type': 'tuple', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'otherexternal'}; {'id': '224', 'type': 'assert_statement', 'children': ['225']}; {'id': '225', 'type': 'comparison_operator', 'children': ['226', '231'], 'value': '=='}; {'id': '226', 'type': 'call', 'children': ['227', '230']}; {'id': '227', 'type': 'attribute', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'stack'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'pop'}; {'id': '230', 'type': 'argument_list', 'children': []}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '232', 'type': 'return_statement', 'children': ['233']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'externalbase'}
Makes sure that this image has exactly one unique external base image
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_htmlRenderDict'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'pathParts'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'statDict'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '7', 'type': 'block', 'children': ['8', '19', '25', '29', '36', '173', '187']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'assignment', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '11', 'type': 'call', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '13', 'type': 'argument_list', 'children': ['14']}; {'id': '14', 'type': 'call', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'statDict'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '18', 'type': 'argument_list', 'children': []}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'call', 'children': ['21', '24']}; {'id': '21', 'type': 'attribute', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'sort'}; {'id': '24', 'type': 'argument_list', 'children': []}; {'id': '25', 'type': 'expression_statement', 'children': ['26']}; {'id': '26', 'type': 'assignment', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'links'}; {'id': '28', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '29', 'type': 'expression_statement', 'children': ['30']}; {'id': '30', 'type': 'call', 'children': ['31', '34']}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'string', 'children': [], 'value': '\'<div class="level">\''}; {'id': '36', 'type': 'for_statement', 'children': ['37', '38', '39']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '39', 'type': 'block', 'children': ['40', '52', '58', '71']}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'assignment', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'keyStr'}; {'id': '43', 'type': 'call', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'cgi'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'escape'}; {'id': '47', 'type': 'argument_list', 'children': ['48']}; {'id': '48', 'type': 'call', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': '_utf8str'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '55', 'type': 'subscript', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'statDict'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '58', 'type': 'if_statement', 'children': ['59', '64']}; {'id': '59', 'type': 'call', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '61', 'type': 'argument_list', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '63', 'type': 'string', 'children': [], 'value': "'__call__'"}; {'id': '64', 'type': 'block', 'children': ['65']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '70', 'type': 'argument_list', 'children': []}; {'id': '71', 'type': 'if_statement', 'children': ['72', '77', '140']}; {'id': '72', 'type': 'call', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '74', 'type': 'argument_list', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '76', 'type': 'string', 'children': [], 'value': "'keys'"}; {'id': '77', 'type': 'block', 'children': ['78', '85']}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'valuePath'}; {'id': '81', 'type': 'binary_operator', 'children': ['82', '83'], 'value': '+'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'pathParts'}; {'id': '83', 'type': 'tuple', 'children': ['84']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'keyStr'}; {'id': '85', 'type': 'if_statement', 'children': ['86', '99', '122']}; {'id': '86', 'type': 'boolean_operator', 'children': ['87', '94'], 'value': 'and'}; {'id': '87', 'type': 'call', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '89', 'type': 'argument_list', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'scales'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'StatContainer'}; {'id': '94', 'type': 'call', 'children': ['95', '98']}; {'id': '95', 'type': 'attribute', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'isCollapsed'}; {'id': '98', 'type': 'argument_list', 'children': []}; {'id': '99', 'type': 'block', 'children': ['100', '111']}; {'id': '100', 'type': 'expression_statement', 'children': ['101']}; {'id': '101', 'type': 'assignment', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'link'}; {'id': '103', 'type': 'binary_operator', 'children': ['104', '105'], 'value': '+'}; {'id': '104', 'type': 'string', 'children': [], 'value': "'/status/'"}; {'id': '105', 'type': 'call', 'children': ['106', '109']}; {'id': '106', 'type': 'attribute', 'children': ['107', '108']}; {'id': '107', 'type': 'string', 'children': [], 'value': "'/'"}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'valuePath'}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'call', 'children': ['113', '116']}; {'id': '113', 'type': 'attribute', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'links'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '116', 'type': 'argument_list', 'children': ['117']}; {'id': '117', 'type': 'binary_operator', 'children': ['118', '119'], 'value': '%'}; {'id': '118', 'type': 'string', 'children': [], 'value': '\'<div class="key"><a href="%s">%s</a></div>\''}; {'id': '119', 'type': 'tuple', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'link'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'keyStr'}; {'id': '122', 'type': 'else_clause', 'children': ['123']}; {'id': '123', 'type': 'block', 'children': ['124', '133']}; {'id': '124', 'type': 'expression_statement', 'children': ['125']}; {'id': '125', 'type': 'call', 'children': ['126', '129']}; {'id': '126', 'type': 'attribute', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '129', 'type': 'argument_list', 'children': ['130']}; {'id': '130', 'type': 'binary_operator', 'children': ['131', '132'], 'value': '%'}; {'id': '131', 'type': 'string', 'children': [], 'value': '\'<div class="key">%s</div>\''}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'keyStr'}; {'id': '133', 'type': 'expression_statement', 'children': ['134']}; {'id': '134', 'type': 'call', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': '_htmlRenderDict'}; {'id': '136', 'type': 'argument_list', 'children': ['137', '138', '139']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'valuePath'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '140', 'type': 'else_clause', 'children': ['141']}; {'id': '141', 'type': 'block', 'children': ['142']}; {'id': '142', 'type': 'expression_statement', 'children': ['143']}; {'id': '143', 'type': 'call', 'children': ['144', '147']}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'binary_operator', 'children': ['149', '150'], 'value': '%'}; {'id': '149', 'type': 'string', 'children': [], 'value': '\'<div><span class="key">%s</span> <span class="%s">%s</span></div>\''}; {'id': '150', 'type': 'tuple', 'children': ['151', '152', '158']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'keyStr'}; {'id': '152', 'type': 'attribute', 'children': ['153', '157']}; {'id': '153', 'type': 'call', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '158', 'type': 'call', 'children': ['159', '170']}; {'id': '159', 'type': 'attribute', 'children': ['160', '169']}; {'id': '160', 'type': 'call', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'cgi'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'escape'}; {'id': '164', 'type': 'argument_list', 'children': ['165']}; {'id': '165', 'type': 'call', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': '_utf8str'}; {'id': '167', 'type': 'argument_list', 'children': ['168']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '170', 'type': 'argument_list', 'children': ['171', '172']}; {'id': '171', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '172', 'type': 'string', 'children': [], 'value': "'<br/>'"}; {'id': '173', 'type': 'if_statement', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'links'}; {'id': '175', 'type': 'block', 'children': ['176']}; {'id': '176', 'type': 'for_statement', 'children': ['177', '178', '179']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'link'}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'links'}; {'id': '179', 'type': 'block', 'children': ['180']}; {'id': '180', 'type': 'expression_statement', 'children': ['181']}; {'id': '181', 'type': 'call', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '185', 'type': 'argument_list', 'children': ['186']}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'link'}; {'id': '187', 'type': 'expression_statement', 'children': ['188']}; {'id': '188', 'type': 'call', 'children': ['189', '192']}; {'id': '189', 'type': 'attribute', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'output'}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '192', 'type': 'argument_list', 'children': ['193']}; {'id': '193', 'type': 'string', 'children': [], 'value': "'</div>'"}
Render a dictionary as a table - recursing as necessary.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_build_production_name'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '6', 'type': 'block', 'children': ['7', '32', '38', '56', '68', '103', '115', '157', '237']}; {'id': '7', 'type': 'if_statement', 'children': ['8', '11']}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': '_postscriptNames'}; {'id': '11', 'type': 'block', 'children': ['12', '25']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'production_name'}; {'id': '15', 'type': 'call', 'children': ['16', '21']}; {'id': '16', 'type': 'attribute', 'children': ['17', '20']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': '_postscriptNames'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'attribute', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '25', 'type': 'return_statement', 'children': ['26']}; {'id': '26', 'type': 'conditional_expression', 'children': ['27', '28', '29'], 'value': 'if'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'production_name'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'production_name'}; {'id': '29', 'type': 'attribute', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '32', 'type': 'expression_statement', 'children': ['33']}; {'id': '33', 'type': 'assignment', 'children': ['34', '35']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'unicode_val'}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '38', 'type': 'if_statement', 'children': ['39', '44']}; {'id': '39', 'type': 'comparison_operator', 'children': ['40', '43'], 'value': 'is'}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '43', 'type': 'None', 'children': []}; {'id': '44', 'type': 'block', 'children': ['45']}; {'id': '45', 'type': 'return_statement', 'children': ['46']}; {'id': '46', 'type': 'binary_operator', 'children': ['47', '48'], 'value': '%'}; {'id': '47', 'type': 'string', 'children': [], 'value': "'%s%04X'"}; {'id': '48', 'type': 'tuple', 'children': ['49', '55']}; {'id': '49', 'type': 'conditional_expression', 'children': ['50', '51', '54'], 'value': 'if'}; {'id': '50', 'type': 'string', 'children': [], 'value': "'u'"}; {'id': '51', 'type': 'comparison_operator', 'children': ['52', '53'], 'value': '>'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'unicode_val'}; {'id': '53', 'type': 'integer', 'children': [], 'value': '0xffff'}; {'id': '54', 'type': 'string', 'children': [], 'value': "'uni'"}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'unicode_val'}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '59', 'type': 'call', 'children': ['60', '65']}; {'id': '60', 'type': 'attribute', 'children': ['61', '64']}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'rsplit'}; {'id': '65', 'type': 'argument_list', 'children': ['66', '67']}; {'id': '66', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '67', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '68', 'type': 'if_statement', 'children': ['69', '83']}; {'id': '69', 'type': 'boolean_operator', 'children': ['70', '76'], 'value': 'and'}; {'id': '70', 'type': 'comparison_operator', 'children': ['71', '75'], 'value': '=='}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '75', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '76', 'type': 'comparison_operator', 'children': ['77', '80'], 'value': 'in'}; {'id': '77', 'type': 'subscript', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '79', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'glyphSet'}; {'id': '83', 'type': 'block', 'children': ['84']}; {'id': '84', 'type': 'return_statement', 'children': ['85']}; {'id': '85', 'type': 'binary_operator', 'children': ['86', '87'], 'value': '%'}; {'id': '86', 'type': 'string', 'children': [], 'value': "'%s.%s'"}; {'id': '87', 'type': 'tuple', 'children': ['88', '100']}; {'id': '88', 'type': 'call', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': '_build_production_name'}; {'id': '92', 'type': 'argument_list', 'children': ['93']}; {'id': '93', 'type': 'subscript', 'children': ['94', '97']}; {'id': '94', 'type': 'attribute', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'glyphSet'}; {'id': '97', 'type': 'subscript', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '99', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '100', 'type': 'subscript', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '102', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '106', 'type': 'call', 'children': ['107', '112']}; {'id': '107', 'type': 'attribute', 'children': ['108', '111']}; {'id': '108', 'type': 'attribute', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '112', 'type': 'argument_list', 'children': ['113', '114']}; {'id': '113', 'type': 'string', 'children': [], 'value': "'.'"}; {'id': '114', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '115', 'type': 'if_statement', 'children': ['116', '122', '144']}; {'id': '116', 'type': 'comparison_operator', 'children': ['117', '121'], 'value': '=='}; {'id': '117', 'type': 'call', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '119', 'type': 'argument_list', 'children': ['120']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '121', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '122', 'type': 'block', 'children': ['123']}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'assignment', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'liga_parts'}; {'id': '126', 'type': 'list_comprehension', 'children': ['127', '134']}; {'id': '127', 'type': 'binary_operator', 'children': ['128', '129'], 'value': '%'}; {'id': '128', 'type': 'string', 'children': [], 'value': "'%s.%s'"}; {'id': '129', 'type': 'tuple', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '131', 'type': 'subscript', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '133', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '134', 'type': 'for_in_clause', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '136', 'type': 'call', 'children': ['137', '142']}; {'id': '137', 'type': 'attribute', 'children': ['138', '141']}; {'id': '138', 'type': 'subscript', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'parts'}; {'id': '140', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '142', 'type': 'argument_list', 'children': ['143']}; {'id': '143', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '144', 'type': 'else_clause', 'children': ['145']}; {'id': '145', 'type': 'block', 'children': ['146']}; {'id': '146', 'type': 'expression_statement', 'children': ['147']}; {'id': '147', 'type': 'assignment', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'liga_parts'}; {'id': '149', 'type': 'call', 'children': ['150', '155']}; {'id': '150', 'type': 'attribute', 'children': ['151', '154']}; {'id': '151', 'type': 'attribute', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '155', 'type': 'argument_list', 'children': ['156']}; {'id': '156', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '157', 'type': 'if_statement', 'children': ['158', '176']}; {'id': '158', 'type': 'boolean_operator', 'children': ['159', '165'], 'value': 'and'}; {'id': '159', 'type': 'comparison_operator', 'children': ['160', '164'], 'value': '>'}; {'id': '160', 'type': 'call', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '162', 'type': 'argument_list', 'children': ['163']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'liga_parts'}; {'id': '164', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '165', 'type': 'call', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'all'}; {'id': '167', 'type': 'generator_expression', 'children': ['168', '173']}; {'id': '168', 'type': 'comparison_operator', 'children': ['169', '170'], 'value': 'in'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '170', 'type': 'attribute', 'children': ['171', '172']}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'glyphSet'}; {'id': '173', 'type': 'for_in_clause', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'liga_parts'}; {'id': '176', 'type': 'block', 'children': ['177', '191', '218']}; {'id': '177', 'type': 'expression_statement', 'children': ['178']}; {'id': '178', 'type': 'assignment', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'unicode_vals'}; {'id': '180', 'type': 'list_comprehension', 'children': ['181', '188']}; {'id': '181', 'type': 'attribute', 'children': ['182', '187']}; {'id': '182', 'type': 'subscript', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'glyphSet'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '188', 'type': 'for_in_clause', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'liga_parts'}; {'id': '191', 'type': 'if_statement', 'children': ['192', '203']}; {'id': '192', 'type': 'call', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'all'}; {'id': '194', 'type': 'generator_expression', 'children': ['195', '200']}; {'id': '195', 'type': 'boolean_operator', 'children': ['196', '197'], 'value': 'and'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '197', 'type': 'comparison_operator', 'children': ['198', '199'], 'value': '<='}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '199', 'type': 'integer', 'children': [], 'value': '0xffff'}; {'id': '200', 'type': 'for_in_clause', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'unicode_vals'}; {'id': '203', 'type': 'block', 'children': ['204']}; {'id': '204', 'type': 'return_statement', 'children': ['205']}; {'id': '205', 'type': 'binary_operator', 'children': ['206', '207'], 'value': '+'}; {'id': '206', 'type': 'string', 'children': [], 'value': "'uni'"}; {'id': '207', 'type': 'call', 'children': ['208', '211']}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'string', 'children': [], 'value': "''"}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '211', 'type': 'generator_expression', 'children': ['212', '215']}; {'id': '212', 'type': 'binary_operator', 'children': ['213', '214'], 'value': '%'}; {'id': '213', 'type': 'string', 'children': [], 'value': "'%04X'"}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '215', 'type': 'for_in_clause', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'unicode_vals'}; {'id': '218', 'type': 'return_statement', 'children': ['219']}; {'id': '219', 'type': 'call', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'string', 'children': [], 'value': "'_'"}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '223', 'type': 'generator_expression', 'children': ['224', '234']}; {'id': '224', 'type': 'call', 'children': ['225', '228']}; {'id': '225', 'type': 'attribute', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': '_build_production_name'}; {'id': '228', 'type': 'argument_list', 'children': ['229']}; {'id': '229', 'type': 'subscript', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'glyphSet'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '234', 'type': 'for_in_clause', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'liga_parts'}; {'id': '237', 'type': 'return_statement', 'children': ['238']}; {'id': '238', 'type': 'attribute', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'name'}
Build a production name for a single glyph.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '15']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'from_layer'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '9', '12']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'font'}; {'id': '6', 'type': 'default_parameter', 'children': ['7', '8']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'layerName'}; {'id': '8', 'type': 'None', 'children': []}; {'id': '9', 'type': 'default_parameter', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '11', 'type': 'False', 'children': []}; {'id': '12', 'type': 'default_parameter', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'skipExportGlyphs'}; {'id': '14', 'type': 'None', 'children': []}; {'id': '15', 'type': 'block', 'children': ['16', '39', '87', '190', '203']}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20', '29']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': 'is'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'layerName'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'assignment', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '24', 'type': 'subscript', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'font'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'layers'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'layerName'}; {'id': '29', 'type': 'else_clause', 'children': ['30']}; {'id': '30', 'type': 'block', 'children': ['31']}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '34', 'type': 'attribute', 'children': ['35', '38']}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'font'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'layers'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'defaultLayer'}; {'id': '39', 'type': 'if_statement', 'children': ['40', '41', '63']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'copy'}; {'id': '41', 'type': 'block', 'children': ['42', '52']}; {'id': '42', 'type': 'expression_statement', 'children': ['43']}; {'id': '43', 'type': 'assignment', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': '_copyLayer'}; {'id': '47', 'type': 'argument_list', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '49', 'type': 'keyword_argument', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'obj_type'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'assignment', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'lib'}; {'id': '57', 'type': 'call', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'deepcopy'}; {'id': '59', 'type': 'argument_list', 'children': ['60']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'lib'}; {'id': '63', 'type': 'else_clause', 'children': ['64']}; {'id': '64', 'type': 'block', 'children': ['65', '79']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '68', 'type': 'call', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '70', 'type': 'generator_expression', 'children': ['71', '76']}; {'id': '71', 'type': 'tuple', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'g'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'g'}; {'id': '76', 'type': 'for_in_clause', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'g'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'assignment', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'lib'}; {'id': '84', 'type': 'attribute', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'lib'}; {'id': '87', 'type': 'if_statement', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'skipExportGlyphs'}; {'id': '89', 'type': 'block', 'children': ['90', '177']}; {'id': '90', 'type': 'for_statement', 'children': ['91', '92', '97']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '92', 'type': 'call', 'children': ['93', '96']}; {'id': '93', 'type': 'attribute', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '96', 'type': 'argument_list', 'children': []}; {'id': '97', 'type': 'block', 'children': ['98']}; {'id': '98', 'type': 'if_statement', 'children': ['99', '112']}; {'id': '99', 'type': 'call', 'children': ['100', '101']}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'any'}; {'id': '101', 'type': 'generator_expression', 'children': ['102', '107']}; {'id': '102', 'type': 'comparison_operator', 'children': ['103', '106'], 'value': 'in'}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'baseGlyph'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'skipExportGlyphs'}; {'id': '107', 'type': 'for_in_clause', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'components'}; {'id': '112', 'type': 'block', 'children': ['113', '124']}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'call', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'deepCopyContours'}; {'id': '116', 'type': 'argument_list', 'children': ['117', '118', '119', '120', '123']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '120', 'type': 'call', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'Transform'}; {'id': '122', 'type': 'argument_list', 'children': []}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'skipExportGlyphs'}; {'id': '124', 'type': 'if_statement', 'children': ['125', '130', '154']}; {'id': '125', 'type': 'call', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '127', 'type': 'argument_list', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '129', 'type': 'string', 'children': [], 'value': '"removeComponent"'}; {'id': '130', 'type': 'block', 'children': ['131']}; {'id': '131', 'type': 'for_statement', 'children': ['132', '133', '146']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '133', 'type': 'list_comprehension', 'children': ['134', '135', '140']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'component'}; {'id': '135', 'type': 'for_in_clause', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'component'}; {'id': '137', 'type': 'attribute', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'components'}; {'id': '140', 'type': 'if_clause', 'children': ['141']}; {'id': '141', 'type': 'comparison_operator', 'children': ['142', '145'], 'value': 'in'}; {'id': '142', 'type': 'attribute', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'component'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'baseGlyph'}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'skipExportGlyphs'}; {'id': '146', 'type': 'block', 'children': ['147']}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'call', 'children': ['149', '152']}; {'id': '149', 'type': 'attribute', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'removeComponent'}; {'id': '152', 'type': 'argument_list', 'children': ['153']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '154', 'type': 'else_clause', 'children': ['155']}; {'id': '155', 'type': 'block', 'children': ['156']}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '164']}; {'id': '158', 'type': 'subscript', 'children': ['159', '162']}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'components'}; {'id': '162', 'type': 'slice', 'children': ['163']}; {'id': '163', 'type': 'colon', 'children': []}; {'id': '164', 'type': 'list_comprehension', 'children': ['165', '166', '171']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '166', 'type': 'for_in_clause', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'glyph'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'components'}; {'id': '171', 'type': 'if_clause', 'children': ['172']}; {'id': '172', 'type': 'comparison_operator', 'children': ['173', '176'], 'value': 'not'}; {'id': '173', 'type': 'attribute', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'baseGlyph'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'skipExportGlyphs'}; {'id': '177', 'type': 'for_statement', 'children': ['178', '179', '180']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'glyph_name'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'skipExportGlyphs'}; {'id': '180', 'type': 'block', 'children': ['181']}; {'id': '181', 'type': 'if_statement', 'children': ['182', '185']}; {'id': '182', 'type': 'comparison_operator', 'children': ['183', '184'], 'value': 'in'}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'glyph_name'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'block', 'children': ['186']}; {'id': '186', 'type': 'delete_statement', 'children': ['187']}; {'id': '187', 'type': 'subscript', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'glyph_name'}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '195', 'type': 'conditional_expression', 'children': ['196', '199', '202'], 'value': 'if'}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'layer'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '199', 'type': 'comparison_operator', 'children': ['200', '201'], 'value': 'is'}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'layerName'}; {'id': '201', 'type': 'None', 'children': []}; {'id': '202', 'type': 'None', 'children': []}; {'id': '203', 'type': 'return_statement', 'children': ['204']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'self'}
Return a mapping of glyph names to glyph objects from `font`.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'dir'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'methods'}; {'id': '7', 'type': 'True', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'showall'}; {'id': '10', 'type': 'True', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '15', '51', '56', '63', '65']}; {'id': '12', 'type': 'import_statement', 'children': ['13']}; {'id': '13', 'type': 'dotted_name', 'children': ['14']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'inspect'}; {'id': '15', 'type': 'for_statement', 'children': ['16', '19', '29']}; {'id': '16', 'type': 'pattern_list', 'children': ['17', '18']}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '28']}; {'id': '23', 'type': 'attribute', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': '__dict__'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '28', 'type': 'argument_list', 'children': []}; {'id': '29', 'type': 'block', 'children': ['30', '39']}; {'id': '30', 'type': 'if_statement', 'children': ['31', '37']}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '35', 'type': 'argument_list', 'children': ['36']}; {'id': '36', 'type': 'string', 'children': [], 'value': '"_"'}; {'id': '37', 'type': 'block', 'children': ['38']}; {'id': '38', 'type': 'continue_statement', 'children': []}; {'id': '39', 'type': 'print_statement', 'children': ['40', '49', '50']}; {'id': '40', 'type': 'call', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'makeminlength'}; {'id': '42', 'type': 'argument_list', 'children': ['43', '46']}; {'id': '43', 'type': 'binary_operator', 'children': ['44', '45'], 'value': '+'}; {'id': '44', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'being'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'linelen'}; {'id': '49', 'type': 'string', 'children': [], 'value': '"\\t"'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '51', 'type': 'if_statement', 'children': ['52', '54']}; {'id': '52', 'type': 'not_operator', 'children': ['53']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'methods'}; {'id': '54', 'type': 'block', 'children': ['55']}; {'id': '55', 'type': 'return_statement', 'children': []}; {'id': '56', 'type': 'expression_statement', 'children': ['57']}; {'id': '57', 'type': 'assignment', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'entmethods'}; {'id': '59', 'type': 'call', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'dir'}; {'id': '61', 'type': 'argument_list', 'children': ['62']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'entity'}; {'id': '63', 'type': 'expression_statement', 'children': ['64']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '65', 'type': 'for_statement', 'children': ['66', '67', '101']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '67', 'type': 'list_comprehension', 'children': ['68', '69', '75']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '69', 'type': 'for_in_clause', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '71', 'type': 'call', 'children': ['72', '73']}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'dir'}; {'id': '73', 'type': 'argument_list', 'children': ['74']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '75', 'type': 'if_clause', 'children': ['76']}; {'id': '76', 'type': 'boolean_operator', 'children': ['77', '94'], 'value': 'and'}; {'id': '77', 'type': '()', 'children': ['78']}; {'id': '78', 'type': 'comparison_operator', 'children': ['79', '86'], 'value': 'in'}; {'id': '79', 'type': 'binary_operator', 'children': ['80', '81'], 'value': '+'}; {'id': '80', 'type': 'string', 'children': [], 'value': '"bound method "'}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '85', 'type': 'argument_list', 'children': []}; {'id': '86', 'type': 'call', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '88', 'type': 'argument_list', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '91', 'type': 'argument_list', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '94', 'type': 'not_operator', 'children': ['95']}; {'id': '95', 'type': 'call', 'children': ['96', '99']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'startswith'}; {'id': '99', 'type': 'argument_list', 'children': ['100']}; {'id': '100', 'type': 'string', 'children': [], 'value': '"_"'}; {'id': '101', 'type': 'block', 'children': ['102', '113', '121', '127', '135', '142', '173', '191']}; {'id': '102', 'type': 'if_statement', 'children': ['103', '111']}; {'id': '103', 'type': 'boolean_operator', 'children': ['104', '107'], 'value': 'and'}; {'id': '104', 'type': '()', 'children': ['105']}; {'id': '105', 'type': 'not_operator', 'children': ['106']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'showall'}; {'id': '107', 'type': '()', 'children': ['108']}; {'id': '108', 'type': 'comparison_operator', 'children': ['109', '110'], 'value': 'in'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'entmethods'}; {'id': '111', 'type': 'block', 'children': ['112']}; {'id': '112', 'type': 'continue_statement', 'children': []}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '116', 'type': 'call', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '118', 'type': 'argument_list', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '121', 'type': 'expression_statement', 'children': ['122']}; {'id': '122', 'type': 'assignment', 'children': ['123', '124']}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': '__doc__'}; {'id': '127', 'type': 'if_statement', 'children': ['128', '130']}; {'id': '128', 'type': 'not_operator', 'children': ['129']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '130', 'type': 'block', 'children': ['131']}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '134', 'type': 'string', 'children': [], 'value': '""'}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '138', 'type': 'call', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'describe_func'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '142', 'type': 'if_statement', 'children': ['143', '145', '150']}; {'id': '143', 'type': 'not_operator', 'children': ['144']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '145', 'type': 'block', 'children': ['146']}; {'id': '146', 'type': 'expression_statement', 'children': ['147']}; {'id': '147', 'type': 'assignment', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '149', 'type': 'string', 'children': [], 'value': '""'}; {'id': '150', 'type': 'else_clause', 'children': ['151']}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'assignment', 'children': ['154', '155']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '155', 'type': 'call', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'string', 'children': [], 'value': '", "'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '159', 'type': 'generator_expression', 'children': ['160', '168']}; {'id': '160', 'type': 'binary_operator', 'children': ['161', '164'], 'value': '+'}; {'id': '161', 'type': 'binary_operator', 'children': ['162', '163'], 'value': '+'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '163', 'type': 'string', 'children': [], 'value': '"="'}; {'id': '164', 'type': 'call', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '168', 'type': 'for_in_clause', 'children': ['169', '172']}; {'id': '169', 'type': 'tuple_pattern', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'b'}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '173', 'type': 'print_statement', 'children': ['174', '189', '190']}; {'id': '174', 'type': 'call', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'makeminlength'}; {'id': '176', 'type': 'argument_list', 'children': ['177', '186']}; {'id': '177', 'type': 'binary_operator', 'children': ['178', '185'], 'value': '+'}; {'id': '178', 'type': 'binary_operator', 'children': ['179', '184'], 'value': '+'}; {'id': '179', 'type': 'binary_operator', 'children': ['180', '183'], 'value': '+'}; {'id': '180', 'type': 'binary_operator', 'children': ['181', '182'], 'value': '+'}; {'id': '181', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '183', 'type': 'string', 'children': [], 'value': '"("'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '185', 'type': 'string', 'children': [], 'value': '")"'}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'being'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'linelen'}; {'id': '189', 'type': 'string', 'children': [], 'value': '"\\t"'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '191', 'type': 'if_statement', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'showall'}; {'id': '193', 'type': 'block', 'children': ['194']}; {'id': '194', 'type': 'expression_statement', 'children': ['195']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'print'}
Show this object's attributes and methods.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '15']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'tree'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '7', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'prefix_inherited'}; {'id': '10', 'type': 'string', 'children': [], 'value': '""'}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'nofeatsplease'}; {'id': '13', 'type': 'list', 'children': ['14'], 'value': "['Phoneme']"}; {'id': '14', 'type': 'string', 'children': [], 'value': "'Phoneme'"}; {'id': '15', 'type': 'block', 'children': ['16', '20', '24', '332']}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '19', 'type': 'string', 'children': [], 'value': '""'}; {'id': '20', 'type': 'expression_statement', 'children': ['21']}; {'id': '21', 'type': 'assignment', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'numchild'}; {'id': '23', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '24', 'type': 'for_statement', 'children': ['25', '26', '29']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '26', 'type': 'attribute', 'children': ['27', '28']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '29', 'type': 'block', 'children': ['30', '47', '51', '59', '86', '111', '115', '119', '131', '135', '139', '156', '169', '186', '316', '320']}; {'id': '30', 'type': 'if_statement', 'children': ['31', '40']}; {'id': '31', 'type': 'comparison_operator', 'children': ['32', '36'], 'value': '=='}; {'id': '32', 'type': 'call', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '36', 'type': 'call', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '40', 'type': 'block', 'children': ['41']}; {'id': '41', 'type': 'expression_statement', 'children': ['42']}; {'id': '42', 'type': 'assignment', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '44', 'type': 'subscript', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '46', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'augmented_assignment', 'children': ['49', '50'], 'value': '+='}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'numchild'}; {'id': '50', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '51', 'type': 'expression_statement', 'children': ['52']}; {'id': '52', 'type': 'assignment', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '54', 'type': 'call', 'children': ['55', '58']}; {'id': '55', 'type': 'attribute', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '58', 'type': 'argument_list', 'children': []}; {'id': '59', 'type': 'if_statement', 'children': ['60', '63', '68', '77']}; {'id': '60', 'type': 'comparison_operator', 'children': ['61', '62'], 'value': '=='}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '62', 'type': 'string', 'children': [], 'value': '"Word"'}; {'id': '63', 'type': 'block', 'children': ['64']}; {'id': '64', 'type': 'expression_statement', 'children': ['65']}; {'id': '65', 'type': 'augmented_assignment', 'children': ['66', '67'], 'value': '+='}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '67', 'type': 'string', 'children': [], 'value': '"\\n\\n"'}; {'id': '68', 'type': 'elif_clause', 'children': ['69', '72']}; {'id': '69', 'type': 'comparison_operator', 'children': ['70', '71'], 'value': '=='}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '71', 'type': 'string', 'children': [], 'value': '"Line"'}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'augmented_assignment', 'children': ['75', '76'], 'value': '+='}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '76', 'type': 'string', 'children': [], 'value': '"\\n\\n\\n"'}; {'id': '77', 'type': 'elif_clause', 'children': ['78', '81']}; {'id': '78', 'type': 'comparison_operator', 'children': ['79', '80'], 'value': '=='}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '80', 'type': 'string', 'children': [], 'value': '"Stanza"'}; {'id': '81', 'type': 'block', 'children': ['82']}; {'id': '82', 'type': 'expression_statement', 'children': ['83']}; {'id': '83', 'type': 'augmented_assignment', 'children': ['84', '85'], 'value': '+='}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '85', 'type': 'string', 'children': [], 'value': '"\\n\\n\\n\\n"'}; {'id': '86', 'type': 'if_statement', 'children': ['87', '90']}; {'id': '87', 'type': 'comparison_operator', 'children': ['88', '89'], 'value': '!='}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '89', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '90', 'type': 'block', 'children': ['91', '95', '107']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'augmented_assignment', 'children': ['93', '94'], 'value': '+='}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '94', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '95', 'type': 'for_statement', 'children': ['96', '97', '102']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '97', 'type': 'call', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '99', 'type': 'argument_list', 'children': ['100', '101']}; {'id': '100', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '102', 'type': 'block', 'children': ['103']}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'augmented_assignment', 'children': ['105', '106'], 'value': '+='}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '106', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'augmented_assignment', 'children': ['109', '110'], 'value': '+='}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '110', 'type': 'string', 'children': [], 'value': '"|"'}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'augmented_assignment', 'children': ['113', '114'], 'value': '+='}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '114', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '115', 'type': 'expression_statement', 'children': ['116']}; {'id': '116', 'type': 'assignment', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '118', 'type': 'string', 'children': [], 'value': '""'}; {'id': '119', 'type': 'for_statement', 'children': ['120', '121', '126']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '121', 'type': 'call', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '123', 'type': 'argument_list', 'children': ['124', '125']}; {'id': '124', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '126', 'type': 'block', 'children': ['127']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'augmented_assignment', 'children': ['129', '130'], 'value': '+='}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '130', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'augmented_assignment', 'children': ['133', '134'], 'value': '+='}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '134', 'type': 'string', 'children': [], 'value': '"|"'}; {'id': '135', 'type': 'expression_statement', 'children': ['136']}; {'id': '136', 'type': 'assignment', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'cname'}; {'id': '138', 'type': 'string', 'children': [], 'value': '""'}; {'id': '139', 'type': 'for_statement', 'children': ['140', '141', '142']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'letter'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '142', 'type': 'block', 'children': ['143']}; {'id': '143', 'type': 'if_statement', 'children': ['144', '151']}; {'id': '144', 'type': 'comparison_operator', 'children': ['145', '146'], 'value': '=='}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'letter'}; {'id': '146', 'type': 'call', 'children': ['147', '150']}; {'id': '147', 'type': 'attribute', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'letter'}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '150', 'type': 'argument_list', 'children': []}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'augmented_assignment', 'children': ['154', '155'], 'value': '+='}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'cname'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'letter'}; {'id': '156', 'type': 'expression_statement', 'children': ['157']}; {'id': '157', 'type': 'assignment', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '159', 'type': 'binary_operator', 'children': ['160', '168'], 'value': '+'}; {'id': '160', 'type': 'binary_operator', 'children': ['161', '164'], 'value': '+'}; {'id': '161', 'type': 'binary_operator', 'children': ['162', '163'], 'value': '+'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'prefix_inherited'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'cname'}; {'id': '164', 'type': 'call', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '166', 'type': 'argument_list', 'children': ['167']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'numchild'}; {'id': '168', 'type': 'string', 'children': [], 'value': '"."'}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'augmented_assignment', 'children': ['171', '172'], 'value': '+='}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '172', 'type': 'binary_operator', 'children': ['173', '185'], 'value': '+'}; {'id': '173', 'type': 'binary_operator', 'children': ['174', '184'], 'value': '+'}; {'id': '174', 'type': 'binary_operator', 'children': ['175', '183'], 'value': '+'}; {'id': '175', 'type': 'binary_operator', 'children': ['176', '177'], 'value': '+'}; {'id': '176', 'type': 'string', 'children': [], 'value': '"-----| ("'}; {'id': '177', 'type': 'subscript', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '179', 'type': 'slice', 'children': ['180', '181']}; {'id': '180', 'type': 'colon', 'children': []}; {'id': '181', 'type': 'unary_operator', 'children': ['182'], 'value': '-'}; {'id': '182', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '183', 'type': 'string', 'children': [], 'value': '") <"'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '185', 'type': 'string', 'children': [], 'value': '">"'}; {'id': '186', 'type': 'if_statement', 'children': ['187', '192', '197']}; {'id': '187', 'type': 'call', 'children': ['188', '191']}; {'id': '188', 'type': 'attribute', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'isBroken'}; {'id': '191', 'type': 'argument_list', 'children': []}; {'id': '192', 'type': 'block', 'children': ['193']}; {'id': '193', 'type': 'expression_statement', 'children': ['194']}; {'id': '194', 'type': 'augmented_assignment', 'children': ['195', '196'], 'value': '+='}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '196', 'type': 'string', 'children': [], 'value': '"<<broken>>"'}; {'id': '197', 'type': 'else_clause', 'children': ['198']}; {'id': '198', 'type': 'block', 'children': ['199', '208', '244']}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'assignment', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '202', 'type': 'call', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'u2s'}; {'id': '206', 'type': 'argument_list', 'children': ['207']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '208', 'type': 'if_statement', 'children': ['209', '214', '231']}; {'id': '209', 'type': '()', 'children': ['210']}; {'id': '210', 'type': 'not_operator', 'children': ['211']}; {'id': '211', 'type': 'comparison_operator', 'children': ['212', '213'], 'value': 'in'}; {'id': '212', 'type': 'string', 'children': [], 'value': '"<"'}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '214', 'type': 'block', 'children': ['215', '223']}; {'id': '215', 'type': 'expression_statement', 'children': ['216']}; {'id': '216', 'type': 'assignment', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '218', 'type': 'call', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'makeminlength'}; {'id': '220', 'type': 'argument_list', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '222', 'type': 'integer', 'children': [], 'value': '99'}; {'id': '223', 'type': 'expression_statement', 'children': ['224']}; {'id': '224', 'type': 'augmented_assignment', 'children': ['225', '226'], 'value': '+='}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '226', 'type': 'binary_operator', 'children': ['227', '230'], 'value': '+'}; {'id': '227', 'type': 'binary_operator', 'children': ['228', '229'], 'value': '+'}; {'id': '228', 'type': 'string', 'children': [], 'value': '"["'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '230', 'type': 'string', 'children': [], 'value': '"]"'}; {'id': '231', 'type': 'elif_clause', 'children': ['232', '237']}; {'id': '232', 'type': 'comparison_operator', 'children': ['233', '236'], 'value': '!='}; {'id': '233', 'type': 'subscript', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '235', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '236', 'type': 'string', 'children': [], 'value': '"<"'}; {'id': '237', 'type': 'block', 'children': ['238']}; {'id': '238', 'type': 'expression_statement', 'children': ['239']}; {'id': '239', 'type': 'augmented_assignment', 'children': ['240', '241'], 'value': '+='}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '241', 'type': 'binary_operator', 'children': ['242', '243'], 'value': '+'}; {'id': '242', 'type': 'string', 'children': [], 'value': '"\\t"'}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'string'}; {'id': '244', 'type': 'if_statement', 'children': ['245', '251']}; {'id': '245', 'type': 'call', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '247', 'type': 'argument_list', 'children': ['248']}; {'id': '248', 'type': 'attribute', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'feats'}; {'id': '251', 'type': 'block', 'children': ['252']}; {'id': '252', 'type': 'if_statement', 'children': ['253', '262']}; {'id': '253', 'type': '()', 'children': ['254']}; {'id': '254', 'type': 'not_operator', 'children': ['255']}; {'id': '255', 'type': 'comparison_operator', 'children': ['256', '261'], 'value': 'in'}; {'id': '256', 'type': 'call', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'classname'}; {'id': '260', 'type': 'argument_list', 'children': []}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'nofeatsplease'}; {'id': '262', 'type': 'block', 'children': ['263']}; {'id': '263', 'type': 'for_statement', 'children': ['264', '267', '277']}; {'id': '264', 'type': 'pattern_list', 'children': ['265', '266']}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '267', 'type': 'call', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'call', 'children': ['271', '276']}; {'id': '271', 'type': 'attribute', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'feats'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '276', 'type': 'argument_list', 'children': []}; {'id': '277', 'type': 'block', 'children': ['278', '284', '288', '302', '306']}; {'id': '278', 'type': 'if_statement', 'children': ['279', '282']}; {'id': '279', 'type': 'comparison_operator', 'children': ['280', '281'], 'value': '=='}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '281', 'type': 'None', 'children': []}; {'id': '282', 'type': 'block', 'children': ['283']}; {'id': '283', 'type': 'continue_statement', 'children': []}; {'id': '284', 'type': 'expression_statement', 'children': ['285']}; {'id': '285', 'type': 'augmented_assignment', 'children': ['286', '287'], 'value': '+='}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '287', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '288', 'type': 'for_statement', 'children': ['289', '290', '297']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '290', 'type': 'call', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '292', 'type': 'argument_list', 'children': ['293', '294']}; {'id': '293', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '294', 'type': 'binary_operator', 'children': ['295', '296'], 'value': '+'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '296', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '297', 'type': 'block', 'children': ['298']}; {'id': '298', 'type': 'expression_statement', 'children': ['299']}; {'id': '299', 'type': 'augmented_assignment', 'children': ['300', '301'], 'value': '+='}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '301', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '302', 'type': 'expression_statement', 'children': ['303']}; {'id': '303', 'type': 'augmented_assignment', 'children': ['304', '305'], 'value': '+='}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '305', 'type': 'string', 'children': [], 'value': '"| "'}; {'id': '306', 'type': 'expression_statement', 'children': ['307']}; {'id': '307', 'type': 'augmented_assignment', 'children': ['308', '309'], 'value': '+='}; {'id': '308', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '309', 'type': 'call', 'children': ['310', '313']}; {'id': '310', 'type': 'attribute', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'showFeat'}; {'id': '313', 'type': 'argument_list', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '316', 'type': 'expression_statement', 'children': ['317']}; {'id': '317', 'type': 'augmented_assignment', 'children': ['318', '319'], 'value': '+='}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'newline'}; {'id': '320', 'type': 'expression_statement', 'children': ['321']}; {'id': '321', 'type': 'augmented_assignment', 'children': ['322', '323'], 'value': '+='}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '323', 'type': 'call', 'children': ['324', '327']}; {'id': '324', 'type': 'attribute', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '327', 'type': 'argument_list', 'children': ['328', '331']}; {'id': '328', 'type': 'binary_operator', 'children': ['329', '330'], 'value': '+'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'offset'}; {'id': '330', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'prefix'}; {'id': '332', 'type': 'return_statement', 'children': ['333']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'tree'}
Print a tree-structure of this object's phonological representation.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'stats_positions'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'all_parses'}; {'id': '10', 'type': 'False', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '38', '42', '130', '293', '305', '324', '360', '371']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'parses'}; {'id': '15', 'type': 'conditional_expression', 'children': ['16', '24', '25'], 'value': 'if'}; {'id': '16', 'type': 'call', 'children': ['17', '20']}; {'id': '17', 'type': 'attribute', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'allParses'}; {'id': '20', 'type': 'argument_list', 'children': ['21']}; {'id': '21', 'type': 'keyword_argument', 'children': ['22', '23']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'all_parses'}; {'id': '25', 'type': 'list_comprehension', 'children': ['26', '28']}; {'id': '26', 'type': 'list', 'children': ['27'], 'value': '[parse]'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '28', 'type': 'for_in_clause', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '30', 'type': 'call', 'children': ['31', '34']}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'bestParses'}; {'id': '34', 'type': 'argument_list', 'children': ['35']}; {'id': '35', 'type': 'keyword_argument', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'dx'}; {'id': '41', 'type': 'dictionary', 'children': []}; {'id': '42', 'type': 'for_statement', 'children': ['43', '44', '45']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'parselist'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'parses'}; {'id': '45', 'type': 'block', 'children': ['46']}; {'id': '46', 'type': 'for_statement', 'children': ['47', '48', '49']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'parselist'}; {'id': '49', 'type': 'block', 'children': ['50', '55', '59']}; {'id': '50', 'type': 'if_statement', 'children': ['51', '53']}; {'id': '51', 'type': 'not_operator', 'children': ['52']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '53', 'type': 'block', 'children': ['54']}; {'id': '54', 'type': 'continue_statement', 'children': []}; {'id': '55', 'type': 'expression_statement', 'children': ['56']}; {'id': '56', 'type': 'assignment', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'slot_i'}; {'id': '58', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '59', 'type': 'for_statement', 'children': ['60', '61', '64']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'parse'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'positions'}; {'id': '64', 'type': 'block', 'children': ['65']}; {'id': '65', 'type': 'for_statement', 'children': ['66', '67', '70']}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'slot'}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'slots'}; {'id': '70', 'type': 'block', 'children': ['71', '75', '88']}; {'id': '71', 'type': 'expression_statement', 'children': ['72']}; {'id': '72', 'type': 'augmented_assignment', 'children': ['73', '74'], 'value': '+='}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'slot_i'}; {'id': '74', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '75', 'type': 'expression_statement', 'children': ['76']}; {'id': '76', 'type': 'assignment', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'feat_dicts'}; {'id': '78', 'type': 'list', 'children': ['79', '82', '85'], 'value': '[slot.feats, pos.constraintScores, pos.feats]'}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'slot'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'feats'}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'constraintScores'}; {'id': '85', 'type': 'attribute', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'feats'}; {'id': '88', 'type': 'for_statement', 'children': ['89', '90', '91']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'feat_dict'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'feat_dicts'}; {'id': '91', 'type': 'block', 'children': ['92']}; {'id': '92', 'type': 'for_statement', 'children': ['93', '96', '101']}; {'id': '93', 'type': 'pattern_list', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'feat_dict'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '100', 'type': 'argument_list', 'children': []}; {'id': '101', 'type': 'block', 'children': ['102', '111', '123']}; {'id': '102', 'type': 'expression_statement', 'children': ['103']}; {'id': '103', 'type': 'assignment', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'dk'}; {'id': '105', 'type': 'tuple', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'slot_i'}; {'id': '107', 'type': 'call', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '111', 'type': 'if_statement', 'children': ['112', '116']}; {'id': '112', 'type': 'not_operator', 'children': ['113']}; {'id': '113', 'type': 'comparison_operator', 'children': ['114', '115'], 'value': 'in'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'dk'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'dx'}; {'id': '116', 'type': 'block', 'children': ['117']}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '122']}; {'id': '119', 'type': 'subscript', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'dx'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'dk'}; {'id': '122', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '123', 'type': 'expression_statement', 'children': ['124']}; {'id': '124', 'type': 'augmented_assignment', 'children': ['125', '128'], 'value': '+='}; {'id': '125', 'type': 'subscript', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'dx'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'dk'}; {'id': '128', 'type': 'list', 'children': ['129'], 'value': '[v]'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '130', 'type': 'function_definition', 'children': ['131', '132', '133']}; {'id': '131', 'type': 'function_name', 'children': [], 'value': '_writegen'}; {'id': '132', 'type': 'parameters', 'children': []}; {'id': '133', 'type': 'block', 'children': ['134']}; {'id': '134', 'type': 'for_statement', 'children': ['135', '140', '148']}; {'id': '135', 'type': 'tuple_pattern', 'children': ['136', '139']}; {'id': '136', 'type': 'tuple_pattern', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'slot_i'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'l'}; {'id': '140', 'type': 'call', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '142', 'type': 'argument_list', 'children': ['143']}; {'id': '143', 'type': 'call', 'children': ['144', '147']}; {'id': '144', 'type': 'attribute', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'dx'}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '147', 'type': 'argument_list', 'children': []}; {'id': '148', 'type': 'block', 'children': ['149', '153', '221', '226', '241', '248', '255', '279', '290']}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'assignment', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'l2'}; {'id': '152', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '153', 'type': 'for_statement', 'children': ['154', '155', '156']}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'l'}; {'id': '156', 'type': 'block', 'children': ['157', '207', '216']}; {'id': '157', 'type': 'if_statement', 'children': ['158', '164', '172', '187', '198']}; {'id': '158', 'type': 'comparison_operator', 'children': ['159', '163'], 'value': '=='}; {'id': '159', 'type': 'call', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '161', 'type': 'argument_list', 'children': ['162']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '164', 'type': 'block', 'children': ['165']}; {'id': '165', 'type': 'expression_statement', 'children': ['166']}; {'id': '166', 'type': 'assignment', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '168', 'type': 'conditional_expression', 'children': ['169', '170', '171'], 'value': 'if'}; {'id': '169', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '171', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '172', 'type': 'elif_clause', 'children': ['173', '182']}; {'id': '173', 'type': 'comparison_operator', 'children': ['174', '178'], 'value': '=='}; {'id': '174', 'type': 'call', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '176', 'type': 'argument_list', 'children': ['177']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '178', 'type': 'call', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '180', 'type': 'argument_list', 'children': ['181']}; {'id': '181', 'type': 'None', 'children': []}; {'id': '182', 'type': 'block', 'children': ['183']}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'assignment', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '186', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '187', 'type': 'elif_clause', 'children': ['188', '196']}; {'id': '188', 'type': 'comparison_operator', 'children': ['189', '193'], 'value': 'in'}; {'id': '189', 'type': 'call', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '191', 'type': 'argument_list', 'children': ['192']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '193', 'type': 'list', 'children': ['194', '195'], 'value': '[str,unicode]'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'continue_statement', 'children': []}; {'id': '198', 'type': 'else_clause', 'children': ['199']}; {'id': '199', 'type': 'block', 'children': ['200']}; {'id': '200', 'type': 'expression_statement', 'children': ['201']}; {'id': '201', 'type': 'assignment', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '203', 'type': 'call', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '205', 'type': 'argument_list', 'children': ['206']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '207', 'type': 'if_statement', 'children': ['208', '211']}; {'id': '208', 'type': 'comparison_operator', 'children': ['209', '210'], 'value': '>'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '210', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '211', 'type': 'block', 'children': ['212']}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '215', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '216', 'type': 'expression_statement', 'children': ['217']}; {'id': '217', 'type': 'augmented_assignment', 'children': ['218', '219'], 'value': '+='}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'l2'}; {'id': '219', 'type': 'list', 'children': ['220'], 'value': '[x]'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '221', 'type': 'if_statement', 'children': ['222', '224']}; {'id': '222', 'type': 'not_operator', 'children': ['223']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'l2'}; {'id': '224', 'type': 'block', 'children': ['225']}; {'id': '225', 'type': 'continue_statement', 'children': []}; {'id': '226', 'type': 'expression_statement', 'children': ['227']}; {'id': '227', 'type': 'assignment', 'children': ['228', '229']}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'avg'}; {'id': '229', 'type': 'binary_operator', 'children': ['230', '234'], 'value': '/'}; {'id': '230', 'type': 'call', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '232', 'type': 'argument_list', 'children': ['233']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'l2'}; {'id': '234', 'type': 'call', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '236', 'type': 'argument_list', 'children': ['237']}; {'id': '237', 'type': 'call', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '239', 'type': 'argument_list', 'children': ['240']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'l2'}; {'id': '241', 'type': 'expression_statement', 'children': ['242']}; {'id': '242', 'type': 'assignment', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '244', 'type': 'call', 'children': ['245', '246']}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '246', 'type': 'argument_list', 'children': ['247']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'l2'}; {'id': '248', 'type': 'expression_statement', 'children': ['249']}; {'id': '249', 'type': 'assignment', 'children': ['250', '251']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'chances'}; {'id': '251', 'type': 'call', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '253', 'type': 'argument_list', 'children': ['254']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'l2'}; {'id': '255', 'type': 'expression_statement', 'children': ['256']}; {'id': '256', 'type': 'assignment', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'odx'}; {'id': '258', 'type': 'dictionary', 'children': ['259', '262', '265', '268', '271', '274']}; {'id': '259', 'type': 'pair', 'children': ['260', '261']}; {'id': '260', 'type': 'string', 'children': [], 'value': "'slot_num'"}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'slot_i'}; {'id': '262', 'type': 'pair', 'children': ['263', '264']}; {'id': '263', 'type': 'string', 'children': [], 'value': "'statistic'"}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '265', 'type': 'pair', 'children': ['266', '267']}; {'id': '266', 'type': 'string', 'children': [], 'value': "'average'"}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'avg'}; {'id': '268', 'type': 'pair', 'children': ['269', '270']}; {'id': '269', 'type': 'string', 'children': [], 'value': "'count'"}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'count'}; {'id': '271', 'type': 'pair', 'children': ['272', '273']}; {'id': '272', 'type': 'string', 'children': [], 'value': "'chances'"}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'chances'}; {'id': '274', 'type': 'pair', 'children': ['275', '276']}; {'id': '275', 'type': 'string', 'children': [], 'value': "'text'"}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '279', 'type': 'expression_statement', 'children': ['280']}; {'id': '280', 'type': 'assignment', 'children': ['281', '284']}; {'id': '281', 'type': 'subscript', 'children': ['282', '283']}; {'id': '282', 'type': 'identifier', 'children': [], 'value': 'odx'}; {'id': '283', 'type': 'string', 'children': [], 'value': "'header'"}; {'id': '284', 'type': 'list', 'children': ['285', '286', '287', '288', '289'], 'value': "['slot_num', 'statistic','count','chances','average']"}; {'id': '285', 'type': 'string', 'children': [], 'value': "'slot_num'"}; {'id': '286', 'type': 'string', 'children': [], 'value': "'statistic'"}; {'id': '287', 'type': 'string', 'children': [], 'value': "'count'"}; {'id': '288', 'type': 'string', 'children': [], 'value': "'chances'"}; {'id': '289', 'type': 'string', 'children': [], 'value': "'average'"}; {'id': '290', 'type': 'expression_statement', 'children': ['291']}; {'id': '291', 'type': 'yield', 'children': ['292']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'odx'}; {'id': '293', 'type': 'expression_statement', 'children': ['294']}; {'id': '294', 'type': 'assignment', 'children': ['295', '296']}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '296', 'type': 'call', 'children': ['297', '302']}; {'id': '297', 'type': 'attribute', 'children': ['298', '301']}; {'id': '298', 'type': 'attribute', 'children': ['299', '300']}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '302', 'type': 'argument_list', 'children': ['303', '304']}; {'id': '303', 'type': 'string', 'children': [], 'value': "'.txt'"}; {'id': '304', 'type': 'string', 'children': [], 'value': "''"}; {'id': '305', 'type': 'expression_statement', 'children': ['306']}; {'id': '306', 'type': 'assignment', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'ofn'}; {'id': '308', 'type': 'call', 'children': ['309', '314']}; {'id': '309', 'type': 'attribute', 'children': ['310', '313']}; {'id': '310', 'type': 'attribute', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '314', 'type': 'argument_list', 'children': ['315', '318', '319', '320', '321']}; {'id': '315', 'type': 'attribute', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'dir_results'}; {'id': '318', 'type': 'string', 'children': [], 'value': "'stats'"}; {'id': '319', 'type': 'string', 'children': [], 'value': "'texts'"}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '321', 'type': 'binary_operator', 'children': ['322', '323'], 'value': '+'}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '323', 'type': 'string', 'children': [], 'value': "'.positions.csv'"}; {'id': '324', 'type': 'if_statement', 'children': ['325', '343']}; {'id': '325', 'type': 'not_operator', 'children': ['326']}; {'id': '326', 'type': 'call', 'children': ['327', '332']}; {'id': '327', 'type': 'attribute', 'children': ['328', '331']}; {'id': '328', 'type': 'attribute', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '330', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'exists'}; {'id': '332', 'type': 'argument_list', 'children': ['333']}; {'id': '333', 'type': 'subscript', 'children': ['334', '342']}; {'id': '334', 'type': 'call', 'children': ['335', '340']}; {'id': '335', 'type': 'attribute', 'children': ['336', '339']}; {'id': '336', 'type': 'attribute', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '340', 'type': 'argument_list', 'children': ['341']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'ofn'}; {'id': '342', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '343', 'type': 'block', 'children': ['344']}; {'id': '344', 'type': 'expression_statement', 'children': ['345']}; {'id': '345', 'type': 'call', 'children': ['346', '349']}; {'id': '346', 'type': 'attribute', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'makedirs'}; {'id': '349', 'type': 'argument_list', 'children': ['350']}; {'id': '350', 'type': 'subscript', 'children': ['351', '359']}; {'id': '351', 'type': 'call', 'children': ['352', '357']}; {'id': '352', 'type': 'attribute', 'children': ['353', '356']}; {'id': '353', 'type': 'attribute', 'children': ['354', '355']}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'os'}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '357', 'type': 'argument_list', 'children': ['358']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'ofn'}; {'id': '359', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '360', 'type': 'for_statement', 'children': ['361', '362', '367']}; {'id': '361', 'type': 'identifier', 'children': [], 'value': 'dx'}; {'id': '362', 'type': 'call', 'children': ['363', '364']}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'writegengen'}; {'id': '364', 'type': 'argument_list', 'children': ['365', '366']}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'ofn'}; {'id': '366', 'type': 'identifier', 'children': [], 'value': '_writegen'}; {'id': '367', 'type': 'block', 'children': ['368']}; {'id': '368', 'type': 'expression_statement', 'children': ['369']}; {'id': '369', 'type': 'yield', 'children': ['370']}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'dx'}; {'id': '371', 'type': 'print_statement', 'children': ['372', '373']}; {'id': '372', 'type': 'string', 'children': [], 'value': "'>> saved:'"}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'ofn'}
Produce statistics from the parser
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '17']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'iparse'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8', '11', '14']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '7', 'type': 'None', 'children': []}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'num_processes'}; {'id': '10', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '11', 'type': 'default_parameter', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'arbiter'}; {'id': '13', 'type': 'string', 'children': [], 'value': "'Line'"}; {'id': '14', 'type': 'default_parameter', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'line_lim'}; {'id': '16', 'type': 'None', 'children': []}; {'id': '17', 'type': 'block', 'children': ['18', '29', '34', '43', '53', '63', '73', '83', '91', '99', '106', '110', '119', '131', '143', '163', '175', '182', '190', '202', '322']}; {'id': '18', 'type': 'import_from_statement', 'children': ['19', '21', '23', '25', '27']}; {'id': '19', 'type': 'dotted_name', 'children': ['20']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'Meter'}; {'id': '21', 'type': 'dotted_name', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'Meter'}; {'id': '23', 'type': 'dotted_name', 'children': ['24']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'genDefault'}; {'id': '25', 'type': 'dotted_name', 'children': ['26']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'parse_ent'}; {'id': '27', 'type': 'dotted_name', 'children': ['28']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'parse_ent_mp'}; {'id': '29', 'type': 'import_statement', 'children': ['30']}; {'id': '30', 'type': 'aliased_import', 'children': ['31', '33']}; {'id': '31', 'type': 'dotted_name', 'children': ['32']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'multiprocessing'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'mp'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '37', 'type': 'call', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'get_meter'}; {'id': '41', 'type': 'argument_list', 'children': ['42']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '52']}; {'id': '45', 'type': 'subscript', 'children': ['46', '49']}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': '__parses'}; {'id': '49', 'type': 'attribute', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '52', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '53', 'type': 'expression_statement', 'children': ['54']}; {'id': '54', 'type': 'assignment', 'children': ['55', '62']}; {'id': '55', 'type': 'subscript', 'children': ['56', '59']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': '__bestparses'}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '62', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '63', 'type': 'expression_statement', 'children': ['64']}; {'id': '64', 'type': 'assignment', 'children': ['65', '72']}; {'id': '65', 'type': 'subscript', 'children': ['66', '69']}; {'id': '66', 'type': 'attribute', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': '__boundParses'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '72', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'assignment', 'children': ['75', '82']}; {'id': '75', 'type': 'subscript', 'children': ['76', '79']}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': '__parsed_ents'}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'id'}; {'id': '82', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'assignment', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '86', 'type': 'call', 'children': ['87', '90']}; {'id': '87', 'type': 'attribute', 'children': ['88', '89']}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '90', 'type': 'argument_list', 'children': []}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '94', 'type': 'subscript', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '96', 'type': 'slice', 'children': ['97', '98']}; {'id': '97', 'type': 'colon', 'children': []}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'line_lim'}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'numlines'}; {'id': '102', 'type': 'call', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '104', 'type': 'argument_list', 'children': ['105']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'lines'}; {'id': '106', 'type': 'expression_statement', 'children': ['107']}; {'id': '107', 'type': 'assignment', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'init'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '110', 'type': 'expression_statement', 'children': ['111']}; {'id': '111', 'type': 'assignment', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'ents'}; {'id': '113', 'type': 'call', 'children': ['114', '117']}; {'id': '114', 'type': 'attribute', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'ents'}; {'id': '117', 'type': 'argument_list', 'children': ['118']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'arbiter'}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'smax'}; {'id': '122', 'type': 'call', 'children': ['123', '128']}; {'id': '123', 'type': 'attribute', 'children': ['124', '127']}; {'id': '124', 'type': 'attribute', 'children': ['125', '126']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '128', 'type': 'argument_list', 'children': ['129', '130']}; {'id': '129', 'type': 'string', 'children': [], 'value': "'line_maxsylls'"}; {'id': '130', 'type': 'integer', 'children': [], 'value': '100'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'smin'}; {'id': '134', 'type': 'call', 'children': ['135', '140']}; {'id': '135', 'type': 'attribute', 'children': ['136', '139']}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '140', 'type': 'argument_list', 'children': ['141', '142']}; {'id': '141', 'type': 'string', 'children': [], 'value': "'line_minsylls'"}; {'id': '142', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'ents'}; {'id': '146', 'type': 'list_comprehension', 'children': ['147', '148', '151']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '148', 'type': 'for_in_clause', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'ents'}; {'id': '151', 'type': 'if_clause', 'children': ['152']}; {'id': '152', 'type': 'boolean_operator', 'children': ['153', '158'], 'value': 'and'}; {'id': '153', 'type': 'comparison_operator', 'children': ['154', '157'], 'value': '>='}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'num_syll'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'smin'}; {'id': '158', 'type': 'comparison_operator', 'children': ['159', '162'], 'value': '<='}; {'id': '159', 'type': 'attribute', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'e'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'num_syll'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'smax'}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '168']}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'scansion_prepare'}; {'id': '168', 'type': 'argument_list', 'children': ['169', '172']}; {'id': '169', 'type': 'keyword_argument', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '172', 'type': 'keyword_argument', 'children': ['173', '174']}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'conscious'}; {'id': '174', 'type': 'True', 'children': []}; {'id': '175', 'type': 'expression_statement', 'children': ['176']}; {'id': '176', 'type': 'assignment', 'children': ['177', '178']}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'numents'}; {'id': '178', 'type': 'call', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '180', 'type': 'argument_list', 'children': ['181']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'ents'}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'assignment', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'toprint'}; {'id': '185', 'type': 'subscript', 'children': ['186', '189']}; {'id': '186', 'type': 'attribute', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '189', 'type': 'string', 'children': [], 'value': "'print_to_screen'"}; {'id': '190', 'type': 'expression_statement', 'children': ['191']}; {'id': '191', 'type': 'assignment', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '193', 'type': 'list_comprehension', 'children': ['194', '199']}; {'id': '194', 'type': 'tuple', 'children': ['195', '196', '197', '198']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'ent'}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'meter'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'init'}; {'id': '198', 'type': 'False', 'children': []}; {'id': '199', 'type': 'for_in_clause', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'ent'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'ents'}; {'id': '202', 'type': 'if_statement', 'children': ['203', '206', '250']}; {'id': '203', 'type': 'comparison_operator', 'children': ['204', '205'], 'value': '>'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'num_processes'}; {'id': '205', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '206', 'type': 'block', 'children': ['207', '209', '218', '233']}; {'id': '207', 'type': 'print_statement', 'children': ['208']}; {'id': '208', 'type': 'string', 'children': [], 'value': "'!! MULTIPROCESSING PARSING IS NOT WORKING YET !!'"}; {'id': '209', 'type': 'expression_statement', 'children': ['210']}; {'id': '210', 'type': 'assignment', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'pool'}; {'id': '212', 'type': 'call', 'children': ['213', '216']}; {'id': '213', 'type': 'attribute', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'mp'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'Pool'}; {'id': '216', 'type': 'argument_list', 'children': ['217']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'num_processes'}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'assignment', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'jobs'}; {'id': '221', 'type': 'list_comprehension', 'children': ['222', '230']}; {'id': '222', 'type': 'call', 'children': ['223', '226']}; {'id': '223', 'type': 'attribute', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'pool'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'apply_async'}; {'id': '226', 'type': 'argument_list', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'parse_ent_mp'}; {'id': '228', 'type': 'tuple', 'children': ['229']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '230', 'type': 'for_in_clause', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '233', 'type': 'for_statement', 'children': ['234', '235', '236']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'jobs'}; {'id': '236', 'type': 'block', 'children': ['237', '243']}; {'id': '237', 'type': 'print_statement', 'children': ['238']}; {'id': '238', 'type': 'call', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '242', 'type': 'argument_list', 'children': []}; {'id': '243', 'type': 'expression_statement', 'children': ['244']}; {'id': '244', 'type': 'yield', 'children': ['245']}; {'id': '245', 'type': 'call', 'children': ['246', '249']}; {'id': '246', 'type': 'attribute', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'j'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '249', 'type': 'argument_list', 'children': []}; {'id': '250', 'type': 'else_clause', 'children': ['251']}; {'id': '251', 'type': 'block', 'children': ['252', '260', '264']}; {'id': '252', 'type': 'expression_statement', 'children': ['253']}; {'id': '253', 'type': 'assignment', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '255', 'type': 'call', 'children': ['256', '259']}; {'id': '256', 'type': 'attribute', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '259', 'type': 'argument_list', 'children': []}; {'id': '260', 'type': 'expression_statement', 'children': ['261']}; {'id': '261', 'type': 'assignment', 'children': ['262', '263']}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'clock_snum'}; {'id': '263', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '264', 'type': 'for_statement', 'children': ['265', '268', '272']}; {'id': '265', 'type': 'pattern_list', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'ei'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'objectx'}; {'id': '268', 'type': 'call', 'children': ['269', '270']}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '270', 'type': 'argument_list', 'children': ['271']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'objects'}; {'id': '272', 'type': 'block', 'children': ['273', '279', '316']}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'augmented_assignment', 'children': ['275', '276'], 'value': '+='}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'clock_snum'}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'ent'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'num_syll'}; {'id': '279', 'type': 'if_statement', 'children': ['280', '286']}; {'id': '280', 'type': 'boolean_operator', 'children': ['281', '282'], 'value': 'and'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'ei'}; {'id': '282', 'type': 'not_operator', 'children': ['283']}; {'id': '283', 'type': 'binary_operator', 'children': ['284', '285'], 'value': '%'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'ei'}; {'id': '285', 'type': 'integer', 'children': [], 'value': '100'}; {'id': '286', 'type': 'block', 'children': ['287', '295', '308', '312']}; {'id': '287', 'type': 'expression_statement', 'children': ['288']}; {'id': '288', 'type': 'assignment', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'nownow'}; {'id': '290', 'type': 'call', 'children': ['291', '294']}; {'id': '291', 'type': 'attribute', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '294', 'type': 'argument_list', 'children': []}; {'id': '295', 'type': 'if_statement', 'children': ['296', '301']}; {'id': '296', 'type': 'subscript', 'children': ['297', '300']}; {'id': '297', 'type': 'attribute', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '300', 'type': 'string', 'children': [], 'value': "'print_to_screen'"}; {'id': '301', 'type': 'block', 'children': ['302']}; {'id': '302', 'type': 'print_statement', 'children': ['303', '304']}; {'id': '303', 'type': 'ERROR', 'children': []}; {'id': '304', 'type': 'chevron', 'children': ['305', '307']}; {'id': '305', 'type': 'ERROR', 'children': ['306']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'parsing'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '308', 'type': 'expression_statement', 'children': ['309']}; {'id': '309', 'type': 'assignment', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'nownow'}; {'id': '312', 'type': 'expression_statement', 'children': ['313']}; {'id': '313', 'type': 'assignment', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'clock_snum'}; {'id': '315', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '316', 'type': 'expression_statement', 'children': ['317']}; {'id': '317', 'type': 'yield', 'children': ['318']}; {'id': '318', 'type': 'call', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'parse_ent_mp'}; {'id': '320', 'type': 'argument_list', 'children': ['321']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'objectx'}; {'id': '322', 'type': 'if_statement', 'children': ['323', '328']}; {'id': '323', 'type': 'subscript', 'children': ['324', '327']}; {'id': '324', 'type': 'attribute', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'config'}; {'id': '327', 'type': 'string', 'children': [], 'value': "'print_to_screen'"}; {'id': '328', 'type': 'block', 'children': ['329']}; {'id': '329', 'type': 'print_statement', 'children': ['330', '331', '338']}; {'id': '330', 'type': 'string', 'children': [], 'value': "'>> parsing complete in:'"}; {'id': '331', 'type': 'binary_operator', 'children': ['332', '337'], 'value': '-'}; {'id': '332', 'type': 'call', 'children': ['333', '336']}; {'id': '333', 'type': 'attribute', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'time'}; {'id': '336', 'type': 'argument_list', 'children': []}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '338', 'type': 'string', 'children': [], 'value': "'seconds'"}
Parse this text metrically, yielding it line by line.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'parse'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'celf'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '6', 'type': 'block', 'children': ['7', '9', '271', '280', '287']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'string', 'children': [], 'value': '"generates an Introspection tree from the given XML string description."'}; {'id': '9', 'type': 'function_definition', 'children': ['10', '11', '15']}; {'id': '10', 'type': 'function_name', 'children': [], 'value': 'from_string_elts'}; {'id': '11', 'type': 'parameters', 'children': ['12', '13', '14']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'celf'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '15', 'type': 'block', 'children': ['16', '30', '59', '63', '203', '264']}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'elts'}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '21', 'type': 'generator_expression', 'children': ['22', '27']}; {'id': '22', 'type': 'tuple', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '24', 'type': 'subscript', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '27', 'type': 'for_in_clause', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'child_tags'}; {'id': '33', 'type': 'call', 'children': ['34', '35', '36']}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '35', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '36', 'type': 'generator_expression', 'children': ['37', '42']}; {'id': '37', 'type': 'tuple', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '42', 'type': 'for_in_clause', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '44', 'type': 'binary_operator', 'children': ['45', '55'], 'value': '+'}; {'id': '45', 'type': 'call', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '47', 'type': 'argument_list', 'children': ['48']}; {'id': '48', 'type': 'call', 'children': ['49', '54']}; {'id': '49', 'type': 'attribute', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'celf'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'tag_elts'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'values'}; {'id': '54', 'type': 'argument_list', 'children': []}; {'id': '55', 'type': 'tuple', 'children': ['56']}; {'id': '56', 'type': 'attribute', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'Introspection'}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'Annotation'}; {'id': '59', 'type': 'expression_statement', 'children': ['60']}; {'id': '60', 'type': 'assignment', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '62', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '63', 'type': 'for_statement', 'children': ['64', '65', '66']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '66', 'type': 'block', 'children': ['67', '83', '91', '95', '158', '191']}; {'id': '67', 'type': 'if_statement', 'children': ['68', '73']}; {'id': '68', 'type': 'comparison_operator', 'children': ['69', '72'], 'value': 'not'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'child_tags'}; {'id': '73', 'type': 'block', 'children': ['74']}; {'id': '74', 'type': 'raise_statement', 'children': ['75']}; {'id': '75', 'type': 'call', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'KeyError'}; {'id': '77', 'type': 'argument_list', 'children': ['78']}; {'id': '78', 'type': 'binary_operator', 'children': ['79', '80'], 'value': '%'}; {'id': '79', 'type': 'string', 'children': [], 'value': '"unrecognized tag %s"'}; {'id': '80', 'type': 'attribute', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '83', 'type': 'expression_statement', 'children': ['84']}; {'id': '84', 'type': 'assignment', 'children': ['85', '86']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '86', 'type': 'subscript', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'child_tags'}; {'id': '88', 'type': 'attribute', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'assignment', 'children': ['93', '94']}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'childattrs'}; {'id': '94', 'type': 'dictionary', 'children': []}; {'id': '95', 'type': 'for_statement', 'children': ['96', '97', '100']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'tag_attrs'}; {'id': '100', 'type': 'block', 'children': ['101']}; {'id': '101', 'type': 'if_statement', 'children': ['102', '113', '128']}; {'id': '102', 'type': 'boolean_operator', 'children': ['103', '108'], 'value': 'and'}; {'id': '103', 'type': 'call', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '105', 'type': 'argument_list', 'children': ['106', '107']}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '107', 'type': 'string', 'children': [], 'value': '"tag_attrs_optional"'}; {'id': '108', 'type': 'comparison_operator', 'children': ['109', '110'], 'value': 'in'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'tag_attrs_optional'}; {'id': '113', 'type': 'block', 'children': ['114']}; {'id': '114', 'type': 'expression_statement', 'children': ['115']}; {'id': '115', 'type': 'assignment', 'children': ['116', '119']}; {'id': '116', 'type': 'subscript', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'childattrs'}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '119', 'type': 'call', 'children': ['120', '125']}; {'id': '120', 'type': 'attribute', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'attrib'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '125', 'type': 'argument_list', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '127', 'type': 'None', 'children': []}; {'id': '128', 'type': 'else_clause', 'children': ['129']}; {'id': '129', 'type': 'block', 'children': ['130', '148']}; {'id': '130', 'type': 'if_statement', 'children': ['131', '136']}; {'id': '131', 'type': 'comparison_operator', 'children': ['132', '133'], 'value': 'not'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '133', 'type': 'attribute', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'attrib'}; {'id': '136', 'type': 'block', 'children': ['137']}; {'id': '137', 'type': 'raise_statement', 'children': ['138']}; {'id': '138', 'type': 'call', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'ValueError'}; {'id': '140', 'type': 'argument_list', 'children': ['141']}; {'id': '141', 'type': 'binary_operator', 'children': ['142', '143'], 'value': '%'}; {'id': '142', 'type': 'string', 'children': [], 'value': '"missing %s attribute for %s tag"'}; {'id': '143', 'type': 'tuple', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '148', 'type': 'expression_statement', 'children': ['149']}; {'id': '149', 'type': 'assignment', 'children': ['150', '153']}; {'id': '150', 'type': 'subscript', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'childattrs'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '153', 'type': 'subscript', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'attrib'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '158', 'type': 'if_statement', 'children': ['159', '164']}; {'id': '159', 'type': 'call', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'hasattr'}; {'id': '161', 'type': 'argument_list', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '163', 'type': 'string', 'children': [], 'value': '"attr_convert"'}; {'id': '164', 'type': 'block', 'children': ['165']}; {'id': '165', 'type': 'for_statement', 'children': ['166', '167', '170']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'attr_convert'}; {'id': '170', 'type': 'block', 'children': ['171']}; {'id': '171', 'type': 'if_statement', 'children': ['172', '175']}; {'id': '172', 'type': 'comparison_operator', 'children': ['173', '174'], 'value': 'in'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'childattrs'}; {'id': '175', 'type': 'block', 'children': ['176']}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'assignment', 'children': ['178', '181']}; {'id': '178', 'type': 'subscript', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'childattrs'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '181', 'type': 'call', 'children': ['182', '187']}; {'id': '182', 'type': 'subscript', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'attr_convert'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '187', 'type': 'argument_list', 'children': ['188']}; {'id': '188', 'type': 'subscript', 'children': ['189', '190']}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'childattrs'}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '191', 'type': 'expression_statement', 'children': ['192']}; {'id': '192', 'type': 'call', 'children': ['193', '196']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '196', 'type': 'argument_list', 'children': ['197']}; {'id': '197', 'type': 'call', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'from_string_elts'}; {'id': '199', 'type': 'argument_list', 'children': ['200', '201', '202']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'childattrs'}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '203', 'type': 'for_statement', 'children': ['204', '207', '232']}; {'id': '204', 'type': 'pattern_list', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'child_tag'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '207', 'type': 'binary_operator', 'children': ['208', '218'], 'value': '+'}; {'id': '208', 'type': 'call', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'call', 'children': ['212', '217']}; {'id': '212', 'type': 'attribute', 'children': ['213', '216']}; {'id': '213', 'type': 'attribute', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'celf'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'tag_elts'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '217', 'type': 'argument_list', 'children': []}; {'id': '218', 'type': 'subscript', 'children': ['219', '227']}; {'id': '219', 'type': 'tuple', 'children': ['220', '221']}; {'id': '220', 'type': 'tuple', 'children': []}; {'id': '221', 'type': 'tuple', 'children': ['222']}; {'id': '222', 'type': 'tuple', 'children': ['223', '224']}; {'id': '223', 'type': 'string', 'children': [], 'value': '"annotations"'}; {'id': '224', 'type': 'attribute', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'Introspection'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'Annotation'}; {'id': '227', 'type': 'comparison_operator', 'children': ['228', '231'], 'value': '!='}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '231', 'type': 'string', 'children': [], 'value': '"annotation"'}; {'id': '232', 'type': 'block', 'children': ['233']}; {'id': '233', 'type': 'for_statement', 'children': ['234', '235', '236']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'children'}; {'id': '236', 'type': 'block', 'children': ['237']}; {'id': '237', 'type': 'if_statement', 'children': ['238', '243']}; {'id': '238', 'type': 'call', 'children': ['239', '240']}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '240', 'type': 'argument_list', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'childclass'}; {'id': '243', 'type': 'block', 'children': ['244', '255']}; {'id': '244', 'type': 'if_statement', 'children': ['245', '248']}; {'id': '245', 'type': 'comparison_operator', 'children': ['246', '247'], 'value': 'not'}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'child_tag'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'elts'}; {'id': '248', 'type': 'block', 'children': ['249']}; {'id': '249', 'type': 'expression_statement', 'children': ['250']}; {'id': '250', 'type': 'assignment', 'children': ['251', '254']}; {'id': '251', 'type': 'subscript', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'elts'}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'child_tag'}; {'id': '254', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '255', 'type': 'expression_statement', 'children': ['256']}; {'id': '256', 'type': 'call', 'children': ['257', '262']}; {'id': '257', 'type': 'attribute', 'children': ['258', '261']}; {'id': '258', 'type': 'subscript', 'children': ['259', '260']}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'elts'}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'child_tag'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '262', 'type': 'argument_list', 'children': ['263']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'child'}; {'id': '264', 'type': 'return_statement', 'children': ['265', '266']}; {'id': '265', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '266', 'type': 'call', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'celf'}; {'id': '268', 'type': 'argument_list', 'children': ['269']}; {'id': '269', 'type': 'dictionary_splat', 'children': ['270']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'elts'}; {'id': '271', 'type': 'expression_statement', 'children': ['272']}; {'id': '272', 'type': 'assignment', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '274', 'type': 'call', 'children': ['275', '278']}; {'id': '275', 'type': 'attribute', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'XMLElementTree'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'fromstring'}; {'id': '278', 'type': 'argument_list', 'children': ['279']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '280', 'type': 'assert_statement', 'children': ['281', '286']}; {'id': '281', 'type': 'comparison_operator', 'children': ['282', '285'], 'value': '=='}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'tree'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '285', 'type': 'string', 'children': [], 'value': '"node"'}; {'id': '286', 'type': 'string', 'children': [], 'value': '"root of introspection tree must be <node> tag"'}; {'id': '287', 'type': 'return_statement', 'children': ['288', '289']}; {'id': '288', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '289', 'type': 'call', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'from_string_elts'}; {'id': '291', 'type': 'argument_list', 'children': ['292', '293', '294']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'Introspection'}; {'id': '293', 'type': 'dictionary', 'children': []}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'tree'}
generates an Introspection tree from the given XML string description.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'unparse'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'indent_step'}; {'id': '7', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'max_linelen'}; {'id': '10', 'type': 'integer', 'children': [], 'value': '72'}; {'id': '11', 'type': 'block', 'children': ['12', '14', '22', '352', '361', '368', '389', '396', '408', '420', '427']}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'string', 'children': [], 'value': '"returns an XML string description of this Introspection tree."'}; {'id': '14', 'type': 'expression_statement', 'children': ['15']}; {'id': '15', 'type': 'assignment', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '17', 'type': 'call', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'io'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'StringIO'}; {'id': '21', 'type': 'argument_list', 'children': []}; {'id': '22', 'type': 'function_definition', 'children': ['23', '24', '27']}; {'id': '23', 'type': 'function_name', 'children': [], 'value': 'to_string'}; {'id': '24', 'type': 'parameters', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '27', 'type': 'block', 'children': ['28', '34', '38', '125', '169', '182', '284', '295', '302']}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '31', 'type': 'attribute', 'children': ['32', '33']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '37', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '38', 'type': 'for_statement', 'children': ['39', '40', '43']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '40', 'type': 'attribute', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'tag_attrs'}; {'id': '43', 'type': 'block', 'children': ['44', '52']}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'assignment', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '47', 'type': 'call', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '49', 'type': 'argument_list', 'children': ['50', '51']}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '52', 'type': 'if_statement', 'children': ['53', '56']}; {'id': '53', 'type': 'comparison_operator', 'children': ['54', '55'], 'value': '!='}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '55', 'type': 'None', 'children': []}; {'id': '56', 'type': 'block', 'children': ['57', '111']}; {'id': '57', 'type': 'if_statement', 'children': ['58', '65', '72', '86']}; {'id': '58', 'type': 'call', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '60', 'type': 'argument_list', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '62', 'type': 'attribute', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'enum'}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'Enum'}; {'id': '65', 'type': 'block', 'children': ['66']}; {'id': '66', 'type': 'expression_statement', 'children': ['67']}; {'id': '67', 'type': 'assignment', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'value'}; {'id': '72', 'type': 'elif_clause', 'children': ['73', '78']}; {'id': '73', 'type': 'call', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '75', 'type': 'argument_list', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'Type'}; {'id': '78', 'type': 'block', 'children': ['79']}; {'id': '79', 'type': 'expression_statement', 'children': ['80']}; {'id': '80', 'type': 'assignment', 'children': ['81', '82']}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '82', 'type': 'call', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'unparse_signature'}; {'id': '84', 'type': 'argument_list', 'children': ['85']}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '86', 'type': 'elif_clause', 'children': ['87', '93']}; {'id': '87', 'type': 'not_operator', 'children': ['88']}; {'id': '88', 'type': 'call', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '90', 'type': 'argument_list', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '93', 'type': 'block', 'children': ['94']}; {'id': '94', 'type': 'raise_statement', 'children': ['95']}; {'id': '95', 'type': 'call', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'TypeError'}; {'id': '97', 'type': 'argument_list', 'children': ['98']}; {'id': '98', 'type': 'binary_operator', 'children': ['99', '100'], 'value': '%'}; {'id': '99', 'type': 'string', 'children': [], 'value': '"unexpected attribute type %s for %s"'}; {'id': '100', 'type': 'tuple', 'children': ['101', '107']}; {'id': '101', 'type': 'attribute', 'children': ['102', '106']}; {'id': '102', 'type': 'call', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'type'}; {'id': '104', 'type': 'argument_list', 'children': ['105']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': '__name__'}; {'id': '107', 'type': 'call', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '109', 'type': 'argument_list', 'children': ['110']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '111', 'type': 'expression_statement', 'children': ['112']}; {'id': '112', 'type': 'call', 'children': ['113', '116']}; {'id': '113', 'type': 'attribute', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '116', 'type': 'argument_list', 'children': ['117']}; {'id': '117', 'type': 'binary_operator', 'children': ['118', '119'], 'value': '%'}; {'id': '118', 'type': 'string', 'children': [], 'value': '"%s=%s"'}; {'id': '119', 'type': 'tuple', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '121', 'type': 'call', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'quote_xml_attr'}; {'id': '123', 'type': 'argument_list', 'children': ['124']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'assignment', 'children': ['127', '128', '129']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'has_elts'}; {'id': '128', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '129', 'type': '()', 'children': ['130']}; {'id': '130', 'type': 'comparison_operator', 'children': ['131', '168'], 'value': '!='}; {'id': '131', 'type': 'call', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '133', 'type': 'generator_expression', 'children': ['134', '142']}; {'id': '134', 'type': 'call', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '136', 'type': 'argument_list', 'children': ['137']}; {'id': '137', 'type': 'call', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '139', 'type': 'argument_list', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '142', 'type': 'for_in_clause', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '144', 'type': 'binary_operator', 'children': ['145', '155'], 'value': '+'}; {'id': '145', 'type': 'call', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'tuple'}; {'id': '147', 'type': 'argument_list', 'children': ['148']}; {'id': '148', 'type': 'call', 'children': ['149', '154']}; {'id': '149', 'type': 'attribute', 'children': ['150', '153']}; {'id': '150', 'type': 'attribute', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'tag_elts'}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '154', 'type': 'argument_list', 'children': []}; {'id': '155', 'type': 'subscript', 'children': ['156', '160']}; {'id': '156', 'type': 'tuple', 'children': ['157', '158']}; {'id': '157', 'type': 'tuple', 'children': []}; {'id': '158', 'type': 'tuple', 'children': ['159']}; {'id': '159', 'type': 'string', 'children': [], 'value': '"annotations"'}; {'id': '160', 'type': 'not_operator', 'children': ['161']}; {'id': '161', 'type': 'call', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '163', 'type': 'argument_list', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '165', 'type': 'attribute', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'Introspection'}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'Annotation'}; {'id': '168', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '169', 'type': 'expression_statement', 'children': ['170']}; {'id': '170', 'type': 'call', 'children': ['171', '174']}; {'id': '171', 'type': 'attribute', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '174', 'type': 'argument_list', 'children': ['175']}; {'id': '175', 'type': 'binary_operator', 'children': ['176', '181'], 'value': '+'}; {'id': '176', 'type': 'binary_operator', 'children': ['177', '180'], 'value': '+'}; {'id': '177', 'type': 'binary_operator', 'children': ['178', '179'], 'value': '*'}; {'id': '178', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '180', 'type': 'string', 'children': [], 'value': '"<"'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '182', 'type': 'if_statement', 'children': ['183', '217', '264']}; {'id': '183', 'type': '()', 'children': ['184']}; {'id': '184', 'type': 'boolean_operator', 'children': ['185', '188'], 'value': 'and'}; {'id': '185', 'type': 'comparison_operator', 'children': ['186', '187'], 'value': '!='}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'max_linelen'}; {'id': '187', 'type': 'None', 'children': []}; {'id': '188', 'type': 'comparison_operator', 'children': ['189', '216'], 'value': '>'}; {'id': '189', 'type': 'binary_operator', 'children': ['190', '212'], 'value': '+'}; {'id': '190', 'type': 'binary_operator', 'children': ['191', '211'], 'value': '+'}; {'id': '191', 'type': 'binary_operator', 'children': ['192', '198'], 'value': '+'}; {'id': '192', 'type': 'binary_operator', 'children': ['193', '194'], 'value': '+'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '194', 'type': 'call', 'children': ['195', '196']}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '196', 'type': 'argument_list', 'children': ['197']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '198', 'type': 'call', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'sum'}; {'id': '200', 'type': 'generator_expression', 'children': ['201', '208']}; {'id': '201', 'type': '()', 'children': ['202']}; {'id': '202', 'type': 'binary_operator', 'children': ['203', '207'], 'value': '+'}; {'id': '203', 'type': 'call', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '205', 'type': 'argument_list', 'children': ['206']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '207', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '208', 'type': 'for_in_clause', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '211', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '212', 'type': 'call', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'has_elts'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'max_linelen'}; {'id': '217', 'type': 'block', 'children': ['218', '225', '255']}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'call', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '223', 'type': 'argument_list', 'children': ['224']}; {'id': '224', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '225', 'type': 'for_statement', 'children': ['226', '227', '228']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '228', 'type': 'block', 'children': ['229', '241', '248']}; {'id': '229', 'type': 'expression_statement', 'children': ['230']}; {'id': '230', 'type': 'call', 'children': ['231', '234']}; {'id': '231', 'type': 'attribute', 'children': ['232', '233']}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '234', 'type': 'argument_list', 'children': ['235']}; {'id': '235', 'type': 'binary_operator', 'children': ['236', '237'], 'value': '*'}; {'id': '236', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '237', 'type': '()', 'children': ['238']}; {'id': '238', 'type': 'binary_operator', 'children': ['239', '240'], 'value': '+'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'indent_step'}; {'id': '241', 'type': 'expression_statement', 'children': ['242']}; {'id': '242', 'type': 'call', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '246', 'type': 'argument_list', 'children': ['247']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '248', 'type': 'expression_statement', 'children': ['249']}; {'id': '249', 'type': 'call', 'children': ['250', '253']}; {'id': '250', 'type': 'attribute', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '253', 'type': 'argument_list', 'children': ['254']}; {'id': '254', 'type': 'string', 'children': [], 'value': '"\\n"'}; {'id': '255', 'type': 'expression_statement', 'children': ['256']}; {'id': '256', 'type': 'call', 'children': ['257', '260']}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '260', 'type': 'argument_list', 'children': ['261']}; {'id': '261', 'type': 'binary_operator', 'children': ['262', '263'], 'value': '*'}; {'id': '262', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '264', 'type': 'else_clause', 'children': ['265']}; {'id': '265', 'type': 'block', 'children': ['266']}; {'id': '266', 'type': 'for_statement', 'children': ['267', '268', '269']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'attrs'}; {'id': '269', 'type': 'block', 'children': ['270', '277']}; {'id': '270', 'type': 'expression_statement', 'children': ['271']}; {'id': '271', 'type': 'call', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '275', 'type': 'argument_list', 'children': ['276']}; {'id': '276', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '277', 'type': 'expression_statement', 'children': ['278']}; {'id': '278', 'type': 'call', 'children': ['279', '282']}; {'id': '279', 'type': 'attribute', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '282', 'type': 'argument_list', 'children': ['283']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'attr'}; {'id': '284', 'type': 'if_statement', 'children': ['285', '287']}; {'id': '285', 'type': 'not_operator', 'children': ['286']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'has_elts'}; {'id': '287', 'type': 'block', 'children': ['288']}; {'id': '288', 'type': 'expression_statement', 'children': ['289']}; {'id': '289', 'type': 'call', 'children': ['290', '293']}; {'id': '290', 'type': 'attribute', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '293', 'type': 'argument_list', 'children': ['294']}; {'id': '294', 'type': 'string', 'children': [], 'value': '"/"'}; {'id': '295', 'type': 'expression_statement', 'children': ['296']}; {'id': '296', 'type': 'call', 'children': ['297', '300']}; {'id': '297', 'type': 'attribute', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '299', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '300', 'type': 'argument_list', 'children': ['301']}; {'id': '301', 'type': 'string', 'children': [], 'value': '">\\n"'}; {'id': '302', 'type': 'if_statement', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'has_elts'}; {'id': '304', 'type': 'block', 'children': ['305', '337']}; {'id': '305', 'type': 'for_statement', 'children': ['306', '307', '320']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '307', 'type': 'binary_operator', 'children': ['308', '318'], 'value': '+'}; {'id': '308', 'type': 'call', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '310', 'type': 'argument_list', 'children': ['311']}; {'id': '311', 'type': 'call', 'children': ['312', '317']}; {'id': '312', 'type': 'attribute', 'children': ['313', '316']}; {'id': '313', 'type': 'attribute', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'tag_elts'}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '317', 'type': 'argument_list', 'children': []}; {'id': '318', 'type': 'list', 'children': ['319'], 'value': '["annotations"]'}; {'id': '319', 'type': 'string', 'children': [], 'value': '"annotations"'}; {'id': '320', 'type': 'block', 'children': ['321']}; {'id': '321', 'type': 'for_statement', 'children': ['322', '323', '328']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'elt'}; {'id': '323', 'type': 'call', 'children': ['324', '325']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '325', 'type': 'argument_list', 'children': ['326', '327']}; {'id': '326', 'type': 'identifier', 'children': [], 'value': 'obj'}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'attrname'}; {'id': '328', 'type': 'block', 'children': ['329']}; {'id': '329', 'type': 'expression_statement', 'children': ['330']}; {'id': '330', 'type': 'call', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'to_string'}; {'id': '332', 'type': 'argument_list', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'elt'}; {'id': '334', 'type': 'binary_operator', 'children': ['335', '336'], 'value': '+'}; {'id': '335', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'indent_step'}; {'id': '337', 'type': 'expression_statement', 'children': ['338']}; {'id': '338', 'type': 'call', 'children': ['339', '342']}; {'id': '339', 'type': 'attribute', 'children': ['340', '341']}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '342', 'type': 'argument_list', 'children': ['343']}; {'id': '343', 'type': 'binary_operator', 'children': ['344', '351'], 'value': '+'}; {'id': '344', 'type': 'binary_operator', 'children': ['345', '350'], 'value': '+'}; {'id': '345', 'type': 'binary_operator', 'children': ['346', '349'], 'value': '+'}; {'id': '346', 'type': 'binary_operator', 'children': ['347', '348'], 'value': '*'}; {'id': '347', 'type': 'string', 'children': [], 'value': '" "'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'indent'}; {'id': '349', 'type': 'string', 'children': [], 'value': '"</"'}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'tag_name'}; {'id': '351', 'type': 'string', 'children': [], 'value': '">\\n"'}; {'id': '352', 'type': 'expression_statement', 'children': ['353']}; {'id': '353', 'type': 'call', 'children': ['354', '357']}; {'id': '354', 'type': 'attribute', 'children': ['355', '356']}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '357', 'type': 'argument_list', 'children': ['358']}; {'id': '358', 'type': 'attribute', 'children': ['359', '360']}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'DBUS'}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE'}; {'id': '361', 'type': 'expression_statement', 'children': ['362']}; {'id': '362', 'type': 'call', 'children': ['363', '366']}; {'id': '363', 'type': 'attribute', 'children': ['364', '365']}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '366', 'type': 'argument_list', 'children': ['367']}; {'id': '367', 'type': 'string', 'children': [], 'value': '"<node"'}; {'id': '368', 'type': 'if_statement', 'children': ['369', '374']}; {'id': '369', 'type': 'comparison_operator', 'children': ['370', '373'], 'value': '!='}; {'id': '370', 'type': 'attribute', 'children': ['371', '372']}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '373', 'type': 'None', 'children': []}; {'id': '374', 'type': 'block', 'children': ['375']}; {'id': '375', 'type': 'expression_statement', 'children': ['376']}; {'id': '376', 'type': 'call', 'children': ['377', '380']}; {'id': '377', 'type': 'attribute', 'children': ['378', '379']}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '379', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '380', 'type': 'argument_list', 'children': ['381']}; {'id': '381', 'type': 'binary_operator', 'children': ['382', '383'], 'value': '%'}; {'id': '382', 'type': 'string', 'children': [], 'value': '" name=%s"'}; {'id': '383', 'type': 'call', 'children': ['384', '385']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'quote_xml_attr'}; {'id': '385', 'type': 'argument_list', 'children': ['386']}; {'id': '386', 'type': 'attribute', 'children': ['387', '388']}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '389', 'type': 'expression_statement', 'children': ['390']}; {'id': '390', 'type': 'call', 'children': ['391', '394']}; {'id': '391', 'type': 'attribute', 'children': ['392', '393']}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '394', 'type': 'argument_list', 'children': ['395']}; {'id': '395', 'type': 'string', 'children': [], 'value': '">\\n"'}; {'id': '396', 'type': 'for_statement', 'children': ['397', '398', '401']}; {'id': '397', 'type': 'identifier', 'children': [], 'value': 'elt'}; {'id': '398', 'type': 'attribute', 'children': ['399', '400']}; {'id': '399', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '400', 'type': 'identifier', 'children': [], 'value': 'interfaces'}; {'id': '401', 'type': 'block', 'children': ['402']}; {'id': '402', 'type': 'expression_statement', 'children': ['403']}; {'id': '403', 'type': 'call', 'children': ['404', '405']}; {'id': '404', 'type': 'identifier', 'children': [], 'value': 'to_string'}; {'id': '405', 'type': 'argument_list', 'children': ['406', '407']}; {'id': '406', 'type': 'identifier', 'children': [], 'value': 'elt'}; {'id': '407', 'type': 'identifier', 'children': [], 'value': 'indent_step'}; {'id': '408', 'type': 'for_statement', 'children': ['409', '410', '413']}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'elt'}; {'id': '410', 'type': 'attribute', 'children': ['411', '412']}; {'id': '411', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '412', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '413', 'type': 'block', 'children': ['414']}; {'id': '414', 'type': 'expression_statement', 'children': ['415']}; {'id': '415', 'type': 'call', 'children': ['416', '417']}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'to_string'}; {'id': '417', 'type': 'argument_list', 'children': ['418', '419']}; {'id': '418', 'type': 'identifier', 'children': [], 'value': 'elt'}; {'id': '419', 'type': 'identifier', 'children': [], 'value': 'indent_step'}; {'id': '420', 'type': 'expression_statement', 'children': ['421']}; {'id': '421', 'type': 'call', 'children': ['422', '425']}; {'id': '422', 'type': 'attribute', 'children': ['423', '424']}; {'id': '423', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '424', 'type': 'identifier', 'children': [], 'value': 'write'}; {'id': '425', 'type': 'argument_list', 'children': ['426']}; {'id': '426', 'type': 'string', 'children': [], 'value': '"</node>\\n"'}; {'id': '427', 'type': 'return_statement', 'children': ['428', '429']}; {'id': '428', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '429', 'type': 'call', 'children': ['430', '433']}; {'id': '430', 'type': 'attribute', 'children': ['431', '432']}; {'id': '431', 'type': 'identifier', 'children': [], 'value': 'out'}; {'id': '432', 'type': 'identifier', 'children': [], 'value': 'getvalue'}; {'id': '433', 'type': 'argument_list', 'children': []}
returns an XML string description of this Introspection tree.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'format_args'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '6', 'type': 'block', 'children': ['7', '9', '195', '199', '217', '226']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'string', 'children': [], 'value': "'''Format a D-Bus argument tuple into an appropriate logging string.'''"}; {'id': '9', 'type': 'function_definition', 'children': ['10', '11', '13']}; {'id': '10', 'type': 'function_name', 'children': [], 'value': 'format_arg'}; {'id': '11', 'type': 'parameters', 'children': ['12']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '13', 'type': 'block', 'children': ['14', '31', '48', '66', '82', '109', '134', '190']}; {'id': '14', 'type': 'if_statement', 'children': ['15', '22']}; {'id': '15', 'type': 'call', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '17', 'type': 'argument_list', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'dbus'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'Boolean'}; {'id': '22', 'type': 'block', 'children': ['23']}; {'id': '23', 'type': 'return_statement', 'children': ['24']}; {'id': '24', 'type': 'call', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '26', 'type': 'argument_list', 'children': ['27']}; {'id': '27', 'type': 'call', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'bool'}; {'id': '29', 'type': 'argument_list', 'children': ['30']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '31', 'type': 'if_statement', 'children': ['32', '39']}; {'id': '32', 'type': 'call', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '34', 'type': 'argument_list', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '36', 'type': 'attribute', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'dbus'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'Byte'}; {'id': '39', 'type': 'block', 'children': ['40']}; {'id': '40', 'type': 'return_statement', 'children': ['41']}; {'id': '41', 'type': 'call', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '43', 'type': 'argument_list', 'children': ['44']}; {'id': '44', 'type': 'call', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '46', 'type': 'argument_list', 'children': ['47']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '48', 'type': 'if_statement', 'children': ['49', '60']}; {'id': '49', 'type': 'boolean_operator', 'children': ['50', '55'], 'value': 'or'}; {'id': '50', 'type': 'call', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '52', 'type': 'argument_list', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'int'}; {'id': '55', 'type': 'call', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '57', 'type': 'argument_list', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'long'}; {'id': '60', 'type': 'block', 'children': ['61']}; {'id': '61', 'type': 'return_statement', 'children': ['62']}; {'id': '62', 'type': 'call', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '64', 'type': 'argument_list', 'children': ['65']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '66', 'type': 'if_statement', 'children': ['67', '72']}; {'id': '67', 'type': 'call', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '69', 'type': 'argument_list', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '72', 'type': 'block', 'children': ['73']}; {'id': '73', 'type': 'return_statement', 'children': ['74']}; {'id': '74', 'type': 'binary_operator', 'children': ['75', '81'], 'value': '+'}; {'id': '75', 'type': 'binary_operator', 'children': ['76', '77'], 'value': '+'}; {'id': '76', 'type': 'string', 'children': [], 'value': '\'"\''}; {'id': '77', 'type': 'call', 'children': ['78', '79']}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '79', 'type': 'argument_list', 'children': ['80']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '81', 'type': 'string', 'children': [], 'value': '\'"\''}; {'id': '82', 'type': 'if_statement', 'children': ['83', '88']}; {'id': '83', 'type': 'call', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '85', 'type': 'argument_list', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'unicode'}; {'id': '88', 'type': 'block', 'children': ['89']}; {'id': '89', 'type': 'return_statement', 'children': ['90']}; {'id': '90', 'type': 'binary_operator', 'children': ['91', '108'], 'value': '+'}; {'id': '91', 'type': 'binary_operator', 'children': ['92', '93'], 'value': '+'}; {'id': '92', 'type': 'string', 'children': [], 'value': '\'"\''}; {'id': '93', 'type': 'subscript', 'children': ['94', '103']}; {'id': '94', 'type': 'call', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '96', 'type': 'argument_list', 'children': ['97']}; {'id': '97', 'type': 'call', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'encode'}; {'id': '101', 'type': 'argument_list', 'children': ['102']}; {'id': '102', 'type': 'string', 'children': [], 'value': "'UTF-8'"}; {'id': '103', 'type': 'slice', 'children': ['104', '105', '106']}; {'id': '104', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '105', 'type': 'colon', 'children': []}; {'id': '106', 'type': 'unary_operator', 'children': ['107'], 'value': '-'}; {'id': '107', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '108', 'type': 'string', 'children': [], 'value': '\'"\''}; {'id': '109', 'type': 'if_statement', 'children': ['110', '115']}; {'id': '110', 'type': 'call', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '112', 'type': 'argument_list', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '115', 'type': 'block', 'children': ['116']}; {'id': '116', 'type': 'return_statement', 'children': ['117']}; {'id': '117', 'type': 'binary_operator', 'children': ['118', '133'], 'value': '+'}; {'id': '118', 'type': 'binary_operator', 'children': ['119', '120'], 'value': '+'}; {'id': '119', 'type': 'string', 'children': [], 'value': "'['"}; {'id': '120', 'type': 'call', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'list_comprehension', 'children': ['126', '130']}; {'id': '126', 'type': 'call', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'format_arg'}; {'id': '128', 'type': 'argument_list', 'children': ['129']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '130', 'type': 'for_in_clause', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '133', 'type': 'string', 'children': [], 'value': "']'"}; {'id': '134', 'type': 'if_statement', 'children': ['135', '140']}; {'id': '135', 'type': 'call', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '137', 'type': 'argument_list', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'dict'}; {'id': '140', 'type': 'block', 'children': ['141', '145', '149', '186']}; {'id': '141', 'type': 'expression_statement', 'children': ['142']}; {'id': '142', 'type': 'assignment', 'children': ['143', '144']}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'fmta'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'{'"}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'assignment', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'first'}; {'id': '148', 'type': 'True', 'children': []}; {'id': '149', 'type': 'for_statement', 'children': ['150', '153', '158']}; {'id': '150', 'type': 'pattern_list', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '153', 'type': 'call', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '157', 'type': 'argument_list', 'children': []}; {'id': '158', 'type': 'block', 'children': ['159', '172']}; {'id': '159', 'type': 'if_statement', 'children': ['160', '161', '166']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'first'}; {'id': '161', 'type': 'block', 'children': ['162']}; {'id': '162', 'type': 'expression_statement', 'children': ['163']}; {'id': '163', 'type': 'assignment', 'children': ['164', '165']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'first'}; {'id': '165', 'type': 'False', 'children': []}; {'id': '166', 'type': 'else_clause', 'children': ['167']}; {'id': '167', 'type': 'block', 'children': ['168']}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'augmented_assignment', 'children': ['170', '171'], 'value': '+='}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'fmta'}; {'id': '171', 'type': 'string', 'children': [], 'value': "', '"}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'augmented_assignment', 'children': ['174', '175'], 'value': '+='}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'fmta'}; {'id': '175', 'type': 'binary_operator', 'children': ['176', '182'], 'value': '+'}; {'id': '176', 'type': 'binary_operator', 'children': ['177', '181'], 'value': '+'}; {'id': '177', 'type': 'call', 'children': ['178', '179']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'format_arg'}; {'id': '179', 'type': 'argument_list', 'children': ['180']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '181', 'type': 'string', 'children': [], 'value': "': '"}; {'id': '182', 'type': 'call', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'format_arg'}; {'id': '184', 'type': 'argument_list', 'children': ['185']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '186', 'type': 'return_statement', 'children': ['187']}; {'id': '187', 'type': 'binary_operator', 'children': ['188', '189'], 'value': '+'}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'fmta'}; {'id': '189', 'type': 'string', 'children': [], 'value': "'}'"}; {'id': '190', 'type': 'return_statement', 'children': ['191']}; {'id': '191', 'type': 'call', 'children': ['192', '193']}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'repr'}; {'id': '193', 'type': 'argument_list', 'children': ['194']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '195', 'type': 'expression_statement', 'children': ['196']}; {'id': '196', 'type': 'assignment', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '198', 'type': 'string', 'children': [], 'value': "''"}; {'id': '199', 'type': 'for_statement', 'children': ['200', '201', '202']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'args'}; {'id': '202', 'type': 'block', 'children': ['203', '210']}; {'id': '203', 'type': 'if_statement', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '205', 'type': 'block', 'children': ['206']}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'augmented_assignment', 'children': ['208', '209'], 'value': '+='}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '209', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'augmented_assignment', 'children': ['212', '213'], 'value': '+='}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '213', 'type': 'call', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'format_arg'}; {'id': '215', 'type': 'argument_list', 'children': ['216']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'a'}; {'id': '217', 'type': 'if_statement', 'children': ['218', '219']}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '219', 'type': 'block', 'children': ['220']}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '223', 'type': 'binary_operator', 'children': ['224', '225'], 'value': '+'}; {'id': '224', 'type': 'string', 'children': [], 'value': "' '"}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 's'}; {'id': '226', 'type': 'return_statement', 'children': ['227']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 's'}
Format a D-Bus argument tuple into an appropriate logging string.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '11']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'singularize'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '5', 'type': 'default_parameter', 'children': ['6', '7']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'NOUN'}; {'id': '8', 'type': 'default_parameter', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'custom'}; {'id': '10', 'type': 'None', 'children': []}; {'id': '11', 'type': 'block', 'children': ['12', '23', '73', '93', '101', '115', '129', '150', '177', '249']}; {'id': '12', 'type': 'if_statement', 'children': ['13', '18']}; {'id': '13', 'type': 'boolean_operator', 'children': ['14', '15'], 'value': 'and'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'custom'}; {'id': '15', 'type': 'comparison_operator', 'children': ['16', '17'], 'value': 'in'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'custom'}; {'id': '18', 'type': 'block', 'children': ['19']}; {'id': '19', 'type': 'return_statement', 'children': ['20']}; {'id': '20', 'type': 'subscript', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'custom'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '23', 'type': 'if_statement', 'children': ['24', '27']}; {'id': '24', 'type': 'comparison_operator', 'children': ['25', '26'], 'value': 'in'}; {'id': '25', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '27', 'type': 'block', 'children': ['28', '37']}; {'id': '28', 'type': 'expression_statement', 'children': ['29']}; {'id': '29', 'type': 'assignment', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '31', 'type': 'call', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'split'}; {'id': '35', 'type': 'argument_list', 'children': ['36']}; {'id': '36', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '37', 'type': 'if_statement', 'children': ['38', '50']}; {'id': '38', 'type': 'boolean_operator', 'children': ['39', '45'], 'value': 'and'}; {'id': '39', 'type': 'comparison_operator', 'children': ['40', '44'], 'value': '>'}; {'id': '40', 'type': 'call', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '42', 'type': 'argument_list', 'children': ['43']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '44', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '45', 'type': 'comparison_operator', 'children': ['46', '49'], 'value': 'in'}; {'id': '46', 'type': 'subscript', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '48', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'plural_prepositions'}; {'id': '50', 'type': 'block', 'children': ['51']}; {'id': '51', 'type': 'return_statement', 'children': ['52']}; {'id': '52', 'type': 'binary_operator', 'children': ['53', '63'], 'value': '+'}; {'id': '53', 'type': 'binary_operator', 'children': ['54', '62'], 'value': '+'}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'singularize'}; {'id': '56', 'type': 'argument_list', 'children': ['57', '60', '61']}; {'id': '57', 'type': 'subscript', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '59', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'pos'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'custom'}; {'id': '62', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '63', 'type': 'call', 'children': ['64', '67']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'string', 'children': [], 'value': '"-"'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'join'}; {'id': '67', 'type': 'argument_list', 'children': ['68']}; {'id': '68', 'type': 'subscript', 'children': ['69', '70']}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '70', 'type': 'slice', 'children': ['71', '72']}; {'id': '71', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '72', 'type': 'colon', 'children': []}; {'id': '73', 'type': 'if_statement', 'children': ['74', '80']}; {'id': '74', 'type': 'call', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '78', 'type': 'argument_list', 'children': ['79']}; {'id': '79', 'type': 'string', 'children': [], 'value': '"\'"'}; {'id': '80', 'type': 'block', 'children': ['81']}; {'id': '81', 'type': 'return_statement', 'children': ['82']}; {'id': '82', 'type': 'binary_operator', 'children': ['83', '92'], 'value': '+'}; {'id': '83', 'type': 'call', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'singularize'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'subscript', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '88', 'type': 'slice', 'children': ['89', '90']}; {'id': '89', 'type': 'colon', 'children': []}; {'id': '90', 'type': 'unary_operator', 'children': ['91'], 'value': '-'}; {'id': '91', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '92', 'type': 'string', 'children': [], 'value': '"\'s"'}; {'id': '93', 'type': 'expression_statement', 'children': ['94']}; {'id': '94', 'type': 'assignment', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '96', 'type': 'call', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '100', 'type': 'argument_list', 'children': []}; {'id': '101', 'type': 'for_statement', 'children': ['102', '103', '104']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'singular_uninflected'}; {'id': '104', 'type': 'block', 'children': ['105']}; {'id': '105', 'type': 'if_statement', 'children': ['106', '112']}; {'id': '106', 'type': 'call', 'children': ['107', '110']}; {'id': '107', 'type': 'attribute', 'children': ['108', '109']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '110', 'type': 'argument_list', 'children': ['111']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '112', 'type': 'block', 'children': ['113']}; {'id': '113', 'type': 'return_statement', 'children': ['114']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '115', 'type': 'for_statement', 'children': ['116', '117', '118']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'singular_uncountable'}; {'id': '118', 'type': 'block', 'children': ['119']}; {'id': '119', 'type': 'if_statement', 'children': ['120', '126']}; {'id': '120', 'type': 'call', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '126', 'type': 'block', 'children': ['127']}; {'id': '127', 'type': 'return_statement', 'children': ['128']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '129', 'type': 'for_statement', 'children': ['130', '131', '132']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'singular_ie'}; {'id': '132', 'type': 'block', 'children': ['133']}; {'id': '133', 'type': 'if_statement', 'children': ['134', '142']}; {'id': '134', 'type': 'call', 'children': ['135', '138']}; {'id': '135', 'type': 'attribute', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '138', 'type': 'argument_list', 'children': ['139']}; {'id': '139', 'type': 'binary_operator', 'children': ['140', '141'], 'value': '+'}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '141', 'type': 'string', 'children': [], 'value': '"s"'}; {'id': '142', 'type': 'block', 'children': ['143']}; {'id': '143', 'type': 'return_statement', 'children': ['144']}; {'id': '144', 'type': 'subscript', 'children': ['145', '146']}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '146', 'type': 'slice', 'children': ['147', '148']}; {'id': '147', 'type': 'colon', 'children': []}; {'id': '148', 'type': 'unary_operator', 'children': ['149'], 'value': '-'}; {'id': '149', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '150', 'type': 'for_statement', 'children': ['151', '152', '153']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'singular_irregular'}; {'id': '153', 'type': 'block', 'children': ['154']}; {'id': '154', 'type': 'if_statement', 'children': ['155', '161']}; {'id': '155', 'type': 'call', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '161', 'type': 'block', 'children': ['162']}; {'id': '162', 'type': 'return_statement', 'children': ['163']}; {'id': '163', 'type': 'call', 'children': ['164', '167']}; {'id': '164', 'type': 'attribute', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '167', 'type': 'argument_list', 'children': ['168', '173', '176']}; {'id': '168', 'type': 'binary_operator', 'children': ['169', '172'], 'value': '+'}; {'id': '169', 'type': 'binary_operator', 'children': ['170', '171'], 'value': '+'}; {'id': '170', 'type': 'string', 'children': [], 'value': "'(?i)'"}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '172', 'type': 'string', 'children': [], 'value': "'$'"}; {'id': '173', 'type': 'subscript', 'children': ['174', '175']}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'singular_irregular'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '177', 'type': 'for_statement', 'children': ['178', '181', '182']}; {'id': '178', 'type': 'pattern_list', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'inflection'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'singular_rules'}; {'id': '182', 'type': 'block', 'children': ['183', '192', '204']}; {'id': '183', 'type': 'expression_statement', 'children': ['184']}; {'id': '184', 'type': 'assignment', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '186', 'type': 'call', 'children': ['187', '190']}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'search'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '192', 'type': 'expression_statement', 'children': ['193']}; {'id': '193', 'type': 'assignment', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'g'}; {'id': '195', 'type': 'boolean_operator', 'children': ['196', '203'], 'value': 'or'}; {'id': '196', 'type': 'boolean_operator', 'children': ['197', '198'], 'value': 'and'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '198', 'type': 'call', 'children': ['199', '202']}; {'id': '199', 'type': 'attribute', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'groups'}; {'id': '202', 'type': 'argument_list', 'children': []}; {'id': '203', 'type': 'list', 'children': [], 'value': '[]'}; {'id': '204', 'type': 'if_statement', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '206', 'type': 'block', 'children': ['207', '241']}; {'id': '207', 'type': 'for_statement', 'children': ['208', '209', '216']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '209', 'type': 'call', 'children': ['210', '211']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'range'}; {'id': '211', 'type': 'argument_list', 'children': ['212']}; {'id': '212', 'type': 'call', 'children': ['213', '214']}; {'id': '213', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '214', 'type': 'argument_list', 'children': ['215']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'g'}; {'id': '216', 'type': 'block', 'children': ['217']}; {'id': '217', 'type': 'if_statement', 'children': ['218', '223']}; {'id': '218', 'type': 'comparison_operator', 'children': ['219', '222'], 'value': 'is'}; {'id': '219', 'type': 'subscript', 'children': ['220', '221']}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'g'}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '222', 'type': 'None', 'children': []}; {'id': '223', 'type': 'block', 'children': ['224']}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '227']}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'inflection'}; {'id': '227', 'type': 'call', 'children': ['228', '231']}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'inflection'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '231', 'type': 'argument_list', 'children': ['232', '240']}; {'id': '232', 'type': 'binary_operator', 'children': ['233', '234'], 'value': '+'}; {'id': '233', 'type': 'string', 'children': [], 'value': "'\\\\'"}; {'id': '234', 'type': 'call', 'children': ['235', '236']}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '236', 'type': 'argument_list', 'children': ['237']}; {'id': '237', 'type': 'binary_operator', 'children': ['238', '239'], 'value': '+'}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '239', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '240', 'type': 'string', 'children': [], 'value': "''"}; {'id': '241', 'type': 'return_statement', 'children': ['242']}; {'id': '242', 'type': 'call', 'children': ['243', '246']}; {'id': '243', 'type': 'attribute', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'suffix'}; {'id': '245', 'type': 'identifier', 'children': [], 'value': 'sub'}; {'id': '246', 'type': 'argument_list', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'inflection'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'word'}; {'id': '249', 'type': 'return_statement', 'children': ['250']}; {'id': '250', 'type': 'identifier', 'children': [], 'value': 'word'}
Returns the singular of a given word.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'build_tree'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '12', '24', '345']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '10']}; {'id': '7', 'type': 'attribute', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'built'}; {'id': '10', 'type': 'block', 'children': ['11']}; {'id': '11', 'type': 'return_statement', 'children': []}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '17']}; {'id': '14', 'type': 'attribute', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '17', 'type': 'call', 'children': ['18', '23']}; {'id': '18', 'type': 'attribute', 'children': ['19', '22']}; {'id': '19', 'type': 'attribute', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '23', 'type': 'argument_list', 'children': []}; {'id': '24', 'type': 'for_statement', 'children': ['25', '26', '31']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'sorted_fields'}; {'id': '30', 'type': 'argument_list', 'children': []}; {'id': '31', 'type': 'block', 'children': ['32', '40', '48']}; {'id': '32', 'type': 'if_statement', 'children': ['33', '38']}; {'id': '33', 'type': 'comparison_operator', 'children': ['34', '35'], 'value': 'not'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': '_fields'}; {'id': '38', 'type': 'block', 'children': ['39']}; {'id': '39', 'type': 'continue_statement', 'children': []}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'assignment', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '43', 'type': 'subscript', 'children': ['44', '47']}; {'id': '44', 'type': 'attribute', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '46', 'type': 'identifier', 'children': [], 'value': '_fields'}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'key'}; {'id': '48', 'type': 'if_statement', 'children': ['49', '54']}; {'id': '49', 'type': 'comparison_operator', 'children': ['50', '51'], 'value': '!='}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '51', 'type': 'attribute', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '54', 'type': 'block', 'children': ['55']}; {'id': '55', 'type': 'if_statement', 'children': ['56', '61', '99', '224', '281']}; {'id': '56', 'type': 'call', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '58', 'type': 'argument_list', 'children': ['59', '60']}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'XmlModel'}; {'id': '61', 'type': 'block', 'children': ['62', '68', '88']}; {'id': '62', 'type': 'expression_statement', 'children': ['63']}; {'id': '63', 'type': 'call', 'children': ['64', '67']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'build_tree'}; {'id': '67', 'type': 'argument_list', 'children': []}; {'id': '68', 'type': 'if_statement', 'children': ['69', '86']}; {'id': '69', 'type': '()', 'children': ['70']}; {'id': '70', 'type': 'boolean_operator', 'children': ['71', '78'], 'value': 'and'}; {'id': '71', 'type': 'boolean_operator', 'children': ['72', '75'], 'value': 'and'}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'drop_empty'}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'drop_empty'}; {'id': '78', 'type': 'comparison_operator', 'children': ['79', '85'], 'value': '=='}; {'id': '79', 'type': 'call', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '81', 'type': 'argument_list', 'children': ['82']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '85', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '86', 'type': 'block', 'children': ['87']}; {'id': '87', 'type': 'continue_statement', 'children': []}; {'id': '88', 'type': 'expression_statement', 'children': ['89']}; {'id': '89', 'type': 'call', 'children': ['90', '95']}; {'id': '90', 'type': 'attribute', 'children': ['91', '94']}; {'id': '91', 'type': 'attribute', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '95', 'type': 'argument_list', 'children': ['96']}; {'id': '96', 'type': 'attribute', 'children': ['97', '98']}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '99', 'type': 'elif_clause', 'children': ['100', '105']}; {'id': '100', 'type': 'call', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '102', 'type': 'argument_list', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '105', 'type': 'block', 'children': ['106']}; {'id': '106', 'type': 'for_statement', 'children': ['107', '108', '109']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '109', 'type': 'block', 'children': ['110', '220']}; {'id': '110', 'type': 'if_statement', 'children': ['111', '116', '147', '186']}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '113', 'type': 'argument_list', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'XmlField'}; {'id': '116', 'type': 'block', 'children': ['117', '125', '138']}; {'id': '117', 'type': 'expression_statement', 'children': ['118']}; {'id': '118', 'type': 'assignment', 'children': ['119', '120']}; {'id': '119', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '120', 'type': 'call', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '124', 'type': 'argument_list', 'children': []}; {'id': '125', 'type': 'if_statement', 'children': ['126', '136']}; {'id': '126', 'type': 'boolean_operator', 'children': ['127', '130'], 'value': 'and'}; {'id': '127', 'type': 'attribute', 'children': ['128', '129']}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'drop_empty'}; {'id': '130', 'type': 'comparison_operator', 'children': ['131', '135'], 'value': '=='}; {'id': '131', 'type': 'call', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '133', 'type': 'argument_list', 'children': ['134']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '135', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '136', 'type': 'block', 'children': ['137']}; {'id': '137', 'type': 'continue_statement', 'children': []}; {'id': '138', 'type': 'expression_statement', 'children': ['139']}; {'id': '139', 'type': 'call', 'children': ['140', '145']}; {'id': '140', 'type': 'attribute', 'children': ['141', '144']}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '145', 'type': 'argument_list', 'children': ['146']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '147', 'type': 'elif_clause', 'children': ['148', '153']}; {'id': '148', 'type': 'call', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '150', 'type': 'argument_list', 'children': ['151', '152']}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'XmlModel'}; {'id': '153', 'type': 'block', 'children': ['154', '160', '175']}; {'id': '154', 'type': 'expression_statement', 'children': ['155']}; {'id': '155', 'type': 'call', 'children': ['156', '159']}; {'id': '156', 'type': 'attribute', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'build_tree'}; {'id': '159', 'type': 'argument_list', 'children': []}; {'id': '160', 'type': 'if_statement', 'children': ['161', '173']}; {'id': '161', 'type': 'boolean_operator', 'children': ['162', '165'], 'value': 'and'}; {'id': '162', 'type': 'attribute', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'drop_empty'}; {'id': '165', 'type': 'comparison_operator', 'children': ['166', '172'], 'value': '=='}; {'id': '166', 'type': 'call', 'children': ['167', '168']}; {'id': '167', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '168', 'type': 'argument_list', 'children': ['169']}; {'id': '169', 'type': 'attribute', 'children': ['170', '171']}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '172', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '173', 'type': 'block', 'children': ['174']}; {'id': '174', 'type': 'continue_statement', 'children': []}; {'id': '175', 'type': 'expression_statement', 'children': ['176']}; {'id': '176', 'type': 'call', 'children': ['177', '182']}; {'id': '177', 'type': 'attribute', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '182', 'type': 'argument_list', 'children': ['183']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '186', 'type': 'elif_clause', 'children': ['187', '198']}; {'id': '187', 'type': 'call', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'isinstance'}; {'id': '189', 'type': 'argument_list', 'children': ['190', '191']}; {'id': '190', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '191', 'type': 'tuple', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'text_type'}; {'id': '195', 'type': 'attribute', 'children': ['196', '197']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'six'}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'string_types'}; {'id': '198', 'type': 'block', 'children': ['199', '211']}; {'id': '199', 'type': 'expression_statement', 'children': ['200']}; {'id': '200', 'type': 'assignment', 'children': ['201', '202']}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '202', 'type': 'call', 'children': ['203', '206']}; {'id': '203', 'type': 'attribute', 'children': ['204', '205']}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'etree'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'fromstring'}; {'id': '206', 'type': 'argument_list', 'children': ['207']}; {'id': '207', 'type': 'call', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'clean_xml'}; {'id': '209', 'type': 'argument_list', 'children': ['210']}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '211', 'type': 'expression_statement', 'children': ['212']}; {'id': '212', 'type': 'call', 'children': ['213', '218']}; {'id': '213', 'type': 'attribute', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'append'}; {'id': '218', 'type': 'argument_list', 'children': ['219']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '220', 'type': 'expression_statement', 'children': ['221']}; {'id': '221', 'type': 'assignment', 'children': ['222', '223']}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'item'}; {'id': '223', 'type': 'None', 'children': []}; {'id': '224', 'type': 'elif_clause', 'children': ['225', '241']}; {'id': '225', 'type': 'comparison_operator', 'children': ['226', '236'], 'value': '=='}; {'id': '226', 'type': '()', 'children': ['227']}; {'id': '227', 'type': 'boolean_operator', 'children': ['228', '231'], 'value': 'or'}; {'id': '228', 'type': 'attribute', 'children': ['229', '230']}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '231', 'type': 'attribute', 'children': ['232', '235']}; {'id': '232', 'type': 'attribute', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '236', 'type': 'attribute', 'children': ['237', '240']}; {'id': '237', 'type': 'attribute', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '239', 'type': 'identifier', 'children': [], 'value': 'root'}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '241', 'type': 'block', 'children': ['242', '250', '268']}; {'id': '242', 'type': 'expression_statement', 'children': ['243']}; {'id': '243', 'type': 'assignment', 'children': ['244', '245']}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '245', 'type': 'call', 'children': ['246', '249']}; {'id': '246', 'type': 'attribute', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '249', 'type': 'argument_list', 'children': []}; {'id': '250', 'type': 'if_statement', 'children': ['251', '266']}; {'id': '251', 'type': 'boolean_operator', 'children': ['252', '262'], 'value': 'and'}; {'id': '252', 'type': 'boolean_operator', 'children': ['253', '256'], 'value': 'and'}; {'id': '253', 'type': 'attribute', 'children': ['254', '255']}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'drop_empty'}; {'id': '256', 'type': 'comparison_operator', 'children': ['257', '261'], 'value': '=='}; {'id': '257', 'type': 'call', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '259', 'type': 'argument_list', 'children': ['260']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '261', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '262', 'type': 'not_operator', 'children': ['263']}; {'id': '263', 'type': 'attribute', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '265', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '266', 'type': 'block', 'children': ['267']}; {'id': '267', 'type': 'continue_statement', 'children': []}; {'id': '268', 'type': 'expression_statement', 'children': ['269']}; {'id': '269', 'type': 'assignment', 'children': ['270', '271']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '271', 'type': 'call', 'children': ['272', '275']}; {'id': '272', 'type': 'attribute', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '275', 'type': 'argument_list', 'children': ['276']}; {'id': '276', 'type': 'keyword_argument', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '278', 'type': 'attribute', 'children': ['279', '280']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '281', 'type': 'else_clause', 'children': ['282']}; {'id': '282', 'type': 'block', 'children': ['283', '302']}; {'id': '283', 'type': 'expression_statement', 'children': ['284']}; {'id': '284', 'type': 'assignment', 'children': ['285', '286']}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '286', 'type': 'list_comprehension', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '288', 'type': 'for_in_clause', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '290', 'type': 'call', 'children': ['291', '296']}; {'id': '291', 'type': 'attribute', 'children': ['292', '295']}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'doc_root'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'iterdescendants'}; {'id': '296', 'type': 'argument_list', 'children': ['297']}; {'id': '297', 'type': 'keyword_argument', 'children': ['298', '299']}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'tag'}; {'id': '299', 'type': 'attribute', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '302', 'type': 'if_statement', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '304', 'type': 'block', 'children': ['305', '313', '332']}; {'id': '305', 'type': 'expression_statement', 'children': ['306']}; {'id': '306', 'type': 'assignment', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '308', 'type': 'call', 'children': ['309', '312']}; {'id': '309', 'type': 'attribute', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '312', 'type': 'argument_list', 'children': []}; {'id': '313', 'type': 'if_statement', 'children': ['314', '330']}; {'id': '314', 'type': '()', 'children': ['315']}; {'id': '315', 'type': 'boolean_operator', 'children': ['316', '326'], 'value': 'and'}; {'id': '316', 'type': 'boolean_operator', 'children': ['317', '320'], 'value': 'and'}; {'id': '317', 'type': 'attribute', 'children': ['318', '319']}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'drop_empty'}; {'id': '320', 'type': 'comparison_operator', 'children': ['321', '325'], 'value': '=='}; {'id': '321', 'type': 'call', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '323', 'type': 'argument_list', 'children': ['324']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '325', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '326', 'type': 'not_operator', 'children': ['327']}; {'id': '327', 'type': 'attribute', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'text'}; {'id': '330', 'type': 'block', 'children': ['331']}; {'id': '331', 'type': 'continue_statement', 'children': []}; {'id': '332', 'type': 'expression_statement', 'children': ['333']}; {'id': '333', 'type': 'assignment', 'children': ['334', '335']}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'ele'}; {'id': '335', 'type': 'call', 'children': ['336', '339']}; {'id': '336', 'type': 'attribute', 'children': ['337', '338']}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'field'}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'element'}; {'id': '339', 'type': 'argument_list', 'children': ['340']}; {'id': '340', 'type': 'keyword_argument', 'children': ['341', '342']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'parent'}; {'id': '342', 'type': 'subscript', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'nodes'}; {'id': '344', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '345', 'type': 'expression_statement', 'children': ['346']}; {'id': '346', 'type': 'assignment', 'children': ['347', '350']}; {'id': '347', 'type': 'attribute', 'children': ['348', '349']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'built'}; {'id': '350', 'type': 'True', 'children': []}
Bulids the tree with all the fields converted to Elements
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'now'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '10', '31', '54', '64']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '9', 'type': 'None', 'children': []}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '13', 'type': 'call', 'children': ['14', '19']}; {'id': '14', 'type': 'attribute', 'children': ['15', '18']}; {'id': '15', 'type': 'attribute', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'datetime'}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'datetime'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '19', 'type': 'argument_list', 'children': ['20']}; {'id': '20', 'type': 'keyword_argument', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'tz'}; {'id': '22', 'type': 'attribute', 'children': ['23', '30']}; {'id': '23', 'type': 'attribute', 'children': ['24', '29']}; {'id': '24', 'type': 'subscript', 'children': ['25', '28']}; {'id': '25', 'type': 'attribute', 'children': ['26', '27']}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '28', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'date'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'tzinfo'}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'for_total_seconds'}; {'id': '34', 'type': 'binary_operator', 'children': ['35', '36', '37'], 'value': '-'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '36', 'type': 'line_continuation', 'children': [], 'value': '\\'}; {'id': '37', 'type': 'call', 'children': ['38', '41']}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '41', 'type': 'argument_list', 'children': ['42', '45', '48', '51']}; {'id': '42', 'type': 'keyword_argument', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'hour'}; {'id': '44', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '45', 'type': 'keyword_argument', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'minute'}; {'id': '47', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '48', 'type': 'keyword_argument', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'second'}; {'id': '50', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '51', 'type': 'keyword_argument', 'children': ['52', '53']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'microsecond'}; {'id': '53', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '54', 'type': 'expression_statement', 'children': ['55']}; {'id': '55', 'type': 'assignment', 'children': ['56', '57']}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'msm'}; {'id': '57', 'type': 'binary_operator', 'children': ['58', '63'], 'value': '/'}; {'id': '58', 'type': 'call', 'children': ['59', '62']}; {'id': '59', 'type': 'attribute', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'for_total_seconds'}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'total_seconds'}; {'id': '62', 'type': 'argument_list', 'children': []}; {'id': '63', 'type': 'integer', 'children': [], 'value': '60'}; {'id': '64', 'type': 'if_statement', 'children': ['65', '84', '109', '149']}; {'id': '65', 'type': 'comparison_operator', 'children': ['66', '78'], 'value': '=='}; {'id': '66', 'type': 'call', 'children': ['67', '76']}; {'id': '67', 'type': 'attribute', 'children': ['68', '75']}; {'id': '68', 'type': 'attribute', 'children': ['69', '74']}; {'id': '69', 'type': 'subscript', 'children': ['70', '73']}; {'id': '70', 'type': 'attribute', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '72', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '73', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'date'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'strftime'}; {'id': '76', 'type': 'argument_list', 'children': ['77']}; {'id': '77', 'type': 'string', 'children': [], 'value': '"%Y-%m-%dZ"'}; {'id': '78', 'type': 'call', 'children': ['79', '82']}; {'id': '79', 'type': 'attribute', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '81', 'type': 'identifier', 'children': [], 'value': 'strftime'}; {'id': '82', 'type': 'argument_list', 'children': ['83']}; {'id': '83', 'type': 'string', 'children': [], 'value': '"%Y-%m-%dZ"'}; {'id': '84', 'type': 'block', 'children': ['85', '107']}; {'id': '85', 'type': 'for_statement', 'children': ['86', '87', '94']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'timestep'}; {'id': '87', 'type': 'attribute', 'children': ['88', '93']}; {'id': '88', 'type': 'subscript', 'children': ['89', '92']}; {'id': '89', 'type': 'attribute', 'children': ['90', '91']}; {'id': '90', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '92', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '93', 'type': 'identifier', 'children': [], 'value': 'timesteps'}; {'id': '94', 'type': 'block', 'children': ['95', '103']}; {'id': '95', 'type': 'if_statement', 'children': ['96', '101']}; {'id': '96', 'type': 'comparison_operator', 'children': ['97', '100'], 'value': '>'}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'timestep'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'msm'}; {'id': '101', 'type': 'block', 'children': ['102']}; {'id': '102', 'type': 'break_statement', 'children': []}; {'id': '103', 'type': 'expression_statement', 'children': ['104']}; {'id': '104', 'type': 'assignment', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'timestep'}; {'id': '107', 'type': 'return_statement', 'children': ['108']}; {'id': '108', 'type': 'identifier', 'children': [], 'value': 'now'}; {'id': '109', 'type': 'elif_clause', 'children': ['110', '133']}; {'id': '110', 'type': 'comparison_operator', 'children': ['111', '132'], 'value': '<'}; {'id': '111', 'type': 'call', 'children': ['112', '131']}; {'id': '112', 'type': 'attribute', 'children': ['113', '130']}; {'id': '113', 'type': 'call', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '115', 'type': 'argument_list', 'children': ['116']}; {'id': '116', 'type': 'binary_operator', 'children': ['117', '129'], 'value': '-'}; {'id': '117', 'type': 'attribute', 'children': ['118', '128']}; {'id': '118', 'type': 'subscript', 'children': ['119', '126']}; {'id': '119', 'type': 'attribute', 'children': ['120', '125']}; {'id': '120', 'type': 'subscript', 'children': ['121', '124']}; {'id': '121', 'type': 'attribute', 'children': ['122', '123']}; {'id': '122', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '124', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'timesteps'}; {'id': '126', 'type': 'unary_operator', 'children': ['127'], 'value': '-'}; {'id': '127', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '128', 'type': 'identifier', 'children': [], 'value': 'date'}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'total_seconds'}; {'id': '131', 'type': 'argument_list', 'children': []}; {'id': '132', 'type': 'integer', 'children': [], 'value': '14400'}; {'id': '133', 'type': 'block', 'children': ['134', '147']}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'assignment', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'timestep_to_return'}; {'id': '137', 'type': 'subscript', 'children': ['138', '145']}; {'id': '138', 'type': 'attribute', 'children': ['139', '144']}; {'id': '139', 'type': 'subscript', 'children': ['140', '143']}; {'id': '140', 'type': 'attribute', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'days'}; {'id': '143', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'timesteps'}; {'id': '145', 'type': 'unary_operator', 'children': ['146'], 'value': '-'}; {'id': '146', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '147', 'type': 'return_statement', 'children': ['148']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'timestep_to_return'}; {'id': '149', 'type': 'else_clause', 'children': ['150']}; {'id': '150', 'type': 'block', 'children': ['151']}; {'id': '151', 'type': 'return_statement', 'children': ['152']}; {'id': '152', 'type': 'False', 'children': []}
Function to return just the current timestep from this forecast
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '6']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'from_dict'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '6', 'type': 'block', 'children': ['7', '13', '17', '23', '107', '189', '202', '210', '221', '227', '242', '247', '253', '268', '273', '280', '287']}; {'id': '7', 'type': 'expression_statement', 'children': ['8']}; {'id': '8', 'type': 'assignment', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'main_memory'}; {'id': '10', 'type': 'call', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'MainMemory'}; {'id': '12', 'type': 'argument_list', 'children': []}; {'id': '13', 'type': 'expression_statement', 'children': ['14']}; {'id': '14', 'type': 'assignment', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '16', 'type': 'dictionary', 'children': []}; {'id': '17', 'type': 'expression_statement', 'children': ['18']}; {'id': '18', 'type': 'assignment', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'referred_caches'}; {'id': '20', 'type': 'call', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '22', 'type': 'argument_list', 'children': []}; {'id': '23', 'type': 'for_statement', 'children': ['24', '27', '32']}; {'id': '24', 'type': 'pattern_list', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '31', 'type': 'argument_list', 'children': []}; {'id': '32', 'type': 'block', 'children': ['33', '65', '79', '93']}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '38']}; {'id': '35', 'type': 'subscript', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '38', 'type': 'call', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'Cache'}; {'id': '40', 'type': 'argument_list', 'children': ['41', '44']}; {'id': '41', 'type': 'keyword_argument', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '44', 'type': 'dictionary_splat', 'children': ['45']}; {'id': '45', 'type': 'dictionary_comprehension', 'children': ['46', '49', '58']}; {'id': '46', 'type': 'pair', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '49', 'type': 'for_in_clause', 'children': ['50', '53']}; {'id': '50', 'type': 'pattern_list', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'v'}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '57', 'type': 'argument_list', 'children': []}; {'id': '58', 'type': 'if_clause', 'children': ['59']}; {'id': '59', 'type': 'comparison_operator', 'children': ['60', '61'], 'value': 'not'}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '61', 'type': 'list', 'children': ['62', '63', '64'], 'value': "['store_to', 'load_from', 'victims_to']"}; {'id': '62', 'type': 'string', 'children': [], 'value': "'store_to'"}; {'id': '63', 'type': 'string', 'children': [], 'value': "'load_from'"}; {'id': '64', 'type': 'string', 'children': [], 'value': "'victims_to'"}; {'id': '65', 'type': 'if_statement', 'children': ['66', '69']}; {'id': '66', 'type': 'comparison_operator', 'children': ['67', '68'], 'value': 'in'}; {'id': '67', 'type': 'string', 'children': [], 'value': "'store_to'"}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '69', 'type': 'block', 'children': ['70']}; {'id': '70', 'type': 'expression_statement', 'children': ['71']}; {'id': '71', 'type': 'call', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'referred_caches'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '75', 'type': 'argument_list', 'children': ['76']}; {'id': '76', 'type': 'subscript', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '78', 'type': 'string', 'children': [], 'value': "'store_to'"}; {'id': '79', 'type': 'if_statement', 'children': ['80', '83']}; {'id': '80', 'type': 'comparison_operator', 'children': ['81', '82'], 'value': 'in'}; {'id': '81', 'type': 'string', 'children': [], 'value': "'load_from'"}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '83', 'type': 'block', 'children': ['84']}; {'id': '84', 'type': 'expression_statement', 'children': ['85']}; {'id': '85', 'type': 'call', 'children': ['86', '89']}; {'id': '86', 'type': 'attribute', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'referred_caches'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '89', 'type': 'argument_list', 'children': ['90']}; {'id': '90', 'type': 'subscript', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '92', 'type': 'string', 'children': [], 'value': "'load_from'"}; {'id': '93', 'type': 'if_statement', 'children': ['94', '97']}; {'id': '94', 'type': 'comparison_operator', 'children': ['95', '96'], 'value': 'in'}; {'id': '95', 'type': 'string', 'children': [], 'value': "'victims_to'"}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '97', 'type': 'block', 'children': ['98']}; {'id': '98', 'type': 'expression_statement', 'children': ['99']}; {'id': '99', 'type': 'call', 'children': ['100', '103']}; {'id': '100', 'type': 'attribute', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'referred_caches'}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'add'}; {'id': '103', 'type': 'argument_list', 'children': ['104']}; {'id': '104', 'type': 'subscript', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '106', 'type': 'string', 'children': [], 'value': "'victims_to'"}; {'id': '107', 'type': 'for_statement', 'children': ['108', '111', '116']}; {'id': '108', 'type': 'pattern_list', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '111', 'type': 'call', 'children': ['112', '115']}; {'id': '112', 'type': 'attribute', 'children': ['113', '114']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '115', 'type': 'argument_list', 'children': []}; {'id': '116', 'type': 'block', 'children': ['117', '141', '165']}; {'id': '117', 'type': 'if_statement', 'children': ['118', '127']}; {'id': '118', 'type': 'boolean_operator', 'children': ['119', '122'], 'value': 'and'}; {'id': '119', 'type': 'comparison_operator', 'children': ['120', '121'], 'value': 'in'}; {'id': '120', 'type': 'string', 'children': [], 'value': "'store_to'"}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '122', 'type': 'comparison_operator', 'children': ['123', '126'], 'value': 'is'}; {'id': '123', 'type': 'subscript', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '125', 'type': 'string', 'children': [], 'value': "'store_to'"}; {'id': '126', 'type': 'None', 'children': []}; {'id': '127', 'type': 'block', 'children': ['128']}; {'id': '128', 'type': 'expression_statement', 'children': ['129']}; {'id': '129', 'type': 'call', 'children': ['130', '135']}; {'id': '130', 'type': 'attribute', 'children': ['131', '134']}; {'id': '131', 'type': 'subscript', 'children': ['132', '133']}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'set_store_to'}; {'id': '135', 'type': 'argument_list', 'children': ['136']}; {'id': '136', 'type': 'subscript', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '138', 'type': 'subscript', 'children': ['139', '140']}; {'id': '139', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '140', 'type': 'string', 'children': [], 'value': "'store_to'"}; {'id': '141', 'type': 'if_statement', 'children': ['142', '151']}; {'id': '142', 'type': 'boolean_operator', 'children': ['143', '146'], 'value': 'and'}; {'id': '143', 'type': 'comparison_operator', 'children': ['144', '145'], 'value': 'in'}; {'id': '144', 'type': 'string', 'children': [], 'value': "'load_from'"}; {'id': '145', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '146', 'type': 'comparison_operator', 'children': ['147', '150'], 'value': 'is'}; {'id': '147', 'type': 'subscript', 'children': ['148', '149']}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '149', 'type': 'string', 'children': [], 'value': "'load_from'"}; {'id': '150', 'type': 'None', 'children': []}; {'id': '151', 'type': 'block', 'children': ['152']}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'call', 'children': ['154', '159']}; {'id': '154', 'type': 'attribute', 'children': ['155', '158']}; {'id': '155', 'type': 'subscript', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'set_load_from'}; {'id': '159', 'type': 'argument_list', 'children': ['160']}; {'id': '160', 'type': 'subscript', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '162', 'type': 'subscript', 'children': ['163', '164']}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '164', 'type': 'string', 'children': [], 'value': "'load_from'"}; {'id': '165', 'type': 'if_statement', 'children': ['166', '175']}; {'id': '166', 'type': 'boolean_operator', 'children': ['167', '170'], 'value': 'and'}; {'id': '167', 'type': 'comparison_operator', 'children': ['168', '169'], 'value': 'in'}; {'id': '168', 'type': 'string', 'children': [], 'value': "'victims_to'"}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '170', 'type': 'comparison_operator', 'children': ['171', '174'], 'value': 'is'}; {'id': '171', 'type': 'subscript', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '173', 'type': 'string', 'children': [], 'value': "'victims_to'"}; {'id': '174', 'type': 'None', 'children': []}; {'id': '175', 'type': 'block', 'children': ['176']}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'call', 'children': ['178', '183']}; {'id': '178', 'type': 'attribute', 'children': ['179', '182']}; {'id': '179', 'type': 'subscript', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'set_victims_to'}; {'id': '183', 'type': 'argument_list', 'children': ['184']}; {'id': '184', 'type': 'subscript', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '186', 'type': 'subscript', 'children': ['187', '188']}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'conf'}; {'id': '188', 'type': 'string', 'children': [], 'value': "'victims_to'"}; {'id': '189', 'type': 'expression_statement', 'children': ['190']}; {'id': '190', 'type': 'assignment', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'first_level'}; {'id': '192', 'type': 'binary_operator', 'children': ['193', '201'], 'value': '-'}; {'id': '193', 'type': 'call', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'set'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'call', 'children': ['197', '200']}; {'id': '197', 'type': 'attribute', 'children': ['198', '199']}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'd'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'keys'}; {'id': '200', 'type': 'argument_list', 'children': []}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'referred_caches'}; {'id': '202', 'type': 'assert_statement', 'children': ['203', '209']}; {'id': '203', 'type': 'comparison_operator', 'children': ['204', '208'], 'value': '=='}; {'id': '204', 'type': 'call', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '206', 'type': 'argument_list', 'children': ['207']}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'first_level'}; {'id': '208', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '209', 'type': 'string', 'children': [], 'value': '"Unable to find first cache level."'}; {'id': '210', 'type': 'expression_statement', 'children': ['211']}; {'id': '211', 'type': 'assignment', 'children': ['212', '213']}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'first_level'}; {'id': '213', 'type': 'subscript', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '215', 'type': 'subscript', 'children': ['216', '220']}; {'id': '216', 'type': 'call', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '218', 'type': 'argument_list', 'children': ['219']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'first_level'}; {'id': '220', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '221', 'type': 'expression_statement', 'children': ['222']}; {'id': '222', 'type': 'assignment', 'children': ['223', '224']}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 'last_level_load'}; {'id': '224', 'type': 'assignment', 'children': ['225', '226']}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '226', 'type': 'identifier', 'children': [], 'value': 'first_level'}; {'id': '227', 'type': 'while_statement', 'children': ['228', '231']}; {'id': '228', 'type': 'comparison_operator', 'children': ['229', '230'], 'value': 'is'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '230', 'type': 'None', 'children': []}; {'id': '231', 'type': 'block', 'children': ['232', '236']}; {'id': '232', 'type': 'expression_statement', 'children': ['233']}; {'id': '233', 'type': 'assignment', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'last_level_load'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '236', 'type': 'expression_statement', 'children': ['237']}; {'id': '237', 'type': 'assignment', 'children': ['238', '239']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'load_from'}; {'id': '242', 'type': 'assert_statement', 'children': ['243', '246']}; {'id': '243', 'type': 'comparison_operator', 'children': ['244', '245'], 'value': 'is'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'last_level_load'}; {'id': '245', 'type': 'None', 'children': []}; {'id': '246', 'type': 'string', 'children': [], 'value': '"Unable to find last cache level."'}; {'id': '247', 'type': 'expression_statement', 'children': ['248']}; {'id': '248', 'type': 'assignment', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'last_level_store'}; {'id': '250', 'type': 'assignment', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'first_level'}; {'id': '253', 'type': 'while_statement', 'children': ['254', '257']}; {'id': '254', 'type': 'comparison_operator', 'children': ['255', '256'], 'value': 'is'}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '256', 'type': 'None', 'children': []}; {'id': '257', 'type': 'block', 'children': ['258', '262']}; {'id': '258', 'type': 'expression_statement', 'children': ['259']}; {'id': '259', 'type': 'assignment', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'last_level_store'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '262', 'type': 'expression_statement', 'children': ['263']}; {'id': '263', 'type': 'assignment', 'children': ['264', '265']}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'store_to'}; {'id': '268', 'type': 'assert_statement', 'children': ['269', '272']}; {'id': '269', 'type': 'comparison_operator', 'children': ['270', '271'], 'value': 'is'}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'last_level_store'}; {'id': '271', 'type': 'None', 'children': []}; {'id': '272', 'type': 'string', 'children': [], 'value': '"Unable to find last cache level."'}; {'id': '273', 'type': 'expression_statement', 'children': ['274']}; {'id': '274', 'type': 'call', 'children': ['275', '278']}; {'id': '275', 'type': 'attribute', 'children': ['276', '277']}; {'id': '276', 'type': 'identifier', 'children': [], 'value': 'main_memory'}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'load_to'}; {'id': '278', 'type': 'argument_list', 'children': ['279']}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'last_level_load'}; {'id': '280', 'type': 'expression_statement', 'children': ['281']}; {'id': '281', 'type': 'call', 'children': ['282', '285']}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'main_memory'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'store_from'}; {'id': '285', 'type': 'argument_list', 'children': ['286']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'last_level_store'}; {'id': '287', 'type': 'return_statement', 'children': ['288']}; {'id': '288', 'type': 'expression_list', 'children': ['289', '294', '295']}; {'id': '289', 'type': 'call', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '291', 'type': 'argument_list', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'first_level'}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'main_memory'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'caches'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'main_memory'}
Create cache hierarchy from dictionary.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'sorted'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'orders'}; {'id': '7', 'type': 'block', 'children': ['8', '10']}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'string', 'children': [], 'value': "'''Returns the elements in `items` sorted according to `orders`'''"}; {'id': '10', 'type': 'return_statement', 'children': ['11']}; {'id': '11', 'type': 'call', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'sorted'}; {'id': '13', 'type': 'argument_list', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'items'}; {'id': '15', 'type': 'keyword_argument', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'cmp'}; {'id': '17', 'type': 'call', 'children': ['18', '21']}; {'id': '18', 'type': 'attribute', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'cls'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'multipleOrderComparison'}; {'id': '21', 'type': 'argument_list', 'children': ['22']}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'orders'}
Returns the elements in `items` sorted according to `orders`
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'get_unique_fields'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '41']}; {'id': '6', 'type': 'for_statement', 'children': ['7', '8', '13']}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'unique_together'}; {'id': '8', 'type': 'attribute', 'children': ['9', '12']}; {'id': '9', 'type': 'attribute', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '11', 'type': 'identifier', 'children': [], 'value': '_meta'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'unique_together'}; {'id': '13', 'type': 'block', 'children': ['14']}; {'id': '14', 'type': 'if_statement', 'children': ['15', '18']}; {'id': '15', 'type': 'comparison_operator', 'children': ['16', '17'], 'value': 'in'}; {'id': '16', 'type': 'string', 'children': [], 'value': "'sort_order'"}; {'id': '17', 'type': 'identifier', 'children': [], 'value': 'unique_together'}; {'id': '18', 'type': 'block', 'children': ['19', '26', '33']}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'unique_fields'}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'unique_together'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'call', 'children': ['28', '31']}; {'id': '28', 'type': 'attribute', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'unique_fields'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'remove'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'string', 'children': [], 'value': "'sort_order'"}; {'id': '33', 'type': 'return_statement', 'children': ['34']}; {'id': '34', 'type': 'list_comprehension', 'children': ['35', '38']}; {'id': '35', 'type': 'binary_operator', 'children': ['36', '37'], 'value': '%'}; {'id': '36', 'type': 'string', 'children': [], 'value': "'%s_id'"}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '38', 'type': 'for_in_clause', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'unique_fields'}; {'id': '41', 'type': 'return_statement', 'children': ['42']}; {'id': '42', 'type': 'list', 'children': [], 'value': '[]'}
List field names that are unique_together with `sort_order`.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_is_sort_order_unique_together_with_something'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '14', '32']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'unique_together'}; {'id': '9', 'type': 'attribute', 'children': ['10', '13']}; {'id': '10', 'type': 'attribute', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '12', 'type': 'identifier', 'children': [], 'value': '_meta'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'unique_together'}; {'id': '14', 'type': 'for_statement', 'children': ['15', '16', '17']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'unique_together'}; {'id': '17', 'type': 'block', 'children': ['18']}; {'id': '18', 'type': 'if_statement', 'children': ['19', '29']}; {'id': '19', 'type': 'boolean_operator', 'children': ['20', '23'], 'value': 'and'}; {'id': '20', 'type': 'comparison_operator', 'children': ['21', '22'], 'value': 'in'}; {'id': '21', 'type': 'string', 'children': [], 'value': "'sort_order'"}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '23', 'type': 'comparison_operator', 'children': ['24', '28'], 'value': '>'}; {'id': '24', 'type': 'call', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '26', 'type': 'argument_list', 'children': ['27']}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'fields'}; {'id': '28', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '29', 'type': 'block', 'children': ['30']}; {'id': '30', 'type': 'return_statement', 'children': ['31']}; {'id': '31', 'type': 'True', 'children': []}; {'id': '32', 'type': 'return_statement', 'children': ['33']}; {'id': '33', 'type': 'False', 'children': []}
Is the sort_order field unique_together with something
{'id': '0', 'type': 'module', 'children': ['1', '10', '12', '21', '32', '122', '134', '143', '152', '163', '223', '372', '384']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '9']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_plot_transform_pairs'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5', '6', '7', '8']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'fCI'}; {'id': '5', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '7', 'type': 'identifier', 'children': [], 'value': 'axes'}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'tit'}; {'id': '9', 'type': 'block', 'children': [], 'value': ''}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'call', 'children': ['14', '17']}; {'id': '14', 'type': 'attribute', 'children': ['15', '16']}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'sca'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'subscript', 'children': ['19', '20']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'axes'}; {'id': '20', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '21', 'type': 'expression_statement', 'children': ['22']}; {'id': '22', 'type': 'call', 'children': ['23', '26']}; {'id': '23', 'type': 'attribute', 'children': ['24', '25']}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '26', 'type': 'argument_list', 'children': ['27']}; {'id': '27', 'type': 'binary_operator', 'children': ['28', '31'], 'value': '+'}; {'id': '28', 'type': 'binary_operator', 'children': ['29', '30'], 'value': '+'}; {'id': '29', 'type': 'string', 'children': [], 'value': "'|'"}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'tit'}; {'id': '31', 'type': 'string', 'children': [], 'value': "' lhs|'"}; {'id': '32', 'type': 'for_statement', 'children': ['33', '34', '35']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'fCI'}; {'id': '35', 'type': 'block', 'children': ['36']}; {'id': '36', 'type': 'if_statement', 'children': ['37', '42', '94']}; {'id': '37', 'type': 'comparison_operator', 'children': ['38', '41'], 'value': '=='}; {'id': '38', 'type': 'attribute', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '41', 'type': 'string', 'children': [], 'value': "'j2'"}; {'id': '42', 'type': 'block', 'children': ['43', '52', '73']}; {'id': '43', 'type': 'expression_statement', 'children': ['44']}; {'id': '44', 'type': 'assignment', 'children': ['45', '46']}; {'id': '45', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '46', 'type': 'call', 'children': ['47', '50']}; {'id': '47', 'type': 'attribute', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '50', 'type': 'argument_list', 'children': ['51']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '52', 'type': 'expression_statement', 'children': ['53']}; {'id': '53', 'type': 'call', 'children': ['54', '57']}; {'id': '54', 'type': 'attribute', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '56', 'type': 'identifier', 'children': [], 'value': 'loglog'}; {'id': '57', 'type': 'argument_list', 'children': ['58', '59', '67', '70']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '59', 'type': 'call', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '63', 'type': 'argument_list', 'children': ['64']}; {'id': '64', 'type': 'subscript', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '66', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '67', 'type': 'keyword_argument', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'lw'}; {'id': '69', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '70', 'type': 'keyword_argument', 'children': ['71', '72']}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '72', 'type': 'string', 'children': [], 'value': "'j0'"}; {'id': '73', 'type': 'expression_statement', 'children': ['74']}; {'id': '74', 'type': 'call', 'children': ['75', '78']}; {'id': '75', 'type': 'attribute', 'children': ['76', '77']}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'loglog'}; {'id': '78', 'type': 'argument_list', 'children': ['79', '80', '88', '91']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '80', 'type': 'call', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '84', 'type': 'argument_list', 'children': ['85']}; {'id': '85', 'type': 'subscript', 'children': ['86', '87']}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '87', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '88', 'type': 'keyword_argument', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'lw'}; {'id': '90', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '91', 'type': 'keyword_argument', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '93', 'type': 'string', 'children': [], 'value': "'j1'"}; {'id': '94', 'type': 'else_clause', 'children': ['95']}; {'id': '95', 'type': 'block', 'children': ['96']}; {'id': '96', 'type': 'expression_statement', 'children': ['97']}; {'id': '97', 'type': 'call', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'loglog'}; {'id': '101', 'type': 'argument_list', 'children': ['102', '103', '114', '117']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '107', 'type': 'argument_list', 'children': ['108']}; {'id': '108', 'type': 'call', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '112', 'type': 'argument_list', 'children': ['113']}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '114', 'type': 'keyword_argument', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'lw'}; {'id': '116', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '117', 'type': 'keyword_argument', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '119', 'type': 'attribute', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '122', 'type': 'if_statement', 'children': ['123', '126']}; {'id': '123', 'type': 'comparison_operator', 'children': ['124', '125'], 'value': '!='}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'tit'}; {'id': '125', 'type': 'string', 'children': [], 'value': "'fC'"}; {'id': '126', 'type': 'block', 'children': ['127']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'call', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'xlabel'}; {'id': '132', 'type': 'argument_list', 'children': ['133']}; {'id': '133', 'type': 'string', 'children': [], 'value': "'l'"}; {'id': '134', 'type': 'expression_statement', 'children': ['135']}; {'id': '135', 'type': 'call', 'children': ['136', '139']}; {'id': '136', 'type': 'attribute', 'children': ['137', '138']}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'legend'}; {'id': '139', 'type': 'argument_list', 'children': ['140']}; {'id': '140', 'type': 'keyword_argument', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'loc'}; {'id': '142', 'type': 'string', 'children': [], 'value': "'best'"}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'call', 'children': ['145', '148']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'sca'}; {'id': '148', 'type': 'argument_list', 'children': ['149']}; {'id': '149', 'type': 'subscript', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'axes'}; {'id': '151', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '152', 'type': 'expression_statement', 'children': ['153']}; {'id': '153', 'type': 'call', 'children': ['154', '157']}; {'id': '154', 'type': 'attribute', 'children': ['155', '156']}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'title'}; {'id': '157', 'type': 'argument_list', 'children': ['158']}; {'id': '158', 'type': 'binary_operator', 'children': ['159', '162'], 'value': '+'}; {'id': '159', 'type': 'binary_operator', 'children': ['160', '161'], 'value': '+'}; {'id': '160', 'type': 'string', 'children': [], 'value': "'|'"}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'tit'}; {'id': '162', 'type': 'string', 'children': [], 'value': "' rhs|'"}; {'id': '163', 'type': 'for_statement', 'children': ['164', '165', '166']}; {'id': '164', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'fCI'}; {'id': '166', 'type': 'block', 'children': ['167']}; {'id': '167', 'type': 'if_statement', 'children': ['168', '171', '195']}; {'id': '168', 'type': 'comparison_operator', 'children': ['169', '170'], 'value': '=='}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'tit'}; {'id': '170', 'type': 'string', 'children': [], 'value': "'fC'"}; {'id': '171', 'type': 'block', 'children': ['172']}; {'id': '172', 'type': 'expression_statement', 'children': ['173']}; {'id': '173', 'type': 'call', 'children': ['174', '177']}; {'id': '174', 'type': 'attribute', 'children': ['175', '176']}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'loglog'}; {'id': '177', 'type': 'argument_list', 'children': ['178', '179', '187', '190']}; {'id': '178', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '179', 'type': 'call', 'children': ['180', '183']}; {'id': '180', 'type': 'attribute', 'children': ['181', '182']}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '182', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '183', 'type': 'argument_list', 'children': ['184']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '187', 'type': 'keyword_argument', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'lw'}; {'id': '189', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '190', 'type': 'keyword_argument', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '195', 'type': 'else_clause', 'children': ['196']}; {'id': '196', 'type': 'block', 'children': ['197']}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'call', 'children': ['199', '202']}; {'id': '199', 'type': 'attribute', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '201', 'type': 'identifier', 'children': [], 'value': 'loglog'}; {'id': '202', 'type': 'argument_list', 'children': ['203', '204', '215', '218']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '204', 'type': 'call', 'children': ['205', '208']}; {'id': '205', 'type': 'attribute', 'children': ['206', '207']}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '207', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '208', 'type': 'argument_list', 'children': ['209']}; {'id': '209', 'type': 'call', 'children': ['210', '213']}; {'id': '210', 'type': 'attribute', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '212', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '213', 'type': 'argument_list', 'children': ['214']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '215', 'type': 'keyword_argument', 'children': ['216', '217']}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'lw'}; {'id': '217', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '218', 'type': 'keyword_argument', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '223', 'type': 'for_statement', 'children': ['224', '225', '226']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '225', 'type': 'identifier', 'children': [], 'value': 'fCI'}; {'id': '226', 'type': 'block', 'children': ['227', '253', '265', '350']}; {'id': '227', 'type': 'if_statement', 'children': ['228', '238', '245']}; {'id': '228', 'type': 'comparison_operator', 'children': ['229', '234'], 'value': 'in'}; {'id': '229', 'type': 'subscript', 'children': ['230', '233']}; {'id': '230', 'type': 'attribute', 'children': ['231', '232']}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '232', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '233', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '234', 'type': 'list', 'children': ['235', '236', '237'], 'value': "['0', '1', '2']"}; {'id': '235', 'type': 'string', 'children': [], 'value': "'0'"}; {'id': '236', 'type': 'string', 'children': [], 'value': "'1'"}; {'id': '237', 'type': 'string', 'children': [], 'value': "'2'"}; {'id': '238', 'type': 'block', 'children': ['239']}; {'id': '239', 'type': 'expression_statement', 'children': ['240']}; {'id': '240', 'type': 'assignment', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'filt'}; {'id': '242', 'type': 'call', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'j0j1filt'}; {'id': '244', 'type': 'argument_list', 'children': []}; {'id': '245', 'type': 'else_clause', 'children': ['246']}; {'id': '246', 'type': 'block', 'children': ['247']}; {'id': '247', 'type': 'expression_statement', 'children': ['248']}; {'id': '248', 'type': 'assignment', 'children': ['249', '250']}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'filt'}; {'id': '250', 'type': 'call', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'sincosfilt'}; {'id': '252', 'type': 'argument_list', 'children': []}; {'id': '253', 'type': 'expression_statement', 'children': ['254']}; {'id': '254', 'type': 'assignment', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'kk'}; {'id': '256', 'type': 'binary_operator', 'children': ['257', '260'], 'value': '/'}; {'id': '257', 'type': 'attribute', 'children': ['258', '259']}; {'id': '258', 'type': 'identifier', 'children': [], 'value': 'filt'}; {'id': '259', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '260', 'type': 'subscript', 'children': ['261', '262', '264']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '262', 'type': 'slice', 'children': ['263']}; {'id': '263', 'type': 'colon', 'children': []}; {'id': '264', 'type': 'None', 'children': []}; {'id': '265', 'type': 'if_statement', 'children': ['266', '271', '325']}; {'id': '266', 'type': 'comparison_operator', 'children': ['267', '270'], 'value': '=='}; {'id': '267', 'type': 'attribute', 'children': ['268', '269']}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '270', 'type': 'string', 'children': [], 'value': "'j2'"}; {'id': '271', 'type': 'block', 'children': ['272', '281', '299', '319']}; {'id': '272', 'type': 'expression_statement', 'children': ['273']}; {'id': '273', 'type': 'assignment', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '275', 'type': 'call', 'children': ['276', '279']}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '279', 'type': 'argument_list', 'children': ['280']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'kk'}; {'id': '281', 'type': 'expression_statement', 'children': ['282']}; {'id': '282', 'type': 'assignment', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'kr0'}; {'id': '284', 'type': 'binary_operator', 'children': ['285', '298'], 'value': '/'}; {'id': '285', 'type': 'call', 'children': ['286', '289']}; {'id': '286', 'type': 'attribute', 'children': ['287', '288']}; {'id': '287', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'dot'}; {'id': '289', 'type': 'argument_list', 'children': ['290', '293']}; {'id': '290', 'type': 'subscript', 'children': ['291', '292']}; {'id': '291', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '292', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '293', 'type': 'call', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '295', 'type': 'argument_list', 'children': ['296', '297']}; {'id': '296', 'type': 'identifier', 'children': [], 'value': 'filt'}; {'id': '297', 'type': 'string', 'children': [], 'value': "'j0'"}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '299', 'type': 'expression_statement', 'children': ['300']}; {'id': '300', 'type': 'assignment', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'kr1'}; {'id': '302', 'type': 'binary_operator', 'children': ['303', '316'], 'value': '/'}; {'id': '303', 'type': 'call', 'children': ['304', '307']}; {'id': '304', 'type': 'attribute', 'children': ['305', '306']}; {'id': '305', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'dot'}; {'id': '307', 'type': 'argument_list', 'children': ['308', '311']}; {'id': '308', 'type': 'subscript', 'children': ['309', '310']}; {'id': '309', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '310', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '311', 'type': 'call', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '313', 'type': 'argument_list', 'children': ['314', '315']}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'filt'}; {'id': '315', 'type': 'string', 'children': [], 'value': "'j1'"}; {'id': '316', 'type': 'binary_operator', 'children': ['317', '318'], 'value': '**'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '318', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '319', 'type': 'expression_statement', 'children': ['320']}; {'id': '320', 'type': 'assignment', 'children': ['321', '322']}; {'id': '321', 'type': 'identifier', 'children': [], 'value': 'kr'}; {'id': '322', 'type': 'binary_operator', 'children': ['323', '324'], 'value': '+'}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'kr0'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'kr1'}; {'id': '325', 'type': 'else_clause', 'children': ['326']}; {'id': '326', 'type': 'block', 'children': ['327']}; {'id': '327', 'type': 'expression_statement', 'children': ['328']}; {'id': '328', 'type': 'assignment', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'kr'}; {'id': '330', 'type': 'binary_operator', 'children': ['331', '349'], 'value': '/'}; {'id': '331', 'type': 'call', 'children': ['332', '335']}; {'id': '332', 'type': 'attribute', 'children': ['333', '334']}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'dot'}; {'id': '335', 'type': 'argument_list', 'children': ['336', '342']}; {'id': '336', 'type': 'call', 'children': ['337', '340']}; {'id': '337', 'type': 'attribute', 'children': ['338', '339']}; {'id': '338', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '340', 'type': 'argument_list', 'children': ['341']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'kk'}; {'id': '342', 'type': 'call', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '344', 'type': 'argument_list', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'filt'}; {'id': '346', 'type': 'attribute', 'children': ['347', '348']}; {'id': '347', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '350', 'type': 'expression_statement', 'children': ['351']}; {'id': '351', 'type': 'call', 'children': ['352', '355']}; {'id': '352', 'type': 'attribute', 'children': ['353', '354']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '354', 'type': 'identifier', 'children': [], 'value': 'loglog'}; {'id': '355', 'type': 'argument_list', 'children': ['356', '357', '363', '364', '367']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '357', 'type': 'call', 'children': ['358', '361']}; {'id': '358', 'type': 'attribute', 'children': ['359', '360']}; {'id': '359', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '361', 'type': 'argument_list', 'children': ['362']}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'kr'}; {'id': '363', 'type': 'string', 'children': [], 'value': "'-.'"}; {'id': '364', 'type': 'keyword_argument', 'children': ['365', '366']}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'lw'}; {'id': '366', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '367', 'type': 'keyword_argument', 'children': ['368', '369']}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'label'}; {'id': '369', 'type': 'attribute', 'children': ['370', '371']}; {'id': '370', 'type': 'identifier', 'children': [], 'value': 'filt'}; {'id': '371', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '372', 'type': 'if_statement', 'children': ['373', '376']}; {'id': '373', 'type': 'comparison_operator', 'children': ['374', '375'], 'value': '!='}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'tit'}; {'id': '375', 'type': 'string', 'children': [], 'value': "'fC'"}; {'id': '376', 'type': 'block', 'children': ['377']}; {'id': '377', 'type': 'expression_statement', 'children': ['378']}; {'id': '378', 'type': 'call', 'children': ['379', '382']}; {'id': '379', 'type': 'attribute', 'children': ['380', '381']}; {'id': '380', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'xlabel'}; {'id': '382', 'type': 'argument_list', 'children': ['383']}; {'id': '383', 'type': 'string', 'children': [], 'value': "'r'"}; {'id': '384', 'type': 'expression_statement', 'children': ['385']}; {'id': '385', 'type': 'call', 'children': ['386', '389']}; {'id': '386', 'type': 'attribute', 'children': ['387', '388']}; {'id': '387', 'type': 'identifier', 'children': [], 'value': 'plt'}; {'id': '388', 'type': 'identifier', 'children': [], 'value': 'legend'}; {'id': '389', 'type': 'argument_list', 'children': ['390']}; {'id': '390', 'type': 'keyword_argument', 'children': ['391', '392']}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'loc'}; {'id': '392', 'type': 'string', 'children': [], 'value': "'best'"}
r"""Plot the input transform pairs.
{'id': '0', 'type': 'module', 'children': ['1', '8', '10', '16', '31', '44', '56', '370', '382']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '7']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': '_get_min_val'}; {'id': '3', 'type': 'parameters', 'children': ['4', '5']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'spaceshift'}; {'id': '5', 'type': 'list_splat_pattern', 'children': ['6']}; {'id': '6', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '7', 'type': 'block', 'children': [], 'value': ''}; {'id': '8', 'type': 'expression_statement', 'children': ['9']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '10', 'type': 'expression_statement', 'children': ['11']}; {'id': '11', 'type': 'assignment', 'children': ['12', '15']}; {'id': '12', 'type': 'pattern_list', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'spacing'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'shift'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'spaceshift'}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '30']}; {'id': '18', 'type': 'pattern_list', 'children': ['19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29']}; {'id': '19', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'fI'}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'fC'}; {'id': '22', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'r_def'}; {'id': '24', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'reim'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'cvar'}; {'id': '27', 'type': 'identifier', 'children': [], 'value': 'verb'}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'plot'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'params'}; {'id': '31', 'type': 'expression_statement', 'children': ['32']}; {'id': '32', 'type': 'assignment', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'dlf'}; {'id': '34', 'type': 'call', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': '_calculate_filter'}; {'id': '36', 'type': 'argument_list', 'children': ['37', '38', '39', '40', '41', '42', '43']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '38', 'type': 'identifier', 'children': [], 'value': 'spacing'}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'shift'}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'fI'}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'r_def'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'reim'}; {'id': '43', 'type': 'string', 'children': [], 'value': "'filt'"}; {'id': '44', 'type': 'expression_statement', 'children': ['45']}; {'id': '45', 'type': 'assignment', 'children': ['46', '47']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '47', 'type': 'binary_operator', 'children': ['48', '51'], 'value': '/'}; {'id': '48', 'type': 'attribute', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'dlf'}; {'id': '50', 'type': 'identifier', 'children': [], 'value': 'base'}; {'id': '51', 'type': 'subscript', 'children': ['52', '53', '55']}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '53', 'type': 'slice', 'children': ['54']}; {'id': '54', 'type': 'colon', 'children': []}; {'id': '55', 'type': 'None', 'children': []}; {'id': '56', 'type': 'for_statement', 'children': ['57', '60', '64']}; {'id': '57', 'type': 'pattern_list', 'children': ['58', '59']}; {'id': '58', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '59', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '60', 'type': 'call', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'enumerate'}; {'id': '62', 'type': 'argument_list', 'children': ['63']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'fC'}; {'id': '64', 'type': 'block', 'children': ['65', '74', '145', '163', '176', '287', '313', '353']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '68']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '68', 'type': 'call', 'children': ['69', '72']}; {'id': '69', 'type': 'attribute', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '71', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '72', 'type': 'argument_list', 'children': ['73']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '74', 'type': 'if_statement', 'children': ['75', '80', '125']}; {'id': '75', 'type': 'comparison_operator', 'children': ['76', '79'], 'value': '=='}; {'id': '76', 'type': 'attribute', 'children': ['77', '78']}; {'id': '77', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '78', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '79', 'type': 'string', 'children': [], 'value': "'j2'"}; {'id': '80', 'type': 'block', 'children': ['81', '99', '119']}; {'id': '81', 'type': 'expression_statement', 'children': ['82']}; {'id': '82', 'type': 'assignment', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'rhs0'}; {'id': '84', 'type': 'binary_operator', 'children': ['85', '98'], 'value': '/'}; {'id': '85', 'type': 'call', 'children': ['86', '89']}; {'id': '86', 'type': 'attribute', 'children': ['87', '88']}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '88', 'type': 'identifier', 'children': [], 'value': 'dot'}; {'id': '89', 'type': 'argument_list', 'children': ['90', '93']}; {'id': '90', 'type': 'subscript', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '92', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '93', 'type': 'call', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '95', 'type': 'argument_list', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'dlf'}; {'id': '97', 'type': 'string', 'children': [], 'value': "'j0'"}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '99', 'type': 'expression_statement', 'children': ['100']}; {'id': '100', 'type': 'assignment', 'children': ['101', '102']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'rhs1'}; {'id': '102', 'type': 'binary_operator', 'children': ['103', '116'], 'value': '/'}; {'id': '103', 'type': 'call', 'children': ['104', '107']}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'dot'}; {'id': '107', 'type': 'argument_list', 'children': ['108', '111']}; {'id': '108', 'type': 'subscript', 'children': ['109', '110']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '110', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '111', 'type': 'call', 'children': ['112', '113']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '113', 'type': 'argument_list', 'children': ['114', '115']}; {'id': '114', 'type': 'identifier', 'children': [], 'value': 'dlf'}; {'id': '115', 'type': 'string', 'children': [], 'value': "'j1'"}; {'id': '116', 'type': 'binary_operator', 'children': ['117', '118'], 'value': '**'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '122', 'type': 'binary_operator', 'children': ['123', '124'], 'value': '+'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'rhs0'}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'rhs1'}; {'id': '125', 'type': 'else_clause', 'children': ['126']}; {'id': '126', 'type': 'block', 'children': ['127']}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'assignment', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '130', 'type': 'binary_operator', 'children': ['131', '144'], 'value': '/'}; {'id': '131', 'type': 'call', 'children': ['132', '135']}; {'id': '132', 'type': 'attribute', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'dot'}; {'id': '135', 'type': 'argument_list', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'lhs'}; {'id': '137', 'type': 'call', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'getattr'}; {'id': '139', 'type': 'argument_list', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'dlf'}; {'id': '141', 'type': 'attribute', 'children': ['142', '143']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '143', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '145', 'type': 'expression_statement', 'children': ['146']}; {'id': '146', 'type': 'assignment', 'children': ['147', '148']}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'rel_error'}; {'id': '148', 'type': 'call', 'children': ['149', '152']}; {'id': '149', 'type': 'attribute', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '151', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '152', 'type': 'argument_list', 'children': ['153']}; {'id': '153', 'type': 'binary_operator', 'children': ['154', '160'], 'value': '/'}; {'id': '154', 'type': '()', 'children': ['155']}; {'id': '155', 'type': 'binary_operator', 'children': ['156', '157'], 'value': '-'}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '157', 'type': 'attribute', 'children': ['158', '159']}; {'id': '158', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '159', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '160', 'type': 'attribute', 'children': ['161', '162']}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'assignment', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '166', 'type': 'subscript', 'children': ['167', '175']}; {'id': '167', 'type': 'call', 'children': ['168', '171']}; {'id': '168', 'type': 'attribute', 'children': ['169', '170']}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'where'}; {'id': '171', 'type': 'argument_list', 'children': ['172']}; {'id': '172', 'type': 'comparison_operator', 'children': ['173', '174'], 'value': '>'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'rel_error'}; {'id': '174', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '175', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '176', 'type': 'if_statement', 'children': ['177', '197', '202', '246']}; {'id': '177', 'type': 'boolean_operator', 'children': ['178', '186'], 'value': 'or'}; {'id': '178', 'type': 'call', 'children': ['179', '182']}; {'id': '179', 'type': 'attribute', 'children': ['180', '181']}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '181', 'type': 'identifier', 'children': [], 'value': 'all'}; {'id': '182', 'type': 'argument_list', 'children': ['183']}; {'id': '183', 'type': 'comparison_operator', 'children': ['184', '185'], 'value': '=='}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '185', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '186', 'type': 'call', 'children': ['187', '190']}; {'id': '187', 'type': 'attribute', 'children': ['188', '189']}; {'id': '188', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '189', 'type': 'identifier', 'children': [], 'value': 'all'}; {'id': '190', 'type': 'argument_list', 'children': ['191']}; {'id': '191', 'type': 'call', 'children': ['192', '195']}; {'id': '192', 'type': 'attribute', 'children': ['193', '194']}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'isnan'}; {'id': '195', 'type': 'argument_list', 'children': ['196']}; {'id': '196', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '197', 'type': 'block', 'children': ['198']}; {'id': '198', 'type': 'expression_statement', 'children': ['199']}; {'id': '199', 'type': 'assignment', 'children': ['200', '201']}; {'id': '200', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '201', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '202', 'type': 'elif_clause', 'children': ['203', '208']}; {'id': '203', 'type': 'comparison_operator', 'children': ['204', '207'], 'value': '=='}; {'id': '204', 'type': 'attribute', 'children': ['205', '206']}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '206', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '207', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '208', 'type': 'block', 'children': ['209', '217']}; {'id': '209', 'type': 'expression_statement', 'children': ['210']}; {'id': '210', 'type': 'assignment', 'children': ['211', '212']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '212', 'type': 'binary_operator', 'children': ['213', '216'], 'value': '-'}; {'id': '213', 'type': 'attribute', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '216', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '217', 'type': 'if_statement', 'children': ['218', '227']}; {'id': '218', 'type': 'boolean_operator', 'children': ['219', '222'], 'value': 'and'}; {'id': '219', 'type': 'comparison_operator', 'children': ['220', '221'], 'value': '>'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'verb'}; {'id': '221', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '222', 'type': 'comparison_operator', 'children': ['223', '226'], 'value': '=='}; {'id': '223', 'type': 'subscript', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '225', 'type': 'string', 'children': [], 'value': "'warn-r'"}; {'id': '226', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '227', 'type': 'block', 'children': ['228', '240']}; {'id': '228', 'type': 'expression_statement', 'children': ['229']}; {'id': '229', 'type': 'call', 'children': ['230', '231']}; {'id': '230', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '231', 'type': 'argument_list', 'children': ['232']}; {'id': '232', 'type': 'binary_operator', 'children': ['233', '239'], 'value': '+'}; {'id': '233', 'type': 'binary_operator', 'children': ['234', '235'], 'value': '+'}; {'id': '234', 'type': 'string', 'children': [], 'value': "'* WARNING :: all data have error < '"}; {'id': '235', 'type': 'call', 'children': ['236', '237']}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '237', 'type': 'argument_list', 'children': ['238']}; {'id': '238', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '239', 'type': 'string', 'children': [], 'value': "'; choose larger r or set error-level higher.'"}; {'id': '240', 'type': 'expression_statement', 'children': ['241']}; {'id': '241', 'type': 'assignment', 'children': ['242', '245']}; {'id': '242', 'type': 'subscript', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '244', 'type': 'string', 'children': [], 'value': "'warn-r'"}; {'id': '245', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '246', 'type': 'else_clause', 'children': ['247']}; {'id': '247', 'type': 'block', 'children': ['248']}; {'id': '248', 'type': 'if_statement', 'children': ['249', '254', '270']}; {'id': '249', 'type': 'comparison_operator', 'children': ['250', '253'], 'value': '>'}; {'id': '250', 'type': 'attribute', 'children': ['251', '252']}; {'id': '251', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '253', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '254', 'type': 'block', 'children': ['255']}; {'id': '255', 'type': 'expression_statement', 'children': ['256']}; {'id': '256', 'type': 'assignment', 'children': ['257', '258']}; {'id': '257', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '258', 'type': 'call', 'children': ['259', '262']}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '262', 'type': 'argument_list', 'children': ['263']}; {'id': '263', 'type': 'list', 'children': ['264', '265'], 'value': '[0, imin0[4]-5]'}; {'id': '264', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '265', 'type': 'binary_operator', 'children': ['266', '269'], 'value': '-'}; {'id': '266', 'type': 'subscript', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '268', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '269', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '270', 'type': 'else_clause', 'children': ['271']}; {'id': '271', 'type': 'block', 'children': ['272']}; {'id': '272', 'type': 'expression_statement', 'children': ['273']}; {'id': '273', 'type': 'assignment', 'children': ['274', '275']}; {'id': '274', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '275', 'type': 'call', 'children': ['276', '279']}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'max'}; {'id': '279', 'type': 'argument_list', 'children': ['280']}; {'id': '280', 'type': 'list', 'children': ['281', '282'], 'value': '[0, imin0[0]-1]'}; {'id': '281', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '282', 'type': 'binary_operator', 'children': ['283', '286'], 'value': '-'}; {'id': '283', 'type': 'subscript', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '285', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '286', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '287', 'type': 'if_statement', 'children': ['288', '291', '303']}; {'id': '288', 'type': 'comparison_operator', 'children': ['289', '290'], 'value': '=='}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'cvar'}; {'id': '290', 'type': 'string', 'children': [], 'value': "'amp'"}; {'id': '291', 'type': 'block', 'children': ['292']}; {'id': '292', 'type': 'expression_statement', 'children': ['293']}; {'id': '293', 'type': 'assignment', 'children': ['294', '295']}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'min_val0'}; {'id': '295', 'type': 'call', 'children': ['296', '299']}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'abs'}; {'id': '299', 'type': 'argument_list', 'children': ['300']}; {'id': '300', 'type': 'subscript', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '303', 'type': 'else_clause', 'children': ['304']}; {'id': '304', 'type': 'block', 'children': ['305']}; {'id': '305', 'type': 'expression_statement', 'children': ['306']}; {'id': '306', 'type': 'assignment', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'min_val0'}; {'id': '308', 'type': 'binary_operator', 'children': ['309', '310'], 'value': '/'}; {'id': '309', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '310', 'type': 'subscript', 'children': ['311', '312']}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '313', 'type': 'if_statement', 'children': ['314', '317', '332']}; {'id': '314', 'type': 'comparison_operator', 'children': ['315', '316'], 'value': '=='}; {'id': '315', 'type': 'identifier', 'children': [], 'value': 'i'}; {'id': '316', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '317', 'type': 'block', 'children': ['318', '325']}; {'id': '318', 'type': 'expression_statement', 'children': ['319']}; {'id': '319', 'type': 'assignment', 'children': ['320', '321']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'imin'}; {'id': '321', 'type': 'call', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'dc'}; {'id': '323', 'type': 'argument_list', 'children': ['324']}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '325', 'type': 'expression_statement', 'children': ['326']}; {'id': '326', 'type': 'assignment', 'children': ['327', '328']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'min_val'}; {'id': '328', 'type': 'call', 'children': ['329', '330']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'dc'}; {'id': '330', 'type': 'argument_list', 'children': ['331']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'min_val0'}; {'id': '332', 'type': 'else_clause', 'children': ['333']}; {'id': '333', 'type': 'block', 'children': ['334']}; {'id': '334', 'type': 'if_statement', 'children': ['335', '338']}; {'id': '335', 'type': 'comparison_operator', 'children': ['336', '337'], 'value': '>'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'min_val0'}; {'id': '337', 'type': 'identifier', 'children': [], 'value': 'min_val'}; {'id': '338', 'type': 'block', 'children': ['339', '346']}; {'id': '339', 'type': 'expression_statement', 'children': ['340']}; {'id': '340', 'type': 'assignment', 'children': ['341', '342']}; {'id': '341', 'type': 'identifier', 'children': [], 'value': 'min_val'}; {'id': '342', 'type': 'call', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'dc'}; {'id': '344', 'type': 'argument_list', 'children': ['345']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'min_val0'}; {'id': '346', 'type': 'expression_statement', 'children': ['347']}; {'id': '347', 'type': 'assignment', 'children': ['348', '349']}; {'id': '348', 'type': 'identifier', 'children': [], 'value': 'imin'}; {'id': '349', 'type': 'call', 'children': ['350', '351']}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'dc'}; {'id': '351', 'type': 'argument_list', 'children': ['352']}; {'id': '352', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '353', 'type': 'if_statement', 'children': ['354', '357']}; {'id': '354', 'type': 'comparison_operator', 'children': ['355', '356'], 'value': '>'}; {'id': '355', 'type': 'identifier', 'children': [], 'value': 'plot'}; {'id': '356', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '357', 'type': 'block', 'children': ['358']}; {'id': '358', 'type': 'expression_statement', 'children': ['359']}; {'id': '359', 'type': 'call', 'children': ['360', '361']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': '_plot_inversion'}; {'id': '361', 'type': 'argument_list', 'children': ['362', '363', '364', '365', '366', '367', '368', '369']}; {'id': '362', 'type': 'identifier', 'children': [], 'value': 'f'}; {'id': '363', 'type': 'identifier', 'children': [], 'value': 'rhs'}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'r'}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'k'}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'imin0'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'spacing'}; {'id': '368', 'type': 'identifier', 'children': [], 'value': 'shift'}; {'id': '369', 'type': 'identifier', 'children': [], 'value': 'cvar'}; {'id': '370', 'type': 'if_statement', 'children': ['371', '374']}; {'id': '371', 'type': 'comparison_operator', 'children': ['372', '373'], 'value': '>'}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'verb'}; {'id': '373', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '374', 'type': 'block', 'children': ['375']}; {'id': '375', 'type': 'expression_statement', 'children': ['376']}; {'id': '376', 'type': 'assignment', 'children': ['377', '378']}; {'id': '377', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '378', 'type': 'call', 'children': ['379', '380']}; {'id': '379', 'type': 'identifier', 'children': [], 'value': '_print_count'}; {'id': '380', 'type': 'argument_list', 'children': ['381']}; {'id': '381', 'type': 'identifier', 'children': [], 'value': 'log'}; {'id': '382', 'type': 'return_statement', 'children': ['383']}; {'id': '383', 'type': 'call', 'children': ['384', '387']}; {'id': '384', 'type': 'attribute', 'children': ['385', '386']}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'where'}; {'id': '387', 'type': 'argument_list', 'children': ['388', '391', '394']}; {'id': '388', 'type': 'comparison_operator', 'children': ['389', '390'], 'value': '=='}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'imin'}; {'id': '390', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '391', 'type': 'attribute', 'children': ['392', '393']}; {'id': '392', 'type': 'identifier', 'children': [], 'value': 'np'}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'inf'}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'min_val'}
r"""Calculate minimum resolved amplitude or maximum r.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'is_participle_clause_fragment'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '5', 'type': 'block', 'children': ['6', '19', '53', '113', '138']}; {'id': '6', 'type': 'if_statement', 'children': ['7', '16']}; {'id': '7', 'type': 'not_operator', 'children': ['8']}; {'id': '8', 'type': 'call', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': '_begins_with_one_of'}; {'id': '10', 'type': 'argument_list', 'children': ['11', '12']}; {'id': '11', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '12', 'type': 'list', 'children': ['13', '14', '15'], 'value': "['VBG', 'VBN', 'JJ']"}; {'id': '13', 'type': 'string', 'children': [], 'value': "'VBG'"}; {'id': '14', 'type': 'string', 'children': [], 'value': "'VBN'"}; {'id': '15', 'type': 'string', 'children': [], 'value': "'JJ'"}; {'id': '16', 'type': 'block', 'children': ['17']}; {'id': '17', 'type': 'return_statement', 'children': ['18']}; {'id': '18', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '19', 'type': 'if_statement', 'children': ['20', '26']}; {'id': '20', 'type': 'call', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': '_begins_with_one_of'}; {'id': '22', 'type': 'argument_list', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '24', 'type': 'list', 'children': ['25'], 'value': "['JJ']"}; {'id': '25', 'type': 'string', 'children': [], 'value': "'JJ'"}; {'id': '26', 'type': 'block', 'children': ['27', '34', '44']}; {'id': '27', 'type': 'expression_statement', 'children': ['28']}; {'id': '28', 'type': 'assignment', 'children': ['29', '30']}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '30', 'type': 'call', 'children': ['31', '32']}; {'id': '31', 'type': 'identifier', 'children': [], 'value': 'nlp'}; {'id': '32', 'type': 'argument_list', 'children': ['33']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '34', 'type': 'expression_statement', 'children': ['35']}; {'id': '35', 'type': 'assignment', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'fw'}; {'id': '37', 'type': 'subscript', 'children': ['38', '43']}; {'id': '38', 'type': 'list_comprehension', 'children': ['39', '40']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '40', 'type': 'for_in_clause', 'children': ['41', '42']}; {'id': '41', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '43', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '44', 'type': 'if_statement', 'children': ['45', '50']}; {'id': '45', 'type': 'comparison_operator', 'children': ['46', '49'], 'value': '=='}; {'id': '46', 'type': 'attribute', 'children': ['47', '48']}; {'id': '47', 'type': 'identifier', 'children': [], 'value': 'fw'}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'dep_'}; {'id': '49', 'type': 'string', 'children': [], 'value': "'amod'"}; {'id': '50', 'type': 'block', 'children': ['51']}; {'id': '51', 'type': 'return_statement', 'children': ['52']}; {'id': '52', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '53', 'type': 'if_statement', 'children': ['54', '60']}; {'id': '54', 'type': 'call', 'children': ['55', '56']}; {'id': '55', 'type': 'identifier', 'children': [], 'value': '_begins_with_one_of'}; {'id': '56', 'type': 'argument_list', 'children': ['57', '58']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '58', 'type': 'list', 'children': ['59'], 'value': "['VBG']"}; {'id': '59', 'type': 'string', 'children': [], 'value': "'VBG'"}; {'id': '60', 'type': 'block', 'children': ['61', '68', '78', '90', '100']}; {'id': '61', 'type': 'expression_statement', 'children': ['62']}; {'id': '62', 'type': 'assignment', 'children': ['63', '64']}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '64', 'type': 'call', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'nlp'}; {'id': '66', 'type': 'argument_list', 'children': ['67']}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '68', 'type': 'expression_statement', 'children': ['69']}; {'id': '69', 'type': 'assignment', 'children': ['70', '71']}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'fw'}; {'id': '71', 'type': 'subscript', 'children': ['72', '77']}; {'id': '72', 'type': 'list_comprehension', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '74', 'type': 'for_in_clause', 'children': ['75', '76']}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '76', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '77', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '78', 'type': 'if_statement', 'children': ['79', '87']}; {'id': '79', 'type': 'call', 'children': ['80', '85']}; {'id': '80', 'type': 'attribute', 'children': ['81', '84']}; {'id': '81', 'type': 'attribute', 'children': ['82', '83']}; {'id': '82', 'type': 'identifier', 'children': [], 'value': 'fw'}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'dep_'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '85', 'type': 'argument_list', 'children': ['86']}; {'id': '86', 'type': 'string', 'children': [], 'value': "'subj'"}; {'id': '87', 'type': 'block', 'children': ['88']}; {'id': '88', 'type': 'return_statement', 'children': ['89']}; {'id': '89', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '90', 'type': 'expression_statement', 'children': ['91']}; {'id': '91', 'type': 'assignment', 'children': ['92', '93']}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'fc'}; {'id': '93', 'type': 'list_comprehension', 'children': ['94', '95']}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '95', 'type': 'for_in_clause', 'children': ['96', '97']}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'c'}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'doc'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'noun_chunks'}; {'id': '100', 'type': 'if_statement', 'children': ['101', '110']}; {'id': '101', 'type': 'comparison_operator', 'children': ['102', '106'], 'value': 'in'}; {'id': '102', 'type': 'call', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '104', 'type': 'argument_list', 'children': ['105']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'fw'}; {'id': '106', 'type': 'call', 'children': ['107', '108']}; {'id': '107', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '108', 'type': 'argument_list', 'children': ['109']}; {'id': '109', 'type': 'identifier', 'children': [], 'value': 'fc'}; {'id': '110', 'type': 'block', 'children': ['111']}; {'id': '111', 'type': 'return_statement', 'children': ['112']}; {'id': '112', 'type': 'float', 'children': [], 'value': '0.0'}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'positive_prob'}; {'id': '116', 'type': 'subscript', 'children': ['117', '137']}; {'id': '117', 'type': 'subscript', 'children': ['118', '136']}; {'id': '118', 'type': 'call', 'children': ['119', '124']}; {'id': '119', 'type': 'attribute', 'children': ['120', '123']}; {'id': '120', 'type': 'subscript', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'models'}; {'id': '122', 'type': 'string', 'children': [], 'value': "'participle'"}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'predict'}; {'id': '124', 'type': 'argument_list', 'children': ['125']}; {'id': '125', 'type': 'list', 'children': ['126'], 'value': "[_text_to_vector(sentence,\n trigram2idx['participle'], trigram_count['participle'])]"}; {'id': '126', 'type': 'call', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': '_text_to_vector'}; {'id': '128', 'type': 'argument_list', 'children': ['129', '130', '133']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '130', 'type': 'subscript', 'children': ['131', '132']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'trigram2idx'}; {'id': '132', 'type': 'string', 'children': [], 'value': "'participle'"}; {'id': '133', 'type': 'subscript', 'children': ['134', '135']}; {'id': '134', 'type': 'identifier', 'children': [], 'value': 'trigram_count'}; {'id': '135', 'type': 'string', 'children': [], 'value': "'participle'"}; {'id': '136', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '137', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '138', 'type': 'return_statement', 'children': ['139']}; {'id': '139', 'type': 'call', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'float'}; {'id': '141', 'type': 'argument_list', 'children': ['142']}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'positive_prob'}
Supply a sentence or fragment and recieve a confidence interval
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'check'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '5', 'type': 'block', 'children': ['6', '12', '19', '26', '33', '40', '47', '82', '119', '165', '200', '236', '310', '328']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '9', 'type': 'call', 'children': ['10', '11']}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'Feedback'}; {'id': '11', 'type': 'argument_list', 'children': []}; {'id': '12', 'type': 'expression_statement', 'children': ['13']}; {'id': '13', 'type': 'assignment', 'children': ['14', '15']}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'is_missing_verb'}; {'id': '15', 'type': 'call', 'children': ['16', '17']}; {'id': '16', 'type': 'identifier', 'children': [], 'value': 'detect_missing_verb'}; {'id': '17', 'type': 'argument_list', 'children': ['18']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '19', 'type': 'expression_statement', 'children': ['20']}; {'id': '20', 'type': 'assignment', 'children': ['21', '22']}; {'id': '21', 'type': 'identifier', 'children': [], 'value': 'is_infinitive'}; {'id': '22', 'type': 'call', 'children': ['23', '24']}; {'id': '23', 'type': 'identifier', 'children': [], 'value': 'detect_infinitive_phrase'}; {'id': '24', 'type': 'argument_list', 'children': ['25']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '26', 'type': 'expression_statement', 'children': ['27']}; {'id': '27', 'type': 'assignment', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'is_participle'}; {'id': '29', 'type': 'call', 'children': ['30', '31']}; {'id': '30', 'type': 'identifier', 'children': [], 'value': 'is_participle_clause_fragment'}; {'id': '31', 'type': 'argument_list', 'children': ['32']}; {'id': '32', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '33', 'type': 'expression_statement', 'children': ['34']}; {'id': '34', 'type': 'assignment', 'children': ['35', '36']}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '36', 'type': 'call', 'children': ['37', '38']}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'get_language_tool_feedback'}; {'id': '38', 'type': 'argument_list', 'children': ['39']}; {'id': '39', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '40', 'type': 'expression_statement', 'children': ['41']}; {'id': '41', 'type': 'assignment', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'subject_and_verb_agree'}; {'id': '43', 'type': 'call', 'children': ['44', '45']}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'get_subject_verb_agreement_feedback'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'identifier', 'children': [], 'value': 'sentence'}; {'id': '47', 'type': 'if_statement', 'children': ['48', '49']}; {'id': '48', 'type': 'identifier', 'children': [], 'value': 'is_missing_verb'}; {'id': '49', 'type': 'block', 'children': ['50', '58', '70', '76']}; {'id': '50', 'type': 'expression_statement', 'children': ['51']}; {'id': '51', 'type': 'assignment', 'children': ['52', '57']}; {'id': '52', 'type': 'subscript', 'children': ['53', '56']}; {'id': '53', 'type': 'attribute', 'children': ['54', '55']}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '56', 'type': 'string', 'children': [], 'value': "'missing_verb'"}; {'id': '57', 'type': 'True', 'children': []}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '63']}; {'id': '60', 'type': 'attribute', 'children': ['61', '62']}; {'id': '61', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '63', 'type': 'call', 'children': ['64', '67']}; {'id': '64', 'type': 'attribute', 'children': ['65', '66']}; {'id': '65', 'type': 'identifier', 'children': [], 'value': 'MISSING_VERB_ADVICE'}; {'id': '66', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '67', 'type': 'argument_list', 'children': ['68', '69']}; {'id': '68', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '69', 'type': 'string', 'children': [], 'value': "''"}; {'id': '70', 'type': 'expression_statement', 'children': ['71']}; {'id': '71', 'type': 'assignment', 'children': ['72', '75']}; {'id': '72', 'type': 'attribute', 'children': ['73', '74']}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '75', 'type': 'string', 'children': [], 'value': "'MISSING_VERB_ERROR'"}; {'id': '76', 'type': 'expression_statement', 'children': ['77']}; {'id': '77', 'type': 'assignment', 'children': ['78', '81']}; {'id': '78', 'type': 'attribute', 'children': ['79', '80']}; {'id': '79', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'specific_error'}; {'id': '81', 'type': 'string', 'children': [], 'value': "'MISSING_VERB'"}; {'id': '82', 'type': 'if_statement', 'children': ['83', '86']}; {'id': '83', 'type': 'comparison_operator', 'children': ['84', '85'], 'value': '>'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'is_participle'}; {'id': '85', 'type': 'float', 'children': [], 'value': '.5'}; {'id': '86', 'type': 'block', 'children': ['87', '95', '107', '113']}; {'id': '87', 'type': 'expression_statement', 'children': ['88']}; {'id': '88', 'type': 'assignment', 'children': ['89', '94']}; {'id': '89', 'type': 'subscript', 'children': ['90', '93']}; {'id': '90', 'type': 'attribute', 'children': ['91', '92']}; {'id': '91', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '92', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '93', 'type': 'string', 'children': [], 'value': "'participle_phrase'"}; {'id': '94', 'type': 'identifier', 'children': [], 'value': 'is_participle'}; {'id': '95', 'type': 'expression_statement', 'children': ['96']}; {'id': '96', 'type': 'assignment', 'children': ['97', '100']}; {'id': '97', 'type': 'attribute', 'children': ['98', '99']}; {'id': '98', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '100', 'type': 'call', 'children': ['101', '104']}; {'id': '101', 'type': 'attribute', 'children': ['102', '103']}; {'id': '102', 'type': 'identifier', 'children': [], 'value': 'PARTICIPLE_FRAGMENT_ADVICE'}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '104', 'type': 'argument_list', 'children': ['105', '106']}; {'id': '105', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '106', 'type': 'string', 'children': [], 'value': "''"}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'assignment', 'children': ['109', '112']}; {'id': '109', 'type': 'attribute', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '112', 'type': 'string', 'children': [], 'value': "'FRAGMENT_ERROR'"}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '118']}; {'id': '115', 'type': 'attribute', 'children': ['116', '117']}; {'id': '116', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'specific_error'}; {'id': '118', 'type': 'string', 'children': [], 'value': "'PARTICIPLE_PHRASE'"}; {'id': '119', 'type': 'if_statement', 'children': ['120', '121']}; {'id': '120', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '121', 'type': 'block', 'children': ['122', '130']}; {'id': '122', 'type': 'expression_statement', 'children': ['123']}; {'id': '123', 'type': 'assignment', 'children': ['124', '129']}; {'id': '124', 'type': 'subscript', 'children': ['125', '128']}; {'id': '125', 'type': 'attribute', 'children': ['126', '127']}; {'id': '126', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '128', 'type': 'string', 'children': [], 'value': "'lang_tool'"}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '130', 'type': 'for_statement', 'children': ['131', '132', '133']}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'ltf'}; {'id': '132', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '133', 'type': 'block', 'children': ['134']}; {'id': '134', 'type': 'if_statement', 'children': ['135', '142']}; {'id': '135', 'type': 'comparison_operator', 'children': ['136', '141'], 'value': '=='}; {'id': '136', 'type': 'subscript', 'children': ['137', '140']}; {'id': '137', 'type': 'subscript', 'children': ['138', '139']}; {'id': '138', 'type': 'identifier', 'children': [], 'value': 'ltf'}; {'id': '139', 'type': 'string', 'children': [], 'value': "'rule'"}; {'id': '140', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '141', 'type': 'string', 'children': [], 'value': "'SENTENCE_FRAGMENT'"}; {'id': '142', 'type': 'block', 'children': ['143', '153', '159']}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '148']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '148', 'type': 'subscript', 'children': ['149', '152']}; {'id': '149', 'type': 'subscript', 'children': ['150', '151']}; {'id': '150', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '151', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '152', 'type': 'string', 'children': [], 'value': "'message'"}; {'id': '153', 'type': 'expression_statement', 'children': ['154']}; {'id': '154', 'type': 'assignment', 'children': ['155', '158']}; {'id': '155', 'type': 'attribute', 'children': ['156', '157']}; {'id': '156', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '158', 'type': 'string', 'children': [], 'value': "'FRAGMENT_ERROR'"}; {'id': '159', 'type': 'expression_statement', 'children': ['160']}; {'id': '160', 'type': 'assignment', 'children': ['161', '164']}; {'id': '161', 'type': 'attribute', 'children': ['162', '163']}; {'id': '162', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '163', 'type': 'identifier', 'children': [], 'value': 'specific_error'}; {'id': '164', 'type': 'string', 'children': [], 'value': "'SUBORDINATE_CLAUSE'"}; {'id': '165', 'type': 'if_statement', 'children': ['166', '167']}; {'id': '166', 'type': 'identifier', 'children': [], 'value': 'is_infinitive'}; {'id': '167', 'type': 'block', 'children': ['168', '176', '188', '194']}; {'id': '168', 'type': 'expression_statement', 'children': ['169']}; {'id': '169', 'type': 'assignment', 'children': ['170', '175']}; {'id': '170', 'type': 'subscript', 'children': ['171', '174']}; {'id': '171', 'type': 'attribute', 'children': ['172', '173']}; {'id': '172', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '173', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '174', 'type': 'string', 'children': [], 'value': "'infinitive_phrase'"}; {'id': '175', 'type': 'True', 'children': []}; {'id': '176', 'type': 'expression_statement', 'children': ['177']}; {'id': '177', 'type': 'assignment', 'children': ['178', '181']}; {'id': '178', 'type': 'attribute', 'children': ['179', '180']}; {'id': '179', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '181', 'type': 'call', 'children': ['182', '185']}; {'id': '182', 'type': 'attribute', 'children': ['183', '184']}; {'id': '183', 'type': 'identifier', 'children': [], 'value': 'INFINITIVE_PHRASE_ADVICE'}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '185', 'type': 'argument_list', 'children': ['186', '187']}; {'id': '186', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '187', 'type': 'string', 'children': [], 'value': "''"}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'assignment', 'children': ['190', '193']}; {'id': '190', 'type': 'attribute', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '193', 'type': 'string', 'children': [], 'value': "'INFINITIVE_PHRASE_ERROR'"}; {'id': '194', 'type': 'expression_statement', 'children': ['195']}; {'id': '195', 'type': 'assignment', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'specific_error'}; {'id': '199', 'type': 'string', 'children': [], 'value': "'INFINITIVE_PHRASE'"}; {'id': '200', 'type': 'if_statement', 'children': ['201', '203']}; {'id': '201', 'type': 'not_operator', 'children': ['202']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'subject_and_verb_agree'}; {'id': '203', 'type': 'block', 'children': ['204', '212', '224', '230']}; {'id': '204', 'type': 'expression_statement', 'children': ['205']}; {'id': '205', 'type': 'assignment', 'children': ['206', '211']}; {'id': '206', 'type': 'subscript', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '210', 'type': 'string', 'children': [], 'value': "'subject_verb_agreement'"}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'subject_and_verb_agree'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '217', 'type': 'call', 'children': ['218', '221']}; {'id': '218', 'type': 'attribute', 'children': ['219', '220']}; {'id': '219', 'type': 'identifier', 'children': [], 'value': 'SUBJECT_VERB_AGREEMENT_ADVICE'}; {'id': '220', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '221', 'type': 'argument_list', 'children': ['222', '223']}; {'id': '222', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '223', 'type': 'string', 'children': [], 'value': "''"}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '229']}; {'id': '226', 'type': 'attribute', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '229', 'type': 'string', 'children': [], 'value': "'SUBJECT_VERB_AGREEMENT_ERROR'"}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'assignment', 'children': ['232', '235']}; {'id': '232', 'type': 'attribute', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'specific_error'}; {'id': '235', 'type': 'string', 'children': [], 'value': "'SUBJECT_VERB_AGREEMENT'"}; {'id': '236', 'type': 'if_statement', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '238', 'type': 'block', 'children': ['239', '247', '280']}; {'id': '239', 'type': 'expression_statement', 'children': ['240']}; {'id': '240', 'type': 'assignment', 'children': ['241', '246']}; {'id': '241', 'type': 'subscript', 'children': ['242', '245']}; {'id': '242', 'type': 'attribute', 'children': ['243', '244']}; {'id': '243', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '244', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '245', 'type': 'string', 'children': [], 'value': "'lang_tool'"}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '247', 'type': 'for_statement', 'children': ['248', '249', '250']}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'ltf'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'lang_tool_feedback'}; {'id': '250', 'type': 'block', 'children': ['251']}; {'id': '251', 'type': 'if_statement', 'children': ['252', '259']}; {'id': '252', 'type': 'comparison_operator', 'children': ['253', '258'], 'value': '=='}; {'id': '253', 'type': 'subscript', 'children': ['254', '257']}; {'id': '254', 'type': 'subscript', 'children': ['255', '256']}; {'id': '255', 'type': 'identifier', 'children': [], 'value': 'ltf'}; {'id': '256', 'type': 'string', 'children': [], 'value': "'rule'"}; {'id': '257', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '258', 'type': 'string', 'children': [], 'value': "'MORFOLOGIK_RULE_EN_US'"}; {'id': '259', 'type': 'block', 'children': ['260', '268', '274']}; {'id': '260', 'type': 'expression_statement', 'children': ['261']}; {'id': '261', 'type': 'assignment', 'children': ['262', '265']}; {'id': '262', 'type': 'attribute', 'children': ['263', '264']}; {'id': '263', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '264', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '265', 'type': 'subscript', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'ltf'}; {'id': '267', 'type': 'string', 'children': [], 'value': "'message'"}; {'id': '268', 'type': 'expression_statement', 'children': ['269']}; {'id': '269', 'type': 'assignment', 'children': ['270', '273']}; {'id': '270', 'type': 'attribute', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '272', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '273', 'type': 'string', 'children': [], 'value': "'SPELLING_ERROR'"}; {'id': '274', 'type': 'expression_statement', 'children': ['275']}; {'id': '275', 'type': 'assignment', 'children': ['276', '279']}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'specific_error'}; {'id': '279', 'type': 'string', 'children': [], 'value': "'SPELLING_ERROR'"}; {'id': '280', 'type': 'if_statement', 'children': ['281', '285']}; {'id': '281', 'type': 'not_operator', 'children': ['282']}; {'id': '282', 'type': 'attribute', 'children': ['283', '284']}; {'id': '283', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '285', 'type': 'block', 'children': ['286', '294', '300']}; {'id': '286', 'type': 'expression_statement', 'children': ['287']}; {'id': '287', 'type': 'assignment', 'children': ['288', '291']}; {'id': '288', 'type': 'attribute', 'children': ['289', '290']}; {'id': '289', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '291', 'type': 'subscript', 'children': ['292', '293']}; {'id': '292', 'type': 'identifier', 'children': [], 'value': 'ltf'}; {'id': '293', 'type': 'string', 'children': [], 'value': "'message'"}; {'id': '294', 'type': 'expression_statement', 'children': ['295']}; {'id': '295', 'type': 'assignment', 'children': ['296', '299']}; {'id': '296', 'type': 'attribute', 'children': ['297', '298']}; {'id': '297', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '298', 'type': 'identifier', 'children': [], 'value': 'primary_error'}; {'id': '299', 'type': 'string', 'children': [], 'value': "'OTHER_ERROR'"}; {'id': '300', 'type': 'expression_statement', 'children': ['301']}; {'id': '301', 'type': 'assignment', 'children': ['302', '305']}; {'id': '302', 'type': 'attribute', 'children': ['303', '304']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'specific_error'}; {'id': '305', 'type': 'subscript', 'children': ['306', '309']}; {'id': '306', 'type': 'subscript', 'children': ['307', '308']}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'ltf'}; {'id': '308', 'type': 'string', 'children': [], 'value': "'rule'"}; {'id': '309', 'type': 'string', 'children': [], 'value': "'id'"}; {'id': '310', 'type': 'if_statement', 'children': ['311', '315']}; {'id': '311', 'type': 'not_operator', 'children': ['312']}; {'id': '312', 'type': 'attribute', 'children': ['313', '314']}; {'id': '313', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '314', 'type': 'identifier', 'children': [], 'value': 'matches'}; {'id': '315', 'type': 'block', 'children': ['316']}; {'id': '316', 'type': 'expression_statement', 'children': ['317']}; {'id': '317', 'type': 'assignment', 'children': ['318', '321']}; {'id': '318', 'type': 'attribute', 'children': ['319', '320']}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'result'}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'human_readable'}; {'id': '321', 'type': 'call', 'children': ['322', '325']}; {'id': '322', 'type': 'attribute', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'STRONG_SENTENCE_ADVICE'}; {'id': '324', 'type': 'identifier', 'children': [], 'value': 'replace'}; {'id': '325', 'type': 'argument_list', 'children': ['326', '327']}; {'id': '326', 'type': 'string', 'children': [], 'value': "'\\n'"}; {'id': '327', 'type': 'string', 'children': [], 'value': "''"}; {'id': '328', 'type': 'return_statement', 'children': ['329']}; {'id': '329', 'type': 'identifier', 'children': [], 'value': 'result'}
Supply a sentence or fragment and recieve feedback
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'handle'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '16', '22', '30', '38', '47', '58', '65', '71', '491']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '11']}; {'id': '8', 'type': 'attribute', 'children': ['9', '10']}; {'id': '9', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '10', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '11', 'type': 'attribute', 'children': ['12', '15']}; {'id': '12', 'type': 'attribute', 'children': ['13', '14']}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'server'}; {'id': '15', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '16', 'type': 'expression_statement', 'children': ['17']}; {'id': '17', 'type': 'assignment', 'children': ['18', '19']}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '19', 'type': 'call', 'children': ['20', '21']}; {'id': '20', 'type': 'identifier', 'children': [], 'value': 'iis'}; {'id': '21', 'type': 'argument_list', 'children': []}; {'id': '22', 'type': 'expression_statement', 'children': ['23']}; {'id': '23', 'type': 'assignment', 'children': ['24', '27']}; {'id': '24', 'type': 'attribute', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '26', 'type': 'identifier', 'children': [], 'value': 'datain'}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'rfile'}; {'id': '30', 'type': 'expression_statement', 'children': ['31']}; {'id': '31', 'type': 'assignment', 'children': ['32', '35']}; {'id': '32', 'type': 'attribute', 'children': ['33', '34']}; {'id': '33', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '34', 'type': 'identifier', 'children': [], 'value': 'dataout'}; {'id': '35', 'type': 'attribute', 'children': ['36', '37']}; {'id': '36', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '37', 'type': 'identifier', 'children': [], 'value': 'wfile'}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'assignment', 'children': ['40', '41']}; {'id': '40', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '41', 'type': 'call', 'children': ['42', '45']}; {'id': '42', 'type': 'attribute', 'children': ['43', '44']}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'struct'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'calcsize'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'string', 'children': [], 'value': "'8h'"}; {'id': '47', 'type': 'expression_statement', 'children': ['48']}; {'id': '48', 'type': 'assignment', 'children': ['49', '50']}; {'id': '49', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '50', 'type': 'call', 'children': ['51', '56']}; {'id': '51', 'type': 'attribute', 'children': ['52', '55']}; {'id': '52', 'type': 'attribute', 'children': ['53', '54']}; {'id': '53', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '54', 'type': 'identifier', 'children': [], 'value': 'datain'}; {'id': '55', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '56', 'type': 'argument_list', 'children': ['57']}; {'id': '57', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '58', 'type': 'expression_statement', 'children': ['59']}; {'id': '59', 'type': 'assignment', 'children': ['60', '61']}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '61', 'type': 'call', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '63', 'type': 'argument_list', 'children': ['64']}; {'id': '64', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '65', 'type': 'if_statement', 'children': ['66', '69']}; {'id': '66', 'type': 'comparison_operator', 'children': ['67', '68'], 'value': '<'}; {'id': '67', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '69', 'type': 'block', 'children': ['70']}; {'id': '70', 'type': 'return_statement', 'children': []}; {'id': '71', 'type': 'while_statement', 'children': ['72', '75']}; {'id': '72', 'type': 'comparison_operator', 'children': ['73', '74'], 'value': '>'}; {'id': '73', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '74', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '75', 'type': 'block', 'children': ['76', '113', '119', '125', '131', '139', '147', '155', '163', '170', '182', '188', '194', '200', '206', '212', '218', '224', '230', '243', '411', '467', '478', '485']}; {'id': '76', 'type': 'try_statement', 'children': ['77', '88']}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'expression_statement', 'children': ['79']}; {'id': '79', 'type': 'assignment', 'children': ['80', '81']}; {'id': '80', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '81', 'type': 'call', 'children': ['82', '85']}; {'id': '82', 'type': 'attribute', 'children': ['83', '84']}; {'id': '83', 'type': 'identifier', 'children': [], 'value': 'struct'}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'unpack'}; {'id': '85', 'type': 'argument_list', 'children': ['86', '87']}; {'id': '86', 'type': 'string', 'children': [], 'value': "'8h'"}; {'id': '87', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '88', 'type': 'except_clause', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '90', 'type': 'block', 'children': ['91', '100']}; {'id': '91', 'type': 'expression_statement', 'children': ['92']}; {'id': '92', 'type': 'call', 'children': ['93', '98']}; {'id': '93', 'type': 'attribute', 'children': ['94', '97']}; {'id': '94', 'type': 'attribute', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '97', 'type': 'identifier', 'children': [], 'value': 'error'}; {'id': '98', 'type': 'argument_list', 'children': ['99']}; {'id': '99', 'type': 'string', 'children': [], 'value': "'error unpacking the data.'"}; {'id': '100', 'type': 'for_statement', 'children': ['101', '102', '107']}; {'id': '101', 'type': 'identifier', 'children': [], 'value': 'exctn'}; {'id': '102', 'type': 'call', 'children': ['103', '106']}; {'id': '103', 'type': 'attribute', 'children': ['104', '105']}; {'id': '104', 'type': 'identifier', 'children': [], 'value': 'sys'}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'exc_info'}; {'id': '106', 'type': 'argument_list', 'children': []}; {'id': '107', 'type': 'block', 'children': ['108']}; {'id': '108', 'type': 'expression_statement', 'children': ['109']}; {'id': '109', 'type': 'call', 'children': ['110', '111']}; {'id': '110', 'type': 'identifier', 'children': [], 'value': 'print'}; {'id': '111', 'type': 'argument_list', 'children': ['112']}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'exctn'}; {'id': '113', 'type': 'expression_statement', 'children': ['114']}; {'id': '114', 'type': 'assignment', 'children': ['115', '116']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'subunit'}; {'id': '116', 'type': 'subscript', 'children': ['117', '118']}; {'id': '117', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '118', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '119', 'type': 'expression_statement', 'children': ['120']}; {'id': '120', 'type': 'assignment', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '122', 'type': 'binary_operator', 'children': ['123', '124'], 'value': '&'}; {'id': '123', 'type': 'identifier', 'children': [], 'value': 'subunit'}; {'id': '124', 'type': 'integer', 'children': [], 'value': '0o77'}; {'id': '125', 'type': 'expression_statement', 'children': ['126']}; {'id': '126', 'type': 'assignment', 'children': ['127', '128']}; {'id': '127', 'type': 'identifier', 'children': [], 'value': 'tid'}; {'id': '128', 'type': 'subscript', 'children': ['129', '130']}; {'id': '129', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '130', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '131', 'type': 'expression_statement', 'children': ['132']}; {'id': '132', 'type': 'assignment', 'children': ['133', '134']}; {'id': '133', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '134', 'type': 'binary_operator', 'children': ['135', '138'], 'value': '&'}; {'id': '135', 'type': 'subscript', 'children': ['136', '137']}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '137', 'type': 'integer', 'children': [], 'value': '4'}; {'id': '138', 'type': 'integer', 'children': [], 'value': '0o177777'}; {'id': '139', 'type': 'expression_statement', 'children': ['140']}; {'id': '140', 'type': 'assignment', 'children': ['141', '142']}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '142', 'type': 'binary_operator', 'children': ['143', '146'], 'value': '&'}; {'id': '143', 'type': 'subscript', 'children': ['144', '145']}; {'id': '144', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '145', 'type': 'integer', 'children': [], 'value': '5'}; {'id': '146', 'type': 'integer', 'children': [], 'value': '0o177777'}; {'id': '147', 'type': 'expression_statement', 'children': ['148']}; {'id': '148', 'type': 'assignment', 'children': ['149', '150']}; {'id': '149', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '150', 'type': 'binary_operator', 'children': ['151', '154'], 'value': '&'}; {'id': '151', 'type': 'subscript', 'children': ['152', '153']}; {'id': '152', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '153', 'type': 'integer', 'children': [], 'value': '6'}; {'id': '154', 'type': 'integer', 'children': [], 'value': '0o177777'}; {'id': '155', 'type': 'expression_statement', 'children': ['156']}; {'id': '156', 'type': 'assignment', 'children': ['157', '158']}; {'id': '157', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '158', 'type': 'binary_operator', 'children': ['159', '162'], 'value': '&'}; {'id': '159', 'type': 'subscript', 'children': ['160', '161']}; {'id': '160', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '161', 'type': 'integer', 'children': [], 'value': '7'}; {'id': '162', 'type': 'integer', 'children': [], 'value': '0o17777'}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'assignment', 'children': ['165', '166']}; {'id': '165', 'type': 'identifier', 'children': [], 'value': 'ndatabytes'}; {'id': '166', 'type': 'unary_operator', 'children': ['167'], 'value': '-'}; {'id': '167', 'type': 'subscript', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'bytes'}; {'id': '169', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '170', 'type': 'if_statement', 'children': ['171', '177']}; {'id': '171', 'type': '()', 'children': ['172']}; {'id': '172', 'type': 'not_operator', 'children': ['173']}; {'id': '173', 'type': '()', 'children': ['174']}; {'id': '174', 'type': 'binary_operator', 'children': ['175', '176'], 'value': '&'}; {'id': '175', 'type': 'identifier', 'children': [], 'value': 'tid'}; {'id': '176', 'type': 'identifier', 'children': [], 'value': 'PACKED'}; {'id': '177', 'type': 'block', 'children': ['178']}; {'id': '178', 'type': 'expression_statement', 'children': ['179']}; {'id': '179', 'type': 'augmented_assignment', 'children': ['180', '181'], 'value': '*='}; {'id': '180', 'type': 'identifier', 'children': [], 'value': 'ndatabytes'}; {'id': '181', 'type': 'integer', 'children': [], 'value': '2'}; {'id': '182', 'type': 'expression_statement', 'children': ['183']}; {'id': '183', 'type': 'assignment', 'children': ['184', '187']}; {'id': '184', 'type': 'attribute', 'children': ['185', '186']}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'subunit'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'subunit'}; {'id': '188', 'type': 'expression_statement', 'children': ['189']}; {'id': '189', 'type': 'assignment', 'children': ['190', '193']}; {'id': '190', 'type': 'attribute', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '192', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '193', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '194', 'type': 'expression_statement', 'children': ['195']}; {'id': '195', 'type': 'assignment', 'children': ['196', '199']}; {'id': '196', 'type': 'attribute', 'children': ['197', '198']}; {'id': '197', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '198', 'type': 'identifier', 'children': [], 'value': 'tid'}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'tid'}; {'id': '200', 'type': 'expression_statement', 'children': ['201']}; {'id': '201', 'type': 'assignment', 'children': ['202', '205']}; {'id': '202', 'type': 'attribute', 'children': ['203', '204']}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '204', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '205', 'type': 'identifier', 'children': [], 'value': 'x'}; {'id': '206', 'type': 'expression_statement', 'children': ['207']}; {'id': '207', 'type': 'assignment', 'children': ['208', '211']}; {'id': '208', 'type': 'attribute', 'children': ['209', '210']}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '210', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'y'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '217']}; {'id': '214', 'type': 'attribute', 'children': ['215', '216']}; {'id': '215', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '216', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'z'}; {'id': '218', 'type': 'expression_statement', 'children': ['219']}; {'id': '219', 'type': 'assignment', 'children': ['220', '223']}; {'id': '220', 'type': 'attribute', 'children': ['221', '222']}; {'id': '221', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '222', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '223', 'type': 'identifier', 'children': [], 'value': 't'}; {'id': '224', 'type': 'expression_statement', 'children': ['225']}; {'id': '225', 'type': 'assignment', 'children': ['226', '229']}; {'id': '226', 'type': 'attribute', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '229', 'type': 'identifier', 'children': [], 'value': 'ndatabytes'}; {'id': '230', 'type': 'expression_statement', 'children': ['231']}; {'id': '231', 'type': 'call', 'children': ['232', '237']}; {'id': '232', 'type': 'attribute', 'children': ['233', '236']}; {'id': '233', 'type': 'attribute', 'children': ['234', '235']}; {'id': '234', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '235', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '236', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '237', 'type': 'argument_list', 'children': ['238']}; {'id': '238', 'type': 'binary_operator', 'children': ['239', '240'], 'value': '%'}; {'id': '239', 'type': 'string', 'children': [], 'value': '"PACKET IS %o"'}; {'id': '240', 'type': 'attribute', 'children': ['241', '242']}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '242', 'type': 'identifier', 'children': [], 'value': 'subunit'}; {'id': '243', 'type': 'if_statement', 'children': ['244', '249', '257', '290', '329', '362', '395']}; {'id': '244', 'type': 'comparison_operator', 'children': ['245', '248'], 'value': '=='}; {'id': '245', 'type': 'attribute', 'children': ['246', '247']}; {'id': '246', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'FEEDBACK'}; {'id': '249', 'type': 'block', 'children': ['250']}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'call', 'children': ['252', '255']}; {'id': '252', 'type': 'attribute', 'children': ['253', '254']}; {'id': '253', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '254', 'type': 'identifier', 'children': [], 'value': 'handle_feedback'}; {'id': '255', 'type': 'argument_list', 'children': ['256']}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '257', 'type': 'elif_clause', 'children': ['258', '263']}; {'id': '258', 'type': 'comparison_operator', 'children': ['259', '262'], 'value': '=='}; {'id': '259', 'type': 'attribute', 'children': ['260', '261']}; {'id': '260', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '262', 'type': 'identifier', 'children': [], 'value': 'LUT'}; {'id': '263', 'type': 'block', 'children': ['264', '271', '282', '289']}; {'id': '264', 'type': 'expression_statement', 'children': ['265']}; {'id': '265', 'type': 'call', 'children': ['266', '269']}; {'id': '266', 'type': 'attribute', 'children': ['267', '268']}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'handle_lut'}; {'id': '269', 'type': 'argument_list', 'children': ['270']}; {'id': '270', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '271', 'type': 'expression_statement', 'children': ['272']}; {'id': '272', 'type': 'assignment', 'children': ['273', '274']}; {'id': '273', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '274', 'type': 'call', 'children': ['275', '280']}; {'id': '275', 'type': 'attribute', 'children': ['276', '279']}; {'id': '276', 'type': 'attribute', 'children': ['277', '278']}; {'id': '277', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '278', 'type': 'identifier', 'children': [], 'value': 'datain'}; {'id': '279', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '280', 'type': 'argument_list', 'children': ['281']}; {'id': '281', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '282', 'type': 'expression_statement', 'children': ['283']}; {'id': '283', 'type': 'assignment', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '285', 'type': 'call', 'children': ['286', '287']}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '287', 'type': 'argument_list', 'children': ['288']}; {'id': '288', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '289', 'type': 'continue_statement', 'children': []}; {'id': '290', 'type': 'elif_clause', 'children': ['291', '296']}; {'id': '291', 'type': 'comparison_operator', 'children': ['292', '295'], 'value': '=='}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'MEMORY'}; {'id': '296', 'type': 'block', 'children': ['297', '304', '310', '321', '328']}; {'id': '297', 'type': 'expression_statement', 'children': ['298']}; {'id': '298', 'type': 'call', 'children': ['299', '302']}; {'id': '299', 'type': 'attribute', 'children': ['300', '301']}; {'id': '300', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'handle_memory'}; {'id': '302', 'type': 'argument_list', 'children': ['303']}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '304', 'type': 'if_statement', 'children': ['305', '308']}; {'id': '305', 'type': 'attribute', 'children': ['306', '307']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '307', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '308', 'type': 'block', 'children': ['309']}; {'id': '309', 'type': 'pass_statement', 'children': []}; {'id': '310', 'type': 'expression_statement', 'children': ['311']}; {'id': '311', 'type': 'assignment', 'children': ['312', '313']}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '313', 'type': 'call', 'children': ['314', '319']}; {'id': '314', 'type': 'attribute', 'children': ['315', '318']}; {'id': '315', 'type': 'attribute', 'children': ['316', '317']}; {'id': '316', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'datain'}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '319', 'type': 'argument_list', 'children': ['320']}; {'id': '320', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '321', 'type': 'expression_statement', 'children': ['322']}; {'id': '322', 'type': 'assignment', 'children': ['323', '324']}; {'id': '323', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '324', 'type': 'call', 'children': ['325', '326']}; {'id': '325', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '326', 'type': 'argument_list', 'children': ['327']}; {'id': '327', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '328', 'type': 'continue_statement', 'children': []}; {'id': '329', 'type': 'elif_clause', 'children': ['330', '335']}; {'id': '330', 'type': 'comparison_operator', 'children': ['331', '334'], 'value': '=='}; {'id': '331', 'type': 'attribute', 'children': ['332', '333']}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '333', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '334', 'type': 'identifier', 'children': [], 'value': 'WCS'}; {'id': '335', 'type': 'block', 'children': ['336', '343', '354', '361']}; {'id': '336', 'type': 'expression_statement', 'children': ['337']}; {'id': '337', 'type': 'call', 'children': ['338', '341']}; {'id': '338', 'type': 'attribute', 'children': ['339', '340']}; {'id': '339', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '340', 'type': 'identifier', 'children': [], 'value': 'handle_wcs'}; {'id': '341', 'type': 'argument_list', 'children': ['342']}; {'id': '342', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '343', 'type': 'expression_statement', 'children': ['344']}; {'id': '344', 'type': 'assignment', 'children': ['345', '346']}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '346', 'type': 'call', 'children': ['347', '352']}; {'id': '347', 'type': 'attribute', 'children': ['348', '351']}; {'id': '348', 'type': 'attribute', 'children': ['349', '350']}; {'id': '349', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '350', 'type': 'identifier', 'children': [], 'value': 'datain'}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '352', 'type': 'argument_list', 'children': ['353']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '354', 'type': 'expression_statement', 'children': ['355']}; {'id': '355', 'type': 'assignment', 'children': ['356', '357']}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '357', 'type': 'call', 'children': ['358', '359']}; {'id': '358', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '359', 'type': 'argument_list', 'children': ['360']}; {'id': '360', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '361', 'type': 'continue_statement', 'children': []}; {'id': '362', 'type': 'elif_clause', 'children': ['363', '368']}; {'id': '363', 'type': 'comparison_operator', 'children': ['364', '367'], 'value': '=='}; {'id': '364', 'type': 'attribute', 'children': ['365', '366']}; {'id': '365', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '366', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '367', 'type': 'identifier', 'children': [], 'value': 'IMCURSOR'}; {'id': '368', 'type': 'block', 'children': ['369', '376', '387', '394']}; {'id': '369', 'type': 'expression_statement', 'children': ['370']}; {'id': '370', 'type': 'call', 'children': ['371', '374']}; {'id': '371', 'type': 'attribute', 'children': ['372', '373']}; {'id': '372', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '373', 'type': 'identifier', 'children': [], 'value': 'handle_imcursor'}; {'id': '374', 'type': 'argument_list', 'children': ['375']}; {'id': '375', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '376', 'type': 'expression_statement', 'children': ['377']}; {'id': '377', 'type': 'assignment', 'children': ['378', '379']}; {'id': '378', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '379', 'type': 'call', 'children': ['380', '385']}; {'id': '380', 'type': 'attribute', 'children': ['381', '384']}; {'id': '381', 'type': 'attribute', 'children': ['382', '383']}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '383', 'type': 'identifier', 'children': [], 'value': 'datain'}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '385', 'type': 'argument_list', 'children': ['386']}; {'id': '386', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '387', 'type': 'expression_statement', 'children': ['388']}; {'id': '388', 'type': 'assignment', 'children': ['389', '390']}; {'id': '389', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '390', 'type': 'call', 'children': ['391', '392']}; {'id': '391', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '392', 'type': 'argument_list', 'children': ['393']}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '394', 'type': 'continue_statement', 'children': []}; {'id': '395', 'type': 'else_clause', 'children': ['396']}; {'id': '396', 'type': 'block', 'children': ['397']}; {'id': '397', 'type': 'expression_statement', 'children': ['398']}; {'id': '398', 'type': 'call', 'children': ['399', '404']}; {'id': '399', 'type': 'attribute', 'children': ['400', '403']}; {'id': '400', 'type': 'attribute', 'children': ['401', '402']}; {'id': '401', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '402', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '404', 'type': 'argument_list', 'children': ['405']}; {'id': '405', 'type': 'binary_operator', 'children': ['406', '407'], 'value': '%'}; {'id': '406', 'type': 'string', 'children': [], 'value': "'?NO OP (0%o)'"}; {'id': '407', 'type': '()', 'children': ['408']}; {'id': '408', 'type': 'attribute', 'children': ['409', '410']}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '410', 'type': 'identifier', 'children': [], 'value': 'subunit077'}; {'id': '411', 'type': 'if_statement', 'children': ['412', '419']}; {'id': '412', 'type': 'not_operator', 'children': ['413']}; {'id': '413', 'type': '()', 'children': ['414']}; {'id': '414', 'type': 'binary_operator', 'children': ['415', '418'], 'value': '&'}; {'id': '415', 'type': 'attribute', 'children': ['416', '417']}; {'id': '416', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '417', 'type': 'identifier', 'children': [], 'value': 'tid'}; {'id': '418', 'type': 'identifier', 'children': [], 'value': 'IIS_READ'}; {'id': '419', 'type': 'block', 'children': ['420', '426']}; {'id': '420', 'type': 'expression_statement', 'children': ['421']}; {'id': '421', 'type': 'assignment', 'children': ['422', '423']}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '423', 'type': 'attribute', 'children': ['424', '425']}; {'id': '424', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '425', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '426', 'type': 'while_statement', 'children': ['427', '430']}; {'id': '427', 'type': 'comparison_operator', 'children': ['428', '429'], 'value': '>'}; {'id': '428', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '429', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '430', 'type': 'block', 'children': ['431', '446', '457', '463']}; {'id': '431', 'type': 'if_statement', 'children': ['432', '435', '440']}; {'id': '432', 'type': 'comparison_operator', 'children': ['433', '434'], 'value': '<'}; {'id': '433', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '434', 'type': 'identifier', 'children': [], 'value': 'SZ_FIFOBUF'}; {'id': '435', 'type': 'block', 'children': ['436']}; {'id': '436', 'type': 'expression_statement', 'children': ['437']}; {'id': '437', 'type': 'assignment', 'children': ['438', '439']}; {'id': '438', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '439', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '440', 'type': 'else_clause', 'children': ['441']}; {'id': '441', 'type': 'block', 'children': ['442']}; {'id': '442', 'type': 'expression_statement', 'children': ['443']}; {'id': '443', 'type': 'assignment', 'children': ['444', '445']}; {'id': '444', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '445', 'type': 'identifier', 'children': [], 'value': 'SZ_FIFOBUF'}; {'id': '446', 'type': 'expression_statement', 'children': ['447']}; {'id': '447', 'type': 'assignment', 'children': ['448', '449']}; {'id': '448', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '449', 'type': 'call', 'children': ['450', '455']}; {'id': '450', 'type': 'attribute', 'children': ['451', '454']}; {'id': '451', 'type': 'attribute', 'children': ['452', '453']}; {'id': '452', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '453', 'type': 'identifier', 'children': [], 'value': 'rfile'}; {'id': '454', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '455', 'type': 'argument_list', 'children': ['456']}; {'id': '456', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '457', 'type': 'if_statement', 'children': ['458', '461']}; {'id': '458', 'type': 'comparison_operator', 'children': ['459', '460'], 'value': '<='}; {'id': '459', 'type': 'identifier', 'children': [], 'value': 'm'}; {'id': '460', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '461', 'type': 'block', 'children': ['462']}; {'id': '462', 'type': 'break_statement', 'children': []}; {'id': '463', 'type': 'expression_statement', 'children': ['464']}; {'id': '464', 'type': 'augmented_assignment', 'children': ['465', '466'], 'value': '-='}; {'id': '465', 'type': 'identifier', 'children': [], 'value': 'nbytes'}; {'id': '466', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '467', 'type': 'expression_statement', 'children': ['468']}; {'id': '468', 'type': 'assignment', 'children': ['469', '470']}; {'id': '469', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '470', 'type': 'call', 'children': ['471', '476']}; {'id': '471', 'type': 'attribute', 'children': ['472', '475']}; {'id': '472', 'type': 'attribute', 'children': ['473', '474']}; {'id': '473', 'type': 'identifier', 'children': [], 'value': 'packet'}; {'id': '474', 'type': 'identifier', 'children': [], 'value': 'datain'}; {'id': '475', 'type': 'identifier', 'children': [], 'value': 'read'}; {'id': '476', 'type': 'argument_list', 'children': ['477']}; {'id': '477', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '478', 'type': 'expression_statement', 'children': ['479']}; {'id': '479', 'type': 'assignment', 'children': ['480', '481']}; {'id': '480', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '481', 'type': 'call', 'children': ['482', '483']}; {'id': '482', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '483', 'type': 'argument_list', 'children': ['484']}; {'id': '484', 'type': 'identifier', 'children': [], 'value': 'line'}; {'id': '485', 'type': 'if_statement', 'children': ['486', '489']}; {'id': '486', 'type': 'comparison_operator', 'children': ['487', '488'], 'value': '<'}; {'id': '487', 'type': 'identifier', 'children': [], 'value': 'n'}; {'id': '488', 'type': 'identifier', 'children': [], 'value': 'size'}; {'id': '489', 'type': 'block', 'children': ['490']}; {'id': '490', 'type': 'return_statement', 'children': []}; {'id': '491', 'type': 'if_statement', 'children': ['492', '495']}; {'id': '492', 'type': 'attribute', 'children': ['493', '494']}; {'id': '493', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '494', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '495', 'type': 'block', 'children': ['496', '502']}; {'id': '496', 'type': 'expression_statement', 'children': ['497']}; {'id': '497', 'type': 'call', 'children': ['498', '501']}; {'id': '498', 'type': 'attribute', 'children': ['499', '500']}; {'id': '499', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '500', 'type': 'identifier', 'children': [], 'value': 'display_image'}; {'id': '501', 'type': 'argument_list', 'children': []}; {'id': '502', 'type': 'expression_statement', 'children': ['503']}; {'id': '503', 'type': 'assignment', 'children': ['504', '507']}; {'id': '504', 'type': 'attribute', 'children': ['505', '506']}; {'id': '505', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '506', 'type': 'identifier', 'children': [], 'value': 'needs_update'}; {'id': '507', 'type': 'False', 'children': []}
This is where the action starts.
{'id': '0', 'type': 'module', 'children': ['1']}; {'id': '1', 'type': 'function_definition', 'children': ['2', '3', '5']}; {'id': '2', 'type': 'function_name', 'children': [], 'value': 'redo'}; {'id': '3', 'type': 'parameters', 'children': ['4']}; {'id': '4', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '5', 'type': 'block', 'children': ['6', '16', '23', '33', '48', '58', '197', '212', '222', '232', '244', '250', '254', '307']}; {'id': '6', 'type': 'expression_statement', 'children': ['7']}; {'id': '7', 'type': 'assignment', 'children': ['8', '9']}; {'id': '8', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '9', 'type': 'call', 'children': ['10', '15']}; {'id': '10', 'type': 'attribute', 'children': ['11', '14']}; {'id': '11', 'type': 'attribute', 'children': ['12', '13']}; {'id': '12', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '13', 'type': 'identifier', 'children': [], 'value': 'channel'}; {'id': '14', 'type': 'identifier', 'children': [], 'value': 'get_current_image'}; {'id': '15', 'type': 'argument_list', 'children': []}; {'id': '16', 'type': 'if_statement', 'children': ['17', '20']}; {'id': '17', 'type': 'comparison_operator', 'children': ['18', '19'], 'value': 'is'}; {'id': '18', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '19', 'type': 'None', 'children': []}; {'id': '20', 'type': 'block', 'children': ['21']}; {'id': '21', 'type': 'return_statement', 'children': ['22']}; {'id': '22', 'type': 'True', 'children': []}; {'id': '23', 'type': 'expression_statement', 'children': ['24']}; {'id': '24', 'type': 'assignment', 'children': ['25', '26']}; {'id': '25', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '26', 'type': 'call', 'children': ['27', '30']}; {'id': '27', 'type': 'attribute', 'children': ['28', '29']}; {'id': '28', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '29', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '30', 'type': 'argument_list', 'children': ['31', '32']}; {'id': '31', 'type': 'string', 'children': [], 'value': "'path'"}; {'id': '32', 'type': 'None', 'children': []}; {'id': '33', 'type': 'if_statement', 'children': ['34', '37']}; {'id': '34', 'type': 'comparison_operator', 'children': ['35', '36'], 'value': 'is'}; {'id': '35', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '36', 'type': 'None', 'children': []}; {'id': '37', 'type': 'block', 'children': ['38', '47']}; {'id': '38', 'type': 'expression_statement', 'children': ['39']}; {'id': '39', 'type': 'call', 'children': ['40', '45']}; {'id': '40', 'type': 'attribute', 'children': ['41', '44']}; {'id': '41', 'type': 'attribute', 'children': ['42', '43']}; {'id': '42', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '43', 'type': 'identifier', 'children': [], 'value': 'fv'}; {'id': '44', 'type': 'identifier', 'children': [], 'value': 'show_error'}; {'id': '45', 'type': 'argument_list', 'children': ['46']}; {'id': '46', 'type': 'string', 'children': [], 'value': '"Cannot open image: no value for metadata key \'path\'"'}; {'id': '47', 'type': 'return_statement', 'children': []}; {'id': '48', 'type': 'if_statement', 'children': ['49', '55']}; {'id': '49', 'type': 'call', 'children': ['50', '53']}; {'id': '50', 'type': 'attribute', 'children': ['51', '52']}; {'id': '51', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '52', 'type': 'identifier', 'children': [], 'value': 'endswith'}; {'id': '53', 'type': 'argument_list', 'children': ['54']}; {'id': '54', 'type': 'string', 'children': [], 'value': "'asdf'"}; {'id': '55', 'type': 'block', 'children': ['56']}; {'id': '56', 'type': 'return_statement', 'children': ['57']}; {'id': '57', 'type': 'True', 'children': []}; {'id': '58', 'type': 'if_statement', 'children': ['59', '64']}; {'id': '59', 'type': 'comparison_operator', 'children': ['60', '61'], 'value': '!='}; {'id': '60', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '61', 'type': 'attribute', 'children': ['62', '63']}; {'id': '62', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '63', 'type': 'identifier', 'children': [], 'value': 'img_path'}; {'id': '64', 'type': 'block', 'children': ['65', '71', '92', '107', '116', '127', '143', '149', '163', '179']}; {'id': '65', 'type': 'expression_statement', 'children': ['66']}; {'id': '66', 'type': 'assignment', 'children': ['67', '70']}; {'id': '67', 'type': 'attribute', 'children': ['68', '69']}; {'id': '68', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '69', 'type': 'identifier', 'children': [], 'value': 'img_path'}; {'id': '70', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '71', 'type': 'if_statement', 'children': ['72', '77']}; {'id': '72', 'type': 'comparison_operator', 'children': ['73', '76'], 'value': 'is'}; {'id': '73', 'type': 'attribute', 'children': ['74', '75']}; {'id': '74', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '75', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '76', 'type': 'None', 'children': []}; {'id': '77', 'type': 'block', 'children': ['78']}; {'id': '78', 'type': 'try_statement', 'children': ['79', '88']}; {'id': '79', 'type': 'block', 'children': ['80']}; {'id': '80', 'type': 'expression_statement', 'children': ['81']}; {'id': '81', 'type': 'call', 'children': ['82', '87']}; {'id': '82', 'type': 'attribute', 'children': ['83', '86']}; {'id': '83', 'type': 'attribute', 'children': ['84', '85']}; {'id': '84', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '85', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '86', 'type': 'identifier', 'children': [], 'value': 'close'}; {'id': '87', 'type': 'argument_list', 'children': []}; {'id': '88', 'type': 'except_clause', 'children': ['89', '90']}; {'id': '89', 'type': 'identifier', 'children': [], 'value': 'Exception'}; {'id': '90', 'type': 'block', 'children': ['91']}; {'id': '91', 'type': 'pass_statement', 'children': []}; {'id': '92', 'type': 'expression_statement', 'children': ['93']}; {'id': '93', 'type': 'assignment', 'children': ['94', '97']}; {'id': '94', 'type': 'attribute', 'children': ['95', '96']}; {'id': '95', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '96', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '97', 'type': 'call', 'children': ['98', '101']}; {'id': '98', 'type': 'attribute', 'children': ['99', '100']}; {'id': '99', 'type': 'identifier', 'children': [], 'value': 'io_fits'}; {'id': '100', 'type': 'identifier', 'children': [], 'value': 'get_fitsloader'}; {'id': '101', 'type': 'argument_list', 'children': ['102']}; {'id': '102', 'type': 'keyword_argument', 'children': ['103', '104']}; {'id': '103', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '104', 'type': 'attribute', 'children': ['105', '106']}; {'id': '105', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '106', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '107', 'type': 'expression_statement', 'children': ['108']}; {'id': '108', 'type': 'call', 'children': ['109', '114']}; {'id': '109', 'type': 'attribute', 'children': ['110', '113']}; {'id': '110', 'type': 'attribute', 'children': ['111', '112']}; {'id': '111', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '112', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '113', 'type': 'identifier', 'children': [], 'value': 'open_file'}; {'id': '114', 'type': 'argument_list', 'children': ['115']}; {'id': '115', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '116', 'type': 'expression_statement', 'children': ['117']}; {'id': '117', 'type': 'assignment', 'children': ['118', '119']}; {'id': '118', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '119', 'type': 'binary_operator', 'children': ['120', '126'], 'value': '-'}; {'id': '120', 'type': 'call', 'children': ['121', '122']}; {'id': '121', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '122', 'type': 'argument_list', 'children': ['123']}; {'id': '123', 'type': 'attribute', 'children': ['124', '125']}; {'id': '124', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '125', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '126', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '127', 'type': 'expression_statement', 'children': ['128']}; {'id': '128', 'type': 'call', 'children': ['129', '132']}; {'id': '129', 'type': 'attribute', 'children': ['130', '131']}; {'id': '130', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '131', 'type': 'identifier', 'children': [], 'value': 'prep_hdu_menu'}; {'id': '132', 'type': 'argument_list', 'children': ['133', '138']}; {'id': '133', 'type': 'attribute', 'children': ['134', '137']}; {'id': '134', 'type': 'attribute', 'children': ['135', '136']}; {'id': '135', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '136', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '137', 'type': 'identifier', 'children': [], 'value': 'hdu'}; {'id': '138', 'type': 'attribute', 'children': ['139', '142']}; {'id': '139', 'type': 'attribute', 'children': ['140', '141']}; {'id': '140', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '141', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '142', 'type': 'identifier', 'children': [], 'value': 'hdu_info'}; {'id': '143', 'type': 'expression_statement', 'children': ['144']}; {'id': '144', 'type': 'assignment', 'children': ['145', '148']}; {'id': '145', 'type': 'attribute', 'children': ['146', '147']}; {'id': '146', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '147', 'type': 'identifier', 'children': [], 'value': 'num_hdu'}; {'id': '148', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '149', 'type': 'expression_statement', 'children': ['150']}; {'id': '150', 'type': 'call', 'children': ['151', '156']}; {'id': '151', 'type': 'attribute', 'children': ['152', '155']}; {'id': '152', 'type': 'attribute', 'children': ['153', '154']}; {'id': '153', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '154', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '155', 'type': 'identifier', 'children': [], 'value': 'debug'}; {'id': '156', 'type': 'argument_list', 'children': ['157']}; {'id': '157', 'type': 'binary_operator', 'children': ['158', '159'], 'value': '%'}; {'id': '158', 'type': 'string', 'children': [], 'value': '"there are %d hdus"'}; {'id': '159', 'type': '()', 'children': ['160']}; {'id': '160', 'type': 'binary_operator', 'children': ['161', '162'], 'value': '+'}; {'id': '161', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '162', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '163', 'type': 'expression_statement', 'children': ['164']}; {'id': '164', 'type': 'call', 'children': ['165', '172']}; {'id': '165', 'type': 'attribute', 'children': ['166', '171']}; {'id': '166', 'type': 'attribute', 'children': ['167', '170']}; {'id': '167', 'type': 'attribute', 'children': ['168', '169']}; {'id': '168', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '169', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '170', 'type': 'identifier', 'children': [], 'value': 'numhdu'}; {'id': '171', 'type': 'identifier', 'children': [], 'value': 'set_text'}; {'id': '172', 'type': 'argument_list', 'children': ['173']}; {'id': '173', 'type': 'binary_operator', 'children': ['174', '175'], 'value': '%'}; {'id': '174', 'type': 'string', 'children': [], 'value': '"%d"'}; {'id': '175', 'type': '()', 'children': ['176']}; {'id': '176', 'type': 'binary_operator', 'children': ['177', '178'], 'value': '+'}; {'id': '177', 'type': 'identifier', 'children': [], 'value': 'upper'}; {'id': '178', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '179', 'type': 'expression_statement', 'children': ['180']}; {'id': '180', 'type': 'call', 'children': ['181', '188']}; {'id': '181', 'type': 'attribute', 'children': ['182', '187']}; {'id': '182', 'type': 'attribute', 'children': ['183', '186']}; {'id': '183', 'type': 'attribute', 'children': ['184', '185']}; {'id': '184', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '185', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '186', 'type': 'identifier', 'children': [], 'value': 'hdu'}; {'id': '187', 'type': 'identifier', 'children': [], 'value': 'set_enabled'}; {'id': '188', 'type': 'argument_list', 'children': ['189']}; {'id': '189', 'type': 'comparison_operator', 'children': ['190', '196'], 'value': '>'}; {'id': '190', 'type': 'call', 'children': ['191', '192']}; {'id': '191', 'type': 'identifier', 'children': [], 'value': 'len'}; {'id': '192', 'type': 'argument_list', 'children': ['193']}; {'id': '193', 'type': 'attribute', 'children': ['194', '195']}; {'id': '194', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '195', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '196', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '197', 'type': 'expression_statement', 'children': ['198']}; {'id': '198', 'type': 'assignment', 'children': ['199', '200']}; {'id': '199', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '200', 'type': 'call', 'children': ['201', '204']}; {'id': '201', 'type': 'attribute', 'children': ['202', '203']}; {'id': '202', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '203', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '204', 'type': 'argument_list', 'children': ['205', '206']}; {'id': '205', 'type': 'string', 'children': [], 'value': "'name'"}; {'id': '206', 'type': 'call', 'children': ['207', '210']}; {'id': '207', 'type': 'attribute', 'children': ['208', '209']}; {'id': '208', 'type': 'identifier', 'children': [], 'value': 'iohelper'}; {'id': '209', 'type': 'identifier', 'children': [], 'value': 'name_image_from_path'}; {'id': '210', 'type': 'argument_list', 'children': ['211']}; {'id': '211', 'type': 'identifier', 'children': [], 'value': 'path'}; {'id': '212', 'type': 'expression_statement', 'children': ['213']}; {'id': '213', 'type': 'assignment', 'children': ['214', '215']}; {'id': '214', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '215', 'type': 'call', 'children': ['216', '219']}; {'id': '216', 'type': 'attribute', 'children': ['217', '218']}; {'id': '217', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '218', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '219', 'type': 'argument_list', 'children': ['220', '221']}; {'id': '220', 'type': 'string', 'children': [], 'value': "'idx'"}; {'id': '221', 'type': 'None', 'children': []}; {'id': '222', 'type': 'expression_statement', 'children': ['223']}; {'id': '223', 'type': 'assignment', 'children': ['224', '225']}; {'id': '224', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '225', 'type': 'call', 'children': ['226', '229']}; {'id': '226', 'type': 'attribute', 'children': ['227', '228']}; {'id': '227', 'type': 'identifier', 'children': [], 'value': 're'}; {'id': '228', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '229', 'type': 'argument_list', 'children': ['230', '231']}; {'id': '230', 'type': 'string', 'children': [], 'value': "r'^(.+)\\[(.+)\\]$'"}; {'id': '231', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '232', 'type': 'if_statement', 'children': ['233', '234']}; {'id': '233', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '234', 'type': 'block', 'children': ['235']}; {'id': '235', 'type': 'expression_statement', 'children': ['236']}; {'id': '236', 'type': 'assignment', 'children': ['237', '238']}; {'id': '237', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '238', 'type': 'call', 'children': ['239', '242']}; {'id': '239', 'type': 'attribute', 'children': ['240', '241']}; {'id': '240', 'type': 'identifier', 'children': [], 'value': 'match'}; {'id': '241', 'type': 'identifier', 'children': [], 'value': 'group'}; {'id': '242', 'type': 'argument_list', 'children': ['243']}; {'id': '243', 'type': 'integer', 'children': [], 'value': '1'}; {'id': '244', 'type': 'expression_statement', 'children': ['245']}; {'id': '245', 'type': 'assignment', 'children': ['246', '249']}; {'id': '246', 'type': 'attribute', 'children': ['247', '248']}; {'id': '247', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '248', 'type': 'identifier', 'children': [], 'value': 'name_pfx'}; {'id': '249', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '250', 'type': 'expression_statement', 'children': ['251']}; {'id': '251', 'type': 'assignment', 'children': ['252', '253']}; {'id': '252', 'type': 'identifier', 'children': [], 'value': 'htype'}; {'id': '253', 'type': 'None', 'children': []}; {'id': '254', 'type': 'if_statement', 'children': ['255', '258']}; {'id': '255', 'type': 'comparison_operator', 'children': ['256', '257'], 'value': 'is'}; {'id': '256', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '257', 'type': 'None', 'children': []}; {'id': '258', 'type': 'block', 'children': ['259', '273']}; {'id': '259', 'type': 'expression_statement', 'children': ['260']}; {'id': '260', 'type': 'assignment', 'children': ['261', '262']}; {'id': '261', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '262', 'type': 'call', 'children': ['263', '270']}; {'id': '263', 'type': 'attribute', 'children': ['264', '269']}; {'id': '264', 'type': 'attribute', 'children': ['265', '268']}; {'id': '265', 'type': 'attribute', 'children': ['266', '267']}; {'id': '266', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '267', 'type': 'identifier', 'children': [], 'value': 'file_obj'}; {'id': '268', 'type': 'identifier', 'children': [], 'value': 'hdu_db'}; {'id': '269', 'type': 'identifier', 'children': [], 'value': 'get'}; {'id': '270', 'type': 'argument_list', 'children': ['271', '272']}; {'id': '271', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '272', 'type': 'None', 'children': []}; {'id': '273', 'type': 'if_statement', 'children': ['274', '277']}; {'id': '274', 'type': 'comparison_operator', 'children': ['275', '276'], 'value': 'is'}; {'id': '275', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '276', 'type': 'None', 'children': []}; {'id': '277', 'type': 'block', 'children': ['278', '288', '296']}; {'id': '278', 'type': 'expression_statement', 'children': ['279']}; {'id': '279', 'type': 'assignment', 'children': ['280', '281']}; {'id': '280', 'type': 'identifier', 'children': [], 'value': 'htype'}; {'id': '281', 'type': 'call', 'children': ['282', '287']}; {'id': '282', 'type': 'attribute', 'children': ['283', '286']}; {'id': '283', 'type': 'attribute', 'children': ['284', '285']}; {'id': '284', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '285', 'type': 'identifier', 'children': [], 'value': 'htype'}; {'id': '286', 'type': 'identifier', 'children': [], 'value': 'lower'}; {'id': '287', 'type': 'argument_list', 'children': []}; {'id': '288', 'type': 'expression_statement', 'children': ['289']}; {'id': '289', 'type': 'assignment', 'children': ['290', '291']}; {'id': '290', 'type': 'identifier', 'children': [], 'value': 'toc_ent'}; {'id': '291', 'type': 'binary_operator', 'children': ['292', '295'], 'value': '%'}; {'id': '292', 'type': 'attribute', 'children': ['293', '294']}; {'id': '293', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '294', 'type': 'identifier', 'children': [], 'value': '_toc_fmt'}; {'id': '295', 'type': 'identifier', 'children': [], 'value': 'info'}; {'id': '296', 'type': 'expression_statement', 'children': ['297']}; {'id': '297', 'type': 'call', 'children': ['298', '305']}; {'id': '298', 'type': 'attribute', 'children': ['299', '304']}; {'id': '299', 'type': 'attribute', 'children': ['300', '303']}; {'id': '300', 'type': 'attribute', 'children': ['301', '302']}; {'id': '301', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '302', 'type': 'identifier', 'children': [], 'value': 'w'}; {'id': '303', 'type': 'identifier', 'children': [], 'value': 'hdu'}; {'id': '304', 'type': 'identifier', 'children': [], 'value': 'show_text'}; {'id': '305', 'type': 'argument_list', 'children': ['306']}; {'id': '306', 'type': 'identifier', 'children': [], 'value': 'toc_ent'}; {'id': '307', 'type': 'if_statement', 'children': ['308', '313']}; {'id': '308', 'type': 'comparison_operator', 'children': ['309', '312'], 'value': '!='}; {'id': '309', 'type': 'attribute', 'children': ['310', '311']}; {'id': '310', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '311', 'type': 'identifier', 'children': [], 'value': 'img_name'}; {'id': '312', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '313', 'type': 'block', 'children': ['314', '320', '326', '334', '416']}; {'id': '314', 'type': 'expression_statement', 'children': ['315']}; {'id': '315', 'type': 'assignment', 'children': ['316', '319']}; {'id': '316', 'type': 'attribute', 'children': ['317', '318']}; {'id': '317', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '318', 'type': 'identifier', 'children': [], 'value': 'img_name'}; {'id': '319', 'type': 'identifier', 'children': [], 'value': 'name'}; {'id': '320', 'type': 'expression_statement', 'children': ['321']}; {'id': '321', 'type': 'assignment', 'children': ['322', '323']}; {'id': '322', 'type': 'identifier', 'children': [], 'value': 'dims'}; {'id': '323', 'type': 'list', 'children': ['324', '325'], 'value': '[0, 0]'}; {'id': '324', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '325', 'type': 'integer', 'children': [], 'value': '0'}; {'id': '326', 'type': 'expression_statement', 'children': ['327']}; {'id': '327', 'type': 'assignment', 'children': ['328', '329']}; {'id': '328', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '329', 'type': 'call', 'children': ['330', '333']}; {'id': '330', 'type': 'attribute', 'children': ['331', '332']}; {'id': '331', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '332', 'type': 'identifier', 'children': [], 'value': 'get_data'}; {'id': '333', 'type': 'argument_list', 'children': []}; {'id': '334', 'type': 'if_statement', 'children': ['335', '338', '354', '362', '386']}; {'id': '335', 'type': 'comparison_operator', 'children': ['336', '337'], 'value': 'is'}; {'id': '336', 'type': 'identifier', 'children': [], 'value': 'data'}; {'id': '337', 'type': 'None', 'children': []}; {'id': '338', 'type': 'block', 'children': ['339']}; {'id': '339', 'type': 'expression_statement', 'children': ['340']}; {'id': '340', 'type': 'call', 'children': ['341', '346']}; {'id': '341', 'type': 'attribute', 'children': ['342', '345']}; {'id': '342', 'type': 'attribute', 'children': ['343', '344']}; {'id': '343', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '344', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '345', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '346', 'type': 'argument_list', 'children': ['347']}; {'id': '347', 'type': 'binary_operator', 'children': ['348', '349'], 'value': '%'}; {'id': '348', 'type': 'string', 'children': [], 'value': '"Empty data part in HDU %s"'}; {'id': '349', 'type': '()', 'children': ['350']}; {'id': '350', 'type': 'call', 'children': ['351', '352']}; {'id': '351', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '352', 'type': 'argument_list', 'children': ['353']}; {'id': '353', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '354', 'type': 'elif_clause', 'children': ['355', '360']}; {'id': '355', 'type': 'comparison_operator', 'children': ['356', '357'], 'value': 'in'}; {'id': '356', 'type': 'identifier', 'children': [], 'value': 'htype'}; {'id': '357', 'type': 'tuple', 'children': ['358', '359']}; {'id': '358', 'type': 'string', 'children': [], 'value': "'bintablehdu'"}; {'id': '359', 'type': 'string', 'children': [], 'value': "'tablehdu'"}; {'id': '360', 'type': 'block', 'children': ['361']}; {'id': '361', 'type': 'pass_statement', 'children': []}; {'id': '362', 'type': 'elif_clause', 'children': ['363', '369']}; {'id': '363', 'type': 'comparison_operator', 'children': ['364', '365'], 'value': 'not'}; {'id': '364', 'type': 'identifier', 'children': [], 'value': 'htype'}; {'id': '365', 'type': 'tuple', 'children': ['366', '367', '368']}; {'id': '366', 'type': 'string', 'children': [], 'value': "'imagehdu'"}; {'id': '367', 'type': 'string', 'children': [], 'value': "'primaryhdu'"}; {'id': '368', 'type': 'string', 'children': [], 'value': "'compimagehdu'"}; {'id': '369', 'type': 'block', 'children': ['370']}; {'id': '370', 'type': 'expression_statement', 'children': ['371']}; {'id': '371', 'type': 'call', 'children': ['372', '377']}; {'id': '372', 'type': 'attribute', 'children': ['373', '376']}; {'id': '373', 'type': 'attribute', 'children': ['374', '375']}; {'id': '374', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '375', 'type': 'identifier', 'children': [], 'value': 'logger'}; {'id': '376', 'type': 'identifier', 'children': [], 'value': 'warning'}; {'id': '377', 'type': 'argument_list', 'children': ['378']}; {'id': '378', 'type': 'binary_operator', 'children': ['379', '380'], 'value': '%'}; {'id': '379', 'type': 'string', 'children': [], 'value': '"HDU %s is not an image (%s)"'}; {'id': '380', 'type': 'tuple', 'children': ['381', '385']}; {'id': '381', 'type': 'call', 'children': ['382', '383']}; {'id': '382', 'type': 'identifier', 'children': [], 'value': 'str'}; {'id': '383', 'type': 'argument_list', 'children': ['384']}; {'id': '384', 'type': 'identifier', 'children': [], 'value': 'idx'}; {'id': '385', 'type': 'identifier', 'children': [], 'value': 'htype'}; {'id': '386', 'type': 'else_clause', 'children': ['387']}; {'id': '387', 'type': 'block', 'children': ['388', '396']}; {'id': '388', 'type': 'expression_statement', 'children': ['389']}; {'id': '389', 'type': 'assignment', 'children': ['390', '391']}; {'id': '390', 'type': 'identifier', 'children': [], 'value': 'mddata'}; {'id': '391', 'type': 'call', 'children': ['392', '395']}; {'id': '392', 'type': 'attribute', 'children': ['393', '394']}; {'id': '393', 'type': 'identifier', 'children': [], 'value': 'image'}; {'id': '394', 'type': 'identifier', 'children': [], 'value': 'get_mddata'}; {'id': '395', 'type': 'argument_list', 'children': []}; {'id': '396', 'type': 'if_statement', 'children': ['397', '400']}; {'id': '397', 'type': 'comparison_operator', 'children': ['398', '399'], 'value': 'is'}; {'id': '398', 'type': 'identifier', 'children': [], 'value': 'mddata'}; {'id': '399', 'type': 'None', 'children': []}; {'id': '400', 'type': 'block', 'children': ['401', '410']}; {'id': '401', 'type': 'expression_statement', 'children': ['402']}; {'id': '402', 'type': 'assignment', 'children': ['403', '404']}; {'id': '403', 'type': 'identifier', 'children': [], 'value': 'dims'}; {'id': '404', 'type': 'call', 'children': ['405', '406']}; {'id': '405', 'type': 'identifier', 'children': [], 'value': 'list'}; {'id': '406', 'type': 'argument_list', 'children': ['407']}; {'id': '407', 'type': 'attribute', 'children': ['408', '409']}; {'id': '408', 'type': 'identifier', 'children': [], 'value': 'mddata'}; {'id': '409', 'type': 'identifier', 'children': [], 'value': 'shape'}; {'id': '410', 'type': 'expression_statement', 'children': ['411']}; {'id': '411', 'type': 'call', 'children': ['412', '415']}; {'id': '412', 'type': 'attribute', 'children': ['413', '414']}; {'id': '413', 'type': 'identifier', 'children': [], 'value': 'dims'}; {'id': '414', 'type': 'identifier', 'children': [], 'value': 'reverse'}; {'id': '415', 'type': 'argument_list', 'children': []}; {'id': '416', 'type': 'expression_statement', 'children': ['417']}; {'id': '417', 'type': 'call', 'children': ['418', '421']}; {'id': '418', 'type': 'attribute', 'children': ['419', '420']}; {'id': '419', 'type': 'identifier', 'children': [], 'value': 'self'}; {'id': '420', 'type': 'identifier', 'children': [], 'value': 'build_naxis'}; {'id': '421', 'type': 'argument_list', 'children': ['422', '423']}; {'id': '422', 'type': 'identifier', 'children': [], 'value': 'dims'}; {'id': '423', 'type': 'identifier', 'children': [], 'value': 'image'}
Called when an image is set in the channel.